Merge rust-bitcoin/rust-bitcoin#908: Add serde to TweakedPublicKey
204f477a34
Add serde to TweakedPublicKey (Jeremy Rubin) Pull request description: ACKs for top commit: dr-orlovsky: ACK204f477a34
apoelstra: ACK204f477a34
sanket1729: utACK204f477a34
Tree-SHA512: 61b0140549dfa641edee7e45dbb9f9c816d7319eb83d00ad9b0e7e499f3273de98b65c9905e7d50d4b6ecfd084b8848c4e612cb441124cc469142304ebff18d9
This commit is contained in:
commit
8884a61283
|
@ -40,6 +40,8 @@ pub type UntweakedPublicKey = ::XOnlyPublicKey;
|
||||||
|
|
||||||
/// Tweaked BIP-340 X-coord-only public key
|
/// Tweaked BIP-340 X-coord-only public key
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[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);
|
pub struct TweakedPublicKey(::XOnlyPublicKey);
|
||||||
|
|
||||||
impl fmt::LowerHex for TweakedPublicKey {
|
impl fmt::LowerHex for TweakedPublicKey {
|
||||||
|
|
Loading…
Reference in New Issue