@aztec/prover-node 3.0.0-nightly.20251124 → 3.0.0-nightly.20251126

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":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,iBAAiB,CAAC;AAEhE,OAAO,EAAE,KAAK,uBAAuB,EAAwB,MAAM,yBAAyB,CAAC;AAE7F,OAAO,EAAE,SAAS,EAAyD,MAAM,iBAAiB,CAAC;AAEnG,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,KAAK,cAAc,EAAkD,MAAM,sBAAsB,CAAC;AAM3G,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,OAAO,EAAa,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAK9F,OAAO,EAAE,KAAK,gBAAgB,EAA2B,MAAM,aAAa,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,cAAc,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AAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,cAAc,CAAC,EAAE,uBAAuB,CAAC;IACzC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,gDAAgD;AAChD,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,gBAAgB,GAAG,eAAe,GAAG,cAAc,EAC/D,IAAI,GAAE,cAAmB,EACzB,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACvC,uBA2KP"}
package/dest/factory.js CHANGED
@@ -105,7 +105,7 @@ import { ProverPublisherFactory } from './prover-publisher-factory.js';
105
105
  publisherManager: new PublisherManager(l1TxUtils, config),
106
106
  telemetry
107
107
  });
108
- const proofVerifier = new QueuedIVCVerifier(config, config.realProofs ? await BBCircuitVerifier.new(config) : new TestCircuitVerifier());
108
+ const proofVerifier = new QueuedIVCVerifier(config, config.realProofs ? await BBCircuitVerifier.new(config) : new TestCircuitVerifier(config.proverTestVerificationDelayMs));
109
109
  const p2pClient = await createP2PClient(P2PClientType.Prover, config, archiver, proofVerifier, worldStateSynchronizer, epochCache, getPackageVersion() ?? '', dateProvider, telemetry, {
110
110
  txCollectionNodeSources: deps.aztecNodeTxProvider ? [
111
111
  new NodeRpcTxSource(deps.aztecNodeTxProvider, 'TestNode')
@@ -92,7 +92,7 @@ export class ProverNodePublisher {
92
92
  async validateEpochProofSubmission(args) {
93
93
  const { fromBlock, toBlock, publicInputs, batchedBlobInputs } = args;
94
94
  // Check that the block numbers match the expected epoch to be proven
95
- const { pendingBlockNumber: pending, provenBlockNumber: proven } = await this.rollupContract.getTips();
95
+ const { pending, proven } = await this.rollupContract.getTips();
96
96
  // Don't publish if proven is beyond our toBlock, pointless to do so
97
97
  if (proven > BigInt(toBlock)) {
98
98
  throw new Error(`Cannot submit epoch proof for ${fromBlock}-${toBlock} as proven block is ${proven}`);
@@ -102,12 +102,12 @@ export class ProverNodePublisher {
102
102
  throw new Error(`Cannot submit epoch proof for ${fromBlock}-${toBlock} as pending block is ${pending}`);
103
103
  }
104
104
  // Check the archive for the immediate block before the epoch
105
- const blockLog = await this.rollupContract.getBlock(BigInt(fromBlock - 1));
105
+ const blockLog = await this.rollupContract.getCheckpoint(BigInt(fromBlock - 1));
106
106
  if (publicInputs.previousArchiveRoot.toString() !== blockLog.archive) {
107
107
  throw new Error(`Previous archive root mismatch: ${publicInputs.previousArchiveRoot.toString()} !== ${blockLog.archive}`);
108
108
  }
109
109
  // Check the archive for the last block in the epoch
110
- const endBlockLog = await this.rollupContract.getBlock(BigInt(toBlock));
110
+ const endBlockLog = await this.rollupContract.getCheckpoint(BigInt(toBlock));
111
111
  if (publicInputs.endArchiveRoot.toString() !== endBlockLog.archive) {
112
112
  throw new Error(`End archive root mismatch: ${publicInputs.endArchiveRoot.toString()} !== ${endBlockLog.archive}`);
113
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/prover-node",
3
- "version": "3.0.0-nightly.20251124",
3
+ "version": "3.0.0-nightly.20251126",
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.20251124",
60
- "@aztec/bb-prover": "3.0.0-nightly.20251124",
61
- "@aztec/blob-lib": "3.0.0-nightly.20251124",
62
- "@aztec/blob-sink": "3.0.0-nightly.20251124",
63
- "@aztec/constants": "3.0.0-nightly.20251124",
64
- "@aztec/epoch-cache": "3.0.0-nightly.20251124",
65
- "@aztec/ethereum": "3.0.0-nightly.20251124",
66
- "@aztec/foundation": "3.0.0-nightly.20251124",
67
- "@aztec/kv-store": "3.0.0-nightly.20251124",
68
- "@aztec/l1-artifacts": "3.0.0-nightly.20251124",
69
- "@aztec/node-keystore": "3.0.0-nightly.20251124",
70
- "@aztec/node-lib": "3.0.0-nightly.20251124",
71
- "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251124",
72
- "@aztec/p2p": "3.0.0-nightly.20251124",
73
- "@aztec/protocol-contracts": "3.0.0-nightly.20251124",
74
- "@aztec/prover-client": "3.0.0-nightly.20251124",
75
- "@aztec/sequencer-client": "3.0.0-nightly.20251124",
76
- "@aztec/simulator": "3.0.0-nightly.20251124",
77
- "@aztec/stdlib": "3.0.0-nightly.20251124",
78
- "@aztec/telemetry-client": "3.0.0-nightly.20251124",
79
- "@aztec/world-state": "3.0.0-nightly.20251124",
59
+ "@aztec/archiver": "3.0.0-nightly.20251126",
60
+ "@aztec/bb-prover": "3.0.0-nightly.20251126",
61
+ "@aztec/blob-lib": "3.0.0-nightly.20251126",
62
+ "@aztec/blob-sink": "3.0.0-nightly.20251126",
63
+ "@aztec/constants": "3.0.0-nightly.20251126",
64
+ "@aztec/epoch-cache": "3.0.0-nightly.20251126",
65
+ "@aztec/ethereum": "3.0.0-nightly.20251126",
66
+ "@aztec/foundation": "3.0.0-nightly.20251126",
67
+ "@aztec/kv-store": "3.0.0-nightly.20251126",
68
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251126",
69
+ "@aztec/node-keystore": "3.0.0-nightly.20251126",
70
+ "@aztec/node-lib": "3.0.0-nightly.20251126",
71
+ "@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251126",
72
+ "@aztec/p2p": "3.0.0-nightly.20251126",
73
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251126",
74
+ "@aztec/prover-client": "3.0.0-nightly.20251126",
75
+ "@aztec/sequencer-client": "3.0.0-nightly.20251126",
76
+ "@aztec/simulator": "3.0.0-nightly.20251126",
77
+ "@aztec/stdlib": "3.0.0-nightly.20251126",
78
+ "@aztec/telemetry-client": "3.0.0-nightly.20251126",
79
+ "@aztec/world-state": "3.0.0-nightly.20251126",
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"
package/src/factory.ts CHANGED
@@ -148,7 +148,9 @@ export async function createProverNode(
148
148
 
149
149
  const proofVerifier = new QueuedIVCVerifier(
150
150
  config,
151
- config.realProofs ? await BBCircuitVerifier.new(config) : new TestCircuitVerifier(),
151
+ config.realProofs
152
+ ? await BBCircuitVerifier.new(config)
153
+ : new TestCircuitVerifier(config.proverTestVerificationDelayMs),
152
154
  );
153
155
 
154
156
  const p2pClient = await createP2PClient(
@@ -153,7 +153,7 @@ export class ProverNodePublisher {
153
153
  const { fromBlock, toBlock, publicInputs, batchedBlobInputs } = args;
154
154
 
155
155
  // Check that the block numbers match the expected epoch to be proven
156
- const { pendingBlockNumber: pending, provenBlockNumber: proven } = await this.rollupContract.getTips();
156
+ const { pending, proven } = await this.rollupContract.getTips();
157
157
  // Don't publish if proven is beyond our toBlock, pointless to do so
158
158
  if (proven > BigInt(toBlock)) {
159
159
  throw new Error(`Cannot submit epoch proof for ${fromBlock}-${toBlock} as proven block is ${proven}`);
@@ -164,7 +164,7 @@ export class ProverNodePublisher {
164
164
  }
165
165
 
166
166
  // Check the archive for the immediate block before the epoch
167
- const blockLog = await this.rollupContract.getBlock(BigInt(fromBlock - 1));
167
+ const blockLog = await this.rollupContract.getCheckpoint(BigInt(fromBlock - 1));
168
168
  if (publicInputs.previousArchiveRoot.toString() !== blockLog.archive) {
169
169
  throw new Error(
170
170
  `Previous archive root mismatch: ${publicInputs.previousArchiveRoot.toString()} !== ${blockLog.archive}`,
@@ -172,7 +172,7 @@ export class ProverNodePublisher {
172
172
  }
173
173
 
174
174
  // Check the archive for the last block in the epoch
175
- const endBlockLog = await this.rollupContract.getBlock(BigInt(toBlock));
175
+ const endBlockLog = await this.rollupContract.getCheckpoint(BigInt(toBlock));
176
176
  if (publicInputs.endArchiveRoot.toString() !== endBlockLog.archive) {
177
177
  throw new Error(
178
178
  `End archive root mismatch: ${publicInputs.endArchiveRoot.toString()} !== ${endBlockLog.archive}`,