diff --git a/zebra-chain/src/keys/sprout.rs b/zebra-chain/src/keys/sprout.rs index 3df5626f..4a658996 100644 --- a/zebra-chain/src/keys/sprout.rs +++ b/zebra-chain/src/keys/sprout.rs @@ -51,9 +51,17 @@ impl From for ReceivingKey { } /// Derived from a _SpendingKey_. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[derive(Copy, Clone, Eq, PartialEq)] pub struct PayingKey(pub [u8; 32]); +impl fmt::Debug for PayingKey { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.debug_tuple("PayingKey") + .field(&hex::encode(&self.0)) + .finish() + } +} + impl From for PayingKey { /// For this invocation of SHA256Compress as the PRF, t=1. ///