feat: add MPF exclusion proofs with Aiken parity#150
Merged
paolino merged 2 commits intofeat/port-mpf-write-path-to-wasm-with-browser-demo-mirrfrom Apr 23, 2026
Merged
Conversation
d5f4674
into
feat/port-mpf-write-path-to-wasm-with-browser-demo-mirr
This was referenced Apr 23, 2026
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
Part of #149, based on the
mpf-writeextraction in #147.This PR adds first-class MPF exclusion proofs and then fixes the remaining Aiken parity gap so the Haskell proof codec matches the canonical upstream off-chain implementation byte-for-byte.
What Changed
1. MPF exclusion proofs are now a first-class API
MPF.Proof.Exclusionwith:MPFExclusionProofMPF.MPF.Test.Lib.2. Property parity with CSMT
MPF.Proof.ExclusionSpec:NothingMPF.Proof.InsertionSpec:3. Aiken parity fix
MPF.Hashes.Aiken.peach[uid: 0]regression vector inMPF.ProofCompatSpecbecausemangoandkumquatdid not exercise that codec shape.melonexclusion parity vector there as well.4. Spec and handoff updates
spec.mdplan.mdtasks.mdexclusion-proof-handoff.mdso it points at #149 and records the proof/property/parity status.Verification
Passed locally:
nix develop --quiet -c just test 'MPF.Proof.Exclusion'nix develop --quiet -c just test 'MPF.Proof.Insertion'nix develop --quiet -c just test 'MPF.Hashes.Aiken'nix develop --quiet -c just test 'MPF.ProofCompat'I also compared our rendered CBOR against the canonical upstream off-chain implementation at
aiken-lang/merkle-patricia-forestryHEAD (5ca6f3feaf9ab1e20007f164882dae3d2359745e) for 31 cases:melonexclusion proofAfter the fork-prefix fix, that external comparison reported
checked: 31, mismatches: [].Reviewer Focus
MPF.Proof.ExclusionMPF.Hashes.AikenMPF.ProofCompatSpecFollow-up
This does not yet wire MPF exclusion through
MTS.Interface/MPF.MTSor the browserptype = 1path from #146. This PR is the proof-layer blocker removal needed before that routing work.