Add serde impl for EcdsaSig

This commit is contained in:
Dr Maxim Orlovsky 2022-01-06 12:06:29 +01:00
parent c92057d98f
commit 141dbbd1b9
1 changed files with 1 additions and 0 deletions

View File

@ -418,6 +418,7 @@ impl<'de> ::serde::Deserialize<'de> for PublicKey {
/// An ECDSA signature with the corresponding hash type. /// An ECDSA signature with the corresponding hash type.
#[derive(Debug, Copy, Clone, PartialEq, Eq)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct EcdsaSig { pub struct EcdsaSig {
/// The underlying ECDSA Signature /// The underlying ECDSA Signature
pub sig: secp256k1::ecdsa::Signature, pub sig: secp256k1::ecdsa::Signature,