Derive Hash for Signature

In preparation for deriving `Hash` in miniscript, derive `Hash` on the
`ecdsa::Signature`.
This commit is contained in:
Tobin C. Harding 2022-05-06 13:35:23 +10:00
parent a0064c268b
commit ef7f1972a7
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ pub use self::recovery::{RecoveryId, RecoverableSignature};
use SECP256K1; use SECP256K1;
/// An ECDSA signature /// An ECDSA signature
#[derive(Copy, Clone, PartialEq, Eq)] #[derive(Copy, Clone, PartialEq, Eq, Hash)]
pub struct Signature(pub(crate) ffi::Signature); pub struct Signature(pub(crate) ffi::Signature);
/// A DER serialized Signature /// A DER serialized Signature