diff --git a/rust/protocol/src/curve.rs b/rust/protocol/src/curve.rs index 33e683742a..fe77243d60 100644 --- a/rust/protocol/src/curve.rs +++ b/rust/protocol/src/curve.rs @@ -297,6 +297,12 @@ impl TryFrom<&[u8]> for PrivateKey { } } +impl fmt::Debug for PrivateKey { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "PrivateKey {{ key_type={} }}", self.key_type()) + } +} + #[derive(Copy, Clone)] pub struct KeyPair { pub public_key: PublicKey, diff --git a/rust/protocol/src/state/session.rs b/rust/protocol/src/state/session.rs index 1807108894..20bd99297f 100644 --- a/rust/protocol/src/state/session.rs +++ b/rust/protocol/src/state/session.rs @@ -466,7 +466,7 @@ impl From<&SessionState> for SessionStructure { } } -#[derive(Clone, Debug)] +#[derive(Clone)] pub struct SessionRecord { current_session: Option, previous_sessions: Vec>,