File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments