@aztec/cli 0.0.1-commit.b655e406 → 0.0.1-commit.d3ec352c
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/README.md +1 -1
- package/dest/cmds/aztec_node/block_number.d.ts +1 -1
- package/dest/cmds/aztec_node/get_block.d.ts +1 -1
- package/dest/cmds/aztec_node/get_block.d.ts.map +1 -1
- package/dest/cmds/aztec_node/get_block.js +2 -1
- package/dest/cmds/aztec_node/get_current_base_fee.d.ts +1 -1
- package/dest/cmds/aztec_node/get_l1_to_l2_message_witness.d.ts +1 -1
- package/dest/cmds/aztec_node/get_logs.d.ts +3 -2
- package/dest/cmds/aztec_node/get_logs.d.ts.map +1 -1
- package/dest/cmds/aztec_node/get_node_info.d.ts +1 -1
- package/dest/cmds/aztec_node/index.d.ts +1 -1
- package/dest/cmds/contracts/index.d.ts +1 -1
- package/dest/cmds/contracts/inspect_contract.d.ts +1 -1
- package/dest/cmds/contracts/inspect_contract.d.ts.map +1 -1
- package/dest/cmds/contracts/inspect_contract.js +3 -9
- package/dest/cmds/contracts/parse_parameter_struct.d.ts +1 -1
- package/dest/cmds/infrastructure/index.d.ts +1 -1
- package/dest/cmds/infrastructure/index.d.ts.map +1 -1
- package/dest/cmds/infrastructure/index.js +0 -1
- package/dest/cmds/infrastructure/sequencers.d.ts +1 -2
- package/dest/cmds/infrastructure/sequencers.d.ts.map +1 -1
- package/dest/cmds/infrastructure/setup_l2_contract.d.ts +1 -1
- package/dest/cmds/l1/advance_epoch.d.ts +1 -1
- package/dest/cmds/l1/assume_proven_through.d.ts +1 -1
- package/dest/cmds/l1/assume_proven_through.d.ts.map +1 -1
- package/dest/cmds/l1/assume_proven_through.js +2 -1
- package/dest/cmds/l1/bridge_erc20.d.ts +1 -1
- package/dest/cmds/l1/create_l1_account.d.ts +1 -1
- package/dest/cmds/l1/deploy_l1_contracts.d.ts +1 -1
- package/dest/cmds/l1/deploy_new_rollup.d.ts +1 -1
- package/dest/cmds/l1/get_l1_addresses.d.ts +1 -1
- package/dest/cmds/l1/get_l1_balance.d.ts +1 -1
- package/dest/cmds/l1/governance_utils.d.ts +5 -5
- package/dest/cmds/l1/governance_utils.d.ts.map +1 -1
- package/dest/cmds/l1/index.d.ts +1 -1
- package/dest/cmds/l1/prover_stats.d.ts +1 -1
- package/dest/cmds/l1/prover_stats.d.ts.map +1 -1
- package/dest/cmds/l1/prover_stats.js +28 -28
- package/dest/cmds/l1/trigger_seed_snapshot.d.ts +2 -2
- package/dest/cmds/l1/trigger_seed_snapshot.d.ts.map +1 -1
- package/dest/cmds/l1/update_l1_validators.d.ts +6 -6
- package/dest/cmds/l1/update_l1_validators.d.ts.map +1 -1
- package/dest/cmds/l1/update_l1_validators.js +2 -2
- package/dest/cmds/misc/compute_selector.d.ts +1 -1
- package/dest/cmds/misc/example_contracts.d.ts +1 -1
- package/dest/cmds/misc/generate_bootnode_enr.d.ts +1 -1
- package/dest/cmds/misc/generate_p2p_private_key.d.ts +1 -1
- package/dest/cmds/misc/generate_secret_and_hash.d.ts +1 -1
- package/dest/cmds/misc/generate_secret_key.d.ts +1 -1
- package/dest/cmds/misc/get_canonical_sponsored_fpc_address.d.ts +1 -1
- package/dest/cmds/misc/index.d.ts +1 -1
- package/dest/cmds/misc/update/common.d.ts +1 -1
- package/dest/cmds/misc/update/github.d.ts +1 -1
- package/dest/cmds/misc/update/noir.d.ts +1 -1
- package/dest/cmds/misc/update/npm.d.ts +1 -1
- package/dest/cmds/misc/update/npm.js +1 -1
- package/dest/cmds/misc/update/utils.d.ts +1 -1
- package/dest/cmds/misc/update.d.ts +1 -1
- package/dest/cmds/validator_keys/add.d.ts +1 -1
- package/dest/cmds/validator_keys/add.d.ts.map +1 -1
- package/dest/cmds/validator_keys/add.js +20 -7
- package/dest/cmds/validator_keys/generate_bls_keypair.d.ts +1 -1
- package/dest/cmds/validator_keys/generate_bls_keypair.d.ts.map +1 -1
- package/dest/cmds/validator_keys/generate_bls_keypair.js +2 -1
- package/dest/cmds/validator_keys/index.d.ts +1 -1
- package/dest/cmds/validator_keys/index.d.ts.map +1 -1
- package/dest/cmds/validator_keys/index.js +16 -4
- package/dest/cmds/validator_keys/new.d.ts +7 -4
- package/dest/cmds/validator_keys/new.d.ts.map +1 -1
- package/dest/cmds/validator_keys/new.js +87 -16
- package/dest/cmds/validator_keys/shared.d.ts +4 -4
- package/dest/cmds/validator_keys/shared.d.ts.map +1 -1
- package/dest/cmds/validator_keys/shared.js +29 -27
- package/dest/cmds/validator_keys/staker.d.ts +38 -0
- package/dest/cmds/validator_keys/staker.d.ts.map +1 -0
- package/dest/cmds/validator_keys/staker.js +207 -0
- package/dest/cmds/validator_keys/utils.d.ts +25 -0
- package/dest/cmds/validator_keys/utils.d.ts.map +1 -0
- package/dest/cmds/validator_keys/utils.js +52 -0
- package/dest/config/cached_fetch.d.ts +1 -1
- package/dest/config/chain_l2_config.d.ts +11 -10
- package/dest/config/chain_l2_config.d.ts.map +1 -1
- package/dest/config/chain_l2_config.js +64 -34
- package/dest/config/enrich_env.d.ts +1 -1
- package/dest/config/get_l1_config.d.ts +1 -1
- package/dest/config/index.d.ts +1 -1
- package/dest/config/network_config.d.ts +6 -3
- package/dest/config/network_config.d.ts.map +1 -1
- package/dest/config/network_config.js +58 -28
- package/dest/utils/aztec.d.ts +1 -1
- package/dest/utils/aztec.d.ts.map +1 -1
- package/dest/utils/commands.d.ts +2 -2
- package/dest/utils/commands.d.ts.map +1 -1
- package/dest/utils/encoding.d.ts +1 -1
- package/dest/utils/github.d.ts +1 -1
- package/dest/utils/index.d.ts +1 -1
- package/dest/utils/inspect.d.ts +3 -2
- package/dest/utils/inspect.d.ts.map +1 -1
- package/dest/utils/setup_contracts.d.ts +1 -1
- package/package.json +34 -29
- package/public_include_metric_prefixes.json +1 -0
- package/src/cmds/aztec_node/get_block.ts +2 -1
- package/src/cmds/aztec_node/get_logs.ts +3 -2
- package/src/cmds/contracts/inspect_contract.ts +3 -10
- package/src/cmds/infrastructure/index.ts +0 -1
- package/src/cmds/infrastructure/sequencers.ts +0 -1
- package/src/cmds/l1/assume_proven_through.ts +4 -1
- package/src/cmds/l1/prover_stats.ts +36 -29
- package/src/cmds/l1/update_l1_validators.ts +2 -2
- package/src/cmds/misc/update/npm.ts +1 -1
- package/src/cmds/validator_keys/add.ts +20 -10
- package/src/cmds/validator_keys/generate_bls_keypair.ts +2 -1
- package/src/cmds/validator_keys/index.ts +67 -21
- package/src/cmds/validator_keys/new.ts +109 -23
- package/src/cmds/validator_keys/shared.ts +30 -26
- package/src/cmds/validator_keys/staker.ts +300 -0
- package/src/cmds/validator_keys/utils.ts +80 -0
- package/src/config/chain_l2_config.ts +86 -45
- package/src/config/network_config.ts +67 -29
- package/src/utils/inspect.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/cli",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.d3ec352c",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./contracts": "./dest/cmds/contracts/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"tsconfig": "./tsconfig.json"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "yarn clean && tsc
|
|
28
|
-
"build:dev": "tsc
|
|
27
|
+
"build": "yarn clean && ../scripts/tsc.sh",
|
|
28
|
+
"build:dev": "../scripts/tsc.sh --watch",
|
|
29
29
|
"clean": "rm -rf ./dest .tsbuildinfo",
|
|
30
30
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
31
31
|
},
|
|
@@ -71,21 +71,21 @@
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@aztec/accounts": "0.0.1-commit.
|
|
75
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
76
|
-
"@aztec/aztec.js": "0.0.1-commit.
|
|
77
|
-
"@aztec/constants": "0.0.1-commit.
|
|
78
|
-
"@aztec/entrypoints": "0.0.1-commit.
|
|
79
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
80
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
81
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
82
|
-
"@aztec/node-keystore": "0.0.1-commit.
|
|
83
|
-
"@aztec/node-lib": "0.0.1-commit.
|
|
84
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
85
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
86
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
87
|
-
"@aztec/test-wallet": "0.0.1-commit.
|
|
88
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
74
|
+
"@aztec/accounts": "0.0.1-commit.d3ec352c",
|
|
75
|
+
"@aztec/archiver": "0.0.1-commit.d3ec352c",
|
|
76
|
+
"@aztec/aztec.js": "0.0.1-commit.d3ec352c",
|
|
77
|
+
"@aztec/constants": "0.0.1-commit.d3ec352c",
|
|
78
|
+
"@aztec/entrypoints": "0.0.1-commit.d3ec352c",
|
|
79
|
+
"@aztec/ethereum": "0.0.1-commit.d3ec352c",
|
|
80
|
+
"@aztec/foundation": "0.0.1-commit.d3ec352c",
|
|
81
|
+
"@aztec/l1-artifacts": "0.0.1-commit.d3ec352c",
|
|
82
|
+
"@aztec/node-keystore": "0.0.1-commit.d3ec352c",
|
|
83
|
+
"@aztec/node-lib": "0.0.1-commit.d3ec352c",
|
|
84
|
+
"@aztec/p2p": "0.0.1-commit.d3ec352c",
|
|
85
|
+
"@aztec/protocol-contracts": "0.0.1-commit.d3ec352c",
|
|
86
|
+
"@aztec/stdlib": "0.0.1-commit.d3ec352c",
|
|
87
|
+
"@aztec/test-wallet": "0.0.1-commit.d3ec352c",
|
|
88
|
+
"@aztec/world-state": "0.0.1-commit.d3ec352c",
|
|
89
89
|
"@ethersproject/wallet": "^5.8.0",
|
|
90
90
|
"@iarna/toml": "^2.2.5",
|
|
91
91
|
"@libp2p/peer-id-factory": "^3.0.4",
|
|
@@ -96,9 +96,12 @@
|
|
|
96
96
|
"semver": "^7.5.4",
|
|
97
97
|
"source-map-support": "^0.5.21",
|
|
98
98
|
"tslib": "^2.4.0",
|
|
99
|
-
"viem": "npm:@
|
|
99
|
+
"viem": "npm:@aztec/viem@2.38.2"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
+
"@aztec/aztec-node": "0.0.1-commit.d3ec352c",
|
|
103
|
+
"@aztec/kv-store": "0.0.1-commit.d3ec352c",
|
|
104
|
+
"@aztec/telemetry-client": "0.0.1-commit.d3ec352c",
|
|
102
105
|
"@jest/globals": "^30.0.0",
|
|
103
106
|
"@types/jest": "^30.0.0",
|
|
104
107
|
"@types/lodash.chunk": "^4.2.9",
|
|
@@ -107,6 +110,7 @@
|
|
|
107
110
|
"@types/node": "^22.15.17",
|
|
108
111
|
"@types/semver": "^7.5.2",
|
|
109
112
|
"@types/source-map-support": "^0.5.10",
|
|
113
|
+
"@typescript/native-preview": "7.0.0-dev.20251126.1",
|
|
110
114
|
"jest": "^30.0.0",
|
|
111
115
|
"jest-mock-extended": "^4.0.0",
|
|
112
116
|
"ts-jest": "^29.4.0",
|
|
@@ -114,20 +118,21 @@
|
|
|
114
118
|
"typescript": "^5.3.3"
|
|
115
119
|
},
|
|
116
120
|
"peerDependencies": {
|
|
117
|
-
"@aztec/accounts": "0.0.1-commit.
|
|
118
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
119
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
120
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
121
|
-
"@aztec/noir-contracts.js": "0.0.1-commit.
|
|
122
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
123
|
-
"@aztec/noir-test-contracts.js": "0.0.1-commit.
|
|
124
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
125
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
121
|
+
"@aztec/accounts": "0.0.1-commit.d3ec352c",
|
|
122
|
+
"@aztec/bb-prover": "0.0.1-commit.d3ec352c",
|
|
123
|
+
"@aztec/ethereum": "0.0.1-commit.d3ec352c",
|
|
124
|
+
"@aztec/l1-artifacts": "0.0.1-commit.d3ec352c",
|
|
125
|
+
"@aztec/noir-contracts.js": "0.0.1-commit.d3ec352c",
|
|
126
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.d3ec352c",
|
|
127
|
+
"@aztec/noir-test-contracts.js": "0.0.1-commit.d3ec352c",
|
|
128
|
+
"@aztec/protocol-contracts": "0.0.1-commit.d3ec352c",
|
|
129
|
+
"@aztec/stdlib": "0.0.1-commit.d3ec352c"
|
|
126
130
|
},
|
|
127
131
|
"files": [
|
|
128
132
|
"dest",
|
|
129
133
|
"src",
|
|
130
|
-
"!*.test.*"
|
|
134
|
+
"!*.test.*",
|
|
135
|
+
"public_include_metric_prefixes.json"
|
|
131
136
|
],
|
|
132
137
|
"types": "./dest/index.d.ts",
|
|
133
138
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aztec.validator", "aztec.tx_collector", "aztec.mempool", "aztec.p2p.gossip.agg_", "aztec.ivc_verifier.agg_"]
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
2
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
3
|
import type { LogFn } from '@aztec/foundation/log';
|
|
3
4
|
|
|
4
5
|
import { inspectBlock } from '../../utils/inspect.js';
|
|
5
6
|
|
|
6
7
|
export async function getBlock(nodeUrl: string, maybeBlockNumber: number | undefined, log: LogFn) {
|
|
7
8
|
const aztecNode = createAztecNodeClient(nodeUrl);
|
|
8
|
-
const blockNumber = maybeBlockNumber
|
|
9
|
+
const blockNumber: BlockNumber = maybeBlockNumber ? BlockNumber(maybeBlockNumber) : await aztecNode.getBlockNumber();
|
|
9
10
|
await inspectBlock(aztecNode, blockNumber, log, { showTxs: true });
|
|
10
11
|
}
|
|
@@ -2,13 +2,14 @@ import type { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
|
2
2
|
import type { LogFilter, LogId } from '@aztec/aztec.js/log';
|
|
3
3
|
import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
4
4
|
import type { TxHash } from '@aztec/aztec.js/tx';
|
|
5
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
5
6
|
import type { LogFn } from '@aztec/foundation/log';
|
|
6
7
|
import { sleep } from '@aztec/foundation/sleep';
|
|
7
8
|
|
|
8
9
|
export async function getLogs(
|
|
9
10
|
txHash: TxHash,
|
|
10
|
-
fromBlock:
|
|
11
|
-
toBlock:
|
|
11
|
+
fromBlock: BlockNumber,
|
|
12
|
+
toBlock: BlockNumber,
|
|
12
13
|
afterLog: LogId,
|
|
13
14
|
contractAddress: AztecAddress,
|
|
14
15
|
nodeUrl: string,
|
|
@@ -29,16 +29,9 @@ export async function inspectContract(contractArtifactFile: string, debugLogger:
|
|
|
29
29
|
log(`\tpublic bytecode commitment: ${contractClass.publicBytecodeCommitment.toString()}`);
|
|
30
30
|
log(`\tpublic bytecode length: ${contractClass.packedBytecode.length} bytes (${bytecodeLengthInFields} fields)`);
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
await Promise.all(externalFunctions.map(f => logFunction(f, log)));
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const internalFunctions = contractFns.filter(f => f.isInternal);
|
|
39
|
-
if (internalFunctions.length > 0) {
|
|
40
|
-
log(`\nInternal functions:`);
|
|
41
|
-
await Promise.all(internalFunctions.map(f => logFunction(f, log)));
|
|
32
|
+
if (contractFns.length > 0) {
|
|
33
|
+
log(`\nExternal contract functions:`);
|
|
34
|
+
await Promise.all(contractFns.map(f => logFunction(f, log)));
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAztecNodeClient } from '@aztec/aztec.js/node';
|
|
2
2
|
import { RollupCheatCodes } from '@aztec/ethereum/test';
|
|
3
|
+
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
3
4
|
import type { LogFn } from '@aztec/foundation/log';
|
|
4
5
|
import { DateProvider } from '@aztec/foundation/timer';
|
|
5
6
|
|
|
@@ -11,7 +12,9 @@ export async function assumeProvenThrough(
|
|
|
11
12
|
) {
|
|
12
13
|
const aztecNode = createAztecNodeClient(nodeUrl);
|
|
13
14
|
const rollupAddress = await aztecNode.getNodeInfo().then(i => i.l1ContractAddresses.rollupAddress);
|
|
14
|
-
const blockNumber = blockNumberOrLatest
|
|
15
|
+
const blockNumber: BlockNumber = blockNumberOrLatest
|
|
16
|
+
? BlockNumber(blockNumberOrLatest)
|
|
17
|
+
: await aztecNode.getBlockNumber();
|
|
15
18
|
|
|
16
19
|
const rollupCheatCodes = RollupCheatCodes.create(l1RpcUrls, { rollupAddress }, new DateProvider());
|
|
17
20
|
|
|
@@ -55,33 +55,40 @@ export async function proverStats(opts: {
|
|
|
55
55
|
|
|
56
56
|
// If we only care for raw logs, output them
|
|
57
57
|
if (rawLogs && !provingTimeout) {
|
|
58
|
-
log(`l1_block_number,
|
|
58
|
+
log(`l1_block_number, checkpoint_number, prover_id, tx_hash`);
|
|
59
59
|
for (const event of events) {
|
|
60
|
-
const { l1BlockNumber,
|
|
61
|
-
log(`${l1BlockNumber}, ${
|
|
60
|
+
const { l1BlockNumber, checkpointNumber, proverId, txHash } = event;
|
|
61
|
+
log(`${l1BlockNumber}, ${checkpointNumber}, ${proverId}, ${txHash}`);
|
|
62
62
|
}
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// If we don't have a proving timeout, we can just count the number of unique
|
|
66
|
+
// If we don't have a proving timeout, we can just count the number of unique checkpoints per prover
|
|
67
67
|
if (!provingTimeout) {
|
|
68
68
|
const stats = groupBy(events, 'proverId');
|
|
69
|
-
log(`prover_id,
|
|
69
|
+
log(`prover_id, total_checkpoints_proven`);
|
|
70
70
|
for (const proverId in stats) {
|
|
71
|
-
const
|
|
72
|
-
log(`${proverId}, ${
|
|
71
|
+
const uniqueCheckpoints = new Set(stats[proverId].map(e => e.checkpointNumber));
|
|
72
|
+
log(`${proverId}, ${uniqueCheckpoints.size}`);
|
|
73
73
|
}
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
// But if we do, fetch the events for each
|
|
78
|
-
const
|
|
77
|
+
// But if we do, fetch the events for each checkpoint submitted, so we can look up their timestamp
|
|
78
|
+
const checkpointEvents = await getCheckpointProposedEvents(
|
|
79
|
+
startBlock,
|
|
80
|
+
lastBlockNum,
|
|
81
|
+
batchSize,
|
|
82
|
+
debugLog,
|
|
83
|
+
publicClient,
|
|
84
|
+
rollup,
|
|
85
|
+
);
|
|
79
86
|
debugLog.verbose(
|
|
80
|
-
`First
|
|
87
|
+
`First checkpoint within range is ${checkpointEvents[0]?.args.checkpointNumber} at L1 block ${checkpointEvents[0]?.blockNumber}`,
|
|
81
88
|
);
|
|
82
89
|
|
|
83
90
|
// Get the timestamps for every block on every log, both for proof and block submissions
|
|
84
|
-
const l1BlockNumbers = unique([...events.map(e => e.l1BlockNumber), ...
|
|
91
|
+
const l1BlockNumbers = unique([...events.map(e => e.l1BlockNumber), ...checkpointEvents.map(e => e.blockNumber)]);
|
|
85
92
|
const l1BlockTimestamps: Record<string, bigint> = {};
|
|
86
93
|
for (const l1Batch of chunk(l1BlockNumbers, Number(batchSize))) {
|
|
87
94
|
const blocks = await Promise.all(
|
|
@@ -93,44 +100,44 @@ export async function proverStats(opts: {
|
|
|
93
100
|
}
|
|
94
101
|
}
|
|
95
102
|
|
|
96
|
-
// Map from
|
|
97
|
-
const
|
|
98
|
-
for (const
|
|
99
|
-
|
|
103
|
+
// Map from checkpoint number to the l1 block in which it was submitted
|
|
104
|
+
const checkpointSubmissions: Record<string, bigint> = {};
|
|
105
|
+
for (const checkpointEvent of checkpointEvents) {
|
|
106
|
+
checkpointSubmissions[checkpointEvent.args.checkpointNumber!.toString()] = checkpointEvent.blockNumber;
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
// If we want raw logs, output them
|
|
103
110
|
if (rawLogs) {
|
|
104
|
-
log(`l1_block_number,
|
|
111
|
+
log(`l1_block_number, checkpoint_number, checkpoint_submission_timestamp, proof_timestamp, prover_id, tx_hash`);
|
|
105
112
|
for (const event of events) {
|
|
106
|
-
const { l1BlockNumber,
|
|
107
|
-
const uploadedBlockNumber =
|
|
113
|
+
const { l1BlockNumber, checkpointNumber, proverId, txHash } = event;
|
|
114
|
+
const uploadedBlockNumber = checkpointSubmissions[checkpointNumber.toString()];
|
|
108
115
|
if (!uploadedBlockNumber) {
|
|
109
116
|
continue;
|
|
110
117
|
}
|
|
111
118
|
const uploadedTimestamp = l1BlockTimestamps[uploadedBlockNumber.toString()];
|
|
112
119
|
const provenTimestamp = l1BlockTimestamps[l1BlockNumber.toString()];
|
|
113
|
-
log(`${l1BlockNumber}, ${
|
|
120
|
+
log(`${l1BlockNumber}, ${checkpointNumber}, ${uploadedTimestamp}, ${provenTimestamp}, ${proverId}, ${txHash}`);
|
|
114
121
|
}
|
|
115
122
|
return;
|
|
116
123
|
}
|
|
117
124
|
|
|
118
125
|
// Or calculate stats per prover
|
|
119
|
-
const stats = mapValues(groupBy(events, 'proverId'), (
|
|
126
|
+
const stats = mapValues(groupBy(events, 'proverId'), (checkpoints, proverId) =>
|
|
120
127
|
compactArray(
|
|
121
|
-
|
|
128
|
+
checkpoints.map(e => {
|
|
122
129
|
const provenTimestamp = l1BlockTimestamps[e.l1BlockNumber.toString()];
|
|
123
|
-
const uploadedBlockNumber =
|
|
130
|
+
const uploadedBlockNumber = checkpointSubmissions[e.checkpointNumber.toString()];
|
|
124
131
|
if (!uploadedBlockNumber) {
|
|
125
132
|
debugLog.verbose(
|
|
126
|
-
`Skipping ${proverId}'s proof for
|
|
133
|
+
`Skipping ${proverId}'s proof for checkpoint ${e.checkpointNumber} as it was before the start block`,
|
|
127
134
|
);
|
|
128
135
|
return undefined;
|
|
129
136
|
}
|
|
130
137
|
const uploadedTimestamp = l1BlockTimestamps[uploadedBlockNumber.toString()];
|
|
131
138
|
const provingTime = provenTimestamp - uploadedTimestamp;
|
|
132
139
|
debugLog.debug(
|
|
133
|
-
`prover=${e.proverId}
|
|
140
|
+
`prover=${e.proverId} checkpointNumber=${e.checkpointNumber} uploaded=${uploadedTimestamp} proven=${provenTimestamp} time=${provingTime}`,
|
|
134
141
|
);
|
|
135
142
|
return { provenTimestamp, uploadedTimestamp, provingTime, ...e };
|
|
136
143
|
}),
|
|
@@ -141,8 +148,8 @@ export async function proverStats(opts: {
|
|
|
141
148
|
for (const proverId in stats) {
|
|
142
149
|
const blocks = stats[proverId];
|
|
143
150
|
const withinTimeout = blocks.filter(b => b.provingTime <= provingTimeout);
|
|
144
|
-
const uniqueBlocksWithinTimeout = new Set(withinTimeout.map(e => e.
|
|
145
|
-
const uniqueBlocks = new Set(blocks.map(e => e.
|
|
151
|
+
const uniqueBlocksWithinTimeout = new Set(withinTimeout.map(e => e.checkpointNumber));
|
|
152
|
+
const uniqueBlocks = new Set(blocks.map(e => e.checkpointNumber));
|
|
146
153
|
const avgProvingTime =
|
|
147
154
|
blocks.length === 0 ? 0 : Math.ceil(Number(blocks.reduce((acc, b) => acc + b.provingTime, 0n)) / blocks.length);
|
|
148
155
|
|
|
@@ -171,7 +178,7 @@ async function getL2ProofVerifiedEvents(
|
|
|
171
178
|
return events;
|
|
172
179
|
}
|
|
173
180
|
|
|
174
|
-
async function
|
|
181
|
+
async function getCheckpointProposedEvents(
|
|
175
182
|
startBlock: bigint,
|
|
176
183
|
lastBlockNum: bigint,
|
|
177
184
|
batchSize: bigint,
|
|
@@ -188,14 +195,14 @@ async function getL2BlockEvents(
|
|
|
188
195
|
address: getAddress(rollup.toString()),
|
|
189
196
|
event: getAbiItem({
|
|
190
197
|
abi: RollupAbi,
|
|
191
|
-
name: '
|
|
198
|
+
name: 'CheckpointProposed',
|
|
192
199
|
}),
|
|
193
200
|
fromBlock: blockNum,
|
|
194
201
|
toBlock: end,
|
|
195
202
|
});
|
|
196
203
|
|
|
197
204
|
events.push(...newEvents);
|
|
198
|
-
debugLog.verbose(`Got ${newEvents.length} events querying
|
|
205
|
+
debugLog.verbose(`Got ${newEvents.length} events querying checkpoints submitted from block ${blockNum} to ${end}`);
|
|
199
206
|
blockNum += batchSize;
|
|
200
207
|
}
|
|
201
208
|
return events;
|
|
@@ -299,9 +299,9 @@ export async function debugRollup({ rpcUrls, chainId, rollupAddress, log }: Roll
|
|
|
299
299
|
const publicClient = getPublicClient({ l1RpcUrls: rpcUrls, l1ChainId: chainId });
|
|
300
300
|
const rollup = new RollupContract(publicClient, rollupAddress);
|
|
301
301
|
|
|
302
|
-
const pendingNum = await rollup.
|
|
302
|
+
const pendingNum = await rollup.getCheckpointNumber();
|
|
303
303
|
log(`Pending block num: ${pendingNum}`);
|
|
304
|
-
const provenNum = await rollup.
|
|
304
|
+
const provenNum = await rollup.getProvenCheckpointNumber();
|
|
305
305
|
log(`Proven block num: ${provenNum}`);
|
|
306
306
|
const validators = await rollup.getAttesters();
|
|
307
307
|
log(`Validators: ${validators.map(v => v.toString()).join(', ')}`);
|
|
@@ -9,7 +9,7 @@ import { type SemVer, parse } from 'semver';
|
|
|
9
9
|
import type { DependencyChanges } from './common.js';
|
|
10
10
|
import { atomicUpdateFile } from './utils.js';
|
|
11
11
|
|
|
12
|
-
const deprecatedNpmPackages = new Set<string>(['@aztec/cli', '@aztec/aztec-
|
|
12
|
+
const deprecatedNpmPackages = new Set<string>(['@aztec/cli', '@aztec/aztec-local-network']);
|
|
13
13
|
const npmDeprecationMessage = `
|
|
14
14
|
The following packages have been deprecated and will no longer be updated on the npm registry:
|
|
15
15
|
${Array.from(deprecatedNpmPackages)
|
|
@@ -16,28 +16,35 @@ import {
|
|
|
16
16
|
writeEthJsonV3ToFile,
|
|
17
17
|
writeKeystoreFile,
|
|
18
18
|
} from './shared.js';
|
|
19
|
+
import { validateBlsPathOptions, validatePublisherOptions, validateRemoteSignerOptions } from './utils.js';
|
|
19
20
|
|
|
20
21
|
export type AddValidatorKeysOptions = NewValidatorKeystoreOptions;
|
|
21
22
|
|
|
22
23
|
export async function addValidatorKeys(existing: string, options: AddValidatorKeysOptions, log: LogFn) {
|
|
24
|
+
// validate bls-path inputs before proceeding with key generation
|
|
25
|
+
validateBlsPathOptions(options);
|
|
26
|
+
// validate publisher options
|
|
27
|
+
validatePublisherOptions(options);
|
|
28
|
+
// validate remote signer options
|
|
29
|
+
validateRemoteSignerOptions(options);
|
|
30
|
+
|
|
23
31
|
const {
|
|
24
32
|
dataDir,
|
|
25
33
|
file,
|
|
26
34
|
count,
|
|
27
35
|
publisherCount = 0,
|
|
36
|
+
publishers,
|
|
28
37
|
mnemonic,
|
|
29
38
|
accountIndex = 0,
|
|
30
39
|
addressIndex,
|
|
31
40
|
ikm,
|
|
32
41
|
blsPath,
|
|
33
|
-
blsOnly,
|
|
34
42
|
json,
|
|
35
43
|
feeRecipient: feeRecipientOpt,
|
|
36
44
|
coinbase: coinbaseOpt,
|
|
37
|
-
fundingAccount: fundingAccountOpt,
|
|
38
45
|
remoteSigner: remoteSignerOpt,
|
|
39
46
|
password,
|
|
40
|
-
|
|
47
|
+
encryptedKeystoreDir,
|
|
41
48
|
} = options;
|
|
42
49
|
|
|
43
50
|
const validatorCount = typeof count === 'number' && Number.isFinite(count) && count > 0 ? Math.floor(count) : 1;
|
|
@@ -55,8 +62,6 @@ export async function addValidatorKeys(existing: string, options: AddValidatorKe
|
|
|
55
62
|
throw new Error('feeRecipient is required (either present in existing file or via --fee-recipient)');
|
|
56
63
|
}
|
|
57
64
|
const coinbase = (coinbaseOpt as EthAddress | undefined) ?? (first.coinbase as EthAddress | undefined);
|
|
58
|
-
const fundingAccount =
|
|
59
|
-
(fundingAccountOpt as EthAddress | undefined) ?? (first.fundingAccount as EthAddress | undefined);
|
|
60
65
|
const derivedRemoteSigner = (first.attester as any)?.remoteSignerUrl || (first.attester as any)?.eth?.remoteSignerUrl;
|
|
61
66
|
const remoteSigner = remoteSignerOpt ?? derivedRemoteSigner;
|
|
62
67
|
|
|
@@ -70,26 +75,31 @@ export async function addValidatorKeys(existing: string, options: AddValidatorKe
|
|
|
70
75
|
const { validators, summaries } = await buildValidatorEntries({
|
|
71
76
|
validatorCount,
|
|
72
77
|
publisherCount,
|
|
78
|
+
publishers,
|
|
73
79
|
accountIndex,
|
|
74
80
|
baseAddressIndex: effectiveBaseAddressIndex,
|
|
75
81
|
mnemonic: mnemonicToUse,
|
|
76
82
|
ikm,
|
|
77
83
|
blsPath,
|
|
78
|
-
blsOnly,
|
|
79
84
|
feeRecipient,
|
|
80
85
|
coinbase,
|
|
81
86
|
remoteSigner,
|
|
82
|
-
fundingAccount,
|
|
83
87
|
});
|
|
84
88
|
|
|
85
89
|
keystore.validators.push(...validators);
|
|
86
90
|
|
|
87
91
|
// If password provided, write ETH JSON V3 and BLS BN254 keystores and replace plaintext
|
|
88
92
|
if (password !== undefined) {
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
let targetDir: string;
|
|
94
|
+
if (encryptedKeystoreDir && encryptedKeystoreDir.length > 0) {
|
|
95
|
+
targetDir = encryptedKeystoreDir;
|
|
96
|
+
} else if (dataDir && dataDir.length > 0) {
|
|
97
|
+
targetDir = dataDir;
|
|
98
|
+
} else {
|
|
99
|
+
targetDir = dirname(existing);
|
|
100
|
+
}
|
|
91
101
|
await writeEthJsonV3ToFile(keystore.validators, { outDir: targetDir, password });
|
|
92
|
-
await writeBlsBn254ToFile(keystore.validators, { outDir: targetDir, password });
|
|
102
|
+
await writeBlsBn254ToFile(keystore.validators, { outDir: targetDir, password, blsPath });
|
|
93
103
|
}
|
|
94
104
|
|
|
95
105
|
let outputPath = existing;
|
|
@@ -4,6 +4,7 @@ import type { LogFn } from '@aztec/foundation/log';
|
|
|
4
4
|
import { writeFile } from 'fs/promises';
|
|
5
5
|
|
|
6
6
|
import { computeBlsPublicKeyCompressed, withValidatorIndex } from './shared.js';
|
|
7
|
+
import { defaultBlsPath } from './utils.js';
|
|
7
8
|
|
|
8
9
|
export type GenerateBlsKeypairOptions = {
|
|
9
10
|
mnemonic?: string;
|
|
@@ -17,7 +18,7 @@ export type GenerateBlsKeypairOptions = {
|
|
|
17
18
|
|
|
18
19
|
export async function generateBlsKeypair(options: GenerateBlsKeypairOptions, log: LogFn) {
|
|
19
20
|
const { mnemonic, ikm, blsPath, compressed = true, json, out } = options;
|
|
20
|
-
const path = withValidatorIndex(blsPath ??
|
|
21
|
+
const path = withValidatorIndex(blsPath ?? defaultBlsPath, 0);
|
|
21
22
|
const priv = deriveBlsPrivateKey(mnemonic, ikm, path);
|
|
22
23
|
const pub = await computeBlsPublicKeyCompressed(priv);
|
|
23
24
|
const result = { path, privateKey: priv, publicKey: pub, format: compressed ? 'compressed' : 'uncompressed' };
|
|
@@ -3,11 +3,12 @@ import type { LogFn } from '@aztec/foundation/log';
|
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
|
|
5
5
|
import { parseAztecAddress, parseEthereumAddress, parseHex, parseOptionalInteger } from '../../utils/commands.js';
|
|
6
|
+
import { defaultBlsPath } from './utils.js';
|
|
6
7
|
|
|
7
8
|
export function injectCommands(program: Command, log: LogFn) {
|
|
8
9
|
const group = program
|
|
9
10
|
.command('validator-keys')
|
|
10
|
-
.aliases(['valKeys'])
|
|
11
|
+
.aliases(['valKeys', 'valkeys'])
|
|
11
12
|
.description('Manage validator keystores for node operators');
|
|
12
13
|
|
|
13
14
|
group
|
|
@@ -17,28 +18,47 @@ export function injectCommands(program: Command, log: LogFn) {
|
|
|
17
18
|
.option('--data-dir <path>', 'Directory to store keystore(s). Defaults to ~/.aztec/keystore')
|
|
18
19
|
.option('--file <name>', 'Keystore file name. Defaults to key1.json (or keyN.json if key1.json exists)')
|
|
19
20
|
.option('--count <N>', 'Number of validators to generate', parseOptionalInteger)
|
|
20
|
-
.option('--publisher-count <N>', 'Number of publisher accounts per validator (default
|
|
21
|
+
.option('--publisher-count <N>', 'Number of publisher accounts per validator (default 0)', value =>
|
|
21
22
|
parseOptionalInteger(value, 0),
|
|
22
23
|
)
|
|
24
|
+
.option('--publishers <privateKeys>', 'Comma-separated list of publisher private keys for all validators.', value =>
|
|
25
|
+
value.split(',').map((key: string) => key.trim()),
|
|
26
|
+
)
|
|
23
27
|
.option('--mnemonic <mnemonic>', 'Mnemonic for ETH/BLS derivation')
|
|
24
28
|
.option('--passphrase <str>', 'Optional passphrase for mnemonic')
|
|
25
|
-
.option('--account-index <N>', 'Base account index for ETH derivation', parseOptionalInteger)
|
|
26
|
-
.option('--address-index <N>', 'Base address index for ETH derivation', parseOptionalInteger)
|
|
27
|
-
.option(
|
|
28
|
-
|
|
29
|
+
.option('--account-index <N>', 'Base account index for ETH/BLS derivation', parseOptionalInteger)
|
|
30
|
+
.option('--address-index <N>', 'Base address index for ETH/BLS derivation', parseOptionalInteger)
|
|
31
|
+
.option(
|
|
32
|
+
'--coinbase <address>',
|
|
33
|
+
'Coinbase ETH address to use when proposing. Defaults to attester address.',
|
|
34
|
+
parseEthereumAddress,
|
|
35
|
+
)
|
|
36
|
+
// TODO: add funding account back in when implemented
|
|
37
|
+
// .option('--funding-account <privateKey|address>', 'ETH private key (or address for remote signer setup) to fund publishers')
|
|
29
38
|
.option('--remote-signer <url>', 'Default remote signer URL for accounts in this file')
|
|
30
39
|
.option('--ikm <hex>', 'Initial keying material for BLS (alternative to mnemonic)', value => parseHex(value, 32))
|
|
31
|
-
.option('--bls-path <path>',
|
|
32
|
-
.option('--bls-only', 'Generate only BLS keys')
|
|
40
|
+
.option('--bls-path <path>', `EIP-2334 path (default ${defaultBlsPath})`)
|
|
33
41
|
.option(
|
|
34
42
|
'--password <str>',
|
|
35
43
|
'Password for writing keystore files (ETH JSON V3 and BLS EIP-2335). Empty string allowed',
|
|
36
44
|
)
|
|
37
|
-
.option('--
|
|
45
|
+
.option('--encrypted-keystore-dir <dir>', 'Output directory for encrypted keystore file(s)')
|
|
38
46
|
.option('--json', 'Echo resulting JSON to stdout')
|
|
47
|
+
.option('--staker-output', 'Generate a single staker output JSON file with an array of validator entries')
|
|
48
|
+
.option('--gse-address <address>', 'GSE contract address (required with --staker-output)', parseEthereumAddress)
|
|
49
|
+
.option('--l1-rpc-urls <urls>', 'L1 RPC URLs (comma-separated, required with --staker-output)', value =>
|
|
50
|
+
value.split(','),
|
|
51
|
+
)
|
|
52
|
+
.option(
|
|
53
|
+
'-c, --l1-chain-id <number>',
|
|
54
|
+
'L1 chain ID (required with --staker-output)',
|
|
55
|
+
value => parseInt(value),
|
|
56
|
+
31337,
|
|
57
|
+
)
|
|
39
58
|
.requiredOption('--fee-recipient <address>', 'Aztec address that will receive fees', parseAztecAddress)
|
|
40
59
|
.action(async options => {
|
|
41
60
|
const { newValidatorKeystore } = await import('./new.js');
|
|
61
|
+
|
|
42
62
|
await newValidatorKeystore(options, log);
|
|
43
63
|
});
|
|
44
64
|
|
|
@@ -47,28 +67,35 @@ export function injectCommands(program: Command, log: LogFn) {
|
|
|
47
67
|
.summary('Augment an existing validator keystore JSON')
|
|
48
68
|
.description('Adds attester/publisher/BLS entries to an existing keystore using the same flags as new')
|
|
49
69
|
.argument('<existing>', 'Path to existing keystore JSON')
|
|
50
|
-
.option('--data-dir <path>', 'Directory where keystore(s) live')
|
|
51
|
-
.option('--file <name>', 'Override output file name')
|
|
52
|
-
.option('--count <N>', 'Number of validators to add', parseOptionalInteger)
|
|
53
|
-
.option('--publisher-count <N>', 'Number of publisher accounts per validator (default
|
|
70
|
+
.option('--data-dir <path>', 'Directory where keystore(s) live. (default: ~/.aztec/keystore)')
|
|
71
|
+
.option('--file <name>', 'Override output file name. (default: key<N>.json)')
|
|
72
|
+
.option('--count <N>', 'Number of validators to add. (default: 1)', parseOptionalInteger)
|
|
73
|
+
.option('--publisher-count <N>', 'Number of publisher accounts per validator (default 0)', value =>
|
|
54
74
|
parseOptionalInteger(value, 0),
|
|
55
75
|
)
|
|
76
|
+
.option('--publishers <privateKeys>', 'Comma-separated list of publisher private keys for all validators.', value =>
|
|
77
|
+
value.split(',').map((key: string) => key.trim()),
|
|
78
|
+
)
|
|
56
79
|
.option('--mnemonic <mnemonic>', 'Mnemonic for ETH/BLS derivation')
|
|
57
80
|
.option('--passphrase <str>', 'Optional passphrase for mnemonic')
|
|
58
|
-
.option('--account-index <N>', 'Base account index for ETH derivation', parseOptionalInteger)
|
|
59
|
-
.option('--address-index <N>', 'Base address index for ETH derivation', parseOptionalInteger)
|
|
60
|
-
.option(
|
|
61
|
-
|
|
81
|
+
.option('--account-index <N>', 'Base account index for ETH/BLS derivation', parseOptionalInteger)
|
|
82
|
+
.option('--address-index <N>', 'Base address index for ETH/BLS derivation', parseOptionalInteger)
|
|
83
|
+
.option(
|
|
84
|
+
'--coinbase <address>',
|
|
85
|
+
'Coinbase ETH address to use when proposing. Defaults to attester address.',
|
|
86
|
+
parseEthereumAddress,
|
|
87
|
+
)
|
|
88
|
+
// TODO: add funding account back in when implemented
|
|
89
|
+
// .option('--funding-account <privateKey|address>', 'ETH private key (or address for remote signer setup) to fund publishers')
|
|
62
90
|
.option('--remote-signer <url>', 'Default remote signer URL for accounts in this file')
|
|
63
91
|
.option('--ikm <hex>', 'Initial keying material for BLS (alternative to mnemonic)', value => parseHex(value, 32))
|
|
64
|
-
.option('--bls-path <path>',
|
|
65
|
-
.option('--bls-only', 'Generate only BLS keys')
|
|
92
|
+
.option('--bls-path <path>', `EIP-2334 path (default ${defaultBlsPath})`)
|
|
66
93
|
.option('--empty', 'Generate an empty skeleton without keys')
|
|
67
94
|
.option(
|
|
68
95
|
'--password <str>',
|
|
69
96
|
'Password for writing keystore files (ETH JSON V3 and BLS EIP-2335). Empty string allowed',
|
|
70
97
|
)
|
|
71
|
-
.option('--
|
|
98
|
+
.option('--encrypted-keystore-dir <dir>', 'Output directory for encrypted keystore file(s)')
|
|
72
99
|
.option('--json', 'Echo resulting JSON to stdout')
|
|
73
100
|
.requiredOption('--fee-recipient <address>', 'Aztec address that will receive fees', parseAztecAddress)
|
|
74
101
|
.action(async (existing: string, options) => {
|
|
@@ -76,13 +103,32 @@ export function injectCommands(program: Command, log: LogFn) {
|
|
|
76
103
|
await addValidatorKeys(existing, options, log);
|
|
77
104
|
});
|
|
78
105
|
|
|
106
|
+
group
|
|
107
|
+
.command('staker')
|
|
108
|
+
.summary('Generate staking JSON from keystore')
|
|
109
|
+
.description(
|
|
110
|
+
'Reads a validator keystore and outputs staking data with BLS public keys for each attester (skips mnemonics)',
|
|
111
|
+
)
|
|
112
|
+
.requiredOption('--from <keystore>', 'Path to keystore JSON file')
|
|
113
|
+
.option('--password <password>', 'Password for decrypting encrypted keystores (if not specified in keystore file)')
|
|
114
|
+
.requiredOption('--gse-address <address>', 'GSE contract address', parseEthereumAddress)
|
|
115
|
+
.option('--l1-rpc-urls <urls>', 'L1 RPC URLs (comma-separated)', value => value.split(','), [
|
|
116
|
+
'http://localhost:8545',
|
|
117
|
+
])
|
|
118
|
+
.option('-c, --l1-chain-id <number>', 'L1 chain ID', value => parseInt(value), 31337)
|
|
119
|
+
.option('--output <file>', 'Output file path (if not specified, JSON is written to stdout)')
|
|
120
|
+
.action(async options => {
|
|
121
|
+
const { generateStakerJson } = await import('./staker.js');
|
|
122
|
+
await generateStakerJson(options, log);
|
|
123
|
+
});
|
|
124
|
+
|
|
79
125
|
// top-level convenience: aztec generate-bls-keypair
|
|
80
126
|
program
|
|
81
127
|
.command('generate-bls-keypair')
|
|
82
128
|
.description('Generate a BLS keypair with convenience flags')
|
|
83
129
|
.option('--mnemonic <mnemonic>', 'Mnemonic for BLS derivation')
|
|
84
130
|
.option('--ikm <hex>', 'Initial keying material for BLS (alternative to mnemonic)', value => parseHex(value, 32))
|
|
85
|
-
.option('--bls-path <path>',
|
|
131
|
+
.option('--bls-path <path>', `EIP-2334 path (default ${defaultBlsPath})`)
|
|
86
132
|
.option('--g2', 'Derive on G2 subgroup')
|
|
87
133
|
.option('--compressed', 'Output compressed public key')
|
|
88
134
|
.option('--json', 'Print JSON output to stdout')
|