diff --git a/payjoin/src/hpke.rs b/payjoin/src/hpke.rs index fe916e37..d002125d 100644 --- a/payjoin/src/hpke.rs +++ b/payjoin/src/hpke.rs @@ -47,7 +47,7 @@ impl Deref for HpkeSecretKey { impl core::fmt::Debug for HpkeSecretKey { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "SecpHpkeSecretKey({:?})", self.0.to_bytes()) + write!(f, "SecpHpkeSecretKey([REDACTED])") } }