From 6c319181ce5bf8af49727f0eaa7c6f5a242e0b49 Mon Sep 17 00:00:00 2001 From: Tibo-lg Date: Fri, 25 Sep 2020 16:31:29 +0900 Subject: [PATCH] Add serde impl for SchnorrPublicKey --- src/schnorrsig.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schnorrsig.rs b/src/schnorrsig.rs index e47091b8c..eb8fe3f0f 100644 --- a/src/schnorrsig.rs +++ b/src/schnorrsig.rs @@ -78,6 +78,8 @@ impl str::FromStr for SchnorrPublicKey { } } +serde_impl!(SchnorrPublicKey, constants::SCHNORR_PUBLIC_KEY_SIZE); + impl SchnorrSignature { /// Creates an SchnorrSignature directly from a slice #[inline]