@aztec/prover-client 1.0.0-nightly.20250722 → 1.0.0-nightly.20250724
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.
|
@@ -35,7 +35,7 @@ export declare class EpochProvingState {
|
|
|
35
35
|
private rootRollupProvingOutput;
|
|
36
36
|
private finalBatchedBlob;
|
|
37
37
|
private provingStateLifecycle;
|
|
38
|
-
readonly cachedTubeProofs: Map<string, Promise<ProofAndVerificationKey<
|
|
38
|
+
readonly cachedTubeProofs: Map<string, Promise<ProofAndVerificationKey<535>>>;
|
|
39
39
|
blocks: (BlockProvingState | undefined)[];
|
|
40
40
|
constructor(epochNumber: number, firstBlockNumber: number, totalNumBlocks: number, finalBlobBatchingChallenges: FinalBlobBatchingChallenges, completionCallback: (result: ProvingResult) => void, rejectionCallback: (reason: string) => void);
|
|
41
41
|
startNewBlock(globalVariables: GlobalVariables, l1ToL2Messages: Fr[], l1ToL2MessageTreeSnapshot: AppendOnlyTreeSnapshot, l1ToL2MessageSubtreeSiblingPath: Tuple<Fr, typeof L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH>, l1ToL2MessageTreeSnapshotAfterInsertion: AppendOnlyTreeSnapshot, lastArchiveSnapshot: AppendOnlyTreeSnapshot, lastArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>, newArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>, previousBlockHeader: BlockHeader, proverId: Fr): BlockProvingState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAU3F,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAS9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,EACV,WA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AAc,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,WAAW;IA+CnH;;;OAGG;IAIU,MAAM,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiDtD;;;OAGG;IAEI,iBAAiB,CAAC,GAAG,EAAE,EAAE,EAAE;IAelC;;;OAGG;IAIU,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IA4BnG,oDAAoD;IAC7C,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;YAQzB,UAAU;cAqCR,kCAAkC,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,sBAAsB;IAWvG;;OAEG;IACI,MAAM;IAQb;;OAEG;IACU,aAAa;;;;;IA6B1B;;;;OAIG;YACW,kBAAkB;IAShC;;;;;OAKG;IACH,OAAO,CAAC,eAAe;YAwDT,uBAAuB;YAkCvB,uBAAuB;IAyCrC,OAAO,CAAC,iBAAiB;IA8CzB,OAAO,CAAC,gBAAgB;IA0BxB,OAAO,CAAC,aAAa;IA4BrB,OAAO,CAAC,kBAAkB;YA0BZ,sBAAsB;IAgFpC,OAAO,CAAC,wBAAwB;IAuBhC,OAAO,CAAC,gCAAgC;IAUxC,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,uBAAuB;IAwB/B,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,iBAAiB;YA4BX,8BAA8B;YAa9B,8BAA8B;IA2B5C,OAAO,CAAC,mCAAmC;IAa3C,OAAO,CAAC,yBAAyB;IASjC;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAmDjB,OAAO,CAAC,4BAA4B;CAWrC"}
|
|
@@ -155,18 +155,19 @@ const logger = createLogger('prover-client:orchestrator');
|
|
|
155
155
|
/**
|
|
156
156
|
* Kickstarts tube circuits for the specified txs. These will be used during epoch proving.
|
|
157
157
|
* Note that if the tube circuits are not started this way, they will be started nontheless after processing.
|
|
158
|
-
*/
|
|
158
|
+
*/ startTubeCircuits(txs) {
|
|
159
159
|
if (!this.provingState?.verifyState()) {
|
|
160
160
|
throw new Error(`Invalid proving state, call startNewEpoch before starting tube circuits`);
|
|
161
161
|
}
|
|
162
162
|
for (const tx of txs){
|
|
163
|
-
const txHash =
|
|
163
|
+
const txHash = tx.getTxHash().toString();
|
|
164
164
|
const tubeInputs = new TubeInputs(!!tx.data.forPublic, tx.clientIvcProof);
|
|
165
165
|
const tubeProof = promiseWithResolvers();
|
|
166
166
|
logger.debug(`Starting tube circuit for tx ${txHash}`);
|
|
167
167
|
this.doEnqueueTube(txHash, tubeInputs, (proof)=>tubeProof.resolve(proof));
|
|
168
168
|
this.provingState?.cachedTubeProofs.set(txHash, tubeProof.promise);
|
|
169
169
|
}
|
|
170
|
+
return Promise.resolve();
|
|
170
171
|
}
|
|
171
172
|
/**
|
|
172
173
|
* Marks the block as completed.
|
|
@@ -21,12 +21,12 @@ export declare class MockProver implements ServerCircuitProver {
|
|
|
21
21
|
constructor();
|
|
22
22
|
getAvmProof(_inputs: AvmCircuitInputs, _skipPublicInputsValidation?: boolean, // TODO(#14234)[Unconditional PIs validation]: Remove.
|
|
23
23
|
_signal?: AbortSignal, _epochNumber?: number): Promise<ProofAndVerificationKey<20000>>;
|
|
24
|
-
getBaseParityProof(_inputs: BaseParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs,
|
|
25
|
-
getRootParityProof(_inputs: RootParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs,
|
|
24
|
+
getBaseParityProof(_inputs: BaseParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 457>>;
|
|
25
|
+
getRootParityProof(_inputs: RootParityInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<import("@aztec/stdlib/parity").ParityPublicInputs, 457>>;
|
|
26
26
|
getPrivateBaseRollupProof(_baseRollupInput: PrivateBaseRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
27
27
|
getPublicBaseRollupProof(_inputs: PublicBaseRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
28
28
|
getMergeRollupProof(_input: MergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BaseOrMergeRollupPublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
29
|
-
getBlockMergeRollupProof(_input: BlockMergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs,
|
|
29
|
+
getBlockMergeRollupProof(_input: BlockMergeRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, 535>>;
|
|
30
30
|
getEmptyBlockRootRollupProof(_input: EmptyBlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
31
31
|
getPaddingBlockRootRollupProof(_input: PaddingBlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
|
32
32
|
getBlockRootRollupProof(_input: BlockRootRollupInputs, _signal?: AbortSignal, _epochNumber?: number): Promise<PublicInputsAndRecursiveProof<BlockRootOrBlockMergePublicInputs, typeof NESTED_RECURSIVE_ROLLUP_HONK_PROOF_LENGTH>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-client",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250724",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
72
|
-
"@aztec/blob-lib": "1.0.0-nightly.
|
|
73
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
74
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
75
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
76
|
-
"@aztec/kv-store": "1.0.0-nightly.
|
|
77
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
78
|
-
"@aztec/noir-types": "1.0.0-nightly.
|
|
79
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
80
|
-
"@aztec/simulator": "1.0.0-nightly.
|
|
81
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
82
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
83
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
71
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250724",
|
|
72
|
+
"@aztec/blob-lib": "1.0.0-nightly.20250724",
|
|
73
|
+
"@aztec/constants": "1.0.0-nightly.20250724",
|
|
74
|
+
"@aztec/ethereum": "1.0.0-nightly.20250724",
|
|
75
|
+
"@aztec/foundation": "1.0.0-nightly.20250724",
|
|
76
|
+
"@aztec/kv-store": "1.0.0-nightly.20250724",
|
|
77
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250724",
|
|
78
|
+
"@aztec/noir-types": "1.0.0-nightly.20250724",
|
|
79
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250724",
|
|
80
|
+
"@aztec/simulator": "1.0.0-nightly.20250724",
|
|
81
|
+
"@aztec/stdlib": "1.0.0-nightly.20250724",
|
|
82
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250724",
|
|
83
|
+
"@aztec/world-state": "1.0.0-nightly.20250724",
|
|
84
84
|
"@google-cloud/storage": "^7.15.0",
|
|
85
85
|
"@iarna/toml": "^2.2.5",
|
|
86
86
|
"commander": "^12.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"zod": "^3.23.8"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
|
-
"@aztec/noir-contracts.js": "1.0.0-nightly.
|
|
93
|
+
"@aztec/noir-contracts.js": "1.0.0-nightly.20250724",
|
|
94
94
|
"@jest/globals": "^30.0.0",
|
|
95
95
|
"@types/jest": "^30.0.0",
|
|
96
96
|
"@types/node": "^22.15.17",
|
|
@@ -248,18 +248,19 @@ export class ProvingOrchestrator implements EpochProver {
|
|
|
248
248
|
* Note that if the tube circuits are not started this way, they will be started nontheless after processing.
|
|
249
249
|
*/
|
|
250
250
|
@trackSpan('ProvingOrchestrator.startTubeCircuits')
|
|
251
|
-
public
|
|
251
|
+
public startTubeCircuits(txs: Tx[]) {
|
|
252
252
|
if (!this.provingState?.verifyState()) {
|
|
253
253
|
throw new Error(`Invalid proving state, call startNewEpoch before starting tube circuits`);
|
|
254
254
|
}
|
|
255
255
|
for (const tx of txs) {
|
|
256
|
-
const txHash =
|
|
256
|
+
const txHash = tx.getTxHash().toString();
|
|
257
257
|
const tubeInputs = new TubeInputs(!!tx.data.forPublic, tx.clientIvcProof);
|
|
258
258
|
const tubeProof = promiseWithResolvers<ProofAndVerificationKey<typeof TUBE_PROOF_LENGTH>>();
|
|
259
259
|
logger.debug(`Starting tube circuit for tx ${txHash}`);
|
|
260
260
|
this.doEnqueueTube(txHash, tubeInputs, proof => tubeProof.resolve(proof));
|
|
261
261
|
this.provingState?.cachedTubeProofs.set(txHash, tubeProof.promise);
|
|
262
262
|
}
|
|
263
|
+
return Promise.resolve();
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
/**
|