Skip to content

Commit

Permalink
Derive Hash for Signature
Browse files Browse the repository at this point in the history
In preparation for deriving `Hash` in miniscript, derive `Hash` on the
`ecdsa::Signature`.
  • Loading branch information
tcharding committed May 6, 2022
1 parent a0064c2 commit ef7f197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecdsa/mod.rs
Expand Up @@ -16,7 +16,7 @@ pub use self::recovery::{RecoveryId, RecoverableSignature};
use SECP256K1;

/// An ECDSA signature
#[derive(Copy, Clone, PartialEq, Eq)]
#[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub struct Signature(pub(crate) ffi::Signature);

/// A DER serialized Signature
Expand Down

0 comments on commit ef7f197

Please sign in to comment.