V God takes you to re-understand Ethereum
Editor's Note: This article comes fromBlock beats BlockBeats (ID: BlockBeats), reprinted by Odaily with authorization.
Editor's Note: This article comes from
Block beats BlockBeats (ID: BlockBeats)
Block beats BlockBeats (ID: BlockBeats)
, reprinted by Odaily with authorization.
The market has been completely attracted by the performance of Bitcoin at $18,000, and Ethereum, which was once a new high within the year, is hardly discussed.
With the accumulative growth of the contract address balance and the official announcement date of December 1, everything seems to be going well for ETH2.
And ordinary users do not have a macroscopic understanding of ETH2. What is the performance of ETH2? Why Phase2 (second phase) will be put on hold temporarily?
If there is someone who can give us the most macro-level review on the topic of ETH2, then Vitalik Buterin, the founder of Ethereum, must be the most suitable candidate. The Rhythm Research Institute compiled Vitalik's interview on Bankless on October 19, 2020. In 2 hours, Vitalik talked about the design concept of Ethereum, briefly reiterated the roadmap of ETH2, and elaborated in detail The origin and reason of Ethereum's future technology selection and other hot topics in the community.
I believe that after reading this article, everyone will have a more comprehensive understanding of the outline of ETH2.
The following is the compilation of Rhythm Research Institute. This article is about 9700 words long and takes 15 minutes to read.
Why PoS+ Sharding
Sharding is a scaling solution whose main purpose is to increase the total transaction volume that Ethereum can handle. Scalability is critical for Ethereum, because Ethereum should be a global public infrastructure that anyone can interact with. As the underlying infrastructure of the Internet in the new era, it should be open and accessible to anyone.
If the decentralized expansion solution of sharding is not adopted, the alternative may be to let the centralized organization run a super network and then access the trusted side chain, but this is not what Vitalik wants to build. There have been many historical events that have proved that a transitionally centralized system is very easy to be manipulated, and will eventually deviate from the original design intention of the designer.
first level title
secondary title
In general:
Decentralized permissionless network
The Ethereum network does not want to be the kind of network that relies on super nodes, which is where the Ethereum network differs from other networks. Ethereum should be a fully functioning system without relying on any supercomputers, ideally a bunch of home laptops running the Ethereum network. As some Bitcoin believers have said, if the network is over-centralized and controlled by a few institutions, it may eventually go in an unsatisfactory direction.
EHT2 wants to create a PoS ecosystem in which anyone can participate, which is why Ethereum has not been inclined to super nodes, nor does it believe in the assumption of "majority honesty", which is very similar to the idea of Bitcoin . In the network, it is better for participants to verify the chain by themselves and try not to trust miners, because miners are not necessarily honest.
In general:
2. ETH2 guarantees that most ordinary users can directly participate in the writing of the chain;
3. At the same time, it is guaranteed that most ordinary users can directly read the data of the chain without relying on the trusted API;
4. Allow most ordinary users to participate in the consensus of the chain.
If you combine 2, 3, and 4 together, you will get a blockchain that is highly resistant to auditing and social and political attacks.
Do people really care about these qualities that Ethereum sticks to?
There are many competing products of Ethereum that have compromised on decentralization, permissionlessness, and the conservative nature of Ethereum, but in essence, the centralized path can be very efficient in the short term, but it will have serious side effects in the long run. For example, a typical example is Steemit, which was acquired by Justin Sun. Excessive centralization will eventually lead to community forks. EOS has also seen bribing attacks. Ultimately, the core participants in the centralized chain will collude to erode the rights and interests of ordinary users.
From the perspective of governance, if the voting governance power of a chain is controlled by those large currency holders, it will be very dangerous in the long run.
secondary title
Other communities that hold on to these qualities
Coda is very good. They are trying to create a chain that can use zero-knowledge proof, so that zk snark can directly verify the chain instead of individuals, and nodes cannot directly do evil. Mimblewimble and ETC are also good. Although ETC does not implement sharding, it tries to maintain a decentralized expansion plan.
However, for projects that adhere to these characteristics as a selling point, they are not as popular as projects that focus on other concepts. Because insisting on these characteristics is bound to mean that the stories that can be told are limited, but if stories are told using other concepts, then many things can be told. Although there will be very few chains featuring these qualities, Vitalik believes that this part of the project will eventually be successful.
first level title
Long-awaited PoS and sharding
Before the release of ETH1.0, PoS and sharding have been identified as the direction to improve ETH. Vitalik answered the question of how the community chooses the technical direction in the early stage.
As early as 2015, the community basically reached a consensus on the technical path of PoS and sharding. The occurrence of the DAO fork reinforces this. Those who opposed PoS and sharding also opposed the DAO fork, so they finally chose to support ETC.
It did take a while to be convinced that PoS and sharding were the right technology direction. Looking back at the original blog about Slasher, you will find that at the beginning of this article: Slasher is preparing for the possible implementation of PoS in the future. In January 2014, Vitalik was not sure whether there was a PoS Essential defects.
After 2014, another issue has become the focus of heated discussions, and that is the "Nothing at Stake" issue of the PoS system, which Vitalik answered in "Proof of Stake: How I Learned to Love Weak Subjectivity". Although PoS cannot have exactly the same characteristics as PoW, PoS can absorb the advantages of the PoW system as much as possible.
During the 16 to 17 years, people conducted in-depth research on other consensus algorithms, and finally figured out how to apply the security model of PoW to PoS.
For sharding, the main problem is how to choose the best security model. In 2015, Vitalik and the technical community began to try random sampling (Random Sampling), which is a breakthrough in applying sharding technology to the chain. In 2017, the community completed a breakthrough in the proof of data availability, which allowed the shard chain to remain safe even in the case of "majority dishonesty". After these explorations, we found that sharding is a feasible solution.
When we released ETH1.0 in 2015, we thought that PoS should be realized in one to one and a half years, but real time showed that the ideas at that time were too optimistic, but everyone was very confident at the time.
first level title
Looking at the Token Distribution Mechanism from the Monetary Policy of Ethereum
Afterwards, Vitalik and the technical team believed that although PoS is necessary and feasible, PoW may be the most equal and fair distribution method. From 2010 to 2013, PoW was considered the most democratic token distribution model, and even became a major selling point of BTC at that time: as long as you turn on your computer, you can get some BTC. This may also be the most attractive point of BTC at that time. But in fact, PoW cannot form a long-term stable technical equilibrium. When mining is very profitable, specialized mining machines will appear. BTC is the best example, from the GPU revolution to the FPGA revolution to the ASIC revolution. For Ethereum, although its PoW algorithm has special resistance to ASICs to ensure the fairness of ETH mining, as time goes on, GPU-based systems will become more and more money-oriented. and resources, it may eventually cause ETH HASH to suffer ASIC risks.
PoW V.S PoS
So PoW will go to ASIC anyway. Although ETH is mined using GPUs, professional ETH miners drive amateur miners out of the market.
This is a problem with the PoW mining mechanism. BTC already has the problem of chaebol rule, and it is only a matter of time for ETH. No matter how the algorithm is improved, it cannot avoid moving to ASIC.
The design challenge of the token distribution mechanism is to ensure its neutrality. The advantage of the PoW system is that people know what the algorithm looks like, anyone can do verification, and anyone can participate. But the method of distribution through social media like Ripple is very unfair. First, not everyone can participate in it. Second, hackers can register 10,000 accounts in order to get tokens. You don’t want to see the underlying public chain. The token distribution model is like this. For the PoS system, its essence is to redistribute tokens to token holders and allow token holders to maintain network security. Apart from the existing PoS and PoW token distribution mechanisms, there is no more neutral token distribution mechanism now. If there is a slight change in the distribution mechanism of PoW and PoS, there may be other disputes.
first level title
Many people think that the disadvantage of PoS is that as long as you participate in the network to get tokens at the time of creation, you can participate in the network forever as a pledger, but the miners in PoW need to update their hardware facilities all the time.
First of all, the PoW market is still very young and may be often affected by the outside world, but these problems may no longer be a problem for the mature PoW market. But regarding the thermodynamic limit problem often discussed by BTC miners, when the cost of producing a hash answer is as low as the limit, the efficiency cannot be improved any more, and this will indeed become a problem that PoW cannot solve. Secondly, for POS, if you have 32 ETH, you can become a validator yourself and get more tokens. If you don’t have that much ETH, you can also get ETH by staking with other people. In the PoW system, you must have enough start-up funds to buy mining machines, otherwise it is impossible for you to mine. In this way, PoS also eliminates the problem of excessive concentration of wealth. Finally, the return of POS is generally lower than that of POW, and the more people involved, the lower the return.
So in general, PoW has its advantages, while PoS is easier to participate but the benefits will be lower.
The most important point is what if someone owns 51% of the coins or 51% of the computing power. Compared with PoW, PoS gives the community more rescue solutions. For POW, you can only watch the 51% attack happen. Maybe you can soft fork, but the attacker can continue to attack the forked chain. Vitalik calls this attack "SPAWN CAMP ATTACK". To solve the problem, just Only the POW algorithm can be changed, but this not only hurts the attacker, but also hurts ordinary miners. When the PoW algorithm is changed, no one will have ASIC mining machines with the new algorithm for a period of time. If the attacker monopolizes the CPU GPU market, the attacker can continue to launch attacks, and then the chain will be over.
first level title
Why participate in the pledge of ETH2
Vitalik sees this as an announcement to be an Ethereum citizen, and to be incentivized by income.
If you can't be a verification block node, you should also try to participate in the network to verify the Ethereum network. The reason is mentioned in "A Philosophy of Blockchain Validation". It is not necessary to verify everything on the chain. You can selectively verify, such as verifying data availability, verifying fraud proofs, or even running a light node. It also prevents you from trusting a certain node. This kind of autonomous behavior is not only beneficial to users themselves, but will ultimately benefit the entire Ethereum ecosystem.
first level title
Why Ethereum chooses sharding
(Rhythm Note: The concept of sharding comes from the concept of database partition table. The so-called sharding is actually to put data on different databases and hosts, so that data can be processed in parallel and improve processing efficiency. In the blockchain , each slice processes the transactions in its own slice, so as to achieve the effect of expansion.)
As early as 2014, Vitalik and the Ethereum community began to explore and research on sharding. Relevant researchers agreed at the beginning that every transfer on the chain needs to be verified by every node is a very stupid thing, and Ethereum should use a more efficient way to ensure chain security.
Vitalik has been greatly inspired by studying computer science over the past few years. During the learning process, Vitalik deeply realized that when you complicate an efficient algorithm a little bit, you can achieve the best efficiency.
However, this sorting algorithm is not the most efficient. Smarter algorithms may be similar to merge sorting, quick sorting, and some other classification algorithms. The steps required for these algorithms are no longer O(N^2), but is O(LogN).
For example, if you have a sequence of 100 numbers, since 100 is a three-digit number, the required processing steps are 100*3, that is, 300 steps. When you understand the operation logic of these algorithms, you will feel that these algorithms are very concise and clear from a mathematical point of view. Although these algorithms are slightly more complicated than ordinary algorithms, their efficiency has been greatly improved.
The initial blockchain is like a common algorithm, each node verifies every transfer, although it is simple and easy to understand, it is very inefficient. What the blockchain needs now is a slightly more complex, but more efficient algorithm. Sharding may be such an algorithm. In the world of sharding, verifiers do not need to verify everything, but only some, which is very efficient.
But in this case, how to defend against 1% attacks (the attacker concentrates computing power on a certain part of a chain and makes the attacked part unable to operate normally)? After research and exploration, researchers have now come up with several very ingenious ways to defend against this attack.
first level title
Doubts people have about sharding
There are still many people who believe that sharding is not feasible, and the points of criticism are mainly divided into two levels:
Secondly, they deeply question the various assumptions in sharding. They believe that these assumptions may make the system more fragile when the actual system is running.
So what is the problem with "fraud proof"? In essence, his problem is his "Synchrony Assumption (Synchrony Assumption)". Generally speaking, when the network is running normally, the fraud proof can be verified in time and synchronized to the network in time, but when there is a problem with the network and there is a delay, once the "synchronization assumption" is broken, the "fraud proof" It is no longer valid.
first level title
text
text
secondary title
text
text
text
text
text
text
text
secondary title
text
text
text
text
text
text
text
text
3. As mentioned in "Ethereum Satellite Ecology", if Ethereum can focus on Rollup, ETH2 will be able to cooperate with other Ethereum helpers, enablers, and even competitors in the ecosystem, and Ethereum will become a platform for these projects, And these projects are like satellites surrounding Ethereum, interacting with Ethereum through bridges, and finally creating synergies at the execution level.
secondary title
The impact of the second layer of L2 on the first layer of Ethereum
text
1. When users can shuttle between the first-tier and second-tier networks with extremely low handling fees through an efficient "mass exit" mechanism;
2. If the Layer 2 network crashes;
3. For some applications, the core of the application is more suitable to be registered on the main chain. For example, the application will issue coins on the first layer network, and then deposit the tokens in the second layer network, and then people will use the tokens in the second layer network.
secondary title
Centralized and decentralized expansion
Ultimately, users will choose to use a decentralized or centralized layer-2 network. Coinbase is a typical centralized two-layer network, and there are permissioned alliance chains like Liquid. If you look at the Ethereum ecosystem, many applications are migrating to testnets like xDai or Ropsten.
Vitalik believes that it is understandable for people to use these centralized solutions before there is a very suitable decentralized expansion solution in the Ethereum ecosystem. But in the end, when the decentralized solution is realized, it is better for users to choose the decentralized solution.
secondary title
Composability of expansion solutions
For some specific applications, special processing schemes will appear, allowing applications to achieve composability in asynchronous situations. The Yanking mentioned by Vitalik before is a good example. This combinatorial problem is classified as a "train and hotel" problem:
However, in an asynchronous environment, this task is more difficult to complete. If you want to complete it, you need to apply the Yanking mechanism. The working principle of the Yanking mechanism is: first, you call the train ticket reservation contract in shard A, and then create a separate contract with reservation rights. In the second step, you use the same method to call and create the hotel reservation right contract in shard B. In the third step, you transfer the independently created train ticket and hotel reservation right contracts to your shard. Step 4, now all the contracts you need are in the same shard, you can complete the synchronization operation.
The reason this mechanism works is that you pre-create the required permission transfers for asynchronous contracts in different shards in the same shard, and then in the last step you assign the two permission contracts in In the same shard, the synchronization operation can be completed. Solving this "train and hotel" problem is critical for decentralized exchanges and various DeFi projects.
Besides Yanking, another solution is to classify different kinds of applications into different shards or Rollups. For example, if you put a high-value DeFi application in a Rollup, this Rollup may have a higher Gas Price, and other applications are gathered in other Rollups, but they do not have the ability to synchronize links with high-value applications.
Another interesting thing is that after the sharding is completed, a Rollup can interact with multiple shards, that is to say, a Rollup can use data in multiple shards. For example, a DeFi-focused high-performance Rollup can scale multiple shards.
Phase 2 of ETH2
In extreme cases, ETH2 does not need to enter Phase2, and Rollups can meet the expansion requirements. In the end, it is only necessary to merge ETH1 and ETH2. Essentially you don't need to make big changes, but you can do some additional upgrades, like upgrading to Casper CBC, or applying more zero-knowledge proofs.
A non-extreme situation is that if sharding becomes safer and more convenient to use in the future, and the underlying network is not very crowded and expensive, then there may be more shards that can execute smart contracts and other application functions. Sharding is executable. Another situation is that we can delay Phase 2, and when zk Snark can perform zero-knowledge proof EVM, the underlying public chain no longer needs to rely on "fraud proof" to ensure security during execution.
first level title
How to treat EIP-1559
Vitalk believes that the original design intention of EIP-1559 is to improve the transaction fee rate market of Ethereum. In the current rate market, if the network is congested, users not only need to pay high transaction fees, but also have to wait for a long time. EIP-1559 attempts to mitigate and offset the volatility of transaction fee rates in the form of elastic block sizes. (For more details about EIP-1559, please refer to "Interpretation of Ethereum Proposal EIP1559: Significantly Reduce Total Transaction Fees and Transaction Fee Volatility")
It is also mentioned in a paper by Vitalik that EIP-1559 can avoid the inefficiency of the first price auction model, and can also get rid of the security problems caused by the "Fee Dominant Blockchain". Overall, EIP-1559 addresses many of the issues in the existing rate market.
The destruction mechanism of EIP-1559
Another point that has attracted everyone's attention is the destruction mechanism implemented by EIP-1559. Essentially, the destruction feature of EIP-1559 establishes the central position of ETH in the Ethereum ecosystem. If there is no destruction mechanism, then ETH will become an "unprivileged" ordinary asset, which means that eventually other assets in the Ethereum network can replace ETH.
Especially in Rollup, if the "sorter" (Sequencer) uses ETH to pay the fee, but the user pays the fee with DAI or other assets, the final sequencer can reach a private agreement with the mining pool to pay in other ways and no longer use it. ETH, then the problem brought about by this is that in order to protect the security of the network, more and more ETH will be printed and minted, which will eventually bring a burden to the value of ETH itself.
secondary title
EIP-1559 and MEV (miners can extract value)
Miner extractable value refers to the unequal benefits that miners receive through the privileged advantage that they can adjust the order of transactions in a block.
One of the challenges in addressing MEVs is that there are many types of MEVs. Transaction fees are a key MEV. By implementing EIP-1559, most of the value of transaction fees can be captured by the protocol. Another kind of MEV is to extract arbitrage value, and miners are not very good at extracting this part of value. In the future Rollup world, most of this arbitrage value will be obtained by Rollup sorters and Rollup project parties. This phenomenon actually reflects a very interesting equilibrium. The value is no longer fully captured by security, but is given On to other public goods (Public Goods).
Phase 1.5 of ETH2
Vitalik said that Phase 1.5 of ETH2 is the merger of ETH1 and ETH2. When merging, the ETH1 global status, account balance, smart contract code, smart contract storage and other data at that time will be cut and pasted into the ETH2 system. If you have an ETH1 client at that time, the client will stop tracking the ETH1 chain. Start tracking the ETH2 chain, and then you will no longer be interacting with the ETH1 chain, but the ETH2 chain.
Users will be indifferent to the migration from ETH1 to ETH2, and users do not need to do anything. If you are a client developer, ETH1 migration to ETH2 is essentially a special kind of hard fork. After the migration, the ETH1 chain will no longer be used.
Vitalik:2020
In addition to the implementation of the ETH2 version of EIP-1559, ETH2 will also implement "stateless execution" (Stateless execution): execute blocks without a global state. This is also what ETH1 is slowly exploring, and researchers have also released many EIPs about stateless execution.
first level title
Q&A session
Question 1: Will Phase0 be released in 2020 or 2021?
Question 2: Do you prefer zk Rollup or Optimistic Rollup?
Vitalik: Optimistic in the short term, zk in the long run, because zk can be applied in a more general environment.
Question 3: What does Moloch mean to you?
Vitalik: Moloch is the god who punishes those who do not cooperate. He represents: the mistakes in the world will not become mistakes if people can cooperate better.
Question 4: Who is the leader in the central bank digital currency track, China or the United States?
Vitalik: China's DCEP is indeed the leader in this track. In the long run, competition between governments will not be an interesting topic. A more interesting question may be, can DCEP beat WeChat Pay and Alipay? What are the advantages of central bank digital currency over other digital payment systems? Will people eventually use central bank digital currencies for cross-border trade? Or will people end up opting for decentralized cryptocurrencies? I also don't know what will happen in the end.


