Skip to content

Mock proof verify fix - #124

Open
SamAg19 wants to merge 2 commits into
grandinetech:devnet-5from
SamAg19:mock-proof-verify-fix
Open

Mock proof verify fix#124
SamAg19 wants to merge 2 commits into
grandinetech:devnet-5from
SamAg19:mock-proof-verify-fix

Conversation

@SamAg19

@SamAg19 SamAg19 commented Aug 16, 2026

Copy link
Copy Markdown

Problem being Addressed

The fork-choice spec-test fixtures ship mocked aggregate proofs (the MOCKED-AGGREGATION-PROOF sentinel), but the test driver ran the real XMSS verify on them and rejected every one, causing 27 lean-spec-tests-fork-choice hive tests to fail.

Solution

This PR adds a verify_proof gate to on_aggregated_attestation and had the driver skip the SNARK only when it detects the mock sentinel. Real proofs are still verified by the tests, and production always passes true to on_aggregated_attestation.

@SoarinSkySagar SoarinSkySagar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great to me

@SamAg19 SamAg19 mentioned this pull request Aug 23, 2026
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.

2 participants