Commit 1260861
Sync deposit ZKHALO2VERIFYWITHVK fixtures for chainId public input (#280)
* Sync deposit ZKHALO2VERIFYWITHVK fixtures for chainId public input
The deposit circuit gained a chainId public input at index 4 (bridge
branch pruvendo/pause-chainid-pi-multil2, commit c0da8a3), taking the
PI count from 11 to 12. Because the ZKHALO2VERIFYWITHVK opcode is
schema-agnostic (decode_instances_strict consumes any N × 32 B LE Fr
payload, VK carries num_instance_columns), no executor code changes
are needed — only test fixtures and PI-count metadata.
- Resync tvm_vm/halo2_test_data/deposit_10proofs/ from
deposit-prover/fixtures/deposit_10proofs (Hermez SRS, k=18, Sepolia
chain-id 11155111; VkBlob sha256
006cca5ddd457065bef8469fc10dd231ad8fd13c895877c9deff5c51191dec05).
- Update PI-layout comments, log strings, and README to reflect the
12-PI layout with chainId at index 4.
- Add a length-assertion regression guard in
test_zkhalo2_with_vk_deposit_10_real_proofs to catch future fixture
desyncs (expected 384 B per public_inputs.bin).
- Remove orphaned deposit_rlc_{vk_blob,proof,public_inputs,bundle}.bin
singletons — the round_trip_deposit_rlc_* tests already load from
deposit_10proofs/proof_00/*, so nothing referenced them.
- Add a design-doc footnote (§4) recording that this 11 → 12 PI
transition was absorbed with zero opcode changes, empirically
validating the Q-WIRE-3 / Q-WIRE-4 schema-agnostic decisions.
Verified: cargo test -r --lib -p tvm_vm -- halo2 → 41 passed, 0 failed
(3 pre-existing #[ignore]s on fallback Circuit 1B unrelated to this
change).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* tvm_vm: refresh deposit_10proofs fixtures against current bridge circuit_v2
Regenerated VkBlob + 10 proof triples against
bridge/deposit-prover/src/circuit_v2.rs, keyed on Hermez SRS
(s_g2 = 928fafb3…) at k=18. Sync driven by
scripts/sync_deposit_opcode_fixtures_to_tvm_sdk.sh.
Verified cryptographically: keygen-only regen from the current
circuit yielded a byte-identical VkBlob to the checked-in fixture
(sha256 9dacd998af5fd03af8097cb80a571df098c925bba235af61d920cc808360fae3),
proving the VkBlob is in sync with circuit_v2 and Hermez-keyed.
All 41 relevant halo2 tests pass, including
test_zkhalo2_with_vk_deposit_10_real_proofs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 7d52241 commit 1260861
30 files changed
Lines changed: 71 additions & 19 deletions
File tree
- docs
- tvm_vm
- doc
- halo2_test_data
- deposit_10proofs
- proof_00
- proof_01
- proof_02
- proof_03
- proof_04
- proof_05
- proof_06
- proof_07
- proof_08
- proof_09
- src/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
19 | 39 | | |
20 | 40 | | |
21 | 41 | | |
| |||
36 | 56 | | |
37 | 57 | | |
38 | 58 | | |
39 | | - | |
| 59 | + | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | 63 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments