Skip to content
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

fix: Cert timing bug for L2s #32

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

epociask
Copy link
Collaborator

@epociask epociask commented Nov 19, 2024

Changes

  • Introduced a vulnerability patch to ensure that the confirmation block number associated with an EigenDA certificate isn't too old or expired
  • Only applicable for L2s since L3s can't do any verifications against bridged blob batch commitments

@epociask epociask merged commit 53dcf37 into eigenda-v2.1.0 Nov 20, 2024
4 of 10 checks passed
@@ -14,6 +18,23 @@ contract EigenDABlobVerifierL1 is IRollupManager {
IEigenDAServiceManager.BlobHeader calldata blobHeader,
EigenDARollupUtils.BlobVerificationProof calldata blobVerificationProof
) external view {
/*
Verify that the certificate is less than 2 epochs old from the L1 reference block number
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 epoch is about 24mins. In addition, referenceBlockNumber is not right, because it is smaller than confirmationBlockNumber. ReferenceBlockNumber is the number we used to anchor the stake used to distribute chunks to DA nodes. The time diff is the batchingInterval+75(which is some number we introduced to prevent reorg).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we stick with confirmationBlockNumber. I think 20 mins is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants