@aztec/prover-client 0.0.1-commit.b655e406 → 0.0.1-commit.c2595eba
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/config.d.ts +2 -2
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +1 -1
- 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 +45 -0
- package/dest/light/lightweight_checkpoint_builder.d.ts.map +1 -0
- package/dest/light/lightweight_checkpoint_builder.js +197 -0
- package/dest/mocks/fixtures.d.ts +1 -4
- package/dest/mocks/fixtures.d.ts.map +1 -1
- package/dest/mocks/fixtures.js +9 -18
- package/dest/mocks/test_context.d.ts +29 -46
- package/dest/mocks/test_context.d.ts.map +1 -1
- package/dest/mocks/test_context.js +116 -116
- package/dest/orchestrator/block-building-helpers.d.ts +17 -19
- package/dest/orchestrator/block-building-helpers.d.ts.map +1 -1
- package/dest/orchestrator/block-building-helpers.js +88 -113
- package/dest/orchestrator/block-proving-state.d.ts +17 -11
- package/dest/orchestrator/block-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/block-proving-state.js +81 -20
- package/dest/orchestrator/checkpoint-proving-state.d.ts +22 -9
- package/dest/orchestrator/checkpoint-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/checkpoint-proving-state.js +49 -17
- package/dest/orchestrator/epoch-proving-state.d.ts +12 -10
- package/dest/orchestrator/epoch-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/epoch-proving-state.js +38 -4
- package/dest/orchestrator/index.d.ts +1 -1
- package/dest/orchestrator/orchestrator.d.ts +26 -11
- package/dest/orchestrator/orchestrator.d.ts.map +1 -1
- package/dest/orchestrator/orchestrator.js +556 -161
- 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 +2 -15
- package/dest/orchestrator/tx-proving-state.d.ts +6 -5
- package/dest/orchestrator/tx-proving-state.d.ts.map +1 -1
- package/dest/orchestrator/tx-proving-state.js +7 -16
- 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 +7 -4
- package/dest/prover-client/server-epoch-prover.d.ts +8 -7
- package/dest/prover-client/server-epoch-prover.d.ts.map +1 -1
- package/dest/prover-client/server-epoch-prover.js +2 -2
- package/dest/proving_broker/broker_prover_facade.d.ts +25 -23
- package/dest/proving_broker/broker_prover_facade.d.ts.map +1 -1
- package/dest/proving_broker/broker_prover_facade.js +9 -15
- package/dest/proving_broker/config.d.ts +16 -8
- package/dest/proving_broker/config.d.ts.map +1 -1
- package/dest/proving_broker/config.js +14 -2
- package/dest/proving_broker/factory.d.ts +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 +1 -1
- 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 +5 -9
- package/dest/proving_broker/proving_agent.d.ts.map +1 -1
- package/dest/proving_broker/proving_agent.js +4 -19
- 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 +6 -11
- 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 +392 -3
- 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_broker_instrumentation.js +15 -35
- package/dest/proving_broker/proving_job_controller.d.ts +5 -3
- package/dest/proving_broker/proving_job_controller.d.ts.map +1 -1
- package/dest/proving_broker/proving_job_controller.js +8 -6
- package/dest/proving_broker/rpc.d.ts +4 -4
- package/dest/test/mock_proof_store.d.ts +1 -1
- package/dest/test/mock_proof_store.d.ts.map +1 -1
- package/dest/test/mock_prover.d.ts +3 -4
- package/dest/test/mock_prover.d.ts.map +1 -1
- package/dest/test/mock_prover.js +4 -4
- package/package.json +20 -18
- package/src/config.ts +1 -1
- package/src/light/index.ts +1 -0
- package/src/light/lightweight_checkpoint_builder.ts +284 -0
- package/src/mocks/fixtures.ts +9 -31
- package/src/mocks/test_context.ts +158 -177
- package/src/orchestrator/block-building-helpers.ts +127 -207
- package/src/orchestrator/block-proving-state.ts +103 -25
- package/src/orchestrator/checkpoint-proving-state.ts +71 -21
- package/src/orchestrator/epoch-proving-state.ts +64 -14
- package/src/orchestrator/orchestrator.ts +158 -149
- package/src/orchestrator/orchestrator_metrics.ts +2 -25
- package/src/orchestrator/tx-proving-state.ts +10 -27
- package/src/prover-client/factory.ts +6 -2
- package/src/prover-client/prover-client.ts +25 -15
- package/src/prover-client/server-epoch-prover.ts +6 -7
- package/src/proving_broker/broker_prover_facade.ts +31 -37
- package/src/proving_broker/config.ts +17 -1
- package/src/proving_broker/fixtures.ts +8 -3
- package/src/proving_broker/proving_agent.ts +6 -19
- package/src/proving_broker/proving_broker.ts +6 -9
- package/src/proving_broker/proving_broker_database/memory.ts +2 -1
- package/src/proving_broker/proving_broker_database/persisted.ts +20 -5
- package/src/proving_broker/proving_broker_database.ts +2 -1
- package/src/proving_broker/proving_broker_instrumentation.ts +14 -35
- package/src/proving_broker/proving_job_controller.ts +13 -7
- package/src/test/mock_prover.ts +2 -14
- package/dest/block-factory/index.d.ts +0 -2
- package/dest/block-factory/index.d.ts.map +0 -1
- package/dest/block-factory/index.js +0 -1
- package/dest/block-factory/light.d.ts +0 -38
- package/dest/block-factory/light.d.ts.map +0 -1
- package/dest/block-factory/light.js +0 -94
- 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/block-factory/index.ts +0 -1
- package/src/block-factory/light.ts +0 -140
- package/src/proving_broker/proving_agent_instrumentation.ts +0 -21
|
@@ -1,68 +1,65 @@
|
|
|
1
1
|
import { TestCircuitProver } from '@aztec/bb-prover';
|
|
2
|
-
import { SpongeBlob } from '@aztec/blob-lib';
|
|
3
2
|
import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP } from '@aztec/constants';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
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';
|
|
7
6
|
import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree';
|
|
8
7
|
import { ProtocolContractsList } from '@aztec/protocol-contracts';
|
|
9
8
|
import { computeFeePayerBalanceLeafSlot } from '@aztec/protocol-contracts/fee-juice';
|
|
10
|
-
import { SimpleContractDataSource } from '@aztec/simulator/public/fixtures';
|
|
11
|
-
import { PublicProcessorFactory } from '@aztec/simulator/server';
|
|
12
9
|
import { PublicDataWrite } from '@aztec/stdlib/avm';
|
|
13
10
|
import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
14
11
|
import { EthAddress } from '@aztec/stdlib/block';
|
|
15
|
-
import {
|
|
16
|
-
import { makeBloatedProcessedTx } from '@aztec/stdlib/testing';
|
|
12
|
+
import { mockProcessedTx } from '@aztec/stdlib/testing';
|
|
17
13
|
import { MerkleTreeId, PublicDataTreeLeaf } from '@aztec/stdlib/trees';
|
|
18
14
|
import { TreeSnapshots } from '@aztec/stdlib/tx';
|
|
19
15
|
import { NativeWorldStateService } from '@aztec/world-state/native';
|
|
20
16
|
import { promises as fs } from 'fs';
|
|
21
|
-
import {
|
|
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, makeCheckpointConstants, makeGlobals
|
|
22
|
+
import { getEnvironmentConfig, getSimulator, makeCheckpointConstants, makeGlobals } from './fixtures.js';
|
|
27
23
|
export class TestContext {
|
|
28
24
|
worldState;
|
|
29
|
-
firstCheckpointNumber;
|
|
30
|
-
globalVariables;
|
|
31
25
|
prover;
|
|
32
26
|
broker;
|
|
33
27
|
brokerProverFacade;
|
|
34
28
|
orchestrator;
|
|
35
|
-
blockNumber;
|
|
36
29
|
feePayer;
|
|
37
30
|
directoriesToCleanup;
|
|
38
31
|
logger;
|
|
39
32
|
headers;
|
|
33
|
+
checkpoints;
|
|
34
|
+
checkpointOutHashes;
|
|
35
|
+
nextCheckpointIndex;
|
|
36
|
+
nextCheckpointNumber;
|
|
37
|
+
nextBlockNumber;
|
|
38
|
+
epochNumber;
|
|
40
39
|
feePayerBalance;
|
|
41
|
-
constructor(worldState,
|
|
40
|
+
constructor(worldState, prover, broker, brokerProverFacade, orchestrator, feePayer, initialFeePayerBalance, directoriesToCleanup, logger){
|
|
42
41
|
this.worldState = worldState;
|
|
43
|
-
this.firstCheckpointNumber = firstCheckpointNumber;
|
|
44
|
-
this.globalVariables = globalVariables;
|
|
45
42
|
this.prover = prover;
|
|
46
43
|
this.broker = broker;
|
|
47
44
|
this.brokerProverFacade = brokerProverFacade;
|
|
48
45
|
this.orchestrator = orchestrator;
|
|
49
|
-
this.blockNumber = blockNumber;
|
|
50
46
|
this.feePayer = feePayer;
|
|
51
47
|
this.directoriesToCleanup = directoriesToCleanup;
|
|
52
48
|
this.logger = logger;
|
|
53
49
|
this.headers = new Map();
|
|
50
|
+
this.checkpoints = [];
|
|
51
|
+
this.checkpointOutHashes = [];
|
|
52
|
+
this.nextCheckpointIndex = 0;
|
|
53
|
+
this.nextCheckpointNumber = CheckpointNumber(1);
|
|
54
|
+
this.nextBlockNumber = 1;
|
|
55
|
+
this.epochNumber = 1;
|
|
54
56
|
this.feePayerBalance = initialFeePayerBalance;
|
|
55
57
|
}
|
|
56
58
|
get epochProver() {
|
|
57
59
|
return this.orchestrator;
|
|
58
60
|
}
|
|
59
|
-
|
|
60
|
-
return makeCheckpointConstants(this.firstCheckpointNumber.toNumber() + checkpointIndex);
|
|
61
|
-
}
|
|
62
|
-
static async new(logger, { proverCount = 4, createProver = async (bbConfig)=>new TestCircuitProver(await getSimulator(bbConfig, logger)), slotNumber = 1, blockNumber = 1 } = {}) {
|
|
61
|
+
static async new(logger, { proverCount = 4, createProver = async (bbConfig)=>new TestCircuitProver(await getSimulator(bbConfig, logger)) } = {}) {
|
|
63
62
|
const directoriesToCleanup = [];
|
|
64
|
-
const firstCheckpointNumber = new Fr(slotNumber);
|
|
65
|
-
const globalVariables = makeGlobals(blockNumber, slotNumber);
|
|
66
63
|
const feePayer = AztecAddress.fromNumber(42222);
|
|
67
64
|
const initialFeePayerBalance = new Fr(10n ** 20n);
|
|
68
65
|
const feePayerSlot = await computeFeePayerBalanceLeafSlot(feePayer);
|
|
@@ -95,17 +92,11 @@ export class TestContext {
|
|
|
95
92
|
const orchestrator = new TestProvingOrchestrator(ws, facade, EthAddress.ZERO);
|
|
96
93
|
await broker.start();
|
|
97
94
|
facade.start();
|
|
98
|
-
return new this(ws,
|
|
95
|
+
return new this(ws, localProver, broker, facade, orchestrator, feePayer, initialFeePayerBalance, directoriesToCleanup, logger);
|
|
99
96
|
}
|
|
100
97
|
getFork() {
|
|
101
98
|
return this.worldState.fork();
|
|
102
99
|
}
|
|
103
|
-
getBlockHeader(blockNumber = 0) {
|
|
104
|
-
return blockNumber === 0 ? this.worldState.getCommitted().getInitialHeader() : this.headers.get(blockNumber);
|
|
105
|
-
}
|
|
106
|
-
getPreviousBlockHeader(currentBlockNumber = this.blockNumber) {
|
|
107
|
-
return this.getBlockHeader(currentBlockNumber - 1);
|
|
108
|
-
}
|
|
109
100
|
async cleanup() {
|
|
110
101
|
await this.brokerProverFacade.stop();
|
|
111
102
|
await this.broker.stop();
|
|
@@ -121,125 +112,134 @@ export class TestContext {
|
|
|
121
112
|
}
|
|
122
113
|
}
|
|
123
114
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
header,
|
|
130
|
-
vkTreeRoot: getVKTreeRoot(),
|
|
131
|
-
protocolContracts: ProtocolContractsList,
|
|
132
|
-
globalVariables,
|
|
133
|
-
feePayer: this.feePayer,
|
|
134
|
-
...opts
|
|
135
|
-
});
|
|
136
|
-
this.feePayerBalance = new Fr(this.feePayerBalance.toBigInt() - tx.txEffect.transactionFee.toBigInt());
|
|
137
|
-
if (opts?.privateOnly) {
|
|
138
|
-
const feePayerSlot = await computeFeePayerBalanceLeafSlot(this.feePayer);
|
|
139
|
-
tx.txEffect.publicDataWrites[0] = new PublicDataWrite(feePayerSlot, this.feePayerBalance);
|
|
140
|
-
}
|
|
141
|
-
return tx;
|
|
115
|
+
startNewEpoch() {
|
|
116
|
+
this.checkpoints = [];
|
|
117
|
+
this.checkpointOutHashes = [];
|
|
118
|
+
this.nextCheckpointIndex = 0;
|
|
119
|
+
this.epochNumber++;
|
|
142
120
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const blockNum = globalVariables.blockNumber;
|
|
147
|
-
const db = await this.worldState.fork();
|
|
148
|
-
const l1ToL2Messages = times(numL1ToL2Messages, (i)=>new Fr(blockNum * 100 + i));
|
|
149
|
-
const merkleTrees = await this.worldState.fork();
|
|
150
|
-
await merkleTrees.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP));
|
|
151
|
-
const newL1ToL2Snapshot = await getTreeSnapshot(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, merkleTrees);
|
|
152
|
-
const txs = await timesParallel(numTxs, (i)=>this.makeProcessedTx({
|
|
153
|
-
seed: i + blockNum * 1000,
|
|
154
|
-
globalVariables,
|
|
155
|
-
newL1ToL2Snapshot,
|
|
156
|
-
...makeProcessedTxOpts(i)
|
|
157
|
-
}));
|
|
158
|
-
await this.setTreeRoots(txs);
|
|
159
|
-
const block = await buildBlockWithCleanDB(txs, globalVariables, l1ToL2Messages, db);
|
|
160
|
-
this.headers.set(blockNum, block.getBlockHeader());
|
|
161
|
-
await this.worldState.handleL2BlockAndMessages(block, l1ToL2Messages);
|
|
162
|
-
return {
|
|
163
|
-
block,
|
|
164
|
-
txs,
|
|
165
|
-
l1ToL2Messages
|
|
166
|
-
};
|
|
121
|
+
// Return blob fields of all checkpoints in the epoch.
|
|
122
|
+
getBlobFields() {
|
|
123
|
+
return this.checkpoints.map((checkpoint)=>checkpoint.toBlobFields());
|
|
167
124
|
}
|
|
168
|
-
async
|
|
169
|
-
const
|
|
125
|
+
async getFinalBlobChallenges() {
|
|
126
|
+
const blobFields = this.getBlobFields();
|
|
127
|
+
return await buildFinalBlobChallenges(blobFields);
|
|
128
|
+
}
|
|
129
|
+
async makeCheckpoint(numBlocks, { numTxsPerBlock = 0, numL1ToL2Messages = 0, makeProcessedTxOpts = ()=>({}), ...constantOpts } = {}) {
|
|
130
|
+
if (numBlocks === 0) {
|
|
131
|
+
throw new Error('Cannot make a checkpoint with 0 blocks. Crate an empty block (numTxsPerBlock = 0) if there are no txs.');
|
|
132
|
+
}
|
|
133
|
+
const checkpointIndex = this.nextCheckpointIndex++;
|
|
134
|
+
const checkpointNumber = this.nextCheckpointNumber;
|
|
135
|
+
this.nextCheckpointNumber++;
|
|
136
|
+
const slotNumber = checkpointNumber * 15; // times an arbitrary number to make it different to the checkpoint number
|
|
137
|
+
const constants = makeCheckpointConstants(slotNumber, constantOpts);
|
|
138
|
+
const fork = await this.worldState.fork();
|
|
139
|
+
// Build l1 to l2 messages.
|
|
170
140
|
const l1ToL2Messages = times(numL1ToL2Messages, (i)=>new Fr(slotNumber * 100 + i));
|
|
171
|
-
|
|
172
|
-
await
|
|
173
|
-
const
|
|
174
|
-
const
|
|
141
|
+
await fork.appendLeaves(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, padArrayEnd(l1ToL2Messages, Fr.ZERO, NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP));
|
|
142
|
+
const newL1ToL2Snapshot = await getTreeSnapshot(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, fork);
|
|
143
|
+
const startBlockNumber = this.nextBlockNumber;
|
|
144
|
+
const previousBlockHeader = this.getBlockHeader(BlockNumber(startBlockNumber - 1));
|
|
145
|
+
// All blocks in the same slot/checkpoint share the same timestamp.
|
|
146
|
+
const timestamp = BigInt(slotNumber * 26);
|
|
147
|
+
// Build global variables.
|
|
148
|
+
const blockGlobalVariables = times(numBlocks, (i)=>makeGlobals(startBlockNumber + i, slotNumber, {
|
|
149
|
+
coinbase: constants.coinbase,
|
|
150
|
+
feeRecipient: constants.feeRecipient,
|
|
151
|
+
gasFees: constants.gasFees,
|
|
152
|
+
timestamp
|
|
153
|
+
}));
|
|
154
|
+
this.nextBlockNumber += numBlocks;
|
|
155
|
+
// Build txs.
|
|
175
156
|
let totalTxs = 0;
|
|
176
|
-
const
|
|
157
|
+
const blockEndStates = [];
|
|
158
|
+
const blockTxs = await timesAsync(numBlocks, async (blockIndex)=>{
|
|
177
159
|
const txIndexOffset = totalTxs;
|
|
178
160
|
const numTxs = typeof numTxsPerBlock === 'number' ? numTxsPerBlock : numTxsPerBlock[blockIndex];
|
|
179
161
|
totalTxs += numTxs;
|
|
180
|
-
|
|
181
|
-
seed: (txIndexOffset + txIndex + 1) * 321 + (checkpointIndex + 1) * 123456,
|
|
162
|
+
const txs = await timesAsync(numTxs, (txIndex)=>this.makeProcessedTx({
|
|
163
|
+
seed: (txIndexOffset + txIndex + 1) * 321 + (checkpointIndex + 1) * 123456 + this.epochNumber * 0x99999,
|
|
182
164
|
globalVariables: blockGlobalVariables[blockIndex],
|
|
183
|
-
|
|
165
|
+
anchorBlockHeader: previousBlockHeader,
|
|
184
166
|
newL1ToL2Snapshot,
|
|
185
167
|
...makeProcessedTxOpts(blockGlobalVariables[blockIndex], txIndexOffset + txIndex)
|
|
186
168
|
}));
|
|
169
|
+
// Insert side effects into the trees.
|
|
170
|
+
const endState = await this.updateTrees(txs, fork);
|
|
171
|
+
blockEndStates.push(endState);
|
|
172
|
+
return txs;
|
|
187
173
|
});
|
|
188
|
-
const
|
|
189
|
-
const
|
|
174
|
+
const cleanFork = await this.worldState.fork();
|
|
175
|
+
const previousCheckpointOutHashes = this.checkpointOutHashes;
|
|
176
|
+
const builder = await LightweightCheckpointBuilder.startNewCheckpoint(checkpointNumber, constants, l1ToL2Messages, previousCheckpointOutHashes, cleanFork);
|
|
177
|
+
// Add tx effects to db and build block headers.
|
|
190
178
|
const blocks = [];
|
|
191
179
|
for(let i = 0; i < numBlocks; i++){
|
|
192
|
-
const isFirstBlock = i === 0;
|
|
193
|
-
const blockNumber = firstBlockNumber + i;
|
|
194
|
-
const globalVariables = blockGlobalVariables[i];
|
|
195
180
|
const txs = blockTxs[i];
|
|
196
|
-
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
const
|
|
204
|
-
await
|
|
181
|
+
const state = blockEndStates[i];
|
|
182
|
+
const block = await builder.addBlock(blockGlobalVariables[i], txs, {
|
|
183
|
+
expectedEndState: state,
|
|
184
|
+
insertTxsEffects: true
|
|
185
|
+
});
|
|
186
|
+
const header = block.header;
|
|
187
|
+
this.headers.set(block.number, header);
|
|
188
|
+
const blockMsgs = block.indexWithinCheckpoint === 0 ? l1ToL2Messages : [];
|
|
189
|
+
await this.worldState.handleL2BlockAndMessages(block, blockMsgs);
|
|
205
190
|
blocks.push({
|
|
206
191
|
header,
|
|
207
192
|
txs
|
|
208
193
|
});
|
|
209
194
|
}
|
|
195
|
+
const checkpoint = await builder.completeCheckpoint();
|
|
196
|
+
this.checkpoints.push(checkpoint);
|
|
197
|
+
this.checkpointOutHashes.push(checkpoint.getCheckpointOutHash());
|
|
210
198
|
return {
|
|
199
|
+
constants,
|
|
200
|
+
header: checkpoint.header,
|
|
211
201
|
blocks,
|
|
212
202
|
l1ToL2Messages,
|
|
213
|
-
|
|
203
|
+
previousBlockHeader
|
|
214
204
|
};
|
|
215
205
|
}
|
|
216
|
-
async
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
skipFeeEnforcement: false,
|
|
223
|
-
clientInitiatedSimulation: false
|
|
224
|
-
});
|
|
225
|
-
return await publicProcessor.process(txs, {
|
|
226
|
-
maxTransactions
|
|
206
|
+
async makeProcessedTx(opts = {}) {
|
|
207
|
+
const tx = await mockProcessedTx({
|
|
208
|
+
vkTreeRoot: getVKTreeRoot(),
|
|
209
|
+
protocolContracts: ProtocolContractsList,
|
|
210
|
+
feePayer: this.feePayer,
|
|
211
|
+
...opts
|
|
227
212
|
});
|
|
213
|
+
this.feePayerBalance = new Fr(this.feePayerBalance.toBigInt() - tx.txEffect.transactionFee.toBigInt());
|
|
214
|
+
const feePayerSlot = await computeFeePayerBalanceLeafSlot(this.feePayer);
|
|
215
|
+
const feePaymentPublicDataWrite = new PublicDataWrite(feePayerSlot, this.feePayerBalance);
|
|
216
|
+
tx.txEffect.publicDataWrites[0] = feePaymentPublicDataWrite;
|
|
217
|
+
if (tx.avmProvingRequest) {
|
|
218
|
+
tx.avmProvingRequest.inputs.publicInputs.accumulatedData.publicDataWrites[0] = feePaymentPublicDataWrite;
|
|
219
|
+
}
|
|
220
|
+
return tx;
|
|
221
|
+
}
|
|
222
|
+
getBlockHeader(blockNumber) {
|
|
223
|
+
if (Number(blockNumber) > 0 && Number(blockNumber) >= this.nextBlockNumber) {
|
|
224
|
+
throw new Error(`Block header not built for block number ${blockNumber}.`);
|
|
225
|
+
}
|
|
226
|
+
return Number(blockNumber) === 0 ? this.worldState.getCommitted().getInitialHeader() : this.headers.get(Number(blockNumber));
|
|
228
227
|
}
|
|
229
|
-
async
|
|
230
|
-
|
|
228
|
+
async updateTrees(txs, fork) {
|
|
229
|
+
let startStateReference = await fork.getStateReference();
|
|
230
|
+
let endStateReference = startStateReference;
|
|
231
231
|
for (const tx of txs){
|
|
232
|
-
|
|
233
|
-
await
|
|
234
|
-
tx
|
|
235
|
-
]);
|
|
236
|
-
const endStateReference = await db.getStateReference();
|
|
232
|
+
await insertSideEffects(tx, fork);
|
|
233
|
+
endStateReference = await fork.getStateReference();
|
|
237
234
|
if (tx.avmProvingRequest) {
|
|
235
|
+
// Update the trees in the avm public inputs so that the proof won't fail.
|
|
238
236
|
const l1ToL2MessageTree = tx.avmProvingRequest.inputs.publicInputs.startTreeSnapshots.l1ToL2MessageTree;
|
|
239
237
|
tx.avmProvingRequest.inputs.publicInputs.startTreeSnapshots = new TreeSnapshots(l1ToL2MessageTree, startStateReference.partial.noteHashTree, startStateReference.partial.nullifierTree, startStateReference.partial.publicDataTree);
|
|
240
238
|
tx.avmProvingRequest.inputs.publicInputs.endTreeSnapshots = new TreeSnapshots(l1ToL2MessageTree, endStateReference.partial.noteHashTree, endStateReference.partial.nullifierTree, endStateReference.partial.publicDataTree);
|
|
241
239
|
}
|
|
240
|
+
startStateReference = endStateReference;
|
|
242
241
|
}
|
|
242
|
+
return endStateReference;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
class TestProvingOrchestrator extends ProvingOrchestrator {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BatchedBlobAccumulator, SpongeBlob } from '@aztec/blob-lib';
|
|
2
|
-
import { Fr } from '@aztec/foundation/
|
|
3
|
-
import { type Bufferable
|
|
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 { Body
|
|
5
|
+
import { Body } from '@aztec/stdlib/block';
|
|
6
6
|
import type { MerkleTreeWriteOperations, PublicInputsAndRecursiveProof } from '@aztec/stdlib/interfaces/server';
|
|
7
7
|
import { ProofData, RecursiveProof } from '@aztec/stdlib/proofs';
|
|
8
8
|
import { BlockRollupPublicInputs, PrivateBaseRollupHints, PublicBaseRollupHints, PublicChonkVerifierPrivateInputs } from '@aztec/stdlib/rollup';
|
|
9
9
|
import { AppendOnlyTreeSnapshot, MerkleTreeId } from '@aztec/stdlib/trees';
|
|
10
|
-
import { BlockHeader, GlobalVariables, PartialStateReference, type ProcessedTx, Tx } from '@aztec/stdlib/tx';
|
|
10
|
+
import { BlockHeader, GlobalVariables, PartialStateReference, type ProcessedTx, StateReference, Tx } from '@aztec/stdlib/tx';
|
|
11
11
|
import type { MerkleTreeReadOperations } from '@aztec/world-state';
|
|
12
12
|
/**
|
|
13
13
|
* Type representing the names of the trees for the base rollup.
|
|
@@ -17,36 +17,34 @@ type BaseTreeNames = 'NoteHashTree' | 'ContractTree' | 'NullifierTree' | 'Public
|
|
|
17
17
|
* Type representing the names of the trees.
|
|
18
18
|
*/
|
|
19
19
|
export type TreeNames = BaseTreeNames | 'L1ToL2MessageTree' | 'Archive';
|
|
20
|
-
export declare const insertSideEffectsAndBuildBaseRollupHints: (tx: ProcessedTx, lastArchive: AppendOnlyTreeSnapshot, newL1ToL2MessageTreeSnapshot: AppendOnlyTreeSnapshot, startSpongeBlob: SpongeBlob, proverId: Fr, db: MerkleTreeWriteOperations) => Promise<
|
|
21
|
-
export declare
|
|
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>;
|
|
24
|
+
}>;
|
|
25
|
+
export declare function getChonkProofFromTx(tx: Tx | ProcessedTx): RecursiveProof<1963>;
|
|
22
26
|
export declare function getPublicChonkVerifierPrivateInputsFromTx(tx: Tx | ProcessedTx, proverId: Fr): PublicChonkVerifierPrivateInputs;
|
|
23
27
|
export declare const buildBlobHints: (blobFields: Fr[]) => {
|
|
24
|
-
blobCommitments: import("@aztec/foundation/
|
|
28
|
+
blobCommitments: import("@aztec/foundation/curves/bls12").BLS12Point[];
|
|
25
29
|
blobs: import("@aztec/blob-lib").Blob[];
|
|
26
30
|
blobsHash: Fr;
|
|
27
31
|
};
|
|
28
|
-
export declare const buildBlobDataFromTxs: (txsPerCheckpoint: ProcessedTx[][]) => Promise<{
|
|
29
|
-
blobFieldsLengths: number[];
|
|
30
|
-
finalBlobChallenges: import("@aztec/blob-lib").FinalBlobBatchingChallenges;
|
|
31
|
-
}>;
|
|
32
32
|
export declare const buildFinalBlobChallenges: (blobFieldsPerCheckpoint: Fr[][]) => Promise<import("@aztec/blob-lib").FinalBlobBatchingChallenges>;
|
|
33
33
|
export declare const accumulateBlobs: (blobFields: Fr[], startBlobAccumulator: BatchedBlobAccumulator) => Promise<BatchedBlobAccumulator>;
|
|
34
34
|
export declare const buildHeaderFromCircuitOutputs: (blockRootRollupOutput: BlockRollupPublicInputs) => Promise<BlockHeader>;
|
|
35
|
-
export declare const buildHeaderAndBodyFromTxs: (txs: ProcessedTx[],
|
|
36
|
-
header:
|
|
35
|
+
export declare const buildHeaderAndBodyFromTxs: (txs: ProcessedTx[], lastArchive: AppendOnlyTreeSnapshot, endState: StateReference, globalVariables: GlobalVariables, startSpongeBlob: SpongeBlob, isFirstBlock: boolean) => Promise<{
|
|
36
|
+
header: BlockHeader;
|
|
37
37
|
body: Body;
|
|
38
|
+
blockBlobFields: Fr[];
|
|
38
39
|
}>;
|
|
39
|
-
export declare
|
|
40
|
-
/** Computes the inHash for a block's ContentCommitment given its l1 to l2 messages. */
|
|
41
|
-
export declare function computeInHashFromL1ToL2Messages(unpaddedL1ToL2Messages: Fr[]): Promise<Fr>;
|
|
42
|
-
export declare function getLastSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<Tuple<Fr, {
|
|
40
|
+
export declare function getLastSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<import("@aztec/foundation/serialize").Tuple<Fr, {
|
|
43
41
|
readonly 1: 42;
|
|
44
42
|
readonly 4: 30;
|
|
45
43
|
readonly 3: 36;
|
|
46
44
|
readonly 0: 42;
|
|
47
45
|
readonly 2: 40;
|
|
48
46
|
}[TID]>>;
|
|
49
|
-
export declare function getRootTreeSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<Tuple<Fr, {
|
|
47
|
+
export declare function getRootTreeSiblingPath<TID extends MerkleTreeId>(treeId: TID, db: MerkleTreeReadOperations): Promise<import("@aztec/foundation/serialize").Tuple<Fr, {
|
|
50
48
|
readonly 1: 42;
|
|
51
49
|
readonly 4: 30;
|
|
52
50
|
readonly 3: 36;
|
|
@@ -61,4 +59,4 @@ export declare function validatePartialState(partialState: PartialStateReference
|
|
|
61
59
|
export declare function validateTx(tx: ProcessedTx): void;
|
|
62
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>;
|
|
63
61
|
export {};
|
|
64
|
-
//# sourceMappingURL=
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stYnVpbGRpbmctaGVscGVycy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL29yY2hlc3RyYXRvci9ibG9jay1idWlsZGluZy1oZWxwZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxzQkFBc0IsRUFDdEIsVUFBVSxFQUtYLE1BQU0saUJBQWlCLENBQUM7QUFpQnpCLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUNwRCxPQUFPLEVBQUUsS0FBSyxVQUFVLEVBQWdDLE1BQU0sNkJBQTZCLENBQUM7QUFDNUYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFJNUQsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLHFCQUFxQix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jtBQUVELHdCQUFnQixvQkFBb0IsQ0FDbEMsWUFBWSxFQUFFLHFCQUFxQixFQUNuQyxhQUFhLEVBQUUsR0FBRyxDQUFDLFlBQVksRUFBRSxzQkFBc0IsQ0FBQyxRQVN6RDtBQXFCRCx3QkFBZ0IsVUFBVSxDQUFDLEVBQUUsRUFBRSxXQUFXLFFBY3pDO0FBRUQsd0JBQWdCLFdBQVcsQ0FBQyxDQUFDLFNBQVMsVUFBVSxFQUFFLFlBQVksU0FBUyxNQUFNLEVBQzNFLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxlQUFlLEVBQUUsRUFBRSw2QkFBNkIsQ0FBQyxDQUFDLEVBQUUsWUFBWSxDQUFDLEVBQ2xGLE9BQU8sQ0FBQyxFQUFFLE1BQU0sOEJBS2pCIn0=
|
|
@@ -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,sBA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