@aztec/prover-node 0.87.2 → 0.87.3-nightly.20250528
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":"prover-node-publisher.d.ts","sourceRoot":"","sources":["../src/prover-node-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEjF,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAMnF;;GAEG;AACH,sEAAsE;AACtE,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,EAAE,CAAC;IACpB,UAAU,EAAE,EAAE,CAAC;IACf,YAAY,EAAE,EAAE,CAAC;IACjB,OAAO,EAAE,EAAE,CAAC;IACZ,QAAQ,EAAE,EAAE,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,wBAAwB,CAAC,CAAC;IAC3D,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,WAAW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bf,kBAAkB;CAGnC"}
|
|
@@ -105,13 +105,13 @@ export class ProverNodePublisher {
|
|
|
105
105
|
}
|
|
106
106
|
// Check the archive for the immediate block before the epoch
|
|
107
107
|
const blockLog = await this.rollupContract.getBlock(BigInt(fromBlock - 1));
|
|
108
|
-
if (publicInputs.
|
|
109
|
-
throw new Error(`Previous archive root mismatch: ${publicInputs.
|
|
108
|
+
if (publicInputs.previousArchiveRoot.toString() !== blockLog.archive) {
|
|
109
|
+
throw new Error(`Previous archive root mismatch: ${publicInputs.previousArchiveRoot.toString()} !== ${blockLog.archive}`);
|
|
110
110
|
}
|
|
111
111
|
// Check the archive for the last block in the epoch
|
|
112
112
|
const endBlockLog = await this.rollupContract.getBlock(BigInt(toBlock));
|
|
113
|
-
if (publicInputs.
|
|
114
|
-
throw new Error(`End archive root mismatch: ${publicInputs.
|
|
113
|
+
if (publicInputs.endArchiveRoot.toString() !== endBlockLog.archive) {
|
|
114
|
+
throw new Error(`End archive root mismatch: ${publicInputs.endArchiveRoot.toString()} !== ${endBlockLog.archive}`);
|
|
115
115
|
}
|
|
116
116
|
// Compare the public inputs computed by the contract with the ones injected
|
|
117
117
|
const rollupPublicInputs = await this.rollupContract.getEpochProofPublicInputs(this.getSubmitEpochProofArgs(args));
|
|
@@ -167,10 +167,8 @@ export class ProverNodePublisher {
|
|
|
167
167
|
BigInt(args.fromBlock),
|
|
168
168
|
BigInt(args.toBlock),
|
|
169
169
|
{
|
|
170
|
-
previousArchive: args.publicInputs.
|
|
171
|
-
endArchive: args.publicInputs.
|
|
172
|
-
endTimestamp: args.publicInputs.endTimestamp.toBigInt(),
|
|
173
|
-
outHash: args.publicInputs.outHash.toString(),
|
|
170
|
+
previousArchive: args.publicInputs.previousArchiveRoot.toString(),
|
|
171
|
+
endArchive: args.publicInputs.endArchiveRoot.toString(),
|
|
174
172
|
proverId: EthAddress.fromField(args.publicInputs.proverId).toString()
|
|
175
173
|
},
|
|
176
174
|
makeTuple(AZTEC_MAX_EPOCH_DURATION * 2, (i)=>i % 2 === 0 ? args.publicInputs.fees[i / 2].recipient.toField().toString() : args.publicInputs.fees[(i - 1) / 2].value.toString()),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-node",
|
|
3
|
-
"version": "0.87.
|
|
3
|
+
"version": "0.87.3-nightly.20250528",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -52,25 +52,25 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aztec/archiver": "0.87.
|
|
56
|
-
"@aztec/bb-prover": "0.87.
|
|
57
|
-
"@aztec/blob-sink": "0.87.
|
|
58
|
-
"@aztec/constants": "0.87.
|
|
59
|
-
"@aztec/epoch-cache": "0.87.
|
|
60
|
-
"@aztec/ethereum": "0.87.
|
|
61
|
-
"@aztec/foundation": "0.87.
|
|
62
|
-
"@aztec/kv-store": "0.87.
|
|
63
|
-
"@aztec/l1-artifacts": "0.87.
|
|
64
|
-
"@aztec/node-lib": "0.87.
|
|
65
|
-
"@aztec/noir-protocol-circuits-types": "0.87.
|
|
66
|
-
"@aztec/p2p": "0.87.
|
|
67
|
-
"@aztec/protocol-contracts": "0.87.
|
|
68
|
-
"@aztec/prover-client": "0.87.
|
|
69
|
-
"@aztec/sequencer-client": "0.87.
|
|
70
|
-
"@aztec/simulator": "0.87.
|
|
71
|
-
"@aztec/stdlib": "0.87.
|
|
72
|
-
"@aztec/telemetry-client": "0.87.
|
|
73
|
-
"@aztec/world-state": "0.87.
|
|
55
|
+
"@aztec/archiver": "0.87.3-nightly.20250528",
|
|
56
|
+
"@aztec/bb-prover": "0.87.3-nightly.20250528",
|
|
57
|
+
"@aztec/blob-sink": "0.87.3-nightly.20250528",
|
|
58
|
+
"@aztec/constants": "0.87.3-nightly.20250528",
|
|
59
|
+
"@aztec/epoch-cache": "0.87.3-nightly.20250528",
|
|
60
|
+
"@aztec/ethereum": "0.87.3-nightly.20250528",
|
|
61
|
+
"@aztec/foundation": "0.87.3-nightly.20250528",
|
|
62
|
+
"@aztec/kv-store": "0.87.3-nightly.20250528",
|
|
63
|
+
"@aztec/l1-artifacts": "0.87.3-nightly.20250528",
|
|
64
|
+
"@aztec/node-lib": "0.87.3-nightly.20250528",
|
|
65
|
+
"@aztec/noir-protocol-circuits-types": "0.87.3-nightly.20250528",
|
|
66
|
+
"@aztec/p2p": "0.87.3-nightly.20250528",
|
|
67
|
+
"@aztec/protocol-contracts": "0.87.3-nightly.20250528",
|
|
68
|
+
"@aztec/prover-client": "0.87.3-nightly.20250528",
|
|
69
|
+
"@aztec/sequencer-client": "0.87.3-nightly.20250528",
|
|
70
|
+
"@aztec/simulator": "0.87.3-nightly.20250528",
|
|
71
|
+
"@aztec/stdlib": "0.87.3-nightly.20250528",
|
|
72
|
+
"@aztec/telemetry-client": "0.87.3-nightly.20250528",
|
|
73
|
+
"@aztec/world-state": "0.87.3-nightly.20250528",
|
|
74
74
|
"source-map-support": "^0.5.21",
|
|
75
75
|
"tslib": "^2.4.0",
|
|
76
76
|
"viem": "2.23.7"
|
|
@@ -162,17 +162,17 @@ export class ProverNodePublisher {
|
|
|
162
162
|
|
|
163
163
|
// Check the archive for the immediate block before the epoch
|
|
164
164
|
const blockLog = await this.rollupContract.getBlock(BigInt(fromBlock - 1));
|
|
165
|
-
if (publicInputs.
|
|
165
|
+
if (publicInputs.previousArchiveRoot.toString() !== blockLog.archive) {
|
|
166
166
|
throw new Error(
|
|
167
|
-
`Previous archive root mismatch: ${publicInputs.
|
|
167
|
+
`Previous archive root mismatch: ${publicInputs.previousArchiveRoot.toString()} !== ${blockLog.archive}`,
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// Check the archive for the last block in the epoch
|
|
172
172
|
const endBlockLog = await this.rollupContract.getBlock(BigInt(toBlock));
|
|
173
|
-
if (publicInputs.
|
|
173
|
+
if (publicInputs.endArchiveRoot.toString() !== endBlockLog.archive) {
|
|
174
174
|
throw new Error(
|
|
175
|
-
`End archive root mismatch: ${publicInputs.
|
|
175
|
+
`End archive root mismatch: ${publicInputs.endArchiveRoot.toString()} !== ${endBlockLog.archive}`,
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -249,10 +249,8 @@ export class ProverNodePublisher {
|
|
|
249
249
|
BigInt(args.fromBlock),
|
|
250
250
|
BigInt(args.toBlock),
|
|
251
251
|
{
|
|
252
|
-
previousArchive: args.publicInputs.
|
|
253
|
-
endArchive: args.publicInputs.
|
|
254
|
-
endTimestamp: args.publicInputs.endTimestamp.toBigInt(),
|
|
255
|
-
outHash: args.publicInputs.outHash.toString(),
|
|
252
|
+
previousArchive: args.publicInputs.previousArchiveRoot.toString(),
|
|
253
|
+
endArchive: args.publicInputs.endArchiveRoot.toString(),
|
|
256
254
|
proverId: EthAddress.fromField(args.publicInputs.proverId).toString(),
|
|
257
255
|
},
|
|
258
256
|
makeTuple(AZTEC_MAX_EPOCH_DURATION * 2, i =>
|