Skip to content

Commit 2712e9e

Browse files
committed
fix readme in merge
1 parent 7db5f31 commit 2712e9e

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

aggregation_mode/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
# Aligned aggregation mode
3+
4+
## How to run it locally
5+
6+
1. Deploy aligned contracts on anvil:
7+
8+
```shell
9+
make deploy_aligned_contracts
10+
```
11+
12+
2. Start anvil:
13+
14+
```shell
15+
make anvil_start_with_block_time
16+
```
17+
18+
3. Start batcher
19+
20+
```shell
21+
make start_batcher_local
22+
```
23+
24+
4. Send SP1 proofs:
25+
26+
```shell
27+
make batcher_send_sp1_burst
28+
```
29+
30+
5. Start proof aggregator:
31+
32+
```shell
33+
# This will not run a real prover but a mocked one see below to run a real prover
34+
make start_proof_aggregator_local
35+
```
36+
37+
or
38+
39+
```shell
40+
make start_proof_aggregator_local_with_proving
41+
```
42+
43+
Note: Proving can be quite slow without GPUs
44+
45+
### Check the logs
46+
47+
1. Get latest aggregated proof:
48+
49+
```shell
50+
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
51+
```
52+
53+
2. Get aggregated proof info:
54+
55+
```shell
56+
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
57+
```

0 commit comments

Comments
 (0)