Struct pgp::composed::key::PublicKey [−][src]
pub struct PublicKey { /* fields omitted */ }
Expand description
User facing interface to work with a public key.
Implementations
pub fn new(
primary_key: PublicKey,
details: KeyDetails,
public_subkeys: Vec<PublicSubkey>
) -> Self
pub fn sign<F>(
self,
sec_key: &impl SecretKeyTrait,
key_pw: F
) -> Result<SignedPublicKey> where
F: FnOnce() -> String + Clone,
Trait Implementations
Verify a signed message.
Data will be hashed using hash
, before verifying. Read more
Encrypt the given plain
for this key.
This is the data used for hashing in a signature. Only uses the public portion of the key.
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self