-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add 4844 containers to protobuf #11596
Conversation
|
||
// Blob contains the data that is to be committed on chain. | ||
message Blob { | ||
repeated bytes blob = 1 [(ethereum.eth.ext.ssz_size) = "4096,32"]; |
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.
Are these going to be different for minimal config? if so we can probably use the dynamic pattern we used for the beacon state and blocks
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.
Not as of now, we add can add them when minimal config is out
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.
LGTM
// The block hash of the payload which corresponds to the blobs. | ||
bytes block_hash = 1 [(ethereum.eth.ext.ssz_size) = "32"]; | ||
// The KZG commitments of the blobs. | ||
repeated bytes kzgs = 2 [(ethereum.eth.ext.ssz_size) = "?,48", (ethereum.eth.ext.ssz_max) = "16"]; |
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.
Does this have to be named kzgs? How about calling it commitments? kzgs
is hard type, say, and it's not very idiomatic.
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.
Yeah. I also like commitments better
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.
Discussed offline. kzg_commitments
is 👑
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.
LGTM
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.
LGTM
message Blob { | ||
repeated bytes blob = 1 [(ethereum.eth.ext.ssz_size) = "4096,32"]; | ||
} |
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.
Can we rename blob
to data
? Blob.Data
will be more readable than Blob.Blob
.
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.
Approving because my commit dismissed previous reviews.
What type of PR is this?
Spec (EIP4844)
What does this PR do? Why is it needed?
This PR adds the following containers to protobuf for EIP4844:
BlobsBundle
SignedBeaconBlockAndBlobsSidecar
BlobsSidecar
Which issues(s) does this PR fix?
Part of #11579
Other notes for review