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

Adapt leaf key types to follow new eip-6800 spec #67

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

lu-pinto
Copy link
Contributor

@lu-pinto lu-pinto commented Sep 4, 2024

PR description

I observed while changing gas costs that a new spec for leaf keys has been released here: https://eips.ethereum.org/EIPS/
eip-6800 and the new gas costs schedule already uses that.

Mostly the changes are around encoding the balance, nonce, code size and version information into a single leaf called BASIC_DATA_LEAF which takes the position 0 in the suffix tree. The CODEHASH_LEAF supposedly replacing CODE_KECCAK_LEAF_KEY from old spec will take position 1. See below before and after along with references where it were taken from:
image
image

old spec: https://ethereum-magicians.org/t/proposed-verkle-tree-scheme-for-ethereum-state/5805
new spec: https://eips.ethereum.org/EIPS/eip-6800

Copy link

github-actions bot commented Sep 4, 2024

  • I thought about the changelog.

Copy link
Contributor

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM, you will have to change besu

@lu-pinto
Copy link
Contributor Author

lu-pinto commented Sep 4, 2024

  • I thought about the changelog.

Discussed with @matkt offline, since this is still in development there's no changelog yet

@lu-pinto
Copy link
Contributor Author

lu-pinto commented Sep 4, 2024

@thomas-quadratic FYI

@matkt matkt merged commit 3194987 into hyperledger:main Sep 4, 2024
5 checks passed
@lu-pinto lu-pinto removed the request for review from garyschulte September 4, 2024 15:10
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