pub struct Secret32Bytes(pub [u8; 32]);
Expand description
Cryptographic and Timestamp data types
A representation of a 32 byte secret key with
default constant time equality checks, hex fmt::Debug
and hex fmt::Display
,
implementation for zeroize for zeroing memory when the value is dropped
and an implementation for Borsh encoding that ensure
no two binary representations that deserialize into the same object
and a possibly smaller code size compared to serde binary representations.
Tuple Fields§
§0: [u8; 32]
Trait Implementations§
Source§impl BorshDeserialize for Secret32Bytes
impl BorshDeserialize for Secret32Bytes
Source§impl BorshSerialize for Secret32Bytes
impl BorshSerialize for Secret32Bytes
Source§impl Debug for Secret32Bytes
impl Debug for Secret32Bytes
Source§impl Default for Secret32Bytes
impl Default for Secret32Bytes
Source§fn default() -> Secret32Bytes
fn default() -> Secret32Bytes
Returns the “default value” for a type. Read more
Source§impl Hash for Secret32Bytes
impl Hash for Secret32Bytes
Source§impl Ord for Secret32Bytes
impl Ord for Secret32Bytes
Source§fn cmp(&self, other: &Secret32Bytes) -> Ordering
fn cmp(&self, other: &Secret32Bytes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Secret32Bytes
impl PartialEq for Secret32Bytes
Source§impl PartialOrd for Secret32Bytes
impl PartialOrd for Secret32Bytes
Source§impl Zeroize for Secret32Bytes
impl Zeroize for Secret32Bytes
impl Eq for Secret32Bytes
impl ZeroizeOnDrop for Secret32Bytes
Auto Trait Implementations§
impl Freeze for Secret32Bytes
impl RefUnwindSafe for Secret32Bytes
impl Send for Secret32Bytes
impl Sync for Secret32Bytes
impl Unpin for Secret32Bytes
impl UnwindSafe for Secret32Bytes
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