Commit d526c2d
committed
fix(pxe): always inject protocol nullifier in kernelless simulation
Block #24580's mechanical next-boundary re-graft (99cbb5d) pulled the PXE
kernelless-simulation files from the v5 tip, which predates the always-inject
protocol-nullifier scheme introduced by private#487 (4b4245f circuits,
0d643f4 PXE note nonces, d98ceba kernelless sim). That reverted
ExecutionNoteCache and generateSimulatedProvingResult to the old conditional
scheme, while the Noir kernels (with-kernels path) still always inject the
protocol nullifier. The kernelless gas estimate therefore under-counted the
protocol nullifier's DA gas (e.g. 128 vs 192) and note-hash nonces used the
wrong generator, producing the e2e_kernelless_simulation mismatch and the
related "hinted siloed note hash does not match nullified note hash" failures.
Re-apply next's always-inject scheme in the kernelless path:
- ExecutionNoteCache: the nonce generator and the tx first nullifier are always
the protocol nullifier, and getAllNullifiers always prepends it (restores
next's file verbatim; drops the vestigial usedProtocolNullifierForNonces flag
and finish()).
- generateSimulatedProvingResult: unconditionally unshift the protocol nullifier
as the first non-revertible nullifier, mirroring the init kernel.
- Drop the now-removed noteCache.finish() calls in the PXE simulator and the two
TXE callers.
Reproduces private#487 / d98ceba, lost in the v5 forward-port.1 parent 090156f commit d526c2d
4 files changed
Lines changed: 12 additions & 37 deletions
File tree
- yarn-project
- pxe/src/contract_function_simulator
- txe/src
- oracle
- utils
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
| |||
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
660 | 663 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 664 | + | |
666 | 665 | | |
667 | 666 | | |
668 | 667 | | |
| |||
Lines changed: 7 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
| |||
64 | 58 | | |
65 | 59 | | |
66 | 60 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
73 | 64 | | |
74 | 65 | | |
75 | 66 | | |
| |||
102 | 93 | | |
103 | 94 | | |
104 | 95 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 96 | | |
114 | 97 | | |
115 | 98 | | |
| |||
223 | 206 | | |
224 | 207 | | |
225 | 208 | | |
226 | | - | |
227 | | - | |
| 209 | + | |
| 210 | + | |
228 | 211 | | |
229 | 212 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 213 | + | |
235 | 214 | | |
236 | 215 | | |
237 | 216 | | |
238 | | - | |
| 217 | + | |
239 | 218 | | |
240 | 219 | | |
241 | 220 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
547 | 546 | | |
548 | 547 | | |
549 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
0 commit comments