Skip to content

Commit

Permalink
Merge pull request #245 from dusk-network/mocello/244_zeroize_on_drop
Browse files Browse the repository at this point in the history
core: Add comment on `ZeroizeOnDrop`
  • Loading branch information
moCello authored Sep 18, 2024
2 parents bc9dc67 + de5e503 commit d713e26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/keys/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ use subtle::{Choice, ConstantTimeEq};
///
/// sk.zeroize();
/// ```
///
/// # Note
/// Implementing `ZeroizeOnDrop` seems like an excellent way to lift the burden
/// of manually zeroizing after use off the user, but unfortunately it doesn't
/// delete the memory reliably. See #244
#[derive(Clone, Eq, Debug, Zeroize)]
#[cfg_attr(
feature = "rkyv-impl",
Expand Down

0 comments on commit d713e26

Please sign in to comment.