diff --git a/protocol/src/types/primitive.rs b/protocol/src/types/primitive.rs index 84df2acb9..bf2b5b2af 100644 --- a/protocol/src/types/primitive.rs +++ b/protocol/src/types/primitive.rs @@ -175,6 +175,11 @@ impl<'de> Deserialize<'de> for Hex { } } +/// Zeroizing is the process of securely zeroing memory to prevent sensitive +/// data from being accessed by unauthorized parties. +/// +/// This ensures that sensitive data is securely erased from memory when it is +/// no longer needed. pub type Key256Bits = Zeroizing<[u8; 32]>; #[derive(Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]