From 83c7b6d9b72ecbad08edfda8d9c2f7e67a8f3a46 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sun, 12 Aug 2018 15:20:31 +0000 Subject: [PATCH] add Debug impl to context object --- src/lib.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c4bb8b1..5fc4699 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -449,6 +449,30 @@ impl Drop for Secp256k1 { } } +impl fmt::Debug for Secp256k1 { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "", self.ctx) + } +} + +impl fmt::Debug for Secp256k1 { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "", self.ctx) + } +} + +impl fmt::Debug for Secp256k1 { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "", self.ctx) + } +} + +impl fmt::Debug for Secp256k1 { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "", self.ctx) + } +} + impl Secp256k1 { /// Creates a new Secp256k1 context with no capabilities (just de/serialization) pub fn without_caps() -> Secp256k1 {