Skip to content

Commit 0cd170f

Browse files
committed
fix: aggregation mode config templates
1 parent 28ffe28 commit 0cd170f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

infra/aggregation_mode/config-proof-aggregator-risc0.template.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ eth_rpc_url: <eth_rpc_url>
44
eth_ws_url: <eth_ws_url>
55
max_proofs_in_queue: 1000
66
last_aggregated_block_filepath: /home/user/config/proof-aggregator-risc0.last_aggregated_block.json
7+
proofs_per_chunk: 512 # Amount of proofs to process per chunk
8+
# This number comes from the blob data limit
9+
# Since each blob has a capacity of (4096 * 32) = 131.072 bytes
10+
# But to not surpass the field modulus we pad with a 0xo byte so we have (4096 * 31) = 126.976 bytes
11+
# of usable data
12+
# Since each proof commitments takes 32 bytes hash
13+
# We can aggregate as much proofs as 126.976 / 32 = 3968 per blob
14+
total_proofs_limit: 3968
715

816
ecdsa:
917
private_key_store_path: <private_key_store_path>

infra/aggregation_mode/config-proof-aggregator-sp1.template.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ eth_rpc_url: <eth_rpc_url>
44
eth_ws_url: <eth_ws_url>
55
max_proofs_in_queue: 1000
66
last_aggregated_block_filepath: /home/user/config/proof-aggregator-sp1.last_aggregated_block.json
7+
proofs_per_chunk: 512 # Amount of proofs to process per chunk
8+
# This number comes from the blob data limit
9+
# Since each blob has a capacity of (4096 * 32) = 131.072 bytes
10+
# But to not surpass the field modulus we pad with a 0xo byte so we have (4096 * 31) = 126.976 bytes
11+
# of usable data
12+
# Since each proof commitments takes 32 bytes hash
13+
# We can aggregate as much proofs as 126.976 / 32 = 3968 per blob
14+
total_proofs_limit: 3968
715

816
ecdsa:
917
private_key_store_path: <private_key_store_path>

0 commit comments

Comments
 (0)