Skip to content

Commit

Permalink
Removing ordering and hashing for KeyPair's
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jun 19, 2021
1 parent 5550d0f commit cea9f79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/schnorrsig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ impl str::FromStr for Signature {
}

/// Opaque data structure that holds a keypair consisting of a secret and a public key.
#[derive(Copy, Clone, PartialEq, Eq, Debug, PartialOrd, Ord, Hash)]
///
/// NB: Since the type keeps secret key value as explicit bytes it should be used with the same
/// caution as [`SecretKey`]
#[derive(Clone, PartialEq, Eq, Debug)]
pub struct KeyPair(ffi::KeyPair);

/// A Schnorr public key, used for verification of Schnorr signatures
Expand Down

0 comments on commit cea9f79

Please sign in to comment.