Skip to main content

KVStore

Trait KVStore 

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

Interface for a Blockchain-flavored key-value store.

Required Methods§

Source

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

Returns whether the key is present in account storage.

Source

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

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

Implementors§