ProvableStore

Trait ProvableStore 

Source
pub trait ProvableStore: Store {
    // Required methods
    fn root_hash(&self) -> Vec<u8> ;
    fn get_proof(&self, height: Height, key: &Path) -> Option<CommitmentProof>;
}
Expand description

ProvableStore trait

Required Methods§

Source

fn root_hash(&self) -> Vec<u8>

Return a vector commitment

Source

fn get_proof(&self, height: Height, key: &Path) -> Option<CommitmentProof>

Return proof of existence for key

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§