Struct sequoia_ipc::Keygrip [−][src]
pub struct Keygrip(_);
Expand description
A proprietary, protocol agnostic identifier for public keys.
This is defined and used by GnuPG.
Examples
use sequoia_ipc as ipc;
use ipc::Keygrip;
let k: Keygrip = "DD143ABA8D1D7D09875D6209E01BCF020788FF77".parse()?;
assert_eq!(&k.to_string(), "DD143ABA8D1D7D09875D6209E01BCF020788FF77");
Implementations
Computes the keygrip of the given public key.
Examples
use sequoia_openpgp as openpgp;
use sequoia_ipc as ipc;
use ipc::Keygrip;
let cert: openpgp::Cert = // ...
assert_eq!(Keygrip::of(cert.primary_key().mpis())?.to_string(),
"DD143ABA8D1D7D09875D6209E01BCF020788FF77");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Keygrip
impl UnwindSafe for Keygrip
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self