pub fn streams_root(entries: &BTreeMap<StreamId, Hash>) -> Option<StreamsRoot>Expand description
The StreamsRoot over (stream, stream_root) entries; None with no active streams. Sender
side. Takes a BTreeMap so keys are unique; duplicates would reach first_diverging_bit with
identical keys.
For incremental updates in O(log S) without rebuilding from scratch in O(S), see
update_tree_leaf and StreamsTree.