Add standard derives to TweakedPublickKey

All new types in `rust-bitcoin` should use our standard set of derives.

Add said standard derives to `TweakedPublickKey`.
This commit is contained in:
Tobin Harding 2021-11-29 13:18:22 +11:00
parent 9c015d9ce3
commit 402bd993b2
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ use util::taproot::{TapBranchHash, TapTweakHash};
pub type UntweakedPublicKey = PublicKey; pub type UntweakedPublicKey = PublicKey;
/// Tweaked Schnorr public key /// Tweaked Schnorr public key
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct TweakedPublicKey(PublicKey); pub struct TweakedPublicKey(PublicKey);
/// A trait for tweaking Schnorr public keys /// A trait for tweaking Schnorr public keys