Skip to content

Commit dbc5465

Browse files
committed
Impl Ord and PartialOrd for RecoverableSignature
1 parent f96fcd8 commit dbc5465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ecdsa/recovery.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ use crate::ffi::recovery as ffi;
1313
use crate::{key, Error, Message, Secp256k1, Signing, Verification};
1414

1515
/// A tag used for recovering the public key from a compact signature.
16-
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
16+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Ord, PartialOrd)]
1717
pub struct RecoveryId(i32);
1818

1919
/// An ECDSA signature with a recovery ID for pubkey recovery.
20-
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash)]
20+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Hash, Ord, PartialOrd)]
2121
pub struct RecoverableSignature(ffi::RecoverableSignature);
2222

2323
impl RecoveryId {

0 commit comments

Comments
 (0)