Skip to main content

plan_range_proof

Function plan_range_proof 

Source
pub fn plan_range_proof(
    chunk_lengths: &[u64],
    offset: u64,
    len: u64,
) -> Result<Plan, RangeProofError>
Expand description

Plan a range from canonical chunk content lengths. The end is exclusive; an end exactly on a chunk boundary does not need the next chunk.

ยงErrors

Zero length, overflow, empty/zero chunks, or an out-of-file range.