Struct sequoia_ipc::Keygrip[][src]

pub struct Keygrip(_);

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

impl Keygrip[src]

pub fn of(key: &PublicKey) -> Result<Keygrip>[src]

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

impl Clone for Keygrip[src]

impl Debug for Keygrip[src]

impl Display for Keygrip[src]

impl Eq for Keygrip[src]

impl FromStr for Keygrip[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Keygrip[src]

impl PartialEq<Keygrip> for Keygrip[src]

impl StructuralEq for Keygrip[src]

impl StructuralPartialEq for Keygrip[src]

Auto Trait Implementations

impl RefUnwindSafe for Keygrip

impl Send for Keygrip

impl Sync for Keygrip

impl Unpin for Keygrip

impl UnwindSafe for Keygrip

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,