@aztec/prover-client 4.0.0-nightly.20250907 → 4.0.0-nightly.20260108
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.
- package/dest/block-factory/index.d.ts +1 -1
- package/dest/block-factory/light.d.ts +5 -3
- package/dest/block-factory/light.d.ts.map +1 -1
- package/dest/block-factory/light.js +32 -11
- package/dest/config.d.ts +2 -2
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +2 -2
- package/dest/index.d.ts +1 -1
- package/dest/light/index.d.ts +2 -0
- package/dest/light/index.d.ts.map +1 -0
- package/dest/light/index.js +1 -0
- package/dest/light/lightweight_checkpoint_builder.d.ts +36 -0
- package/dest/light/lightweight_checkpoint_builder.d.ts.map +1 -0
- package/dest/light/lightweight_checkpoint_builder.js +147 -0
- package/dest/mocks/fixtures.d.ts +5 -5
- package/dest/mocks/fixtures.d.ts.map +1 -1
- package/dest/mocks/fixtures.js +33 -15
- package/dest/mocks/test_context.d.ts +38 -33
- package/dest/mocks/test_context.d.ts.map +1 -1
- package/dest/mocks/test_context.js +133 -82
- package/dest/orchestrator/block-building-helpers.d.ts +35 -35
- package/dest/orchestrator/block-building-helpers.d.ts.map +1 -1
- package/dest/orchestrator/block-building-helpers.js +151 -187
- package/dest/orchestrator/block-proving-state.d.ts +68 -55
- package/dest/orchestrator/block-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/block-proving-state.js +273 -185
- package/dest/orchestrator/checkpoint-proving-state.d.ts +63 -0
- package/dest/orchestrator/checkpoint-proving-state.d.ts.map +1 -0
- package/dest/orchestrator/checkpoint-proving-state.js +210 -0
- package/dest/orchestrator/epoch-proving-state.d.ts +38 -31
- package/dest/orchestrator/epoch-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/epoch-proving-state.js +128 -84
- package/dest/orchestrator/index.d.ts +1 -1
- package/dest/orchestrator/orchestrator.d.ts +35 -34
- package/dest/orchestrator/orchestrator.d.ts.map +1 -1
- package/dest/orchestrator/orchestrator.js +777 -292
- package/dest/orchestrator/orchestrator_metrics.d.ts +1 -3
- package/dest/orchestrator/orchestrator_metrics.d.ts.map +1 -1
- package/dest/orchestrator/orchestrator_metrics.js +0 -9
- package/dest/orchestrator/tx-proving-state.d.ts +12 -10
- package/dest/orchestrator/tx-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/tx-proving-state.js +23 -29
- package/dest/prover-client/factory.d.ts +3 -3
- package/dest/prover-client/factory.d.ts.map +1 -1
- package/dest/prover-client/index.d.ts +1 -1
- package/dest/prover-client/prover-client.d.ts +3 -3
- package/dest/prover-client/prover-client.d.ts.map +1 -1
- package/dest/prover-client/prover-client.js +1 -1
- package/dest/prover-client/server-epoch-prover.d.ts +13 -11
- package/dest/prover-client/server-epoch-prover.d.ts.map +1 -1
- package/dest/prover-client/server-epoch-prover.js +9 -9
- package/dest/proving_broker/broker_prover_facade.d.ts +23 -18
- package/dest/proving_broker/broker_prover_facade.d.ts.map +1 -1
- package/dest/proving_broker/broker_prover_facade.js +42 -33
- package/dest/proving_broker/config.d.ts +18 -14
- package/dest/proving_broker/config.d.ts.map +1 -1
- package/dest/proving_broker/config.js +12 -6
- package/dest/proving_broker/factory.d.ts +1 -1
- package/dest/proving_broker/factory.js +1 -1
- package/dest/proving_broker/fixtures.d.ts +3 -2
- package/dest/proving_broker/fixtures.d.ts.map +1 -1
- package/dest/proving_broker/fixtures.js +3 -2
- package/dest/proving_broker/index.d.ts +1 -1
- package/dest/proving_broker/proof_store/factory.d.ts +2 -2
- package/dest/proving_broker/proof_store/gcs_proof_store.d.ts +1 -1
- package/dest/proving_broker/proof_store/gcs_proof_store.d.ts.map +1 -1
- package/dest/proving_broker/proof_store/index.d.ts +2 -1
- package/dest/proving_broker/proof_store/index.d.ts.map +1 -1
- package/dest/proving_broker/proof_store/index.js +1 -0
- package/dest/proving_broker/proof_store/inline_proof_store.d.ts +1 -1
- package/dest/proving_broker/proof_store/inline_proof_store.d.ts.map +1 -1
- package/dest/proving_broker/proof_store/proof_store.d.ts +1 -1
- package/dest/proving_broker/proving_agent.d.ts +3 -8
- package/dest/proving_broker/proving_agent.d.ts.map +1 -1
- package/dest/proving_broker/proving_agent.js +1 -16
- package/dest/proving_broker/proving_broker.d.ts +2 -2
- package/dest/proving_broker/proving_broker.d.ts.map +1 -1
- package/dest/proving_broker/proving_broker.js +35 -29
- package/dest/proving_broker/proving_broker_database/memory.d.ts +3 -2
- package/dest/proving_broker/proving_broker_database/memory.d.ts.map +1 -1
- package/dest/proving_broker/proving_broker_database/persisted.d.ts +5 -3
- package/dest/proving_broker/proving_broker_database/persisted.d.ts.map +1 -1
- package/dest/proving_broker/proving_broker_database/persisted.js +397 -8
- package/dest/proving_broker/proving_broker_database.d.ts +3 -2
- package/dest/proving_broker/proving_broker_database.d.ts.map +1 -1
- package/dest/proving_broker/proving_broker_instrumentation.d.ts +1 -1
- package/dest/proving_broker/proving_broker_instrumentation.d.ts.map +1 -1
- package/dest/proving_broker/proving_job_controller.d.ts +3 -2
- package/dest/proving_broker/proving_job_controller.d.ts.map +1 -1
- package/dest/proving_broker/proving_job_controller.js +40 -21
- package/dest/proving_broker/rpc.d.ts +4 -4
- package/dest/test/mock_proof_store.d.ts +3 -3
- package/dest/test/mock_proof_store.d.ts.map +1 -1
- package/dest/test/mock_prover.d.ts +23 -19
- package/dest/test/mock_prover.d.ts.map +1 -1
- package/dest/test/mock_prover.js +36 -21
- package/package.json +21 -19
- package/src/block-factory/light.ts +40 -17
- package/src/config.ts +2 -2
- package/src/light/index.ts +1 -0
- package/src/light/lightweight_checkpoint_builder.ts +198 -0
- package/src/mocks/fixtures.ts +41 -36
- package/src/mocks/test_context.ts +196 -114
- package/src/orchestrator/block-building-helpers.ts +233 -313
- package/src/orchestrator/block-proving-state.ts +315 -247
- package/src/orchestrator/checkpoint-proving-state.ts +303 -0
- package/src/orchestrator/epoch-proving-state.ts +176 -129
- package/src/orchestrator/orchestrator.ts +558 -348
- package/src/orchestrator/orchestrator_metrics.ts +1 -20
- package/src/orchestrator/tx-proving-state.ts +47 -55
- package/src/prover-client/factory.ts +6 -2
- package/src/prover-client/prover-client.ts +4 -11
- package/src/prover-client/server-epoch-prover.ts +30 -21
- package/src/proving_broker/broker_prover_facade.ts +175 -112
- package/src/proving_broker/config.ts +14 -7
- package/src/proving_broker/factory.ts +1 -1
- package/src/proving_broker/fixtures.ts +8 -3
- package/src/proving_broker/proof_store/index.ts +1 -0
- package/src/proving_broker/proving_agent.ts +1 -17
- package/src/proving_broker/proving_broker.ts +42 -27
- package/src/proving_broker/proving_broker_database/memory.ts +2 -1
- package/src/proving_broker/proving_broker_database/persisted.ts +25 -10
- package/src/proving_broker/proving_broker_database.ts +2 -1
- package/src/proving_broker/proving_job_controller.ts +42 -22
- package/src/test/mock_prover.ts +143 -66
- package/dest/bin/get-proof-inputs.d.ts +0 -2
- package/dest/bin/get-proof-inputs.d.ts.map +0 -1
- package/dest/bin/get-proof-inputs.js +0 -51
- package/dest/proving_broker/proving_agent_instrumentation.d.ts +0 -8
- package/dest/proving_broker/proving_agent_instrumentation.d.ts.map +0 -1
- package/dest/proving_broker/proving_agent_instrumentation.js +0 -16
- package/src/bin/get-proof-inputs.ts +0 -59
- package/src/proving_broker/proving_agent_instrumentation.ts +0 -21
|
@@ -1,62 +1,63 @@
|
|
|
1
|
+
import { TestCircuitProver } from '@aztec/bb-prover';
|
|
1
2
|
import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/constants';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
4
|
+
import { padArrayEnd, times, timesAsync } from '@aztec/foundation/collection';
|
|
5
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
5
6
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
6
|
-
import {
|
|
7
|
+
import { ProtocolContractsList } from '@aztec/protocol-contracts';
|
|
7
8
|
import { computeFeePayerBalanceLeafSlot } from '@aztec/protocol-contracts/fee-juice';
|
|
8
|
-
import { SimpleContractDataSource } from '@aztec/simulator/public/fixtures';
|
|
9
|
-
import { PublicProcessorFactory } from '@aztec/simulator/server';
|
|
10
9
|
import { PublicDataWrite } from '@aztec/stdlib/avm';
|
|
11
10
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
12
11
|
import { EthAddress } from '@aztec/stdlib/block';
|
|
13
|
-
import {
|
|
12
|
+
import { mockProcessedTx } from '@aztec/stdlib/testing';
|
|
14
13
|
import { MerkleTreeId, PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
15
14
|
import { TreeSnapshots } from '@aztec/stdlib/tx';
|
|
16
15
|
import { NativeWorldStateService } from '@aztec/world-state/native';
|
|
17
16
|
import { promises as fs } from 'fs';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import { TestCircuitProver } from '../../../bb-prover/src/test/test_circuit_prover.js';
|
|
21
|
-
import { buildBlockWithCleanDB } from '../block-factory/light.js';
|
|
22
|
-
import { getTreeSnapshot } from '../orchestrator/block-building-helpers.js';
|
|
17
|
+
import { LightweightCheckpointBuilder } from '../light/lightweight_checkpoint_builder.js';
|
|
18
|
+
import { buildFinalBlobChallenges, getTreeSnapshot, insertSideEffects } from '../orchestrator/block-building-helpers.js';
|
|
23
19
|
import { ProvingOrchestrator } from '../orchestrator/index.js';
|
|
24
20
|
import { BrokerCircuitProverFacade } from '../proving_broker/broker_prover_facade.js';
|
|
25
21
|
import { TestBroker } from '../test/mock_prover.js';
|
|
26
|
-
import { getEnvironmentConfig, getSimulator,
|
|
22
|
+
import { getEnvironmentConfig, getSimulator, makeCheckpointConstants, makeGlobals } from './fixtures.js';
|
|
27
23
|
export class TestContext {
|
|
28
24
|
worldState;
|
|
29
|
-
globalVariables;
|
|
30
25
|
prover;
|
|
31
26
|
broker;
|
|
32
27
|
brokerProverFacade;
|
|
33
28
|
orchestrator;
|
|
34
|
-
blockNumber;
|
|
35
29
|
feePayer;
|
|
36
30
|
directoriesToCleanup;
|
|
37
31
|
logger;
|
|
38
32
|
headers;
|
|
33
|
+
checkpoints;
|
|
34
|
+
nextCheckpointIndex;
|
|
35
|
+
nextCheckpointNumber;
|
|
36
|
+
nextBlockNumber;
|
|
37
|
+
epochNumber;
|
|
39
38
|
feePayerBalance;
|
|
40
|
-
constructor(worldState,
|
|
39
|
+
constructor(worldState, prover, broker, brokerProverFacade, orchestrator, feePayer, initialFeePayerBalance, directoriesToCleanup, logger){
|
|
41
40
|
this.worldState = worldState;
|
|
42
|
-
this.globalVariables = globalVariables;
|
|
43
41
|
this.prover = prover;
|
|
44
42
|
this.broker = broker;
|
|
45
43
|
this.brokerProverFacade = brokerProverFacade;
|
|
46
44
|
this.orchestrator = orchestrator;
|
|
47
|
-
this.blockNumber = blockNumber;
|
|
48
45
|
this.feePayer = feePayer;
|
|
49
46
|
this.directoriesToCleanup = directoriesToCleanup;
|
|
50
47
|
this.logger = logger;
|
|
51
48
|
this.headers = new Map();
|
|
49
|
+
this.checkpoints = [];
|
|
50
|
+
this.nextCheckpointIndex = 0;
|
|
51
|
+
this.nextCheckpointNumber = CheckpointNumber(1);
|
|
52
|
+
this.nextBlockNumber = 1;
|
|
53
|
+
this.epochNumber = 1;
|
|
52
54
|
this.feePayerBalance = initialFeePayerBalance;
|
|
53
55
|
}
|
|
54
56
|
get epochProver() {
|
|
55
57
|
return this.orchestrator;
|
|
56
58
|
}
|
|
57
|
-
static async new(logger, { proverCount = 4, createProver = async (bbConfig)=>new TestCircuitProver(await getSimulator(bbConfig, logger))
|
|
59
|
+
static async new(logger, { proverCount = 4, createProver = async (bbConfig)=>new TestCircuitProver(await getSimulator(bbConfig, logger)) } = {}) {
|
|
58
60
|
const directoriesToCleanup = [];
|
|
59
|
-
const globalVariables = makeGlobals(blockNumber);
|
|
60
61
|
const feePayer = AztecAddress.fromNumber(42222);
|
|
61
62
|
const initialFeePayerBalance = new Fr(10n ** 20n);
|
|
62
63
|
const feePayerSlot = await computeFeePayerBalanceLeafSlot(feePayer);
|
|
@@ -89,20 +90,11 @@ export class TestContext {
|
|
|
89
90
|
const orchestrator = new TestProvingOrchestrator(ws, facade, EthAddress.ZERO);
|
|
90
91
|
await broker.start();
|
|
91
92
|
facade.start();
|
|
92
|
-
return new this(ws,
|
|
93
|
+
return new this(ws, localProver, broker, facade, orchestrator, feePayer, initialFeePayerBalance, directoriesToCleanup, logger);
|
|
93
94
|
}
|
|
94
95
|
getFork() {
|
|
95
96
|
return this.worldState.fork();
|
|
96
97
|
}
|
|
97
|
-
getBlockHeader(blockNumber = 0) {
|
|
98
|
-
return blockNumber === 0 ? this.worldState.getCommitted().getInitialHeader() : this.headers.get(blockNumber);
|
|
99
|
-
}
|
|
100
|
-
setBlockHeader(header, blockNumber) {
|
|
101
|
-
this.headers.set(blockNumber, header);
|
|
102
|
-
}
|
|
103
|
-
getPreviousBlockHeader(currentBlockNumber = this.blockNumber) {
|
|
104
|
-
return this.getBlockHeader(currentBlockNumber - 1);
|
|
105
|
-
}
|
|
106
98
|
async cleanup() {
|
|
107
99
|
await this.brokerProverFacade.stop();
|
|
108
100
|
await this.broker.stop();
|
|
@@ -118,81 +110,140 @@ export class TestContext {
|
|
|
118
110
|
}
|
|
119
111
|
}
|
|
120
112
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
113
|
+
startNewEpoch() {
|
|
114
|
+
this.checkpoints = [];
|
|
115
|
+
this.nextCheckpointIndex = 0;
|
|
116
|
+
this.epochNumber++;
|
|
117
|
+
}
|
|
118
|
+
// Return blob fields of all checkpoints in the epoch.
|
|
119
|
+
getBlobFields() {
|
|
120
|
+
return this.checkpoints.map((checkpoint)=>checkpoint.toBlobFields());
|
|
121
|
+
}
|
|
122
|
+
async getFinalBlobChallenges() {
|
|
123
|
+
const blobFields = this.getBlobFields();
|
|
124
|
+
return await buildFinalBlobChallenges(blobFields);
|
|
125
|
+
}
|
|
126
|
+
async makeCheckpoint(numBlocks, { numTxsPerBlock = 0, numL1ToL2Messages = 0, makeProcessedTxOpts = ()=>({}), ...constantOpts } = {}) {
|
|
127
|
+
if (numBlocks === 0) {
|
|
128
|
+
throw new Error('Cannot make a checkpoint with 0 blocks. Crate an empty block (numTxsPerBlock = 0) if there are no txs.');
|
|
129
|
+
}
|
|
130
|
+
const checkpointIndex = this.nextCheckpointIndex++;
|
|
131
|
+
const checkpointNumber = this.nextCheckpointNumber;
|
|
132
|
+
this.nextCheckpointNumber++;
|
|
133
|
+
const slotNumber = checkpointNumber * 15; // times an arbitrary number to make it different to the checkpoint number
|
|
134
|
+
const constants = makeCheckpointConstants(slotNumber, constantOpts);
|
|
135
|
+
const fork = await this.worldState.fork();
|
|
136
|
+
// Build l1 to l2 messages.
|
|
137
|
+
const l1ToL2Messages = times(numL1ToL2Messages, (i)=>new Fr(slotNumber * 100 + i));
|
|
138
|
+
await fork.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP));
|
|
139
|
+
const newL1ToL2Snapshot = await getTreeSnapshot(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, fork);
|
|
140
|
+
const startBlockNumber = this.nextBlockNumber;
|
|
141
|
+
const previousBlockHeader = this.getBlockHeader(BlockNumber(startBlockNumber - 1));
|
|
142
|
+
// All blocks in the same slot/checkpoint share the same timestamp.
|
|
143
|
+
const timestamp = BigInt(slotNumber * 26);
|
|
144
|
+
// Build global variables.
|
|
145
|
+
const blockGlobalVariables = times(numBlocks, (i)=>makeGlobals(startBlockNumber + i, slotNumber, {
|
|
146
|
+
coinbase: constants.coinbase,
|
|
147
|
+
feeRecipient: constants.feeRecipient,
|
|
148
|
+
gasFees: constants.gasFees,
|
|
149
|
+
timestamp
|
|
150
|
+
}));
|
|
151
|
+
this.nextBlockNumber += numBlocks;
|
|
152
|
+
// Build txs.
|
|
153
|
+
let totalTxs = 0;
|
|
154
|
+
const blockEndStates = [];
|
|
155
|
+
const blockTxs = await timesAsync(numBlocks, async (blockIndex)=>{
|
|
156
|
+
const txIndexOffset = totalTxs;
|
|
157
|
+
const numTxs = typeof numTxsPerBlock === 'number' ? numTxsPerBlock : numTxsPerBlock[blockIndex];
|
|
158
|
+
totalTxs += numTxs;
|
|
159
|
+
const txs = await timesAsync(numTxs, (txIndex)=>this.makeProcessedTx({
|
|
160
|
+
seed: (txIndexOffset + txIndex + 1) * 321 + (checkpointIndex + 1) * 123456 + this.epochNumber * 0x99999,
|
|
161
|
+
globalVariables: blockGlobalVariables[blockIndex],
|
|
162
|
+
anchorBlockHeader: previousBlockHeader,
|
|
163
|
+
newL1ToL2Snapshot,
|
|
164
|
+
...makeProcessedTxOpts(blockGlobalVariables[blockIndex], txIndexOffset + txIndex)
|
|
165
|
+
}));
|
|
166
|
+
// Insert side effects into the trees.
|
|
167
|
+
const endState = await this.updateTrees(txs, fork);
|
|
168
|
+
blockEndStates.push(endState);
|
|
169
|
+
return txs;
|
|
170
|
+
});
|
|
171
|
+
const cleanFork = await this.worldState.fork();
|
|
172
|
+
const builder = await LightweightCheckpointBuilder.startNewCheckpoint(checkpointNumber, constants, l1ToL2Messages, cleanFork);
|
|
173
|
+
// Add tx effects to db and build block headers.
|
|
174
|
+
const blocks = [];
|
|
175
|
+
for(let i = 0; i < numBlocks; i++){
|
|
176
|
+
const txs = blockTxs[i];
|
|
177
|
+
const state = blockEndStates[i];
|
|
178
|
+
const block = await builder.addBlock(blockGlobalVariables[i], txs, {
|
|
179
|
+
expectedEndState: state,
|
|
180
|
+
insertTxsEffects: true
|
|
181
|
+
});
|
|
182
|
+
const header = block.header;
|
|
183
|
+
this.headers.set(block.number, header);
|
|
184
|
+
const blockMsgs = block.indexWithinCheckpoint === 0 ? l1ToL2Messages : [];
|
|
185
|
+
await this.worldState.handleL2BlockAndMessages(block, blockMsgs);
|
|
186
|
+
blocks.push({
|
|
187
|
+
header,
|
|
188
|
+
txs
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const checkpoint = await builder.completeCheckpoint();
|
|
192
|
+
this.checkpoints.push(checkpoint);
|
|
193
|
+
return {
|
|
194
|
+
constants,
|
|
195
|
+
header: checkpoint.header,
|
|
196
|
+
blocks,
|
|
197
|
+
l1ToL2Messages,
|
|
198
|
+
previousBlockHeader
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
async makeProcessedTx(opts = {}) {
|
|
202
|
+
const tx = await mockProcessedTx({
|
|
126
203
|
vkTreeRoot: getVKTreeRoot(),
|
|
127
|
-
|
|
128
|
-
globalVariables: this.globalVariables,
|
|
204
|
+
protocolContracts: ProtocolContractsList,
|
|
129
205
|
feePayer: this.feePayer,
|
|
130
206
|
...opts
|
|
131
207
|
});
|
|
132
208
|
this.feePayerBalance = new Fr(this.feePayerBalance.toBigInt() - tx.txEffect.transactionFee.toBigInt());
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
209
|
+
const feePayerSlot = await computeFeePayerBalanceLeafSlot(this.feePayer);
|
|
210
|
+
const feePaymentPublicDataWrite = new PublicDataWrite(feePayerSlot, this.feePayerBalance);
|
|
211
|
+
tx.txEffect.publicDataWrites[0] = feePaymentPublicDataWrite;
|
|
212
|
+
if (tx.avmProvingRequest) {
|
|
213
|
+
tx.avmProvingRequest.inputs.publicInputs.accumulatedData.publicDataWrites[0] = feePaymentPublicDataWrite;
|
|
136
214
|
}
|
|
137
215
|
return tx;
|
|
138
216
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const merkleTrees = await this.worldState.fork();
|
|
145
|
-
await merkleTrees.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP));
|
|
146
|
-
const newL1ToL2Snapshot = await getTreeSnapshot(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, merkleTrees);
|
|
147
|
-
const txs = await timesParallel(numTxs, (i)=>this.makeProcessedTx({
|
|
148
|
-
seed: i + blockNum * 1000,
|
|
149
|
-
globalVariables,
|
|
150
|
-
newL1ToL2Snapshot,
|
|
151
|
-
...makeProcessedTxOpts(i)
|
|
152
|
-
}));
|
|
153
|
-
await this.setTreeRoots(txs);
|
|
154
|
-
const block = await buildBlockWithCleanDB(txs, globalVariables, l1ToL2Messages, db);
|
|
155
|
-
this.headers.set(blockNum, block.header);
|
|
156
|
-
await this.worldState.handleL2BlockAndMessages(block, l1ToL2Messages);
|
|
157
|
-
return {
|
|
158
|
-
block,
|
|
159
|
-
txs,
|
|
160
|
-
l1ToL2Messages
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
async processPublicFunctions(txs, { maxTransactions = txs.length, numL1ToL2Messages = 0, contractDataSource } = {}) {
|
|
164
|
-
const l1ToL2Messages = times(numL1ToL2Messages, (i)=>new Fr(this.blockNumber * 100 + i));
|
|
165
|
-
const merkleTrees = await this.worldState.fork();
|
|
166
|
-
await merkleTrees.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP));
|
|
167
|
-
const processorFactory = new PublicProcessorFactory(contractDataSource ?? new SimpleContractDataSource(), new TestDateProvider());
|
|
168
|
-
const publicProcessor = processorFactory.create(merkleTrees, this.globalVariables, /*skipFeeEnforcement=*/ false);
|
|
169
|
-
return await publicProcessor.process(txs, {
|
|
170
|
-
maxTransactions
|
|
171
|
-
});
|
|
217
|
+
getBlockHeader(blockNumber) {
|
|
218
|
+
if (Number(blockNumber) > 0 && Number(blockNumber) >= this.nextBlockNumber) {
|
|
219
|
+
throw new Error(`Block header not built for block number ${blockNumber}.`);
|
|
220
|
+
}
|
|
221
|
+
return Number(blockNumber) === 0 ? this.worldState.getCommitted().getInitialHeader() : this.headers.get(Number(blockNumber));
|
|
172
222
|
}
|
|
173
|
-
async
|
|
174
|
-
|
|
223
|
+
async updateTrees(txs, fork) {
|
|
224
|
+
let startStateReference = await fork.getStateReference();
|
|
225
|
+
let endStateReference = startStateReference;
|
|
175
226
|
for (const tx of txs){
|
|
176
|
-
|
|
177
|
-
await
|
|
178
|
-
tx
|
|
179
|
-
]);
|
|
180
|
-
const endStateReference = await db.getStateReference();
|
|
227
|
+
await insertSideEffects(tx, fork);
|
|
228
|
+
endStateReference = await fork.getStateReference();
|
|
181
229
|
if (tx.avmProvingRequest) {
|
|
230
|
+
// Update the trees in the avm public inputs so that the proof won't fail.
|
|
182
231
|
const l1ToL2MessageTree = tx.avmProvingRequest.inputs.publicInputs.startTreeSnapshots.l1ToL2MessageTree;
|
|
183
232
|
tx.avmProvingRequest.inputs.publicInputs.startTreeSnapshots = new TreeSnapshots(l1ToL2MessageTree, startStateReference.partial.noteHashTree, startStateReference.partial.nullifierTree, startStateReference.partial.publicDataTree);
|
|
184
233
|
tx.avmProvingRequest.inputs.publicInputs.endTreeSnapshots = new TreeSnapshots(l1ToL2MessageTree, endStateReference.partial.noteHashTree, endStateReference.partial.nullifierTree, endStateReference.partial.publicDataTree);
|
|
185
234
|
}
|
|
235
|
+
startStateReference = endStateReference;
|
|
186
236
|
}
|
|
237
|
+
return endStateReference;
|
|
187
238
|
}
|
|
188
239
|
}
|
|
189
240
|
class TestProvingOrchestrator extends ProvingOrchestrator {
|
|
190
241
|
isVerifyBuiltBlockAgainstSyncedStateEnabled = false;
|
|
191
242
|
// Disable this check by default, since it requires seeding world state with the block being built
|
|
192
243
|
// This is only enabled in some tests with multiple blocks that populate the pending chain via makePendingBlock
|
|
193
|
-
verifyBuiltBlockAgainstSyncedState(
|
|
244
|
+
verifyBuiltBlockAgainstSyncedState(provingState) {
|
|
194
245
|
if (this.isVerifyBuiltBlockAgainstSyncedStateEnabled) {
|
|
195
|
-
return super.verifyBuiltBlockAgainstSyncedState(
|
|
246
|
+
return super.verifyBuiltBlockAgainstSyncedState(provingState);
|
|
196
247
|
}
|
|
197
248
|
return Promise.resolve();
|
|
198
249
|
}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { BatchedBlobAccumulator,
|
|
2
|
-
import {
|
|
3
|
-
import { type
|
|
1
|
+
import { BatchedBlobAccumulator, SpongeBlob } from '@aztec/blob-lib';
|
|
2
|
+
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
|
+
import { type Bufferable } from '@aztec/foundation/serialize';
|
|
4
4
|
import { MembershipWitness } from '@aztec/foundation/trees';
|
|
5
|
-
import { PublicDataHint } from '@aztec/stdlib/avm';
|
|
6
5
|
import { Body } from '@aztec/stdlib/block';
|
|
7
|
-
import type { MerkleTreeWriteOperations } from '@aztec/stdlib/interfaces/server';
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
6
|
+
import type { MerkleTreeWriteOperations, PublicInputsAndRecursiveProof } from '@aztec/stdlib/interfaces/server';
|
|
7
|
+
import { ProofData, RecursiveProof } from '@aztec/stdlib/proofs';
|
|
8
|
+
import { BlockRollupPublicInputs, PrivateBaseRollupHints, PublicBaseRollupHints, PublicChonkVerifierPrivateInputs } from '@aztec/stdlib/rollup';
|
|
10
9
|
import { AppendOnlyTreeSnapshot, MerkleTreeId } from '@aztec/stdlib/trees';
|
|
11
|
-
import { BlockHeader,
|
|
10
|
+
import { BlockHeader, GlobalVariables, PartialStateReference, type ProcessedTx, StateReference, Tx } from '@aztec/stdlib/tx';
|
|
12
11
|
import type { MerkleTreeReadOperations } from '@aztec/world-state';
|
|
13
12
|
/**
|
|
14
13
|
* Type representing the names of the trees for the base rollup.
|
|
@@ -18,38 +17,38 @@ type BaseTreeNames = 'NoteHashTree' | 'ContractTree' | 'NullifierTree' | 'Public
|
|
|
18
17
|
* Type representing the names of the trees.
|
|
19
18
|
*/
|
|
20
19
|
export type TreeNames = BaseTreeNames | 'L1ToL2MessageTree' | 'Archive';
|
|
21
|
-
export declare const insertSideEffectsAndBuildBaseRollupHints: (tx: ProcessedTx,
|
|
22
|
-
export declare
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
blobCommitments: BLS12Point[];
|
|
26
|
-
blobs: Blob[];
|
|
27
|
-
blobsHash: Fr;
|
|
20
|
+
export declare const insertSideEffectsAndBuildBaseRollupHints: (tx: ProcessedTx, lastArchive: AppendOnlyTreeSnapshot, newL1ToL2MessageTreeSnapshot: AppendOnlyTreeSnapshot, startSpongeBlob: SpongeBlob, proverId: Fr, db: MerkleTreeWriteOperations) => Promise<PrivateBaseRollupHints | PublicBaseRollupHints>;
|
|
21
|
+
export declare const insertSideEffects: (tx: ProcessedTx, db: MerkleTreeWriteOperations) => Promise<{
|
|
22
|
+
nullifierInsertionResult: import("@aztec/stdlib/trees").BatchInsertionResult<number, number>;
|
|
23
|
+
publicDataInsertionResult: import("@aztec/stdlib/trees").SequentialInsertionResult<number>;
|
|
28
24
|
}>;
|
|
29
|
-
export declare
|
|
30
|
-
export declare
|
|
31
|
-
export declare const
|
|
25
|
+
export declare function getChonkProofFromTx(tx: Tx | ProcessedTx): RecursiveProof<1963>;
|
|
26
|
+
export declare function getPublicChonkVerifierPrivateInputsFromTx(tx: Tx | ProcessedTx, proverId: Fr): PublicChonkVerifierPrivateInputs;
|
|
27
|
+
export declare const buildBlobHints: (blobFields: Fr[]) => {
|
|
28
|
+
blobCommitments: import("../../../foundation/dest/curves/bls12/point.js").BLS12Point[];
|
|
29
|
+
blobs: import("@aztec/blob-lib").Blob[];
|
|
30
|
+
blobsHash: Fr;
|
|
31
|
+
};
|
|
32
|
+
export declare const buildFinalBlobChallenges: (blobFieldsPerCheckpoint: Fr[][]) => Promise<import("@aztec/blob-lib").FinalBlobBatchingChallenges>;
|
|
33
|
+
export declare const accumulateBlobs: (blobFields: Fr[], startBlobAccumulator: BatchedBlobAccumulator) => Promise<BatchedBlobAccumulator>;
|
|
34
|
+
export declare const buildHeaderFromCircuitOutputs: (blockRootRollupOutput: BlockRollupPublicInputs) => Promise<BlockHeader>;
|
|
35
|
+
export declare const buildHeaderAndBodyFromTxs: (txs: ProcessedTx[], lastArchive: AppendOnlyTreeSnapshot, endState: StateReference, globalVariables: GlobalVariables, startSpongeBlob: SpongeBlob, isFirstBlock: boolean) => Promise<{
|
|
32
36
|
header: BlockHeader;
|
|
33
37
|
body: Body;
|
|
38
|
+
blockBlobFields: Fr[];
|
|
34
39
|
}>;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export declare const validateState: (state: StateReference, db: MerkleTreeReadOperations) => Promise<void>;
|
|
41
|
-
export declare function getLastSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<Tuple<Fr, {
|
|
42
|
-
readonly 1: 40;
|
|
43
|
-
readonly 4: 29;
|
|
44
|
-
readonly 3: 39;
|
|
45
|
-
readonly 0: 40;
|
|
40
|
+
export declare function getLastSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<import("@aztec/foundation/serialize").Tuple<Fr, {
|
|
41
|
+
readonly 1: 42;
|
|
42
|
+
readonly 4: 30;
|
|
43
|
+
readonly 3: 36;
|
|
44
|
+
readonly 0: 42;
|
|
46
45
|
readonly 2: 40;
|
|
47
46
|
}[TID]>>;
|
|
48
|
-
export declare function getRootTreeSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<Tuple<Fr, {
|
|
49
|
-
readonly 1:
|
|
50
|
-
readonly 4:
|
|
51
|
-
readonly 3:
|
|
52
|
-
readonly 0:
|
|
47
|
+
export declare function getRootTreeSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<import("@aztec/foundation/serialize").Tuple<Fr, {
|
|
48
|
+
readonly 1: 42;
|
|
49
|
+
readonly 4: 30;
|
|
50
|
+
readonly 3: 36;
|
|
51
|
+
readonly 0: 42;
|
|
53
52
|
readonly 2: 40;
|
|
54
53
|
}[TID]>>;
|
|
55
54
|
export declare function getTreeSnapshot(id: MerkleTreeId, db: MerkleTreeReadOperations): Promise<AppendOnlyTreeSnapshot>;
|
|
@@ -58,5 +57,6 @@ export declare function getSubtreeSiblingPath(treeId: MerkleTreeId, subtreeHeigh
|
|
|
58
57
|
export declare function getMembershipWitnessFor<N extends number>(value: Fr, treeId: MerkleTreeId, height: N, db: MerkleTreeReadOperations): Promise<MembershipWitness<N>>;
|
|
59
58
|
export declare function validatePartialState(partialState: PartialStateReference, treeSnapshots: Map<MerkleTreeId, AppendOnlyTreeSnapshot>): void;
|
|
60
59
|
export declare function validateTx(tx: ProcessedTx): void;
|
|
60
|
+
export declare function toProofData<T extends Bufferable, PROOF_LENGTH extends number>({ inputs, proof, verificationKey }: PublicInputsAndRecursiveProof<T, PROOF_LENGTH>, vkIndex?: number): ProofData<T, PROOF_LENGTH>;
|
|
61
61
|
export {};
|
|
62
|
-
//# sourceMappingURL=
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stYnVpbGRpbmctaGVscGVycy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29yY2hlc3RyYXRvci9ibG9jay1idWlsZGluZy1oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxzQkFBc0IsRUFDdEIsVUFBVSxFQUtYLE1BQU0saUJBQWlCLENBQUM7QUFpQnpCLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNwRCxPQUFPLEVBQUUsS0FBSyxVQUFVLEVBQWdDLE1BQU0sNkJBQTZCLENBQUM7QUFDNUYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFJNUQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLHFCQUFxQixDQU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QUVELHdCQUFnQixvQkFBb0IsQ0FDbEMsWUFBWSxFQUFFLHFCQUFxQixFQUNuQyxhQUFhLEVBQUUsR0FBRyxDQUFDLFlBQVksRUFBRSxzQkFBc0IsQ0FBQyxRQVN6RDtBQXFCRCx3QkFBZ0IsVUFBVSxDQUFDLEVBQUUsRUFBRSxXQUFXLFFBY3pDO0FBRUQsd0JBQWdCLFdBQVcsQ0FBQyxDQUFDLFNBQVMsVUFBVSxFQUFFLFlBQVksU0FBUyxNQUFNLEVBQzNFLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxlQUFlLEVBQUUsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDLEVBQUUsWUFBWSxDQUFDLEVBQ2xGLE9BQU8sQ0FBQyxFQUFFLE1BQU0sOEJBS2pCIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-building-helpers.d.ts","sourceRoot":"","sources":["../../src/orchestrator/block-building-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"block-building-helpers.d.ts","sourceRoot":"","sources":["../../src/orchestrator/block-building-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,UAAU,EAKX,MAAM,iBAAiB,CAAC;AAiBzB,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAgC,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhH,OAAO,EAAS,SAAS,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAEL,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,gCAAgC,EAEjC,MAAM,sBAAsB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