Skip to content

Commit 4fd18e5

Browse files
Remove the verifier type validation on verifyProofInclusion method
1 parent db841dd commit 4fd18e5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,11 @@ contract AlignedProofAggregationService is
118118
/// @param verifierType The type of verifier (SP1 or RISC0).
119119
///
120120
/// @return bool Returns true if the computed Merkle root is a recognized valid aggregated proof.
121-
function verifyProofInclusion(bytes32[] calldata merklePath, bytes32 programId, bytes calldata publicInputs, IAlignedProofAggregationService.VerifierType verifierType)
121+
function verifyProofInclusion(bytes32[] calldata merklePath, bytes32 programId, bytes calldata publicInputs)
122122
public
123123
view
124124
returns (bool)
125125
{
126-
require(programIds[programId] == uint8(verifierType), "Program ID not registered for the received verifier type");
127-
128-
// TODO: consider adding the verifierType to the proof commitment to avoid potential collisions
129126
bytes32 proofCommitment = keccak256(abi.encodePacked(programId, publicInputs));
130127
bytes32 merkleRoot = MerkleProof.processProofCalldata(merklePath, proofCommitment);
131128
return aggregatedProofs[merkleRoot];

contracts/src/core/IAlignedProofAggregationService.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface IAlignedProofAggregationService {
2929
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, VerifierType verifierType)
32+
function verifyProofInclusion(bytes32[] calldata merklePath, bytes32 programId, bytes calldata publicInputs)
3333
external
3434
view
3535
returns (bool);

0 commit comments

Comments
 (0)