Expand description
MKDS v1 multi-chunk range proofs (SPEC-DISCLOSURE §8).
The decoder borrows its inner bundles. Verification retains only small summaries and the requested output, so it never keeps decoded chunks from earlier bundles alive while checking later bundles.
Structs§
- Disclosed
Span - An authenticated byte range spanning at least two chunks.
- Plan
- Pure prefetch plan for a chunked file.
needed_chunk_indicescontains every preceding chunk needed for absolute length proofs and each span chunk, in ascending order.
Enums§
- Range
Proof - Encoded representation chosen for a requested range.
- Range
Proof Error - Typed builder and planner failures.
- Range
Proof Kind - Proof format, independent of encoded bytes.
- Span
Error - First failed MKDS check, in SPEC-DISCLOSURE §8.2 order.
Functions§
- build_
range_ proof_ from - Build the smallest representation for a range, reading each preceding
chunk once for its length proof and no chunk after the span.
boundaries, when supplied, are thechunks.len() + 1prefix content offsets, beginning at zero and ending at the manifest’s total size. Every hint for a chunk actually read is checked against its canonical Blob length. - encode_
span - Encode an MKDS v1 container from already encoded MKDP v2 bundles.
- plan_
range_ proof - 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.
- verify_
disclosure_ span - Verify a multi-chunk range against a trusted commit id.