Trait ripasso::crypto::Key

source ·
pub trait Key {
    // Required methods
    fn user_id_names(&self) -> Vec<String>;
    fn fingerprint(&self) -> Result<[u8; 20]>;
    fn is_not_usable(&self) -> bool;
}
Expand description

Models the interactions that can be done on a pgp key

Required Methods§

source

fn user_id_names(&self) -> Vec<String>

returns a list of names associated with the key

source

fn fingerprint(&self) -> Result<[u8; 20]>

returns the keys fingerprint

source

fn is_not_usable(&self) -> bool

returns if the key isn’t usable

Implementors§