Impl Ord and PartialOrd for RecoverableSignature

This commit is contained in:
benthecarman 2023-05-09 12:26:56 -05:00
parent f96fcd8fcf
commit dbc546596f
No known key found for this signature in database
GPG Key ID: D7CC770B81FD22A8
1 changed files with 2 additions and 2 deletions

View File

@ -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 {