diff --git a/schnorr_fun/src/frost.rs b/schnorr_fun/src/frost.rs index b0762b39..a5265d76 100644 --- a/schnorr_fun/src/frost.rs +++ b/schnorr_fun/src/frost.rs @@ -75,7 +75,7 @@ //! # ) //! # .unwrap(); //! // signing parties must use a common set of nonces when creating signature shares. -//! // nonces can be derived from a session id that use includes publicly known values. +//! // nonces can be derived from a session id which is created from publicly known values. //! let verification_shares_bytes: Vec<_> = frost_key //! .verification_shares() //! .map(|share| share.to_bytes()) @@ -501,7 +501,7 @@ impl XOnlyFrostKey { /// /// ## Return value /// - /// A point (normalised to have an even Y coordinate). + /// A point (normalized to have an even Y coordinate). pub fn public_key(&self) -> Point { self.public_key } @@ -1141,10 +1141,11 @@ mod test { received_nonces.push((*i, nonce.public())); } + let message = Message::plain("test", b"test"); let signing_session = frost.start_sign_session( &frost_keys[signer_indexes[0]], received_nonces.clone(), - Message::plain("test", b"test") + message ); let mut signatures = vec![]; @@ -1153,7 +1154,7 @@ mod test { let session = frost.start_sign_session( &frost_keys[signer_index], received_nonces.clone(), - Message::plain("test", b"test") + message ); let sig = frost.sign( &frost_keys[signer_index], @@ -1176,7 +1177,7 @@ mod test { assert!(frost.schnorr.verify( &frost_keys[signer_indexes[0]].public_key(), - Message::::plain("test", b"test"), + message, &combined_sig )); }