Skip to content

Latest commit

 

History

History
84 lines (44 loc) · 3.94 KB

README.md

File metadata and controls

84 lines (44 loc) · 3.94 KB

stateless-ethereum-specs

Specifications for the Stateless Ethereum research effort

Problem Statement and Goals

[Problem statement and goals subject to revision and the will of all contributers to Stateless Ethereum]

The Ethereum state is ever-growing, and it will continue to do so at an accelerating pace. The growing size of the state will not only make running a full node more and more untennable for a ''normal" person, but may render the Ethereum network unstable and unusable if ignored. So we must not ignore it.

Stateless Ethereum is the "all in" direction of Ethereum 1.x research to solve this problem. It encompasses a set of upgrades and features that will make keeping a full copy of the Ethereum state optional on the network, by introducing a proving scheme for clients without state (a block witness).

Contributing

Ethresear.ch (tag: "1.x research")

Eth1x / 2 Research Discord

In this Repo

Specs

Roadmaps

Background

Vitalik Buterin proposed the Stateless Client Concept in October 2017. The purpose of the Stateless Client Concept is to create a new type of full Ethereum node that is no longer required to store the state of the entire blockchain.

Instead, miners would provide each mined block with the minimal information that is required to prove that block’s validity and to do a particular state transition. Such information is known as a witness. Witnesses are a set of Merkle branches proving the values of all data that the execution of the block accesses.

We encode the witness, the set of Merkle branches, as instructions. The block validator parses these instructions and constructs these Merkle branches, in order to check validity. Block validity is checked by constructing a partial Merkle tree using:

  • the state-data provided by a state provider

  • the above Merkle branches, and matching the computed Merkle root with the held Merkle root.

Therefore, block witnesses would allow stateless nodes to store only state roots instead of the entire Merkle Patricia trie for the entire blockchain. A node would receive the state root of a previous state, a newly mined block and the block’s witness. Successful validation of the new block would result in a new state. Only the state root for the new state would be stored by the node.

Further Reading

Overview & Concepts

Witness Optimization Techniques

Sync and Network

State Trie

EVM