pub struct SecretKey { /* private fields */ }
Expand description
User facing interface to work with a secret key.
Implementations
sourceimpl 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> where
F: FnOnce() -> String + Clone,
Trait Implementations
sourceimpl KeyTrait for SecretKey
impl KeyTrait for SecretKey
fn fingerprint(&self) -> Vec<u8>
fn algorithm(&self) -> PublicKeyAlgorithm
fn is_signing_key(&self) -> bool
fn is_encryption_key(&self) -> bool
impl Eq for SecretKey
impl StructuralEq for SecretKey
impl StructuralPartialEq for SecretKey
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more