[][src]Trait libpasta::key::Store

pub trait Store: Debug + Send + Sync {
    pub fn insert(&self, key: &[u8]) -> String;
pub 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

pub fn insert(&self, key: &[u8]) -> String[src]

Insert a new key into the Store.

pub fn get_key(&self, id: &str) -> Option<Vec<u8>>[src]

Get a key from the Store.

Loading content...

Implementors

impl Store for LocalStore[src]

pub fn insert(&self, key: &[u8]) -> String[src]

Insert a new key into the KeyStore.

pub fn get_key(&self, id: &str) -> Option<Vec<u8>>[src]

Get a key from the KeyStore.

Loading content...