Trait SeedPersist

Source
pub trait SeedPersist: Sync + Send {
    // Required methods
    fn put(&self, key: &str, seed: &[u8]);
    fn get(&self, key: &str) -> Option<Vec<u8>>;
    fn list(&self) -> Vec<String>;
}
Expand description

Seed persister

By convention, the key is the hex-encoded public key, but this may change in the future.

Required Methods§

Source

fn put(&self, key: &str, seed: &[u8])

Persist the seed

Source

fn get(&self, key: &str) -> Option<Vec<u8>>

Get the seed, if exists

Source

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

List the seeds

Implementors§