jmt::storage

Trait HasPreimage

Source
pub trait HasPreimage {
    // Required method
    fn preimage(&self, key_hash: KeyHash) -> Result<Option<Vec<u8>>>;
}
Expand description

Defines the ability for a tree to look up the preimage of its key hashes.

Required Methods§

Source

fn preimage(&self, key_hash: KeyHash) -> Result<Option<Vec<u8>>>

Gets the preimage of a key hash, if it is present in the tree.

Implementors§