Skip to content

Commit

Permalink
add fmt::Debug for SecretKey
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Jul 9, 2023
1 parent 5ce882f commit ff9be46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ pub fn eth_fast_aggregate_verify(
#[cfg_attr(feature = "serde", serde(try_from = "String"))]
pub struct SecretKey(bls_impl::SecretKey);

#[cfg(not(feature = "spec-tests"))]
impl fmt::Debug for SecretKey {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("SecretKey").finish()
}
}

#[cfg(feature = "serde")]
impl TryFrom<String> for SecretKey {
type Error = Error;
Expand Down

0 comments on commit ff9be46

Please sign in to comment.