pub trait ProofFetcher: Sync + Send {
    fn fetch_state_value_and_proof(
        &self,
        state_key: &StateKey,
        version: Version
    ) -> Result<(Option<StateValue>, Option<SparseMerkleProof>)>; fn get_proof_cache(&self) -> HashMap<HashValue, SparseMerkleProof>; }
Expand description

Defines the trait for fetching proof from the DB

Required Methods

API to fetch the state value along with proof

API to return all the proofs fetched by the proof fetcher so far.

Implementors