Skip to content

Ethereum 2.0 Phases

As Ethereum 2.0 is in heavy research and development, this page may become outdated spontaneously. It is kept up to date on a best-effort basis.

Introduction

Ethereum's major network upgrade, dubbed Ethereum 2.0, Eth2 or Serenity, will bring with it Sharding, Proof of Stake, a new virtual machine (eWASM) and more. It’s important to understand that this upgrade will not take place at a single point in time - instead, it will be rolled out in phases. This document attempts to be a reference point for these phases and what each one includes.

Design Goals

Ethereum researcher Danny Ryan has stipulated 5 distinct design goals for Ethereum 2.0:

  • Decentralization: to allow for a typical consumer laptop with O(C) resources to process/validate O(1) shards (including any system level validation such as the beacon chain).
  • Resilience: to remain live through major network partitions and when very large portions of nodes go offline.
  • Security: to utilize crypto and design techniques that allow for a large participation of validators in total and per unit time.
  • Simplicity: to minimize complexity, even at the cost of some losses in efficiency.
  • Longevity: to select all components such that they are either quantum secure or can be easily swapped out for quantum secure counterparts when available.

Phase 0 - Beacon Chain

What is included?

Phase 0 is the name given to the launch of the Beacon Chain. The Beacon Chain will manage the Casper Proof of Stake protocol for itself and all of the shard chains. As Ben Edgington puts it, “There are a number of aspects to this: managing validators and their stakes; nominating the chosen block proposer for each shard at each step; organizing validators into committees to vote on the proposed blocks; applying the consensus rules; applying rewards and penalties to validators; and, being an anchor point on which the shards register their states to facilitate cross-shard transactions.”

The primary source of load on the Beacon Chain will be "attestations". Attestations are availability votes for a shard block and, simultaneously, proof of stake votes for a beacon block. A sufficient number of attestations for the same shard block will create a "crosslink" which confirms the shard segment up to that shard block into the Beacon Chain.

Phase 0 will use Casper the Friendly Finality Gadget (FFG) for finality. Finality, in very loose terms, means that once a particular operation has been done, it will forever be etched in history and nothing can revert that operation.

ETH2: The New Ether

Phase 0 will introduce ETH2 which will be a new asset for stakers (validators) to be used on the Beacon Chain. It will be created using two methods:

  • As a reward for validating the Beacon Chain (and shards after Phase 1).
  • Purchasing it for 1 ETH by any ETH1.X user via a registration contract. The contract refers to it as a deposit.

There is currently no way to withdraw or transfer ETH2 from the Beacon Chain in Phase 0. Once deposited in the ETH1.x validator registration contract, the ETH1 is effectively burned. Beacon Chain validators watch this contract and submit deposit information to the Beacon Chain, which then issues ETH2 to the depositors.

Lastly, the Beacon Chain will generate good quality (distributed, verifiable, unpredictable, and (reasonably) unbiasable) randomness for the rest of the system. It will use RANDAO which is simply a way to combine contributions (individual random numbers) provided by many participants into a single output number.

This will be used to organize validators into block proposers and committees.

What will the network look like?

Once Phase 0 is complete, there will be two active Ethereum chains. For the sake of clarity let’s call them the Eth1 chain (current, PoW main chain) and the Eth2 chain (new Beacon Chain). During this phase, users will be able to migrate their ETH from the Eth1 chain to the Eth2 chain and become validators. However, they will NOT be able to migrate this ETH back (for now). The reason someone may want to do this is that they could be earning interest paid in ETH on the Eth2 chain.

In order to run the Beacon Chain, you’re going to need a Beacon Chain client. These are currently being developed separately from the familiar suite of standard Ethereum clients (Geth, Parity, Pantheon, et al.) by a number of teams. Most of the teams are putting out periodic updates on their client development progress, and some of the teams are offering bounties to contributors to include more and more developers in building 2.0. You can contribute on Gitcoin grants here

On its own, the Beacon Chain might not seem particularly useful. But, as the first component of Ethereum 2.0 to be delivered, it is the foundation of the entire system.

