Implement derives for TweakedKeyPair

This commit is contained in:
Dr Maxim Orlovsky 2022-03-28 21:27:51 +02:00
parent b32d40390c
commit df3297c34e
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 1 additions and 2 deletions

View File

@ -60,9 +60,8 @@ impl fmt::Display for TweakedPublicKey {
pub type UntweakedKeyPair = ::KeyPair;
/// Tweaked BIP-340 key pair
#[derive(Clone)]
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "std", derive(Debug))]
// TODO: Add other derives once secp256k1 v0.21.3 released
pub struct TweakedKeyPair(::KeyPair);
/// A trait for tweaking BIP340 key types (x-only public keys and key pairs).