Skip to content

Commit

Permalink
Update protocol/src/types/primitive.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Flouse <[email protected]>
  • Loading branch information
yangby-cryptape and Flouse authored Aug 28, 2023
1 parent 7ed58f3 commit 19de48a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol/src/types/primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 19de48a

Please sign in to comment.