diff --git a/contracts/src/interfaces/IEigenDAStructs.sol b/contracts/src/interfaces/IEigenDAStructs.sol index e1f8dc784d..0d0d277735 100644 --- a/contracts/src/interfaces/IEigenDAStructs.sol +++ b/contracts/src/interfaces/IEigenDAStructs.sol @@ -82,6 +82,7 @@ struct BlobHeaderV2 { bytes quorumNumbers; BlobCommitment commitment; bytes32 paymentHeaderHash; + uint32 salt; } struct BlobCommitment { diff --git a/contracts/src/libraries/EigenDAHasher.sol b/contracts/src/libraries/EigenDAHasher.sol index 0f081012ae..15875399b1 100644 --- a/contracts/src/libraries/EigenDAHasher.sol +++ b/contracts/src/libraries/EigenDAHasher.sol @@ -123,7 +123,8 @@ library EigenDAHasher { abi.encode( blobHeader.version, blobHeader.quorumNumbers, - blobHeader.commitment + blobHeader.commitment, + blobHeader.salt ) ), blobHeader.paymentHeaderHash diff --git a/contracts/test/unit/EigenDABlobVerifierV2Unit.t.sol b/contracts/test/unit/EigenDABlobVerifierV2Unit.t.sol index 42c1c884ac..bdfc7ae864 100644 --- a/contracts/test/unit/EigenDABlobVerifierV2Unit.t.sol +++ b/contracts/test/unit/EigenDABlobVerifierV2Unit.t.sol @@ -177,7 +177,8 @@ contract EigenDABlobVerifierV2Unit is MockEigenDADeployer { lengthProof: BN254.G2Point(lengthProofX, lengthProofY), dataLength: uint32(uint256(keccak256(abi.encode(psuedoRandomNumber, "blobHeader.dataLength")))) }), - paymentHeaderHash: keccak256(abi.encode(psuedoRandomNumber, "blobHeader.paymentHeaderHash")) + paymentHeaderHash: keccak256(abi.encode(psuedoRandomNumber, "blobHeader.paymentHeaderHash")), + salt: uint32(uint256(keccak256(abi.encode(psuedoRandomNumber, "blobHeader.salt")))) }); return blobHeader;