Skip to content

Commit

Permalink
Add inspired comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Jan 7, 2025
1 parent 72f1980 commit 9dde738
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ contract DummyEigenDABridge is IEigenDABridge {
}

function verifyBlobLeaf(MerkleProofInput calldata merkleProof) external view returns (bool) {
// Inspired by eigenlayer contracts Merkle.verifyInclusionKeccak
// https://github.com/Layr-Labs/eigenlayer-contracts/blob/3f3f83bd194b3bdc77d06d8fe6b101fafc3bcfd5/src/contracts/libraries/Merkle.sol
uint256 index = merkleProof.index;
bytes memory inclusionProof = merkleProof.inclusionProof;
require(inclusionProof.length % 32 == 0, "proof length not multiple of 32");
Expand Down

0 comments on commit 9dde738

Please sign in to comment.