pub struct Identity { /* private fields */ }Expand description
A master seed, and the two independent keys derived from it.
Derivation is one-way and domain-separated, so recovering the signing key from the encryption key (or the reverse) is not possible without the master.
Implementations§
Source§impl Identity
impl Identity
pub fn generate() -> Result<Self, KeyringError>
pub fn from_seed(seed: Zeroizing<[u8; 32]>) -> Self
pub fn expose_seed_for_sealing(&self) -> &[u8; 32]
pub fn recipient_secret(&self) -> Result<RecipientSecret, KeyringError>
pub fn signing_seed(&self) -> Zeroizing<[u8; 32]>
Auto Trait Implementations§
impl Forget for Identity
impl Freeze for Identity
impl Move for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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