mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Clarify FROST's test-provided secp256k1 curve definition
This commit is contained in:
@@ -44,6 +44,10 @@ impl Curve for Secp256k1 {
|
||||
|
||||
// The IETF draft doesn't specify a secp256k1 ciphersuite
|
||||
// This test just uses the simplest ciphersuite which would still be viable to deploy
|
||||
// The comparable P-256 curve uses hash_to_field from the Hash To Curve IETF draft with a context
|
||||
// string and further DST for H1 ("rho") and H3 ("digest"). It's not currently worth it to add
|
||||
// that weight, yet if secp256k1 is ever officially acknowledged (not just a testing curve), it
|
||||
// must be properly implemented.
|
||||
fn hash_msg(msg: &[u8]) -> Vec<u8> {
|
||||
(&Sha256::digest(msg)).to_vec()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user