Important Considerations

  • ETH2 is transferable to and from shards once Phase 2 is complete (though this may change in the future).
  • There will be a minimum amount of ETH stake needed in order to first bootstrap the beacon chain. This is defined as CHAIN_START_FULL_DEPOSIT_THRESHOLD in the deposit contract that will live on the Eth 1.0 chain.
  • To become a validator, you'll need to stake 32 ETH2.
  • During Phase 0, all user transactions and smart contract computations will still occur on the Eth1 chain.

Phase 1 - Shard Chains

What is included?

Shard chains are the key to future scalability as they allow parallel transaction throughput and there will be 64 of them deployed in Phase 1 (with the option of adding more over time).

Phase 1 is primarily concerned with the construction, validity, and consensus on the data of these shard chains. Phase 1 does not specify shard chain state execution or account balances. It'll be like a trial run for the sharding structure rather than an attempt to use shards to scale. The Beacon Chain will treat shard chain blocks as simple collections of bits with no structure or meaning.

Crosslinks
Periodically, the current state (the “combined data root”) of each shard gets recorded in a Beacon Chain block as a crosslink. When the Beacon Chain block has been finalised, the corresponding shard block is considered finalised, and other shards know that they can rely on it for cross-shard transactions.

Crosslinks are a set of signatures from a committee attesting to a block in a shard chain, which can be included into the Beacon Chain. Crosslinks are the main means by which the Beacon Chain "learns about" the updated state of shard chains. Crosslinks also serve as infrastructure for asynchronous cross-shard communication.

Shard validators, who are randomly selected by the Beacon Chain for each shard at each slot, merely come to agreement on each block’s content. They attest to the shard’s contents and state through crosslinking. It doesn’t matter what information appears in shards blocks, so long as all committees reach consensus and update the Beacon Chain on the shard regularly.

What will the network look like?

The Eth1 and Eth2 chains will still operate in parallel after Phase 1.

Important Considerations

  • In Phase 0, 1, and 2 the main PoW chain (Eth1) will remain live while testing and transitioning is happening on the Eth2 chain. This means that rewards will be paid to both Ethereum 2.0 validators as well as the normal PoW block rewards. Therefore, the combined inflation of the twp chains may spike initially but then start to trend towards the 0-1% range as the PoW chain is gradually de-emphasized.

Phase 2 - State Execution

What is included?

Phase 2 is where the functionality of the entire system will start to come together. Shard chains transition from simple data containers to a structured chain state and Smart Contracts will be reintroduced. Each shard will manage a virtual machine based on eWASM. It'll support accounts, contracts, state, and other abstractions that we’re familiar with from solidity. We can expect familiar tools like truffle, solc, ganache ported to support eWASM before or during Phase 2.

Phase 2 also introduces the concept of 'Execution Environments (EEs)'. EEs within a shard can be constructed in whatever way a developer sees fit - there could be an EE for a UTXO-style chain, a Libra-style system, an EE for a fee market relayer and beyond. Every shard has access to all execution environments and has the ability to make transactions within them as well as run and interact with smart contracts. Do note that the concept of execution environments is still in heavy research and development.

Important Considerations

  • A dApp will have to choose what shard it wants to be on. That decision matters because cross-shard communication differs on Eth2 as it is not synchronous which means some composability is lost between shards
  • A dApp would have to have rather large data to consume all the resources in a given shard to justify spreading itself over multiple ones.
  • This phase will endow shards with eWASM as the EVM 2.0.
  • It is an open question when and how Ethereum 1.0 accounts and contracts will be migrated to Ethereum 2.0, there are some upgrade plans

What's next ?

The sharding roadmap according to the official wiki suggests 6 phases. Ethereum researcher Justin Drake strongly believes that the sharding Phase 1 and 2 will come in 2020 and 2021, respectively (assuming that the Beacon Chain launches in early 2020).

From Phase 3 onwards any speculation made is subjected to change, you can go and check out the wiki for further phase's information.

Resources