From ff9be46f243d67c5ebb38cea2147fb69dc69566d Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Sat, 8 Jul 2023 18:05:40 -0600 Subject: [PATCH] add `fmt::Debug` for `SecretKey` --- src/crypto.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/crypto.rs b/src/crypto.rs index 47f6cbd60..5b4e33858 100644 --- a/src/crypto.rs +++ b/src/crypto.rs @@ -163,6 +163,13 @@ pub fn eth_fast_aggregate_verify( #[cfg_attr(feature = "serde", serde(try_from = "String"))] pub struct SecretKey(bls_impl::SecretKey); +#[cfg(not(feature = "spec-tests"))] +impl fmt::Debug for SecretKey { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_tuple("SecretKey").finish() + } +} + #[cfg(feature = "serde")] impl TryFrom for SecretKey { type Error = Error;