Impl Ord and PartialOrd for RecoverableSignature
This commit is contained in:
parent
f96fcd8fcf
commit
dbc546596f
|
@ -13,11 +13,11 @@ use crate::ffi::recovery as ffi;
|
|||
use crate::{key, Error, Message, Secp256k1, Signing, Verification};
|
||||
|
||||
/// A tag used for recovering the public key from a compact signature.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug, Ord, PartialOrd)]
|
||||
pub struct RecoveryId(i32);
|
||||
|
||||
/// An ECDSA signature with a recovery ID for pubkey recovery.
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, Ord, PartialOrd)]
|
||||
pub struct RecoverableSignature(ffi::RecoverableSignature);
|
||||
|
||||
impl RecoveryId {
|
||||
|
|
Loading…
Reference in New Issue