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§