Trait jmt::storage::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§