Derive Macro sp_core::crypto::Zeroize

source ยท
#[derive(Zeroize)]
{
    // Attributes available to this derive:
    #[zeroize]
}
Expand description

Trait to zeroize a memory buffer. Derive the Zeroize trait.

Supports the following attributes:

On the item level:

  • #[zeroize(drop)]: deprecated use ZeroizeOnDrop instead
  • #[zeroize(bound = "T: MyTrait")]: this replaces any trait bounds inferred by zeroize-derive

On the field level:

  • #[zeroize(skip)]: skips this field or variant when calling zeroize()