Skip to content

Commit 141dbbd

Browse files
committed
Add serde impl for EcdsaSig
1 parent c92057d commit 141dbbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/util/ecdsa.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ impl<'de> ::serde::Deserialize<'de> for PublicKey {
418418

419419
/// An ECDSA signature with the corresponding hash type.
420420
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
421+
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
421422
pub struct EcdsaSig {
422423
/// The underlying ECDSA Signature
423424
pub sig: secp256k1::ecdsa::Signature,

0 commit comments

Comments
 (0)