|
|
@ -402,8 +402,7 @@ impl SecretKey { |
|
|
|
/// the `Debug` implementation in that it *does* leak the secret prime
|
|
|
|
/// the `Debug` implementation in that it *does* leak the secret prime
|
|
|
|
/// field element.
|
|
|
|
/// field element.
|
|
|
|
pub fn reveal(&self) -> String { |
|
|
|
pub fn reveal(&self) -> String { |
|
|
|
let uncomp = self.public_key().0.into_affine().into_uncompressed(); |
|
|
|
format!("SecretKey({:?})", self.0) |
|
|
|
format!("SecretKey({:0.10})", HexFmt(uncomp)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -474,8 +473,7 @@ impl SecretKeyShare { |
|
|
|
/// the `Debug` implementation in that it *does* leak the secret prime
|
|
|
|
/// the `Debug` implementation in that it *does* leak the secret prime
|
|
|
|
/// field element.
|
|
|
|
/// field element.
|
|
|
|
pub fn reveal(&self) -> String { |
|
|
|
pub fn reveal(&self) -> String { |
|
|
|
let uncomp = self.0.public_key().0.into_affine().into_uncompressed(); |
|
|
|
format!("SecretKeyShare({:?})", (self.0).0) |
|
|
|
format!("SecretKeyShare({:0.10})", HexFmt(uncomp)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|