-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Conversation
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
✅ All reviewers have approved. |
def hash_point_to_bytes(point: Point) -> int: | ||
return group_to_scalar_field(point).to_bytes(32, 'little') |
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.
For more info: gballet/go-ethereum#401 & ethereum/go-verkle#428
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.
Note that group_to_scalar_field
is defined on L38.
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.
All Reviewers Have Approved; Performing Automatic Merge...
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.