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

Protocol: Verkle Trees #182

Open
2 of 3 tasks
mratsim opened this issue Feb 21, 2022 · 1 comment
Open
2 of 3 tasks

Protocol: Verkle Trees #182

mratsim opened this issue Feb 21, 2022 · 1 comment
Labels
enhancement :shipit: New feature or request verkle trees 🌴

Comments

@mratsim
Copy link
Owner

mratsim commented Feb 21, 2022

The Ethereum state will likely replace Merkle Trees by Verkle Trees for storage in the future.

Simple Summary

Introduce a new Verkle state tree alongside the existing hexary Patricia tree. After the hard fork, the Verkle tree stores all edits to state and a copy of all accessed state, and the hexary Patricia tree can no longer be modified. This is a first step in a multi-phase transition to Ethereum exclusively relying on Verkle trees to store execution state.

Motivation

Verkle trees solve the key problem standing in the way of Ethereum being stateless-client-friendly: witness sizes. A witness accessing an account in today’s hexary Patricia tree is, in the average case, close to 3 kB, and in the worst case it may be three times larger. Assuming a worst case of 6000 accesses per block (15m gas / 2500 gas per access), this corresponds to a witness size of ~18 MB, which is too large to safely broadcast through a p2p network within a 12-second slot. Verkle trees reduce witness sizes to ~200 bytes per account in the average case, allowing stateless client witnesses to be acceptably small.

Articles:

Prerequisite:

@mratsim mratsim added the enhancement :shipit: New feature or request label Feb 21, 2022
@mratsim
Copy link
Owner Author

mratsim commented Aug 5, 2022

New developments Inner Product Argument instead of KZG:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement :shipit: New feature or request verkle trees 🌴
Projects
None yet
Development

No branches or pull requests

1 participant