@aztec/prover-node 3.0.0-nightly.20251113 → 3.0.0-nightly.20251115
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epoch-proving-job.d.ts","sourceRoot":"","sources":["../../src/job/epoch-proving-job.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"epoch-proving-job.d.ts","sourceRoot":"","sources":["../../src/job/epoch-proving-job.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,KAAK,EAAW,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,4BAA4B,EAC5B,KAAK,wBAAwB,EAC9B,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,MAAM,EAAa,MAAM,yBAAyB,CAAC;AAI7F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,KAAK,mBAAmB,EAA+B,MAAM,6BAA6B,CAAC;AAEpG,MAAM,MAAM,sBAAsB,GAAG;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,qBAAa,eAAgB,YAAW,SAAS;IAY7C,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,aA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AE,CAAC"}
|
|
@@ -14,6 +14,7 @@ import { Timer } from '@aztec/foundation/timer';
|
|
|
14
14
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
15
15
|
import { protocolContractsHash } from '@aztec/protocol-contracts';
|
|
16
16
|
import { buildFinalBlobChallenges } from '@aztec/prover-client/helpers';
|
|
17
|
+
import { PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
17
18
|
import { EpochProvingJobTerminalState } from '@aztec/stdlib/interfaces/server';
|
|
18
19
|
import { CheckpointConstantData } from '@aztec/stdlib/rollup';
|
|
19
20
|
import { MerkleTreeId } from '@aztec/stdlib/trees';
|
|
@@ -155,11 +156,15 @@ import { validateEpochProvingJobData } from './epoch-proving-job-data.js';
|
|
|
155
156
|
await this.prover.startNewBlock(block.number, globalVariables.timestamp, txs.length);
|
|
156
157
|
// Process public fns
|
|
157
158
|
const db = await this.createFork(block.number - 1, l1ToL2Messages);
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
const config = PublicSimulatorConfig.from({
|
|
160
|
+
proverId: this.prover.getProverId().toField(),
|
|
161
|
+
skipFeeEnforcement: false,
|
|
162
|
+
collectDebugLogs: false,
|
|
163
|
+
collectHints: true,
|
|
164
|
+
maxDebugLogMemoryReads: 0,
|
|
165
|
+
collectStatistics: false
|
|
162
166
|
});
|
|
167
|
+
const publicProcessor = this.publicProcessorFactory.create(db, globalVariables, config);
|
|
163
168
|
const processed = await this.processTxs(publicProcessor, txs);
|
|
164
169
|
await this.prover.addTxs(processed);
|
|
165
170
|
await db.close();
|
|
@@ -236,7 +241,7 @@ import { validateEpochProvingJobData } from './epoch-proving-job-data.js';
|
|
|
236
241
|
const l1ToL2MessagesPadded = padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP, 'Too many L1 to L2 messages');
|
|
237
242
|
this.log.verbose(`Creating fork at ${blockNumber} with ${l1ToL2Messages.length} L1 to L2 messages`, {
|
|
238
243
|
blockNumber,
|
|
239
|
-
l1ToL2Messages:
|
|
244
|
+
l1ToL2Messages: l1ToL2Messages.map((m)=>m.toString())
|
|
240
245
|
});
|
|
241
246
|
await db.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, l1ToL2MessagesPadded);
|
|
242
247
|
return db;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-node",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251115",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
60
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
61
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
62
|
-
"@aztec/blob-sink": "3.0.0-nightly.
|
|
63
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
64
|
-
"@aztec/epoch-cache": "3.0.0-nightly.
|
|
65
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
66
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
67
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
68
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
69
|
-
"@aztec/node-keystore": "3.0.0-nightly.
|
|
70
|
-
"@aztec/node-lib": "3.0.0-nightly.
|
|
71
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
72
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
73
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
74
|
-
"@aztec/prover-client": "3.0.0-nightly.
|
|
75
|
-
"@aztec/sequencer-client": "3.0.0-nightly.
|
|
76
|
-
"@aztec/simulator": "3.0.0-nightly.
|
|
77
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
78
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
79
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
59
|
+
"@aztec/archiver": "3.0.0-nightly.20251115",
|
|
60
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251115",
|
|
61
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251115",
|
|
62
|
+
"@aztec/blob-sink": "3.0.0-nightly.20251115",
|
|
63
|
+
"@aztec/constants": "3.0.0-nightly.20251115",
|
|
64
|
+
"@aztec/epoch-cache": "3.0.0-nightly.20251115",
|
|
65
|
+
"@aztec/ethereum": "3.0.0-nightly.20251115",
|
|
66
|
+
"@aztec/foundation": "3.0.0-nightly.20251115",
|
|
67
|
+
"@aztec/kv-store": "3.0.0-nightly.20251115",
|
|
68
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251115",
|
|
69
|
+
"@aztec/node-keystore": "3.0.0-nightly.20251115",
|
|
70
|
+
"@aztec/node-lib": "3.0.0-nightly.20251115",
|
|
71
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251115",
|
|
72
|
+
"@aztec/p2p": "3.0.0-nightly.20251115",
|
|
73
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251115",
|
|
74
|
+
"@aztec/prover-client": "3.0.0-nightly.20251115",
|
|
75
|
+
"@aztec/sequencer-client": "3.0.0-nightly.20251115",
|
|
76
|
+
"@aztec/simulator": "3.0.0-nightly.20251115",
|
|
77
|
+
"@aztec/stdlib": "3.0.0-nightly.20251115",
|
|
78
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251115",
|
|
79
|
+
"@aztec/world-state": "3.0.0-nightly.20251115",
|
|
80
80
|
"source-map-support": "^0.5.21",
|
|
81
81
|
"tslib": "^2.4.0",
|
|
82
82
|
"viem": "npm:@spalladino/viem@2.38.2-eip7594.0"
|
|
@@ -9,6 +9,7 @@ import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
|
9
9
|
import { protocolContractsHash } from '@aztec/protocol-contracts';
|
|
10
10
|
import { buildFinalBlobChallenges } from '@aztec/prover-client/helpers';
|
|
11
11
|
import type { PublicProcessor, PublicProcessorFactory } from '@aztec/simulator/server';
|
|
12
|
+
import { PublicSimulatorConfig } from '@aztec/stdlib/avm';
|
|
12
13
|
import type { L2Block, L2BlockSource } from '@aztec/stdlib/block';
|
|
13
14
|
import {
|
|
14
15
|
type EpochProver,
|
|
@@ -192,11 +193,15 @@ export class EpochProvingJob implements Traceable {
|
|
|
192
193
|
|
|
193
194
|
// Process public fns
|
|
194
195
|
const db = await this.createFork(block.number - 1, l1ToL2Messages);
|
|
195
|
-
const
|
|
196
|
-
skipFeeEnforcement: true,
|
|
197
|
-
clientInitiatedSimulation: false,
|
|
196
|
+
const config = PublicSimulatorConfig.from({
|
|
198
197
|
proverId: this.prover.getProverId().toField(),
|
|
198
|
+
skipFeeEnforcement: false,
|
|
199
|
+
collectDebugLogs: false,
|
|
200
|
+
collectHints: true,
|
|
201
|
+
maxDebugLogMemoryReads: 0,
|
|
202
|
+
collectStatistics: false,
|
|
199
203
|
});
|
|
204
|
+
const publicProcessor = this.publicProcessorFactory.create(db, globalVariables, config);
|
|
200
205
|
const processed = await this.processTxs(publicProcessor, txs);
|
|
201
206
|
await this.prover.addTxs(processed);
|
|
202
207
|
await db.close();
|
|
@@ -282,7 +287,7 @@ export class EpochProvingJob implements Traceable {
|
|
|
282
287
|
);
|
|
283
288
|
this.log.verbose(`Creating fork at ${blockNumber} with ${l1ToL2Messages.length} L1 to L2 messages`, {
|
|
284
289
|
blockNumber,
|
|
285
|
-
l1ToL2Messages:
|
|
290
|
+
l1ToL2Messages: l1ToL2Messages.map(m => m.toString()),
|
|
286
291
|
});
|
|
287
292
|
await db.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, l1ToL2MessagesPadded);
|
|
288
293
|
return db;
|