From ef7f1972a7e412e8b7a2e83f1c6eca0beed6559b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 6 May 2022 13:35:23 +1000 Subject: [PATCH] Derive Hash for Signature In preparation for deriving `Hash` in miniscript, derive `Hash` on the `ecdsa::Signature`. --- src/ecdsa/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ecdsa/mod.rs b/src/ecdsa/mod.rs index 1e8725a..58b87d0 100644 --- a/src/ecdsa/mod.rs +++ b/src/ecdsa/mod.rs @@ -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