diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index 535abb98..8542915f 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -60,9 +60,9 @@ impl fmt::Display for TweakedPublicKey { pub type UntweakedKeyPair = ::KeyPair; /// Tweaked BIP-340 key pair -#[derive(Clone)] -#[cfg_attr(feature = "std", derive(Debug))] -// TODO: Add other derives once secp256k1 v0.21.3 released +#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", serde(transparent))] pub struct TweakedKeyPair(::KeyPair); /// A trait for tweaking BIP340 key types (x-only public keys and key pairs).