@aztec/end-to-end 3.0.0-nightly.20251026 → 3.0.0-nightly.20251030-2
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/bench/client_flows/benchmark.js +2 -2
- package/dest/bench/client_flows/data_extractor.js +3 -3
- package/dest/e2e_l1_publisher/write_json.d.ts.map +1 -1
- package/dest/e2e_l1_publisher/write_json.js +2 -2
- package/dest/fixtures/get_bb_config.js +1 -1
- package/package.json +37 -37
- package/src/bench/client_flows/benchmark.ts +2 -2
- package/src/bench/client_flows/data_extractor.ts +3 -3
- package/src/e2e_l1_publisher/write_json.ts +2 -2
- package/src/fixtures/get_bb_config.ts +1 -1
|
@@ -234,13 +234,13 @@ export async function captureProfile(label, interaction, opts, expectedSteps) {
|
|
|
234
234
|
const benchmark = generateBenchmark(label, logs, result.stats, result.executionSteps, 'wasm', undefined);
|
|
235
235
|
const ivcFolder = process.env.CAPTURE_IVC_FOLDER;
|
|
236
236
|
if (ivcFolder) {
|
|
237
|
-
logger.info(`Capturing
|
|
237
|
+
logger.info(`Capturing chonk execution profile for ${label}`);
|
|
238
238
|
const resultsDirectory = join(ivcFolder, label);
|
|
239
239
|
logger.info(`Writing private execution steps to ${resultsDirectory}`);
|
|
240
240
|
await mkdir(resultsDirectory, {
|
|
241
241
|
recursive: true
|
|
242
242
|
});
|
|
243
|
-
// Write the
|
|
243
|
+
// Write the chonk files read by the prover.
|
|
244
244
|
const ivcInputsPath = join(resultsDirectory, 'ivc-inputs.msgpack');
|
|
245
245
|
await writeFile(ivcInputsPath, serializePrivateExecutionSteps(result.executionSteps));
|
|
246
246
|
await writeFile(join(resultsDirectory, 'logs.json'), JSON.stringify(logs, null, 2));
|
|
@@ -40,7 +40,7 @@ async function main() {
|
|
|
40
40
|
bbBinaryPath: process.env.BB_BINARY_PATH,
|
|
41
41
|
bbWorkingDirectory: process.env.BB_WORKING_DIRECTORY
|
|
42
42
|
}, proxyLogger.createLogger('bb:prover'));
|
|
43
|
-
const userLog = createLogger('
|
|
43
|
+
const userLog = createLogger('chonk_flows:data_processor');
|
|
44
44
|
for (const flow of flows){
|
|
45
45
|
userLog.info(`Processing flow ${flow}`);
|
|
46
46
|
const ivcInputs = await readFile(join(ivcFolder, flow, 'ivc-inputs.msgpack'));
|
|
@@ -73,10 +73,10 @@ async function main() {
|
|
|
73
73
|
let provingTime;
|
|
74
74
|
try {
|
|
75
75
|
const provingTimer = new Timer();
|
|
76
|
-
await prover.
|
|
76
|
+
await prover.createChonkProof(privateExecutionSteps);
|
|
77
77
|
provingTime = provingTimer.ms();
|
|
78
78
|
} catch (e) {
|
|
79
|
-
userLog.error(`Failed to generate
|
|
79
|
+
userLog.error(`Failed to generate chonk proof for ${flow}`, e);
|
|
80
80
|
error = e.message;
|
|
81
81
|
}
|
|
82
82
|
// Extract logs from this run from the proxy and write them to disk unconditionally
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write_json.d.ts","sourceRoot":"","sources":["../../src/e2e_l1_publisher/write_json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"write_json.d.ts","sourceRoot":"","sources":["../../src/e2e_l1_publisher/write_json.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,IAAI,EAAiC,MAAM,iBAAiB,CAAC;AAOnF;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,EAAE,EAAE,EACnB,KAAK,EAAE,IAAI,EAAE,EACb,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,YAAY,EAC9B,eAAe,EAAE,KAAK,MAAM,EAAE,GAC7B,OAAO,CAAC,IAAI,CAAC,CAqDf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPrefixedEthBlobCommitments } from '@aztec/blob-lib';
|
|
2
2
|
import { writeFile } from 'fs/promises';
|
|
3
3
|
const AZTEC_GENERATE_TEST_DATA = !!process.env.AZTEC_GENERATE_TEST_DATA;
|
|
4
4
|
/**
|
|
@@ -27,7 +27,7 @@ const AZTEC_GENERATE_TEST_DATA = !!process.env.AZTEC_GENERATE_TEST_DATA;
|
|
|
27
27
|
// The json formatting in forge is a bit brittle, so we convert Fr to a number in the few values below.
|
|
28
28
|
// This should not be a problem for testing as long as the values are not larger than u32.
|
|
29
29
|
archive: asHex(block.archive.root),
|
|
30
|
-
blobCommitments:
|
|
30
|
+
blobCommitments: getPrefixedEthBlobCommitments(blobs),
|
|
31
31
|
batchedBlobInputs: batchedBlob.getEthBlobEvaluationInputs(),
|
|
32
32
|
blockNumber: block.number,
|
|
33
33
|
body: `0x${block.body.toBuffer().toString('hex')}`,
|
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from 'url';
|
|
|
6
6
|
const { BB_RELEASE_DIR = 'barretenberg/cpp/build/bin', BB_BINARY_PATH, BB_SKIP_CLEANUP = '', TEMP_DIR = tmpdir(), BB_WORKING_DIRECTORY = '', BB_NUM_IVC_VERIFIERS = '1', BB_IVC_CONCURRENCY = '1' } = process.env;
|
|
7
7
|
export const getBBConfig = async (logger)=>{
|
|
8
8
|
try {
|
|
9
|
-
const bbBinaryPath = BB_BINARY_PATH ?? path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../', BB_RELEASE_DIR, 'bb');
|
|
9
|
+
const bbBinaryPath = BB_BINARY_PATH ?? path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../', BB_RELEASE_DIR, 'bb-avm');
|
|
10
10
|
await fs.access(bbBinaryPath, fs.constants.R_OK);
|
|
11
11
|
let bbWorkingDirectory;
|
|
12
12
|
let directoryToCleanup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/end-to-end",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251030-2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"inherits": [
|
|
@@ -25,42 +25,42 @@
|
|
|
25
25
|
"formatting": "run -T prettier --check ./src && run -T eslint ./src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aztec/accounts": "3.0.0-nightly.
|
|
29
|
-
"@aztec/archiver": "3.0.0-nightly.
|
|
30
|
-
"@aztec/aztec": "3.0.0-nightly.
|
|
31
|
-
"@aztec/aztec-node": "3.0.0-nightly.
|
|
32
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
33
|
-
"@aztec/bb-prover": "3.0.0-nightly.
|
|
34
|
-
"@aztec/blob-lib": "3.0.0-nightly.
|
|
35
|
-
"@aztec/blob-sink": "3.0.0-nightly.
|
|
36
|
-
"@aztec/bot": "3.0.0-nightly.
|
|
37
|
-
"@aztec/cli": "3.0.0-nightly.
|
|
38
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
39
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
40
|
-
"@aztec/epoch-cache": "3.0.0-nightly.
|
|
41
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
42
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
43
|
-
"@aztec/kv-store": "3.0.0-nightly.
|
|
44
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
45
|
-
"@aztec/merkle-tree": "3.0.0-nightly.
|
|
46
|
-
"@aztec/node-keystore": "3.0.0-nightly.
|
|
47
|
-
"@aztec/noir-contracts.js": "3.0.0-nightly.
|
|
48
|
-
"@aztec/noir-noirc_abi": "3.0.0-nightly.
|
|
49
|
-
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.
|
|
50
|
-
"@aztec/noir-test-contracts.js": "3.0.0-nightly.
|
|
51
|
-
"@aztec/p2p": "3.0.0-nightly.
|
|
52
|
-
"@aztec/protocol-contracts": "3.0.0-nightly.
|
|
53
|
-
"@aztec/prover-client": "3.0.0-nightly.
|
|
54
|
-
"@aztec/prover-node": "3.0.0-nightly.
|
|
55
|
-
"@aztec/pxe": "3.0.0-nightly.
|
|
56
|
-
"@aztec/sequencer-client": "3.0.0-nightly.
|
|
57
|
-
"@aztec/simulator": "3.0.0-nightly.
|
|
58
|
-
"@aztec/slasher": "3.0.0-nightly.
|
|
59
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
60
|
-
"@aztec/telemetry-client": "3.0.0-nightly.
|
|
61
|
-
"@aztec/test-wallet": "3.0.0-nightly.
|
|
62
|
-
"@aztec/validator-client": "3.0.0-nightly.
|
|
63
|
-
"@aztec/world-state": "3.0.0-nightly.
|
|
28
|
+
"@aztec/accounts": "3.0.0-nightly.20251030-2",
|
|
29
|
+
"@aztec/archiver": "3.0.0-nightly.20251030-2",
|
|
30
|
+
"@aztec/aztec": "3.0.0-nightly.20251030-2",
|
|
31
|
+
"@aztec/aztec-node": "3.0.0-nightly.20251030-2",
|
|
32
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251030-2",
|
|
33
|
+
"@aztec/bb-prover": "3.0.0-nightly.20251030-2",
|
|
34
|
+
"@aztec/blob-lib": "3.0.0-nightly.20251030-2",
|
|
35
|
+
"@aztec/blob-sink": "3.0.0-nightly.20251030-2",
|
|
36
|
+
"@aztec/bot": "3.0.0-nightly.20251030-2",
|
|
37
|
+
"@aztec/cli": "3.0.0-nightly.20251030-2",
|
|
38
|
+
"@aztec/constants": "3.0.0-nightly.20251030-2",
|
|
39
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251030-2",
|
|
40
|
+
"@aztec/epoch-cache": "3.0.0-nightly.20251030-2",
|
|
41
|
+
"@aztec/ethereum": "3.0.0-nightly.20251030-2",
|
|
42
|
+
"@aztec/foundation": "3.0.0-nightly.20251030-2",
|
|
43
|
+
"@aztec/kv-store": "3.0.0-nightly.20251030-2",
|
|
44
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251030-2",
|
|
45
|
+
"@aztec/merkle-tree": "3.0.0-nightly.20251030-2",
|
|
46
|
+
"@aztec/node-keystore": "3.0.0-nightly.20251030-2",
|
|
47
|
+
"@aztec/noir-contracts.js": "3.0.0-nightly.20251030-2",
|
|
48
|
+
"@aztec/noir-noirc_abi": "3.0.0-nightly.20251030-2",
|
|
49
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-nightly.20251030-2",
|
|
50
|
+
"@aztec/noir-test-contracts.js": "3.0.0-nightly.20251030-2",
|
|
51
|
+
"@aztec/p2p": "3.0.0-nightly.20251030-2",
|
|
52
|
+
"@aztec/protocol-contracts": "3.0.0-nightly.20251030-2",
|
|
53
|
+
"@aztec/prover-client": "3.0.0-nightly.20251030-2",
|
|
54
|
+
"@aztec/prover-node": "3.0.0-nightly.20251030-2",
|
|
55
|
+
"@aztec/pxe": "3.0.0-nightly.20251030-2",
|
|
56
|
+
"@aztec/sequencer-client": "3.0.0-nightly.20251030-2",
|
|
57
|
+
"@aztec/simulator": "3.0.0-nightly.20251030-2",
|
|
58
|
+
"@aztec/slasher": "3.0.0-nightly.20251030-2",
|
|
59
|
+
"@aztec/stdlib": "3.0.0-nightly.20251030-2",
|
|
60
|
+
"@aztec/telemetry-client": "3.0.0-nightly.20251030-2",
|
|
61
|
+
"@aztec/test-wallet": "3.0.0-nightly.20251030-2",
|
|
62
|
+
"@aztec/validator-client": "3.0.0-nightly.20251030-2",
|
|
63
|
+
"@aztec/world-state": "3.0.0-nightly.20251030-2",
|
|
64
64
|
"@iarna/toml": "^2.2.5",
|
|
65
65
|
"@jest/globals": "^30.0.0",
|
|
66
66
|
"@noble/curves": "=1.0.0",
|
|
@@ -315,12 +315,12 @@ export async function captureProfile(
|
|
|
315
315
|
|
|
316
316
|
const ivcFolder = process.env.CAPTURE_IVC_FOLDER;
|
|
317
317
|
if (ivcFolder) {
|
|
318
|
-
logger.info(`Capturing
|
|
318
|
+
logger.info(`Capturing chonk execution profile for ${label}`);
|
|
319
319
|
|
|
320
320
|
const resultsDirectory = join(ivcFolder, label);
|
|
321
321
|
logger.info(`Writing private execution steps to ${resultsDirectory}`);
|
|
322
322
|
await mkdir(resultsDirectory, { recursive: true });
|
|
323
|
-
// Write the
|
|
323
|
+
// Write the chonk files read by the prover.
|
|
324
324
|
const ivcInputsPath = join(resultsDirectory, 'ivc-inputs.msgpack');
|
|
325
325
|
await writeFile(ivcInputsPath, serializePrivateExecutionSteps(result.executionSteps));
|
|
326
326
|
await writeFile(join(resultsDirectory, 'logs.json'), JSON.stringify(logs, null, 2));
|
|
@@ -46,7 +46,7 @@ async function main() {
|
|
|
46
46
|
proxyLogger.createLogger('bb:prover'),
|
|
47
47
|
);
|
|
48
48
|
|
|
49
|
-
const userLog = createLogger('
|
|
49
|
+
const userLog = createLogger('chonk_flows:data_processor');
|
|
50
50
|
|
|
51
51
|
for (const flow of flows) {
|
|
52
52
|
userLog.info(`Processing flow ${flow}`);
|
|
@@ -84,10 +84,10 @@ async function main() {
|
|
|
84
84
|
let provingTime;
|
|
85
85
|
try {
|
|
86
86
|
const provingTimer = new Timer();
|
|
87
|
-
await prover.
|
|
87
|
+
await prover.createChonkProof(privateExecutionSteps);
|
|
88
88
|
provingTime = provingTimer.ms();
|
|
89
89
|
} catch (e) {
|
|
90
|
-
userLog.error(`Failed to generate
|
|
90
|
+
userLog.error(`Failed to generate chonk proof for ${flow}`, e);
|
|
91
91
|
error = (e as Error).message;
|
|
92
92
|
}
|
|
93
93
|
// Extract logs from this run from the proxy and write them to disk unconditionally
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
2
2
|
import type { L2Block } from '@aztec/aztec.js/block';
|
|
3
3
|
import { Fr } from '@aztec/aztec.js/fields';
|
|
4
|
-
import { BatchedBlob, Blob } from '@aztec/blob-lib';
|
|
4
|
+
import { BatchedBlob, Blob, getPrefixedEthBlobCommitments } from '@aztec/blob-lib';
|
|
5
5
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
6
6
|
|
|
7
7
|
import { writeFile } from 'fs/promises';
|
|
@@ -45,7 +45,7 @@ export async function writeJson(
|
|
|
45
45
|
// The json formatting in forge is a bit brittle, so we convert Fr to a number in the few values below.
|
|
46
46
|
// This should not be a problem for testing as long as the values are not larger than u32.
|
|
47
47
|
archive: asHex(block.archive.root),
|
|
48
|
-
blobCommitments:
|
|
48
|
+
blobCommitments: getPrefixedEthBlobCommitments(blobs),
|
|
49
49
|
batchedBlobInputs: batchedBlob.getEthBlobEvaluationInputs(),
|
|
50
50
|
blockNumber: block.number,
|
|
51
51
|
body: `0x${block.body.toBuffer().toString('hex')}`,
|
|
@@ -23,7 +23,7 @@ export const getBBConfig = async (
|
|
|
23
23
|
try {
|
|
24
24
|
const bbBinaryPath =
|
|
25
25
|
BB_BINARY_PATH ??
|
|
26
|
-
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../', BB_RELEASE_DIR, 'bb');
|
|
26
|
+
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../../', BB_RELEASE_DIR, 'bb-avm');
|
|
27
27
|
await fs.access(bbBinaryPath, fs.constants.R_OK);
|
|
28
28
|
|
|
29
29
|
let bbWorkingDirectory: string;
|