Skip to content

Commit

Permalink
chore: Redact PrivateKey
Browse files Browse the repository at this point in the history
  • Loading branch information
nesium committed Apr 15, 2024
1 parent 0e91c15 commit f6f55ee
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ impl Debug for PublicKey {

impl Debug for PrivateKey {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(
f,
"PrivateKey({})",
general_purpose::STANDARD.encode(self.0.as_ref())
)
write!(f, "PrivateKey([REDACTED])")
}
}

Expand Down

0 comments on commit f6f55ee

Please sign in to comment.