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

Use a versionned hash for the tree root #278

Open
gballet opened this issue Oct 13, 2022 · 0 comments
Open

Use a versionned hash for the tree root #278

gballet opened this issue Oct 13, 2022 · 0 comments

Comments

@gballet
Copy link
Member

gballet commented Oct 13, 2022

In order for rollups to use verkle trees, we are considering adding turning the root of the verkle tree into a versionned hash, so that it can be verified by the same (athough modified) precompile that is used in eip-4844.

The version number remains to be picked.

The first byte of the (pedersen hash of) the root commitment is replaced with the version number, and the dropped byte is added to the proof payload, for the precompile to be able to reconstruct the full tree from the proof.

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

No branches or pull requests

1 participant