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.