pub struct RedactionKey(/* private fields */);Expand description
32-byte key for BLAKE3 keyed-hash PII redaction.
Each node should hold one RedactionKey for the lifetime of its
process. The key MUST stay private — anyone with the key can replay the
hash and de-anonymise any token this module emits.
Implementations§
Source§impl RedactionKey
impl RedactionKey
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> Self
pub const fn from_bytes(bytes: [u8; 32]) -> Self
Construct a RedactionKey from a 32-byte buffer.
The buffer should come from a CSPRNG; callers SHOULD NOT derive it from any low-entropy source.
Trait Implementations§
Source§impl Clone for RedactionKey
impl Clone for RedactionKey
Source§fn clone(&self) -> RedactionKey
fn clone(&self) -> RedactionKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedactionKey
impl Debug for RedactionKey
Source§impl Drop for RedactionKey
impl Drop for RedactionKey
Auto Trait Implementations§
impl Freeze for RedactionKey
impl RefUnwindSafe for RedactionKey
impl Send for RedactionKey
impl Sync for RedactionKey
impl Unpin for RedactionKey
impl UnsafeUnpin for RedactionKey
impl UnwindSafe for RedactionKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more