feat: FlyClient Path A library + design decision (#1555, #3479)#3909
Open
iho wants to merge 1 commit into
Open
feat: FlyClient Path A library + design decision (#1555, #3479)#3909iho wants to merge 1 commit into
iho wants to merge 1 commit into
Conversation
…mimblewimble#3479) Phase 0 + Phase 1 for FlyClient without a consensus-breaking VDMMR: - doc/flyclient.md: design memo recommending Path A (sampling-only) given existing header MMR + prev_root and wtema DAA; Path B deferred - core/src/flyclient.rs: difficulty-weighted sampling, proof types, structural verification (Merkle paths, prev linkage, difficulty order, inter-sample work/time bounds), binary ser/de via Writeable/Readable - Unit tests: deterministic sampling, synthetic chain prove+verify, reject tampered Merkle paths Full-node prover, API, and PoW checks on samples are follow-ups.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements Phase 0 + Phase 1 of FlyClient for Grin, following the research plan grounded in #1555, #3479, the FlyClient paper, ZIP 221, and RFC 0018 (wtema).
Design decision (Path A)
Grin already has a header MMR and
prev_root(#1555 largely done). The remaining gap is the light-client sampling + proof protocol.Path A (this PR): no consensus change — difficulty-weighted samples + Merkle proofs against the existing header MMR + predecessor headers for wtema neighborhood checks.
Path B (deferred): VDMMR parent aggregates (paper / ZIP 221 / closed #3480) would be a hard fork; only pursue if security review shows ancestor aggregate checks are load-bearing under wtema.
Details:
doc/flyclient.mdCode
core/src/flyclient.rsSampleParams,sample_difficulty_targets,height_for_difficulty_target,FlyClientProof/FlyClientSample,verify_structureNot in this PR
chaincrate)Test plan
cargo test -p grin_core --lib flyclient(5 passed)doc/flyclient.mdRefs: #1555 #3479