Skip to content

Commit 028a9c1

Browse files
taturosatientropidelicNicolasRampoldi
authored
feat: check public input (#622)
Co-authored-by: Mariano A. Nicolini <mariano.nicolini.91@gmail.com> Co-authored-by: Nicolas Rampoldi <58613770+NicolasRampoldi@users.noreply.github.com>
1 parent 4f02ce7 commit 028a9c1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,11 @@ contract AlignedLayerServiceManager is
190190
receive() external payable {
191191
batchersBalances[msg.sender] += msg.value;
192192
}
193+
194+
function checkPublicInput(
195+
bytes calldata publicInput,
196+
bytes32 hash
197+
) public pure returns (bool) {
198+
return keccak256(publicInput) == hash;
199+
}
193200
}

0 commit comments

Comments
 (0)