@aztec/pxe 0.77.0-testnet-ignition.17 → 0.77.0-testnet-ignition.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,6 @@ export type ProvingConfig = {
6
6
  simulate: boolean;
7
7
  skipFeeEnforcement: boolean;
8
8
  profile: boolean;
9
- dryRun: boolean;
10
9
  };
11
10
  /**
12
11
  * The KernelProver class is responsible for generating kernel proofs.
@@ -29,11 +28,10 @@ export declare class KernelProver {
29
28
  * @param txRequest - The authenticated transaction request object.
30
29
  * @param executionResult - The execution result object containing nested executions and preimages.
31
30
  * @param profile - Set true to profile the gate count for each circuit
32
- * @param dryRun - Set true to skip the IVC proof generation (only simulation is run). Useful for profiling gate count without proof gen.
33
31
  * @returns A Promise that resolves to a KernelProverOutput object containing proof, public inputs, and output notes.
34
32
  * TODO(#7368) this should be refactored to not recreate the ACIR bytecode now that it operates on a program stack
35
33
  */
36
- prove(txRequest: TxRequest, executionResult: PrivateExecutionResult, { simulate, skipFeeEnforcement, profile, dryRun }?: ProvingConfig): Promise<PrivateKernelSimulateOutput<PrivateKernelTailCircuitPublicInputs>>;
34
+ prove(txRequest: TxRequest, executionResult: PrivateExecutionResult, { simulate, skipFeeEnforcement, profile }?: ProvingConfig): Promise<PrivateKernelSimulateOutput<PrivateKernelTailCircuitPublicInputs>>;
37
35
  private createPrivateCallData;
38
36
  private isPrivateOnly;
