From 141dbbd1b9eb97613a380879c943d092544472e3 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Thu, 6 Jan 2022 12:06:29 +0100 Subject: [PATCH] Add serde impl for EcdsaSig --- src/util/ecdsa.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/ecdsa.rs b/src/util/ecdsa.rs index 54dd2692..bdd8800c 100644 --- a/src/util/ecdsa.rs +++ b/src/util/ecdsa.rs @@ -418,6 +418,7 @@ impl<'de> ::serde::Deserialize<'de> for PublicKey { /// An ECDSA signature with the corresponding hash type. #[derive(Debug, Copy, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct EcdsaSig { /// The underlying ECDSA Signature pub sig: secp256k1::ecdsa::Signature,