Trait libpasta::key::Store
[−]
[src]
pub trait Store { fn insert(&self, key_id: String, key: &[u8]); fn get_key(&self, id: &str) -> Option<Vec<u8>>; }
A key storage source. Permits retrieving and storing keys.
Keys are indexed by a String
id, and are stored as Vec
Required Methods
fn insert(&self, key_id: String, key: &[u8])
Insert a new key into the Store
.
fn get_key(&self, id: &str) -> Option<Vec<u8>>
Get a key from the Store
.
Implementors
impl Store for LocalStore