Skip to content

Commit

Permalink
Redact hpke secret key from Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 19, 2024
1 parent 6bfcd0c commit 1ed6505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payjoin/src/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])")
}
}

Expand Down

0 comments on commit 1ed6505

Please sign in to comment.