Skip to content

Commit

Permalink
Merge #441: Derive Hash for Signature
Browse files Browse the repository at this point in the history
ef7f197 Derive Hash for Signature (Tobin C. Harding)

Pull request description:

  In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`.

  ref: rust-bitcoin/rust-miniscript#226

ACKs for top commit:
  apoelstra:
    ACK ef7f197
  elichai:
    ACK ef7f197

Tree-SHA512: 7313f59971444ae18611adbafe86a09478eddd7357f2b7f3ad3bb1761609b6358b156975086f6c318eb2777018b7b2f44386321108939acbcf2d0a522e7e208e
  • Loading branch information
apoelstra committed May 9, 2022
2 parents 712a378 + ef7f197 commit 6599e24
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 6599e24

Please sign in to comment.