referrerpolicy=no-referrer-when-downgrade

gen_stream_proof_from_nodes

Function gen_stream_proof_from_nodes 

Source
pub fn gen_stream_proof_from_nodes(
    root_entry: &Option<TreeRootEntry>,
    stream: StreamId,
    lookup: &impl NodeLookup,
) -> Option<(StreamsRoot, StreamProof)>
Expand description

Generate a StreamProof for stream using the node storage cache.

Walks down the tree in O(log S) time, retrieving sibling hashes cached in InnerNode without reading untouched subtrees from storage.