-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verifyBlobs util #862
verifyBlobs util #862
Conversation
*/ | ||
function verifyBlobs( | ||
IEigenDAServiceManager.BlobHeader[] calldata blobHeaders, | ||
IEigenDAServiceManager eigenDAServiceManager, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this the first param imo
Merkle.verifyInclusionKeccak( | ||
blobVerificationProofs[i].inclusionProof, | ||
blobVerificationProofs[i].batchMetadata.batchHeader.blobHeadersRoot, | ||
keccak256(abi.encodePacked(EigenDAHasher.hashBlobHeader(blobHeaders[i]))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double hash?
|
||
// make sure that the adversaryThresholdPercentage is at least the given quorumAdversaryThresholdPercentage | ||
uint8 _adversaryThresholdPercentage = uint8(quorumAdversaryThresholdPercentages[blobHeaders[i].quorumBlobParams[j].quorumNumber]); | ||
if(_adversaryThresholdPercentage > 0){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this check?
); | ||
|
||
// bitmap of quorum numbers in all quorumBlobParams | ||
uint256 confirmedQuorumsBitmap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't return this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if not, why not just point to the indices in quorumBlobParams to verify?
@@ -31,10 +31,10 @@ library EigenDARollupUtils { | |||
* @param blobVerificationProof the relevant data needed to prove inclusion of the blob and that the trust assumptions were as expected | |||
*/ | |||
function verifyBlob( | |||
IEigenDAServiceManager.BlobHeader calldata blobHeader, | |||
IEigenDAServiceManager.BlobHeader memory blobHeader, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why cant we keep this calldata?
Why are these changes needed?
Adds a verifyBlobs function to RollupUtils that accepts input of multiple blob proofs for verification
Checks