starknet_os_flow_tests,starknet_os,starknet_transaction_prover: test the single proof against the verifier - #15095
Conversation
PR SummaryLow Risk Overview Shared utilities: Cairo0 entry-point helpers move from New integration tests in
Reviewed by Cursor Bugbot for commit 52dd336. Bugbot is set up for automated code reviews on this repo. Configure here. |
69d4399 to
5038791
Compare
5038791 to
a47dcf4
Compare
a47dcf4 to
8de8660
Compare
8de8660 to
3e16a65
Compare
3e16a65 to
84066c8
Compare
84066c8 to
9072cff
Compare
9072cff to
b498496
Compare
b498496 to
704010f
Compare
704010f to
9d67fe2
Compare
9d67fe2 to
5d45202
Compare
…the single proof against the verifier Extracts the Cairo digest entry-point runner and the verifier-task fixtures into shared test utilities, and adds the combined tests: the Cairo0 processed-proof output digest over the fixture's proof facts satisfies the real circuit verifier's output comparison, and a full OS run over one transaction with valid proof facts emits exactly the expected packed digest, whose comparison cleanly rejects a verifier run over different proof facts. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XmPJM3Wph4QLmFmhcxVsh4
5d45202 to
52dd336
Compare
Part 7 (last) of the single-proof verification stack. Extracts the Cairo digest entry-point runner (
starknet_os::test_utils::proof_fact_fold_runner) and the verifier-task fixtures (starknet_transaction_prover::verifier_task::test_utils) into shared test utilities, and adds the combined tests:test_cairo_processed_proof_digest_matches_circuit_verifier_output: the Cairo0 processed-proof output digest over the fixture's proof facts, packed the way the OS output packs it, satisfies the real circuit verifier's output comparison.test_os_emitted_output_feeds_verifier_task_comparison: a full OS run over one transaction carrying valid proof facts emits exactly the expected packed digest and count, and feeding the OS's emitted values into the verifier-task comparison cleanly rejects a verifier run over different proof facts as a digest mismatch. (A fully-matching OS-in-the-loop path needs a proof generated over OS-valid proof facts — the fixture carries the proving side's test-task hash, which the OS rejects.)Stack: #15090 ← #15091 ← #15092 ← #15064 ← #15086 ← #15088 ← this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XmPJM3Wph4QLmFmhcxVsh4