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

onchain renaming #1154

Merged
merged 3 commits into from
Jan 27, 2025
Merged

onchain renaming #1154

merged 3 commits into from
Jan 27, 2025

Conversation

0x0aa0
Copy link
Contributor

@0x0aa0 0x0aa0 commented Jan 24, 2025

  • BlobVerificationProofV2 -> BlobInclusionInfo
  • EigenDABlobVerifier -> EigenDACertVerifier
  • verifyBlob() -> verifyDACert()

@0x0aa0 0x0aa0 requested review from samlaf and ian-shim January 24, 2025 15:04
@samlaf samlaf requested a review from litt3 January 24, 2025 15:10
contracts/src/core/EigenDACertVerifier.sol Show resolved Hide resolved
contracts/src/core/EigenDACertVerifier.sol Outdated Show resolved Hide resolved
Comment on lines 87 to 89
BatchHeaderV2 calldata batchHeader,
BlobVerificationProofV2 calldata blobVerificationProof,
BlobInclusionInfo calldata blobInclusionInfo,
NonSignerStakesAndSignature calldata nonSignerStakesAndSignature
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we take this change as an opportunity to create an explicit DACert struct, both onchain and offchain, that would hold these 3 things together? Would canonicalize the name and remove any ambiguities going forward as to what a DACert is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also overall feel like we should keep the SignedBatch semantics, even when transforming the attestation into a NonSignerStakesAndSignature (because that's just a transformation of the exact same information, meant to be consumed by the contract differently).
image
Perhaps we could use SignedBatch and SignedBatchWithNonsigners or something? And then a DACert would be either {SignedBatch, BlobInclusionInfo} or {SignedBatchWithNonSigners, BlobInclusionInfo} and it would be more obvious that those two things are just one eth_call away, but have the same semantic. Right now people are always confused as to how the 2 verify functions we have are related, because syntactically they look very different.

contracts/src/core/EigenDACertVerifier.sol Show resolved Hide resolved
bytes32 paymentHeaderHash;
uint32 salt;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't this struct being called BlobHeaderV2 a bit limitating? What if we ever in the future want to also reveal payments onchain? Then we'll have to create another struct with a weird name for that.

Perhaps we could keep BlobHeaderV2 for the full struct to match offchain code, and use a more specific name here for this struct, like BlobHeaderV2WithPaymentHash (there's prob a better name)

contracts/src/interfaces/IEigenDAStructs.sol Show resolved Hide resolved
@0x0aa0 0x0aa0 requested review from samlaf and litt3 January 27, 2025 16:49
@ian-shim
Copy link
Contributor

@samlaf let me know if there's any more outstanding changes needed in this PR. I'll generate bindings and add offchain changes on top of it when we're happy about the onchain updates

@samlaf
Copy link
Contributor

samlaf commented Jan 27, 2025

@samlaf let me know if there's any more outstanding changes needed in this PR. I'll generate bindings and add offchain changes on top of it when we're happy about the onchain updates

LGTM in this state. The two outstanding convos are nice-to-have but I'm fine to move on without them.

@ian-shim ian-shim force-pushed the quaq/v2-renaming-onchain branch from 1bdfd67 to 3c1093e Compare January 27, 2025 22:10
@ian-shim ian-shim force-pushed the quaq/v2-renaming-onchain branch from 3c1093e to 5cb20ca Compare January 27, 2025 22:29
@0x0aa0 0x0aa0 merged commit f04df48 into master Jan 27, 2025
9 checks passed
@0x0aa0 0x0aa0 deleted the quaq/v2-renaming-onchain branch January 27, 2025 23:28
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.

4 participants