range_proof

Function range_proof 

Source
pub async fn range_proof<D: Digest, S: Storage<D>>(
    mmr: &S,
    range: Range<Location>,
) -> Result<Proof<D>, Error>
Expand description

Return a range proof for the nodes corresponding to the given location range.

ยงErrors

Returns Error::LocationOverflow if any location in range > crate::mmr::MAX_LOCATION Returns Error::RangeOutOfBounds if any location in range > mmr.size() Returns Error::ElementPruned if some element needed to generate the proof has been pruned Returns Error::Empty if the requested range is empty