mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-16 16:42:03 +00:00
Futher document hash_msg
This commit is contained in:
parent
afdac8c49b
commit
3c98e85c0a
1 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,12 @@ pub trait Curve: Clone + Copy + PartialEq + Eq + Debug {
|
||||||
|
|
||||||
/// Hash the message as needed to calculate the binding factor
|
/// Hash the message as needed to calculate the binding factor
|
||||||
/// H3 from the IETF draft
|
/// H3 from the IETF draft
|
||||||
|
// This doesn't actually need to be part of Curve as it does nothing with the curve
|
||||||
|
// This also solely relates to FROST and with a proper Algorithm/HRAM, all projects using
|
||||||
|
// aggregatable signatures over this curve will work without issue, albeit potentially with
|
||||||
|
// incompatibilities between FROST implementations
|
||||||
|
// It is kept here as Curve + HRAM is effectively a ciphersuite according to the IETF draft
|
||||||
|
// and moving it to Schnorr would force all of them into being ciphersuite-specific
|
||||||
fn hash_msg(msg: &[u8]) -> Vec<u8>;
|
fn hash_msg(msg: &[u8]) -> Vec<u8>;
|
||||||
|
|
||||||
/// Field element from hash, used in key generation and to calculate the binding factor
|
/// Field element from hash, used in key generation and to calculate the binding factor
|
||||||
|
|
Loading…
Reference in a new issue