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

fillers/eips/eip4844: Add Blob commitment version kzg to blob versioned hashes. #126

Merged
merged 4 commits into from
May 17, 2023

Conversation

spencer-tb
Copy link
Collaborator

@spencer-tb spencer-tb commented May 11, 2023

Adds the KZG Version to each blob hash in the current set of 4844 tests.

To give an example, in the fixtures the blob hash will go from:

"0x0000000000000000000000000000000000000000000000000000000000000000",

to

"0x0100000000000000000000000000000000000000000000000000000000000000",

appending the kzg version to the front.

Re: ethereum/EIPs#7009

It's not the most elegant solution but when we move towards a full pytest suite the elegance can be improved!

@spencer-tb
Copy link
Collaborator Author

spencer-tb commented May 11, 2023

More tests have been added to verify the functionality.

@spencer-tb spencer-tb changed the title fillers/eips/eip4844: Add Kzg Version to Blob Hashes. WIP - fillers/eips/eip4844: Add Kzg Version to Blob Hashes. May 11, 2023
@spencer-tb spencer-tb marked this pull request as draft May 11, 2023 14:29
@spencer-tb spencer-tb marked this pull request as ready for review May 11, 2023 22:38
@spencer-tb spencer-tb changed the title WIP - fillers/eips/eip4844: Add Kzg Version to Blob Hashes. fillers/eips/eip4844: Add Blob commitment version kzg to blob versioned hashes. May 11, 2023
@spencer-tb
Copy link
Collaborator Author

Tagging the following task: #130

Add explicit requirement of correct version byte for every versioned hash in blob txs

This PR will not be merged until both the spec change ethereum/EIPs#7014 & geth t8n-tool change mdehoog/go-ethereum#130 are merged.

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

LGTM!

@marioevz marioevz merged commit a44609b into ethereum:main May 17, 2023
@spencer-tb spencer-tb deleted the kzg-versioned-hashes branch July 7, 2023 03:52
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.

2 participants