diff --git a/src/util/privkey.rs b/src/util/privkey.rs index d622be79..65c1c568 100644 --- a/src/util/privkey.rs +++ b/src/util/privkey.rs @@ -153,6 +153,12 @@ impl fmt::Display for Privkey { } } +impl fmt::Debug for Privkey { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "[private key data]") + } +} + impl FromStr for Privkey { type Err = encode::Error; fn from_str(s: &str) -> Result {