diff --git a/bolt-sidecar/src/crypto/bls.rs b/bolt-sidecar/src/crypto/bls.rs index c420c755c..56179aba5 100644 --- a/bolt-sidecar/src/crypto/bls.rs +++ b/bolt-sidecar/src/crypto/bls.rs @@ -33,12 +33,21 @@ pub trait SignerBLS: Send + Debug { } /// A BLS signer that can sign any type that implements the [`SignableBLS`] trait. -#[derive(Debug, Clone)] +#[derive(Clone)] pub struct Signer { chain: ChainConfig, key: BlsSecretKey, } +impl Debug for Signer { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Signer") + .field("pubkey", &self.pubkey()) + .field("chain", &self.chain.name()) + .finish() + } +} + impl Signer { /// Create a new signer with the given BLS secret key. pub fn new(key: BlsSecretKey, chain: ChainConfig) -> Self {