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

Update EIP-6800: change tree key hashing #8302

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

jsign
Copy link
Contributor

@jsign jsign commented Mar 11, 2024

This PR changes the way we do tree key hashing, switching from base field point serialization to mapping to a scalar field and byte serialization.

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign jsign requested a review from eth-bot as a code owner March 11, 2024 12:17
@github-actions github-actions bot added c-update Modifies an existing proposal s-draft This EIP is a Draft t-core labels Mar 11, 2024
@eth-bot
Copy link
Collaborator

eth-bot commented Mar 11, 2024

✅ All reviewers have approved.

@eth-bot eth-bot added the a-review Waiting on author to review label Mar 11, 2024
Comment on lines +142 to +143
def hash_point_to_bytes(point: Point) -> int:
return group_to_scalar_field(point).to_bytes(32, 'little')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that group_to_scalar_field is defined on L38.

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Copy link

@kevaundray kevaundray left a comment

Choose a reason for hiding this comment

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

LGTM

@eth-bot eth-bot enabled auto-merge (squash) March 11, 2024 12:43
Copy link
Collaborator

@eth-bot eth-bot left a comment

Choose a reason for hiding this comment

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

All Reviewers Have Approved; Performing Automatic Merge...

@eth-bot eth-bot merged commit 59a1e79 into ethereum:master Mar 11, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-review Waiting on author to review c-update Modifies an existing proposal s-draft This EIP is a Draft t-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants