Skip to content

Commit cd20c34

Browse files
committed
docs: update readme instructions
1 parent 1935850 commit cd20c34

File tree

2 files changed

+46
-5
lines changed

2 files changed

+46
-5
lines changed

aggregation-mode/readme.md

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,50 @@ make deploy_aligned_contracts
1313
make anvil_start_with_block_time
1414
```
1515

16-
3. Start proof aggregator:
16+
3. Start batcher
17+
```shell
18+
make start_batcher_local
19+
```
20+
21+
4. Start proof aggregator:
1722
```shell
18-
# This will not run a real prover but a mocked
23+
# This will not run a real prover but a mocked one see below to run a real prover
1924
make start_proof_aggregator_local
20-
# This will run an actual prover (requires powerful machine)
25+
```
26+
Note: it might take a while to compile as it uses more aggressive optimization levels.
27+
28+
5. Send SP1 proofs:
29+
```shell
30+
make batcher_send_sp1_burst
31+
```
32+
33+
You should see that after the timer set in `config-proof-aggregator.yaml`, it will fetch the batches and aggregate the compressed SP1 proofs from them.
34+
35+
### Run it with proving
36+
37+
By default, on dev environments, the proving is mocked and the ProofAggregationService contract skips verification as proves are mocked. To run the service with proving you need to run change the commands on step `1.` and `4.`:
38+
39+
1. Start anvil with verification activated:
40+
```shell
41+
make anvil_start_with_block_time_and_proving
42+
```
43+
44+
4. Start proof aggregator with proving:
45+
```shell
2146
make start_proof_aggregator_local_with_proving
2247
```
2348

24-
Note: it might take a while to compile as it uses more aggressive optimization levels.
49+
Note: Unless you constraint yourself to a few proofs, this requires a powerful machine with GPU.
50+
51+
52+
### Check the logs
53+
54+
1. Get latest aggregated proof:
55+
```shell
56+
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
57+
```
58+
59+
2. Get aggregated proof info:
60+
```shell
61+
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
62+
```

aggregation-mode/src/backend/fetcher.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ impl ProofsFetcher {
8383
})
8484
.collect();
8585

86-
info!("SP1 proofs filtered, total proofs to add {}", proofs.len());
86+
info!(
87+
"SP1 proofs filtered, total proofs to add {}",
88+
proofs_to_add.len()
89+
);
8790

8891
// try to add them to the queue
8992
for proof in proofs_to_add {

0 commit comments

Comments
 (0)