Add serde to TweakedPublicKey

This commit is contained in:
Jeremy Rubin 2022-03-24 14:15:41 -07:00
parent d263c0c31e
commit 204f477a34
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ pub type UntweakedPublicKey = ::XOnlyPublicKey;
/// Tweaked BIP-340 X-coord-only public key
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(transparent))]
pub struct TweakedPublicKey(::XOnlyPublicKey);
impl fmt::LowerHex for TweakedPublicKey {