Skip to content

Commit 14f831f

Browse files
JuArceMauroToscano
andauthored
fix(contracts): revert #1762 verifyBatchInclusion function (#1892)
Co-authored-by: Mauro Toscano <[email protected]>
1 parent df61c76 commit 14f831f

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AlignedLayerServiceManager.sol

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,27 @@ contract AlignedLayerServiceManager is
301301
);
302302
}
303303

304+
function verifyBatchInclusion(
305+
bytes32 proofCommitment,
306+
bytes32 pubInputCommitment,
307+
bytes32 provingSystemAuxDataCommitment,
308+
bytes20 proofGeneratorAddr,
309+
bytes32 batchMerkleRoot,
310+
bytes memory merkleProof,
311+
uint256 verificationDataBatchIndex
312+
) external view onlyWhenNotPaused(2) returns (bool) {
313+
return this.verifyBatchInclusion(
314+
proofCommitment,
315+
pubInputCommitment,
316+
provingSystemAuxDataCommitment,
317+
proofGeneratorAddr,
318+
batchMerkleRoot,
319+
merkleProof,
320+
verificationDataBatchIndex,
321+
address(0)
322+
);
323+
}
324+
304325

305326
function setAggregator(address _alignedAggregator) public onlyOwner {
306327
alignedAggregator = _alignedAggregator;

contracts/src/core/IAlignedLayerServiceManager.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ interface IAlignedLayerServiceManager {
6161
address senderAddress
6262
) external view returns (bool);
6363

64+
function verifyBatchInclusion(
65+
bytes32 proofCommitment,
66+
bytes32 pubInputCommitment,
67+
bytes32 provingSystemAuxDataCommitment,
68+
bytes20 proofGeneratorAddr,
69+
bytes32 batchMerkleRoot,
70+
bytes memory merkleProof,
71+
uint256 verificationDataBatchIndex
72+
) external view returns (bool);
73+
6474
function balanceOf(address account) external view returns (uint256);
6575

6676
function setAggregator(address _aggregator) external;

0 commit comments

Comments
 (0)