Skip to content

Commit 8635dba

Browse files
Fix the interface to match the new changes
1 parent e45055e commit 8635dba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contracts/src/core/IAlignedProofAggregationService.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface IAlignedProofAggregationService {
1212
event SP1VerifierAddressUpdated(address indexed newAddress);
1313

1414
/// @notice Event emitted when a new program ID is added
15-
event ProgramIdAdded(bytes32 indexed programId, AlignedProofAggregationService.VerifierType verifierType);
15+
event ProgramIdAdded(bytes32 indexed programId, VerifierType verifierType);
1616

1717
/// @notice Event emitted when a program ID is deleted
1818
event ProgramIdDeleted(bytes32 indexed programId);
@@ -23,13 +23,13 @@ interface IAlignedProofAggregationService {
2323
/// @param blobVersionedHash the versioned hash of the blob transaction that contains the leaves that compose the merkle root.
2424
/// @param sp1PublicValues Values used to perform the execution
2525
/// @param sp1ProofBytes Groth16 proof
26-
function verifySP1(bytes32 blobVersionedHash, bytes calldata sp1PublicValues, bytes calldata sp1ProofBytes)
26+
function verifySP1(bytes32 blobVersionedHash, bytes calldata sp1PublicValues, bytes calldata sp1ProofBytes, bytes32 programId)
2727
external;
2828

29-
function verifyRisc0(bytes32 blobVersionedHash, bytes calldata risc0ReceiptSeal, bytes calldata risc0JournalBytes)
29+
function verifyRisc0(bytes32 blobVersionedHash, bytes calldata risc0ReceiptSeal, bytes calldata risc0JournalBytes, bytes32 programId)
3030
external;
3131

32-
function verifyProofInclusion(bytes32[] calldata merklePath, bytes32 programId, bytes calldata publicInputs)
32+
function verifyProofInclusion(bytes32[] calldata merklePath, bytes32 programId, bytes calldata publicInputs, VerifierType verifierType)
3333
external
3434
view
3535
returns (bool);
@@ -45,7 +45,7 @@ interface IAlignedProofAggregationService {
4545
/// @notice Adds a new program ID with its verifier type
4646
/// @param programId The program ID to add
4747
/// @param verifierType The type of verifier (SP1 or RISC0)
48-
function addProgramId(bytes32 programId, uint8 verifierType) external;
48+
function addProgramId(bytes32 programId, VerifierType verifierType) external;
4949

5050
/// @notice Deletes an existing program ID
5151
/// @param programId The program ID to delete

0 commit comments

Comments
 (0)