From 402bd993b226c4642ef524b1b435c0cbcf1952eb Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 29 Nov 2021 13:18:22 +1100 Subject: [PATCH] Add standard derives to TweakedPublickKey All new types in `rust-bitcoin` should use our standard set of derives. Add said standard derives to `TweakedPublickKey`. --- src/util/schnorr.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index a7bba40f..74c97042 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -26,6 +26,7 @@ use util::taproot::{TapBranchHash, TapTweakHash}; pub type UntweakedPublicKey = PublicKey; /// Tweaked Schnorr public key +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct TweakedPublicKey(PublicKey); /// A trait for tweaking Schnorr public keys