11pragma solidity ^ 0.8.12 ;
22
33interface IAlignedProofAggregationService {
4+
5+ /// @notice event that gets emitted after a successful aggregated proof verification
6+ event AggregatedProofVerified (bytes32 indexed merkleRoot , bytes32 blobVersionedHash );
7+
8+ /// @notice Event emitted when the Risc0 verifier address is updated
9+ event Risc0VerifierAddressUpdated (address indexed newAddress );
10+
11+ /// @notice Event emitted when the SP1 verifier address is updated
12+ event SP1VerifierAddressUpdated (address indexed newAddress );
13+
14+ /// @notice Event emitted when the Risc0 aggregator program image ID is updated
15+ event Risc0AggregatorProgramImageIdUpdated (bytes32 indexed newImageId );
16+
17+ /// @notice Event emitted when the SP1 aggregator program VK hash is updated
18+ event SP1AggregatorProgramVKHashUpdated (bytes32 indexed newVKHash );
19+
420 /// @notice Method to verify an aggregated proof from aligned
521 /// @dev This function is called by the aligned proof aggregator after collecting the proofs and aggregating them
622 /// to be verified on-chain. We expect the blobTransactionHash to be called before
@@ -18,8 +34,21 @@ interface IAlignedProofAggregationService {
1834 view
1935 returns (bool );
2036
21- /// @notice event that gets emitted after a successful aggregated proof verification
22- event AggregatedProofVerified (bytes32 indexed merkleRoot , bytes32 blobVersionedHash );
37+ /// @notice Sets the address of the Risc0 verifier contract
38+ /// @param _risc0VerifierAddress The new address for the Risc0 verifier contract
39+ function setRisc0VerifierAddress (address _risc0VerifierAddress ) external ;
40+
41+ /// @notice Sets the image id of the Risc0 program
42+ /// @param _risc0AggregatorProgramImageId The new imageid for the Risc0 aggregator program
43+ function setRisc0AggregatorProgramImageId (bytes32 _risc0AggregatorProgramImageId ) external ;
44+
45+ /// @notice Sets the address of the SP1 verifier contract
46+ /// @param _sp1VerifierAddress The new address for the SP1 verifier contract
47+ function setSP1VerifierAddress (address _sp1VerifierAddress ) external ;
48+
49+ /// @notice Sets the vk hash of the sp1 program
50+ /// @param _sp1AggregatorProgramVKHash The new vk hash for the sp1 aggregator program
51+ function setSP1AggregatorProgramVKHash (bytes32 _sp1AggregatorProgramVKHash ) external ;
2352
2453 error OnlyAlignedAggregator (address sender );
2554}
0 commit comments