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

Add 4844 containers to protobuf #11596

Merged
merged 5 commits into from
Oct 31, 2022
Merged

Add 4844 containers to protobuf #11596

merged 5 commits into from
Oct 31, 2022

Conversation

terencechain
Copy link
Member

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:

Which issues(s) does this PR fix?

Part of #11579

Other notes for review

@terencechain terencechain added Ready For Review A pull request ready for code review Blobspace labels Oct 31, 2022
@terencechain terencechain requested a review from a team as a code owner October 31, 2022 15:46
@terencechain terencechain self-assigned this Oct 31, 2022

// Blob contains the data that is to be committed on chain.
message Blob {
repeated bytes blob = 1 [(ethereum.eth.ext.ssz_size) = "4096,32"];
Copy link
Contributor

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

Copy link
Member Author

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

rauljordan
rauljordan previously approved these changes Oct 31, 2022
Copy link
Contributor

@rauljordan rauljordan left a 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"];
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member Author

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 👑

prestonvanloon
prestonvanloon previously approved these changes Oct 31, 2022
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

LGTM

saolyn
saolyn previously approved these changes Oct 31, 2022
Copy link
Contributor

@saolyn saolyn left a comment

Choose a reason for hiding this comment

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

LGTM

proto/engine/v1/execution_engine.proto Outdated Show resolved Hide resolved
Comment on lines +159 to +161
message Blob {
repeated bytes blob = 1 [(ethereum.eth.ext.ssz_size) = "4096,32"];
}
Copy link
Contributor

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.

@rkapka rkapka dismissed stale reviews from saolyn and prestonvanloon via 07fc336 October 31, 2022 17:29
Copy link
Contributor

@rkapka rkapka left a 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.

@terencechain terencechain merged commit 2142b13 into develop Oct 31, 2022
@terencechain terencechain deleted the 4844-containers branch January 18, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blobspace Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants