pub struct SecretKey { /* private fields */ }
Expand description
User facing interface to work with a secret key.
Implementations§
source§impl SecretKey
impl SecretKey
pub fn new( primary_key: SecretKey, details: KeyDetails, public_subkeys: Vec<PublicSubkey>, secret_subkeys: Vec<SecretSubkey> ) -> Self
pub fn sign<F>(self, key_pw: F) -> Result<SignedSecretKey>
Trait Implementations§
source§impl PartialEq for SecretKey
impl PartialEq for SecretKey
impl Eq for SecretKey
impl StructuralPartialEq 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