fix: verify accumulated pairing points in native ChonkVerifier (v4 backport)#21975
Merged
Conversation
Backport of 50ba735 to v4. The native ChonkVerifier::verify was not checking kernel_io.pairing_inputs (accumulated pairing points from the IVC chain), while the recursive verifier was. This adds the missing check to ensure parity between native and recursive verification paths.
alexghr
approved these changes
Mar 24, 2026
This was referenced Mar 23, 2026
spalladino
added a commit
that referenced
this pull request
Mar 26, 2026
## Summary Merges v4 branch into backport-to-v4-next-staging to bring in 17 commits from v4 that were missing. Key changes from v4: - fix: verify accumulated pairing points in native ChonkVerifier (#21975) - chore: Properly compute finalized block (#21795, #21850) - feat(archiver): validate contract instance addresses before storing (#21787) - feat(p2p): add tx validator for contract instance deployment addresses (#21771) - Various accumulated backports and bug fixes ## Conflicts resolved 6 files had merge conflicts, all resolved: - `archiver/src/factory.ts` — kept `ContractClassPublicWithCommitment` type from staging - `archiver/src/modules/data_store_updater.ts` — merged imports from both branches - `archiver/src/store/kv_archiver_store.test.ts` — took v4's richer describe block structure, adapted to singular `addProposedBlock` API - `aztec-node/src/aztec-node/server.ts` — kept staging's block 0 check and `getWorldState` method name - `stdlib/src/tx/validator/error_texts.ts` — kept staging's contract class error constants - `world-state/src/synchronizer/server_world_state_synchronizer.ts` — kept verbose log level ## Test plan - CI should verify the merge compiles and tests pass - Once merged, this branch can be merged into the backport-to-v4-next branch ClaudeBox log: https://claudebox.work/s/0150633f06bfb379?run=1
AztecBot
added a commit
that referenced
this pull request
Apr 1, 2026
Forward-port of the v4 fix (PR #21975). The native ChonkVerifier::reduce_to_ipa_claim was missing the kernel_io.pairing_inputs.check() call, which verifies the accumulated pairing points from inner recursive verifications. The recursive verifier already aggregates these points; the native verifier must explicitly check them.
iakovenkos
pushed a commit
that referenced
this pull request
Apr 1, 2026
## Summary Forward-port of the v4 fix (#21975). The native `ChonkVerifier::reduce_to_ipa_claim` was missing `kernel_io.pairing_inputs.check()` — the accumulated pairing points from inner recursive verifications. The recursive verifier already aggregates these points; the native verifier must explicitly check them. ## Details - Added `kernel_io.pairing_inputs.check()` after `reconstruct_from_public` in the native `reduce_to_ipa_claim` - This completes parity between native and recursive verification paths - `chonk_tests` builds successfully ClaudeBox log: https://claudebox.work/s/fe964a7f5fb2b43c?run=1
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
ChonkVerifier::verifywas missingkernel_io.pairing_inputs.check()— the accumulated pairing points from inner recursive verifications