The Merge🛰️
The Proof of Stake Engine docking to Ethereum Spaceship
The Ethereum Beacon Chain shipped on last December 1st is seperate from the Proof-of-Work secured Mainnet (execution layer) we use today. Since then, the Beacon Chain (consensus layer) has been running in parallel using Proof-of-Stake consensus mechanism.
"The Merge" is when the two systems finally come into one proof-of-stake based chain. The current Ethereum Mainnet will be "merged" into the Beacon Chain.
Imagine Ethereum is a space ship that isn’t quite ready for an interstellar voyage. With the Beacon Chain the community has built a new engine and a hardened hull. When it’s time, the current ship will dock with this new system, merging into one ship, ready to put in some serious lightyears and take on the universe.
The merge and the post-merge cleanup
Immediately after the merge, some features such as withdrawing staked ETH, will not yet be supported. These are planned for a separate upgrade to follow shortly after the merge.
Stay up-to-date with the EF Research and Development Blog.
The merge and shard chains
Originally, the plan was to work on shard chains before the merge – to address scalability. However, with the boom of layer 2 scaling solutions, the priority has shifted to swapping proof-of-work to proof-of-stake via the merge.
This will be an ongoing assessment from the community as to the need for potentially multiple rounds of shard chains to allow for endless scalability.
Interested in Merge pre-history? Read this latest write-up by Tim Beiko.
Learn more about technical details about the possible merge process,
check out Mikhail Kalinin's explanation.
Learn more about What Happens After the Merge, by Vitalik Buterin at the 2021 ETHGlobal.
What is PoS?
Proof of Stake (PoS) is a category of consensus algorithms for public blockchains that depend on a validator’s economic stake in the network. In proof of work (PoW) based public blockchains (e.g. Bitcoin and the current implementation of Ethereum), the algorithm rewards participants who solve cryptographic puzzles in order to validate transactions and create new blocks (i.e. mining).
In PoS-based public blockchains (e.g. Ethereum’s upcoming Casper implementation), a set of validators take turns proposing and voting on the next block, and the weight of each validator’s vote depends on the size of its deposit (i.e. stake). Significant advantages of PoS include security, reduced risk of centralization, and energy efficiency.
In general, a proof of stake algorithm looks as follows. The blockchain keeps track of a set of validators, and anyone who holds the blockchain’s base cryptocurrency (in Ethereum’s case, ether) can become a validator by sending a special type of transaction that locks up their ether into a deposit.
The process of creating and agreeing to new blocks is then done through a consensus algorithm that all current validators can participate in.
There are many kinds of consensus algorithms, and many ways to assign rewards to validators who participate in the consensus algorithm, so there are many “flavors” of proof of stake.
From an algorithmic perspective, there are two major types: chain-based proof of stake and BFT-style proof of stake.
In chain-based proof of stake, the algorithm pseudo-randomly selects a validator during each time slot (eg. every period of 10 seconds might be a time slot), and assigns that validator the right to create a single block, and this block must point to some previous block (normally the block at the end of the previously longest chain), and so over time most blocks converge into a single constantly growing chain.
In BFT-style proof of stake, validators are randomly assigned the right to propose blocks, but agreeing on which block is canonical is done through a multi-round process where every validator sends a “vote” for some specific block during each round, and at the end of the process all (honest and online) validators permanently agree on whether or not any given block is part of the chain. Note that blocks may still be chained together; the key difference is that consensus on a block can come within one block, and does not depend on the length or size of the chain after it.
Credits to Ethereum Wiki.
Stake in Ethereum
ETH holders can participate in Ethereum staking and receive economic rewards in two manners:
1. Stake 32 ETH and run your own validator node;
2. Use third-party staking services or join staking pools.
The minimum requirement for staking:
1. At least 32 ETH for each validator (every 32 ETH will activate a validator. DON'T deposit more than 32 ETH for one validator);
2. Eligible hardware configuration;
3. Internet connection.
→ Ethereum Official Launchpad
→ Deposit contract (DON'T send your ETH directly into the deposit contract)
以太坊信标链在 2020 年 12 月 1 日正式启动,使用的是权益证明 (Proof-of-Stake) 共识机制,并且与目前使用工作量证明 (Proof-of-Work) 共识机制的以太坊链 (即执行层) 互相独立、并行运行。
“The Merge” (合并) 指的是这两个系统最终融合成为一个基于权益证明 (proof-of-stake) 的以太坊区块链,也就是说当前的以太坊主网会合并到信标链中。
我们可以这样想象:以太坊是一艘尚未为星际航行做好准备的太空飞船。通过信标链,社区构建了新的引擎和坚固的船身。时机合适时,以太坊飞船将与新系统对接,成为一体,开启太空漫游的旅程。
在合并完成之后,有些功能并不会立即实现,例如提取被质押的 ETH,计划将会在合并不久之后单独进行升级以实现相关功能。研发进展请密切关注 以太坊基金会博客。
之前的计划时在合并之前先实现分片链以解决扩容问题。然而,随着 layer 2 解决方案的迅速发展,能够应对短期的扩容需求,路线图中的优先项变成了合并,也就是将以太坊完全从工作量证明机制切换到权益证明机制。
按照此前的路线图,以太坊首先将部署 64 条数据分片,而后续社区将基于对扩容性的判断持续评估分片的实现进程。
对 Merge 的历史发展感兴趣? 不妨阅读 Tim Beiko 这篇最新的文章。
Mikhail Kalinin 的技术细节讲解:可能的合并途径
Vitalik Buterin 在 2021 ETHGlobal 的演讲《合共之后的发展路线》
点击观看中文版
Proof of Stake - 权益证明
权益证明(PoS)是一种用于公共区块链的共识算法,该算法取决于验证者在网络中的经济权益。在基于工作量证明(PoW)的公共区块链(例如目前的比特币和以太坊)中,通过奖励解决密码难题的参与者,以验证交易并创建新区块(即挖矿)。而在基于 PoS 的公共区块链(以太坊即将发布的 Casper)中,一组验证者轮流对下一个区块进行提议和投票,每个验证者的投票权重取决于其押金(即权益)的多少。 PoS 的显着优势包括提高安全性、降低中心化风险和节省能耗。
通常,权益证明算法是这样运行的:区块链持续追踪一个验证者集合,任何持有区块链基础加密货币(以太坊为 ETH)的人都可以通过发送一种特殊的交易将其 ETH 锁定为押金,以成为验证者。然后,所有的验证者都可以通过参与共识算法完成新区块的创建并确认新区块的产生。
目前有许多种共识算法,对参与共识算法验证者的奖励机制也多种多样,因此,存在不同类别的权益证明机制。从算法角度来看,PoS主要有两种类型:基于链的 PoS 和基于BFT(拜占庭容错)的PoS。
在基于链的 PoS 中,该算法在每个时隙(每10秒的时间段可能作为一个时隙)中伪随机地选择一个验证者,并向该验证者分配创建单个区块的权限,并且该区块必须指向某个先前的区块(按照最长链规则,通常是最长链末尾的区块),因此随着时间的推移,大多数区块会按照顺序组成一条不断延伸的链。
在基于BFT(拜占庭容错)的 PoS 中,验证者被随机分配提议区块的权利,但是要就区块有效性达成一致需要通过多轮回合制过程,即每个验证者在每一回合中针对某个特定区块投票,从而就区块的规范性达成共识。在该过程结束时,所有(诚实的和在线的)验证者都将商定是否有任何给定区块被纳入链中,其结果是永久有效的。需要注意的是,区块仍然可以链接在一起,关键区别在于,对某个区块达成的共识将保留在区块内,而不取决于其后链的长度或大小。
参与以太坊质押
ETH 持有者可以通过两种方式参与以太坊 2. 0 Staking 并获得收益:
1. 质押 32 ETH 并运行自己的验证者节点;
2. 选择第三方 Staking 服务商或加入 Staking 池
参与质押的最低要求:
每个验证者至少质押 32 ETH(每32 ETH激活一名验证者,多存无效)符合条件的计算机硬件配置网络连接
→ 以太坊官方质押门户 - Launchpad (支持中文)
→ 存款合约地址 (请勿直接向存款合约发送 ETH)