Trait jmt::restore::StateSnapshotReceiver

source ·
pub trait StateSnapshotReceiver<H: SimpleHasher> {
    // Required methods
    fn add_chunk(
        &mut self,
        chunk: Vec<(KeyHash, OwnedValue)>,
        proof: SparseMerkleRangeProof<H>
    ) -> Result<()>;
    fn finish(self) -> Result<()>;
    fn finish_box(self: Box<Self>) -> Result<()>;
}
Expand description

The interface used with JellyfishMerkleRestore, taken from the Diem storage-interface crate.

Required Methods§

source

fn add_chunk( &mut self, chunk: Vec<(KeyHash, OwnedValue)>, proof: SparseMerkleRangeProof<H> ) -> Result<()>

source

fn finish(self) -> Result<()>

source

fn finish_box(self: Box<Self>) -> Result<()>

Implementors§