pub trait KeyStore {
// Required methods
fn store(&mut self, tmb: &str, key: StoredKey) -> Result<(), Error>;
fn get(&self, tmb: &str) -> Result<&StoredKey, Error>;
fn list(&self) -> Vec<&str>;
fn save(&self) -> Result<(), Error>;
}Expand description
Keystore trait for private key storage.
Implementations may use files, OS keychains, HSMs, etc.