Skip to content

feat: serve per-range merkle proofs in fetchRange (#1577 serve leg)#87

Draft
MichaelTaylor3d wants to merge 1 commit into
mainfrom
feat/1577-serve-range-proofs
Draft

feat: serve per-range merkle proofs in fetchRange (#1577 serve leg)#87
MichaelTaylor3d wants to merge 1 commit into
mainfrom
feat/1577-serve-range-proofs

Conversation

@MichaelTaylor3d

Copy link
Copy Markdown
Contributor

Implements dig_ecosystem#1577 — the SERVE leg of #1437's per-range integrity contract.

Populates RangeFrame.range_proof (base64 dig_capsule::MerkleProof::encode) + RangeFrame.first_chunk_index on dig.fetchRange frames so a peer emits verifiable per-range proofs.

Note on granularity: the digstore .dig format commits ONE merkle leaf per RESOURCE (leaf = sha256(whole ciphertext)); FastCDC chunk_lens are serving metadata, NOT merkle-committed. So a fetchRange frame carries exactly ONE proof (the resource's inclusion proof), emitted on EVERY frame (unlike the first-frame-only whole-resource inclusion_proof), with first_chunk_index = 0.

WIP — do not merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant