#[repr(C)]pub struct SecretKey(pub [u8; 32]);Expand description
The secret half of a Keypair.
Note that a libsodium “secret key” is actually a pair of secret and public keys,
in the same buffer. This is only the secret half, which isn’t much use on its own.
For signing, and deserializing a libsodium secretkey encoded in base64
(as in the ~/.ssb/secret file), see Keypair.
The underlying memory is zeroed on drop.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
impl FromBytes for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
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