jmt::restore

Trait 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§