File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,22 @@ make start_proof_aggregator_gpu AGGREGATOR="sp1|risc0"
61611 . Get latest aggregated proof:
6262
6363``` shell
64- cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 " currentAggregatedProofNumber() " --rpc-url http://localhost:8545
64+ cast logs 0xc351628EB244ec633d5f21fBD6621e1a683B1181 ' AggregatedProofVerified(bytes32,bytes32) ' --from-block 0 --to-block latest --rpc-url http://localhost:8545
6565```
6666
67- 2 . Get aggregated proof info:
67+ ## Compiling programs
68+
69+ Whenever any of the programs change, you must recompile them and update their corresponding program ids in ` aggregation_mode/program_ids.json ` . To do this, run the following command:
6870
6971``` shell
70- cast call 0xc351628EB244ec633d5f21fBD6621e1a683B1181 " getAggregatedProof(uint64)(uint8,bytes32,bytes32) " < AGG_PROOF_NUMBER > --rpc-url http://localhost:8545
72+ make agg_mode_write_program_ids
7173```
74+
75+ We are using docker to produce deterministic builds so that the program ids are the same for all systems.
76+
77+ ### Updating the program id in ` AlignedProofAggregationService ` contract
78+
79+ If the program ids have changed, you will also need to update them in the ` AlignedProofAggregationService ` contract.
80+
81+ - Risc0: call ` setRisc0AggregatorProgramImageId ` method with the value of ` risc0_root_aggregator_image_id ` from ` aggregation_mode/program_ids.json ` .
82+ - SP1: call: ` setSP1AggregatorProgramVKHash ` method with the value of ` sp1_root_aggregator_vk_hash ` from ` aggregation_mode/program_ids.json ` .
You can’t perform that action at this time.
0 commit comments