Repository navigation
fuzz: add proof verification target - #957
Draft
citizen-stig wants to merge 2 commits into
Draft
citizen-stig wants to merge 2 commits into
citizen-stig wants to merge 2 commits into
Conversation
Builds a reference trie in memory and checks that honest path proofs and multi-proofs verify, confirm values/non-existence correctly and produce the right root through verify_update. Then tampers with the proofs and requires that verification never panics and never accepts a false claim. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Depends on #956
What
Adds a
proof_verifycargo-fuzz target that exercisesnomt-coreproof verification. Proofs reach the verifier from untrusted parties, and until now nothing fuzzed this code.How
update::build_trie.PathProofs and theMultiProofbuilt from them must verify.confirm_value/confirm_nonexistencemust match the model.verify_updateandverify_multi_proof_updatemust produce the root of the updated model.depth, and removed, duplicated or swapped paths. Verification must not panic. If a tampered proof still verifies against the true root, it must not confirm a false value or non-existence, andverify_multi_proof_updatemust not return a wrong root.Runs entirely in memory, with no database, io_uring or temp directories.
Run