39
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"kernel_prover.d.ts","sourceRoot":"","sources":["../../src/kernel_prover/kernel_prover.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAML,KAAK,2BAA2B,EAEhC,KAAK,oCAAoC,EAG1C,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAEL,KAAK,sBAAsB,EAC3B,SAAS,EAMV,MAAM,kBAAkB,CAAC;AAO1B,OAAO,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AY;IAIrB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,UAAU;IALpB,OAAO,CAAC,GAAG,CAAqC;gBAGtC,MAAM,EAAE,iBAAiB,EACzB,YAAY,EAAE,mBAAmB,EACjC,UAAU,UAAQ;IAG5B;;;;;;;;;;;OAWG;IACG,KAAK,CACT,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,sBAAsB,EACvC,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,GAAE,aAI1C,GACA,OAAO,CAAC,2BAA2B,CAAC,oCAAoC,CAAC,CAAC;YAkN/D,qBAAqB;IAiDnC,OAAO,CAAC,aAAa;CAYtB"}
@@ -64,19 +64,15 @@ const NULL_PROVE_OUTPUT = {
64
64
  * @param txRequest - The authenticated transaction request object.
65
65
  * @param executionResult - The execution result object containing nested executions and preimages.
66
66
  * @param profile - Set true to profile the gate count for each circuit
67
- * @param dryRun - Set true to skip the IVC proof generation (only simulation is run). Useful for profiling gate count without proof gen.
68
67
  * @returns A Promise that resolves to a KernelProverOutput object containing proof, public inputs, and output notes.
69
68
  * TODO(#7368) this should be refactored to not recreate the ACIR bytecode now that it operates on a program stack
70
- */ async prove(txRequest, executionResult, { simulate, skipFeeEnforcement, profile, dryRun } = {
69
+ */ async prove(txRequest, executionResult, { simulate, skipFeeEnforcement, profile } = {
71
70
  simulate: false,
72
71
  skipFeeEnforcement: false,
73
- profile: false,
74
- dryRun: false
72
+ profile: false
75
73
  }) {
76
- if (simulate && profile) {
77
- throw new Error('Cannot simulate and profile at the same time');
78
- }
79
- simulate = simulate || this.fakeProofs;
74
+ const skipProofGeneration = this.fakeProofs || simulate;
75
+ const generateWitnesses = !skipProofGeneration || profile;
80
76
  const timer = new Timer();
81
77
  const isPrivateOnlyTx = this.isPrivateOnly(executionResult);
82
78
  const executionStack = [
@@ -91,7 +87,7 @@ const NULL_PROVE_OUTPUT = {
91
87
  circuitName,
92
88
  gateCount
93
89
  });
94
- this.log.info(`Tx ${txRequest.hash()}: bb gates for ${circuitName} - ${gateCount}`);
90
+ this.log.debug(`Gate count for ${circuitName} - ${gateCount}`);
95
91
  };
96
92
  const noteHashLeafIndexMap = collectNoteHashLeafIndexMap(executionResult);
97
93
  const noteHashNullifierCounterMap = collectNoteHashNullifierCounterMap(executionResult);
@@ -106,7 +102,7 @@ const NULL_PROVE_OUTPUT = {
106
102
  let resetBuilder = new PrivateKernelResetPrivateInputsBuilder(output, executionStack, noteHashNullifierCounterMap, validationRequestsSplitCounter);
107
103
  while(resetBuilder.needsReset()){
108
104
  const privateInputs = await resetBuilder.build(this.oracle, noteHashLeafIndexMap);
109
- output = simulate ? await this.proofCreator.simulateReset(privateInputs) : await this.proofCreator.generateResetOutput(privateInputs);
105
+ output = generateWitnesses ? await this.proofCreator.generateResetOutput(privateInputs) : await this.proofCreator.simulateReset(privateInputs);
110
106
  // TODO(#7368) consider refactoring this redundant bytecode pushing
111
107
  acirs.push(output.bytecode);
112
108
  witnessStack.push(output.outputWitness);
@@ -133,7 +129,7 @@ const NULL_PROVE_OUTPUT = {
133
129
  const proofInput = new PrivateKernelInitCircuitPrivateInputs(txRequest, getVKTreeRoot(), protocolContractTreeRoot, privateCallData, isPrivateOnlyTx, executionResult.firstNullifier);
134
130
  this.log.debug(`Calling private kernel init with isPrivateOnly ${isPrivateOnlyTx} and firstNullifierHint ${proofInput.firstNullifierHint}`);
135
131
  pushTestData('private-kernel-inputs-init', proofInput);
136
- output = simulate ? await this.proofCreator.simulateInit(proofInput) : await this.proofCreator.generateInitOutput(proofInput);
132
+ output = generateWitnesses ? await this.proofCreator.generateInitOutput(proofInput) : await this.proofCreator.simulateInit(proofInput);
137
133
  acirs.push(output.bytecode);
138
134
  witnessStack.push(output.outputWitness);
139
135
  if (profile) {
@@ -144,7 +140,7 @@ const NULL_PROVE_OUTPUT = {
144
140
  const previousKernelData = new PrivateKernelData(output.publicInputs, output.verificationKey, Number(previousVkMembershipWitness.leafIndex), assertLength(previousVkMembershipWitness.siblingPath, VK_TREE_HEIGHT));
145
141
  const proofInput = new PrivateKernelInnerCircuitPrivateInputs(previousKernelData, privateCallData);
146
142
  pushTestData('private-kernel-inputs-inner', proofInput);
147
- output = simulate ? await this.proofCreator.simulateInner(proofInput) : await this.proofCreator.generateInnerOutput(proofInput);
143
+ output = generateWitnesses ? await this.proofCreator.generateInnerOutput(proofInput) : await this.proofCreator.simulateInner(proofInput);
148
144
  acirs.push(output.bytecode);
149
145
  witnessStack.push(output.outputWitness);
150
146
  if (profile) {
@@ -157,7 +153,7 @@ const NULL_PROVE_OUTPUT = {
157
153
  let resetBuilder = new PrivateKernelResetPrivateInputsBuilder(output, [], noteHashNullifierCounterMap, validationRequestsSplitCounter);
158
154
  while(resetBuilder.needsReset()){
159
155
  const privateInputs = await resetBuilder.build(this.oracle, noteHashLeafIndexMap);
160
- output = simulate ? await this.proofCreator.simulateReset(privateInputs) : await this.proofCreator.generateResetOutput(privateInputs);
156
+ output = generateWitnesses ? await this.proofCreator.generateResetOutput(privateInputs) : await this.proofCreator.simulateReset(privateInputs);
161
157
  acirs.push(output.bytecode);
162
158
  witnessStack.push(output.outputWitness);
163
159
  if (profile) {
@@ -166,7 +162,7 @@ const NULL_PROVE_OUTPUT = {
166
162
  resetBuilder = new PrivateKernelResetPrivateInputsBuilder(output, [], noteHashNullifierCounterMap, validationRequestsSplitCounter);
167
163
  }
168
164
  if (output.publicInputs.feePayer.isZero() && skipFeeEnforcement) {
169
- if (!dryRun && !simulate) {
165
+ if (!skipProofGeneration) {
170
166
  throw new Error('Fee payment must be enforced when creating real proof.');
171
167
  }
172
168
  output.publicInputs.feePayer = new AztecAddress(Fr.MAX_FIELD_VALUE);
@@ -177,7 +173,7 @@ const NULL_PROVE_OUTPUT = {
177
173
  this.log.debug(`Calling private kernel tail with hwm ${previousKernelData.publicInputs.minRevertibleSideEffectCounter}`);
178
174
  const privateInputs = new PrivateKernelTailCircuitPrivateInputs(previousKernelData);
179
175
  pushTestData('private-kernel-inputs-ordering', privateInputs);
180
- const tailOutput = simulate ? await this.proofCreator.simulateTail(privateInputs) : await this.proofCreator.generateTailOutput(privateInputs);
176
+ const tailOutput = generateWitnesses ? await this.proofCreator.generateTailOutput(privateInputs) : await this.proofCreator.simulateTail(privateInputs);
181
177
  if (tailOutput.publicInputs.forPublic) {
182
178
  const privateLogs = privateInputs.previousKernel.publicInputs.end.privateLogs;
183
179
  const nonRevertiblePrivateLogs = tailOutput.publicInputs.forPublic.nonRevertibleAccumulatedData.privateLogs;
@@ -192,11 +188,11 @@ const NULL_PROVE_OUTPUT = {
192
188
  gateCounts
193
189
  };
194
190
  }
195
- if (!simulate) {
191
+ if (generateWitnesses) {
196
192
  this.log.info(`Private kernel witness generation took ${timer.ms()}ms`);
197
193
  }
198
194
  // TODO(#7368) how do we 'bincode' encode these inputs?
199
- if (!dryRun && !simulate) {
195
+ if (!skipProofGeneration) {
200
196
  const ivcProof = await this.proofCreator.createClientIvcProof(acirs, witnessStack);
201
197
  tailOutput.clientIvcProof = ivcProof;
202
198
  } else {
@@ -1 +1 @@
1
- {"version":3,"file":"pxe_service.d.ts","sourceRoot":"","sources":["../../src/pxe_service/pxe_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,KAAK,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAE/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsB,KAAK,kBAAkB,EAAsB,MAAM,yBAAyB,CAAC;A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,EAAE,EACX,EAAE,EAAE,YAAY,EAChB,KAAK,CAAC,EAAE,YAAY,EACpB,MAAM,CAAC,EAAE,YAAY,EAAE,GACtB,OAAO,CAAC,UAAU,CAAC;IAmBf,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIhD,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAI7D,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAIjC,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIpD;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIvE;;;;OAIG;IACI,oBAAoB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,4BAA4B,CAAC;IA4BxE,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC;IAuBtC,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IA6JxB,gBAAgB,CAAC,CAAC,EAC7B,gBAAgB,EAAE,uBAAuB,EACzC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EAEb,IAAI,EAAE,KAAK,EAAE,GACZ,OAAO,CAAC,CAAC,EAAE,CAAC;IAiET,eAAe,CAAC,CAAC,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IA8BxG,iBAAiB;IAIvB,OAAO,CAAC,kBAAkB;CAa3B"}
@@ -247,8 +247,7 @@ import { enrichPublicSimulationError, enrichSimulationError } from './error_enri
247
247
  const { publicInputs, clientIvcProof } = await this.#prove(txRequest, this.proofCreator, privateExecutionResult, {
248
248
  simulate: false,
249
249
  skipFeeEnforcement: false,
250
- profile: false,
251
- dryRun: false
250
+ profile: false
252
251
  });
253
252
  return new TxProvingResult(privateExecutionResult, publicInputs, clientIvcProof);
254
253
  } catch (err) {
@@ -274,8 +273,7 @@ import { enrichPublicSimulationError, enrichSimulationError } from './error_enri
274
273
  const { publicInputs, profileResult } = await this.#prove(txRequest, this.proofCreator, privateExecutionResult, {
275
274
  simulate: !profile,
276
275
  skipFeeEnforcement,
277
- profile,
278
- dryRun: true
276
+ profile
279
277
  });
280
278
  const privateSimulationResult = new PrivateSimulationResult(privateExecutionResult, publicInputs);
281
279
  const simulatedTx = privateSimulationResult.toSimulatedTx();
@@ -504,17 +502,16 @@ import { enrichPublicSimulationError, enrichSimulationError } from './error_enri
504
502
  * @param proofCreator - The proof creator to use for proving the execution.
505
503
  * @param privateExecutionResult - The result of the private execution
506
504
  * @returns An object that contains the output of the kernel execution, including the ClientIvcProof if proving is enabled.
507
- */ async #prove(txExecutionRequest, proofCreator, privateExecutionResult, { simulate, skipFeeEnforcement, profile, dryRun }) {
505
+ */ async #prove(txExecutionRequest, proofCreator, privateExecutionResult, { simulate, skipFeeEnforcement, profile }) {
508
506
  // use the block the tx was simulated against
509
507
  const block = privateExecutionResult.entrypoint.publicInputs.historicalHeader.globalVariables.blockNumber.toNumber();
510
508
  const kernelOracle = new KernelOracle(this.contractDataOracle, this.keyStore, this.node, block);
511
509
  const kernelProver = new KernelProver(kernelOracle, proofCreator, !this.proverEnabled);
512
- this.log.debug(`Executing kernel prover (simulate: ${simulate}, profile: ${profile}, dryRun: ${dryRun})...`);
510
+ this.log.debug(`Executing kernel prover (simulate: ${simulate}, profile: ${profile})...`);
513
511
  return await kernelProver.prove(txExecutionRequest.toTxRequest(), privateExecutionResult, {
514
512
  simulate,
515
513
  skipFeeEnforcement,
516
- profile,
517
- dryRun
514
+ profile
518
515
  });
519
516
  }
520
517
  async #isContractClassPubliclyRegistered(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/pxe",
3
- "version": "0.77.0-testnet-ignition.17",
3
+ "version": "0.77.0-testnet-ignition.23",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -66,18 +66,18 @@
66
66
  ]
67
67
  },
68
68
  "dependencies": {
69
- "@aztec/bb-prover": "0.77.0-testnet-ignition.17",
70
- "@aztec/bb.js": "0.77.0-testnet-ignition.17",
71
- "@aztec/builder": "0.77.0-testnet-ignition.17",
72
- "@aztec/constants": "0.77.0-testnet-ignition.17",
73
- "@aztec/ethereum": "0.77.0-testnet-ignition.17",
74
- "@aztec/foundation": "0.77.0-testnet-ignition.17",
75
- "@aztec/key-store": "0.77.0-testnet-ignition.17",
76
- "@aztec/kv-store": "0.77.0-testnet-ignition.17",
77
- "@aztec/noir-protocol-circuits-types": "0.77.0-testnet-ignition.17",
78
- "@aztec/protocol-contracts": "0.77.0-testnet-ignition.17",
79
- "@aztec/simulator": "0.77.0-testnet-ignition.17",
80
- "@aztec/stdlib": "0.77.0-testnet-ignition.17",
69
+ "@aztec/bb-prover": "0.77.0-testnet-ignition.23",
70
+ "@aztec/bb.js": "0.77.0-testnet-ignition.23",
71
+ "@aztec/builder": "0.77.0-testnet-ignition.23",
72
+ "@aztec/constants": "0.77.0-testnet-ignition.23",
73
+ "@aztec/ethereum": "0.77.0-testnet-ignition.23",
74
+ "@aztec/foundation": "0.77.0-testnet-ignition.23",
75
+ "@aztec/key-store": "0.77.0-testnet-ignition.23",
76
+ "@aztec/kv-store": "0.77.0-testnet-ignition.23",
77
+ "@aztec/noir-protocol-circuits-types": "0.77.0-testnet-ignition.23",
78
+ "@aztec/protocol-contracts": "0.77.0-testnet-ignition.23",
79
+ "@aztec/simulator": "0.77.0-testnet-ignition.23",
80
+ "@aztec/stdlib": "0.77.0-testnet-ignition.23",
81
81
  "@msgpack/msgpack": "^3.0.0-beta2",
82
82
  "koa": "^2.14.2",
83
83
  "koa-router": "^12.0.0",
@@ -85,10 +85,10 @@
85
85
  "sha3": "^2.1.4",
86
86
  "tslib": "^2.4.0",
87
87
  "viem": "2.22.8",
88
- "@aztec/noir-types": "0.77.0-testnet-ignition.17"
88
+ "@aztec/noir-types": "0.77.0-testnet-ignition.23"
89
89
  },
90
90
  "devDependencies": {
91
- "@aztec/noir-contracts.js": "workspace:^",
91
+ "@aztec/noir-contracts.js": "0.77.0-testnet-ignition.23",
92
92
  "@jest/globals": "^29.5.0",
93
93
  "@types/jest": "^29.5.0",
94
94
  "@types/lodash.omit": "^4.5.7",
@@ -91,7 +91,6 @@ export type ProvingConfig = {
91
91
  simulate: boolean;
92
92
  skipFeeEnforcement: boolean;
93
93
  profile: boolean;
94
- dryRun: boolean;
95
94
  };
96
95
 
97
96
  /**
@@ -118,25 +117,20 @@ export class KernelProver {
118
117
  * @param txRequest - The authenticated transaction request object.
119
118
  * @param executionResult - The execution result object containing nested executions and preimages.
120
119
  * @param profile - Set true to profile the gate count for each circuit
121
- * @param dryRun - Set true to skip the IVC proof generation (only simulation is run). Useful for profiling gate count without proof gen.
122
120
  * @returns A Promise that resolves to a KernelProverOutput object containing proof, public inputs, and output notes.
123
121
  * TODO(#7368) this should be refactored to not recreate the ACIR bytecode now that it operates on a program stack
124
122
  */
125
123
  async prove(
126
124
  txRequest: TxRequest,
127
125
  executionResult: PrivateExecutionResult,
128
- { simulate, skipFeeEnforcement, profile, dryRun }: ProvingConfig = {
126
+ { simulate, skipFeeEnforcement, profile }: ProvingConfig = {
129
127
  simulate: false,
130
128
  skipFeeEnforcement: false,
131
129
  profile: false,
132
- dryRun: false,
133
130
  },
134
131
  ): Promise<PrivateKernelSimulateOutput<PrivateKernelTailCircuitPublicInputs>> {
135
- if (simulate && profile) {
136
- throw new Error('Cannot simulate and profile at the same time');
137
- }
138
-
139
- simulate = simulate || this.fakeProofs;
132
+ const skipProofGeneration = this.fakeProofs || simulate;
133
+ const generateWitnesses = !skipProofGeneration || profile;
140
134
 
141
135
  const timer = new Timer();
142
136
 
@@ -152,7 +146,7 @@ export class KernelProver {
152
146
  const gateCount = (await this.proofCreator.computeGateCountForCircuit(bytecode, circuitName)) as number;
153
147
  gateCounts.push({ circuitName, gateCount });
154
148
 
155
- this.log.info(`Tx ${txRequest.hash()}: bb gates for ${circuitName} - ${gateCount}`);
149
+ this.log.debug(`Gate count for ${circuitName} - ${gateCount}`);
156
150
  };
157
151
 
158
152
  const noteHashLeafIndexMap = collectNoteHashLeafIndexMap(executionResult);
@@ -175,9 +169,9 @@ export class KernelProver {
175
169
  );
176
170
  while (resetBuilder.needsReset()) {
177
171
  const privateInputs = await resetBuilder.build(this.oracle, noteHashLeafIndexMap);
178
- output = simulate
179
- ? await this.proofCreator.simulateReset(privateInputs)
180
- : await this.proofCreator.generateResetOutput(privateInputs);
172
+ output = generateWitnesses
173
+ ? await this.proofCreator.generateResetOutput(privateInputs)
174
+ : await this.proofCreator.simulateReset(privateInputs);
181
175
  // TODO(#7368) consider refactoring this redundant bytecode pushing
182
176
  acirs.push(output.bytecode);
183
177
  witnessStack.push(output.outputWitness);
@@ -228,9 +222,9 @@ export class KernelProver {
228
222
 
229
223
  pushTestData('private-kernel-inputs-init', proofInput);
230
224
 
231
- output = simulate
232
- ? await this.proofCreator.simulateInit(proofInput)
233
- : await this.proofCreator.generateInitOutput(proofInput);
225
+ output = generateWitnesses
226
+ ? await this.proofCreator.generateInitOutput(proofInput)
227
+ : await this.proofCreator.simulateInit(proofInput);
234
228
 
235
229
  acirs.push(output.bytecode);
236
230
  witnessStack.push(output.outputWitness);
@@ -249,9 +243,9 @@ export class KernelProver {
249
243
 
250
244
  pushTestData('private-kernel-inputs-inner', proofInput);
251
245
 
252
- output = simulate
253
- ? await this.proofCreator.simulateInner(proofInput)
254
- : await this.proofCreator.generateInnerOutput(proofInput);
246
+ output = generateWitnesses
247
+ ? await this.proofCreator.generateInnerOutput(proofInput)
248
+ : await this.proofCreator.simulateInner(proofInput);
255
249
 
256
250
  acirs.push(output.bytecode);
257
251
  witnessStack.push(output.outputWitness);
@@ -271,9 +265,9 @@ export class KernelProver {
271
265
  );
272
266
  while (resetBuilder.needsReset()) {
273
267
  const privateInputs = await resetBuilder.build(this.oracle, noteHashLeafIndexMap);
274
- output = simulate
275
- ? await this.proofCreator.simulateReset(privateInputs)
276
- : await this.proofCreator.generateResetOutput(privateInputs);
268
+ output = generateWitnesses
269
+ ? await this.proofCreator.generateResetOutput(privateInputs)
270
+ : await this.proofCreator.simulateReset(privateInputs);
277
271
 
278
272
  acirs.push(output.bytecode);
279
273
  witnessStack.push(output.outputWitness);
@@ -290,7 +284,7 @@ export class KernelProver {
290
284
  }
291
285
 
292
286
  if (output.publicInputs.feePayer.isZero() && skipFeeEnforcement) {
293
- if (!dryRun && !simulate) {
287
+ if (!skipProofGeneration) {
294
288
  throw new Error('Fee payment must be enforced when creating real proof.');
295
289
  }
296
290
  output.publicInputs.feePayer = new AztecAddress(Fr.MAX_FIELD_VALUE);
@@ -312,9 +306,9 @@ export class KernelProver {
312
306
 
313
307
  pushTestData('private-kernel-inputs-ordering', privateInputs);
314
308
 
315
- const tailOutput = simulate
316
- ? await this.proofCreator.simulateTail(privateInputs)
317
- : await this.proofCreator.generateTailOutput(privateInputs);
309
+ const tailOutput = generateWitnesses
310
+ ? await this.proofCreator.generateTailOutput(privateInputs)
311
+ : await this.proofCreator.simulateTail(privateInputs);
318
312
  if (tailOutput.publicInputs.forPublic) {
319
313
  const privateLogs = privateInputs.previousKernel.publicInputs.end.privateLogs;
320
314
  const nonRevertiblePrivateLogs = tailOutput.publicInputs.forPublic.nonRevertibleAccumulatedData.privateLogs;
@@ -329,12 +323,12 @@ export class KernelProver {
329
323
  tailOutput.profileResult = { gateCounts };
330
324
  }
331
325
 
332
- if (!simulate) {
326
+ if (generateWitnesses) {
333
327
  this.log.info(`Private kernel witness generation took ${timer.ms()}ms`);
334
328
  }
335
329
 
336
330
  // TODO(#7368) how do we 'bincode' encode these inputs?
337
- if (!dryRun && !simulate) {
331
+ if (!skipProofGeneration) {
338
332
  const ivcProof = await this.proofCreator.createClientIvcProof(acirs, witnessStack);
339
333
  tailOutput.clientIvcProof = ivcProof;
340
334
  } else {
@@ -390,7 +390,6 @@ export class PXEService implements PXE {
390
390
  simulate: false,
391
391
  skipFeeEnforcement: false,
392
392
  profile: false,
393
- dryRun: false,
394
393
  });
395
394
  return new TxProvingResult(privateExecutionResult, publicInputs, clientIvcProof!);
396
395
  } catch (err: any) {
@@ -430,7 +429,6 @@ export class PXEService implements PXE {
430
429
  simulate: !profile,
431
430
  skipFeeEnforcement,
432
431
  profile,
433
- dryRun: true,
434
432
  });
435
433
 
436
434
  const privateSimulationResult = new PrivateSimulationResult(privateExecutionResult, publicInputs);
@@ -727,19 +725,18 @@ export class PXEService implements PXE {
727
725
  txExecutionRequest: TxExecutionRequest,
728
726
  proofCreator: PrivateKernelProver,
729
727
  privateExecutionResult: PrivateExecutionResult,
730
- { simulate, skipFeeEnforcement, profile, dryRun }: ProvingConfig,
728
+ { simulate, skipFeeEnforcement, profile }: ProvingConfig,
731
729
  ): Promise<PrivateKernelSimulateOutput<PrivateKernelTailCircuitPublicInputs>> {
732
730
  // use the block the tx was simulated against
733
731
  const block =
734
732
  privateExecutionResult.entrypoint.publicInputs.historicalHeader.globalVariables.blockNumber.toNumber();
735
733
  const kernelOracle = new KernelOracle(this.contractDataOracle, this.keyStore, this.node, block);
736
734
  const kernelProver = new KernelProver(kernelOracle, proofCreator, !this.proverEnabled);
737
- this.log.debug(`Executing kernel prover (simulate: ${simulate}, profile: ${profile}, dryRun: ${dryRun})...`);
735
+ this.log.debug(`Executing kernel prover (simulate: ${simulate}, profile: ${profile})...`);
738
736
  return await kernelProver.prove(txExecutionRequest.toTxRequest(), privateExecutionResult, {
739
737
  simulate,
740
738
  skipFeeEnforcement,
741
739
  profile,
742
- dryRun,
743
740
  });
744
741
  }
745
742