Author: Ghost in Linguan Hong / fingertips
Nuggets: juejin.im/user/587f0d...
GitHub : github.com/af913337456…
Tencent cloud column: cloud.tencent.com/developer/u...
Wormhole block chain Column: www.chongdongshequ.com/article/153...
BTW: I have a technical book "block chain Ethernet Square DApp development of combat" is now published and online shopping, suitable for middle-class block chain technology-related R & D personnel to read.
table of Contents
- prologue
- Ethernet Square 2.0 participants
- Block life cycle
- Consensus optimization algorithm
- 2.0 Consensus Process
prologue
以太坊
Is 区块链领域
an application, the application for the public-chain, the latter 真子集
.
This article from a 区块的生命周期
point of view to introduce 以太坊 2.0
compared to 1.X
what had been different, the main point is to 共识算法
change.
Ethernet Square 2.0 participants
Note that the current version 2.0 has not formally launched, some features still in development, including, but not limited to, the introduction of the following 新技术点
or 名词
:
信标链
It will manage the verification participation consensus. Comprising but not limited to:- Management verifier.
- ETH become involved in mortgage ordinary address verifier
- For various reasons
自己退出
verifier - Punish and kicked verifier
- Provide randomness.
随机分配验证者
Article chain fragment to a随机选择轮到提议
Verifier- ...
- Tracking and updating mortgages verifier.
- The success of the block vote and won
奖励
- Do not vote, and absenteeism is
处罚
, what we call "quadratic leak (secondary leakage)." - Operation is evil
惩罚
- The success of the block vote and won
- Cross-linked, joined together the entire chain fragmentation.
- When different
交易
are assigned to different blocks, block slice at different chain, the信标链
responsible for their数据/通讯
consistent, for example合约的调用
.
- When different
- Connected thereto in response to the verifier client software.
- By then, everyone can use
终端设备
to download信标链软件
and become a verifier, to participate in ecological management 2.0.
- By then, everyone can use
- Management verifier.
验证者
, 2.0 blocks actors involved in ecology, ordinary Ethernet Square to the designated address by intelligent contract抵押 32 个ETH
to become the verifier.分片链
, With a number, it will manage被打包的交易
, verify who will be随机分配
here, building blocks, and then wait in line, block or refuse to vote block.EWASM
The virtual machine system on the slice, is an upgraded version of the EVM. The figure is its github project home page.- ...
Block life cycle
Based 以太坊 1.8.11
versions of source code. 请注意这个前提
, Belongs version title is:大都会 之 上章 --- 拜占庭
First we look at 以太坊 1.8.11
the 区块生命周期
illustrations. At a glance, as shown below. An obvious point is: 以太坊
the 挖矿算法
still PoW 算力挖矿
. This also led to the most serious block of time where you want to increase the speed of the block, the optimization 共识算法
is a key point.
Consensus optimization algorithm
Will 以太坊
the PoW
algorithm is a modification in the earlier initiatives already declared the Ethernet Square team. The original process plan:
PoW --> (PoW + PoS) --> PoS
About PoW
consensus algorithm 通俗讲解
to see me this article: a consensus algorithm block chain: a general introduction and forked popular explanation
About PoS
consensus algorithm 通俗讲解
to see me this article: a consensus algorithm block chain: PoS and example code implementation
The current, has released a 君士旦丁堡
version of itself that is converted to PoS
a consensus, but unfortunately still is PoW
.
Version 2.0 is the last version of the Ethernet Square now planning: Serenity(宁静)
it is in this version, Ethernet Square team will be introducing a new clear 共识机制
, participate together to achieve this change is the role of this article 以太坊 2.0 参与者
those sections mentioned.
Because Ethernet Square began to use a public chain it is PoW 共识机制
already running for a long time. It is different from a number of new public chain, at the beginning of the performance can pick a better consensus algorithm, the previous 吃螃蟹者
base --- Bitcoin chain on the public, it also uses a PoW. Therefore, to the present, with the deployment of on top of it DApp
when the more original, and to consider the transaction speed to support more demanding applications, it must be upgraded.
Upgrade now, we need to consider more questions, such as:
- Still to keep to the center, because it is one of the core features of the block chain.
- Effective against the threat of decentralized consensus, such as the power center of the PoW count to consider.
- Block consensus of cost considerations, such as the calculation of power consumption of power resources.
- For the old camp node consensus mechanism will lead to the birth of a hard fork chain.
- Data block before the engagement of the block chain.
- Improve the trading block and packaged throughput of.
- Block is verified speed.
- ...
For 第六点
, since the block efficiency of a direct impact on the success of the transaction is packed successful efficiency, transaction success rate also changes followed.
2.0 Consensus Process
A combination of the previous section 以太坊 2.0 参与者
discussed the various roles, Ethernet Square consensus mechanism 2.0, now appears to be in line with PoS
patterns, why is it seems? Because the 2.0 release yet, so before that everything is variable.
At block life processes in 进行共识
a next step may be subdivided into FIG.
There are two important figures random:
- Randomly assigned to the verifier
分片链
. Collection from the verifier, the verifier selected parts of a slice assigned to a chain. - Random proposal verifier. The proposed verifier proposal where their slice of the production chain block for other fragmentation chain verifier vote. Votes can be cast approval votes cast may also refuse to vote.
Note:
叔块
The concept does not currently exist to confirm if they would be以太坊2.0
in, therefore, do not make the figure.
Finally, we can look Ethernet Square 2.0 官方
overall architecture diagram:
And some may run into when provisional 信标链
communication of 客户端软件
: