[][src]Trait blockchain_traits::KVStore

pub trait KVStore {
    fn contains(&self, key: &[u8]) -> bool;
fn get(&self, key: &[u8]) -> Option<Vec<u8>>; }

Interface for a Blockchain-flavored key-value store.

Required methods

fn contains(&self, key: &[u8]) -> bool

Returns whether the key is present in account storage.

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

Returns the data stored in the account at addr under the given key.

Loading content...

Implementors

Loading content...