-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Processor's coins folder referred to the networks it could process, as did its Coin trait. This, and other similar cases throughout the codebase, have now been corrected. Also corrects dated documentation for a key pair is confirmed under the validator-sets pallet.
- Loading branch information
1 parent
2815046
commit 9f143a9
Showing
40 changed files
with
551 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
use ciphersuite::Ciphersuite; | ||
|
||
use crate::coins::Coin; | ||
use crate::networks::Network; | ||
|
||
// Generate a static additional key for a given chain in a globally consistent manner | ||
// Doesn't consider the current group key to increase the simplicity of verifying Serai's status | ||
// Takes an index, k, to support protocols which use multiple secondary keys | ||
// Presumably a view key | ||
pub fn additional_key<C: Coin>(k: u64) -> <C::Curve as Ciphersuite>::F { | ||
<C::Curve as Ciphersuite>::hash_to_F( | ||
pub fn additional_key<N: Network>(k: u64) -> <N::Curve as Ciphersuite>::F { | ||
<N::Curve as Ciphersuite>::hash_to_F( | ||
b"Serai DEX Additional Key", | ||
&[C::ID.as_bytes(), &k.to_le_bytes()].concat(), | ||
&[N::ID.as_bytes(), &k.to_le_bytes()].concat(), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.