diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index 6a30000a..535abb98 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -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 {