Compilation: Rhythm Research Institute
At "The Design Art of Ethereum (Part 1)", the founder of Ethereum, Vitalik Buterin, mainly analyzed the PoS model of ETH2 in detail, and then Vitalik continued to expand the capacity of ETH2. detailed.
(Rhythm Note: The concept of sharding comes from the concept of partition tables in databases. The so-called sharding is actually to put data on different databases and hosts, so that data can be processed in parallel to improve processing efficiency. In In the blockchain, each slice processes the transactions in its own slice, so as to achieve the effect of expansion.)
early In 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 for 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.
A good example is the sequence sorting problem: how to arrange a random sequence from small to large, ordinary people may The smallest one will be selected from the sequence in turn and then arranged. This algorithm is usually called O(N^2) in the runtime, which means that the step of processing the sequence is the square of the sequence length.
However, this sorting algorithm is not the most efficient, and a smarter algorithm may be similar to merge sort, fast Classification and some other classification algorithms, the required steps of these algorithms are no longer O(N^2), but O(LogN).
For example, if you have an array of 100 numbers, since 100 is a three-digit number, then the required processing steps It is 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 But the efficiency is very low. 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.
How to defend against 1% attack in this case (the attacker concentrates the computing power on a certain part of a chain , and disable the attacked part)? After research and exploration, researchers have now come up with several very ingenious ways to defend against this attack.
There are still many people who think that sharding is not feasible, and the points of criticism are mainly divided into two levels:
First of all, they simply do not understand the concepts of "indirect verification" and "probabilistic verification". They think that verification can only be black and white, or you have verified the transfer, or you have not Verify that there are no intermediate events.
Secondly, they deeply question the various assumptions in sharding. May make the system more vulnerable.
We use "fraud proof" as an example, which is essentially a large-scale "probabilistic verification". A small group of people verify the calculation results and sign the verification certificate and then pledge some ETH on the certificate. Anyone can verify and challenge the certificate. When someone verifies the certificate and finds that it is wrong, they can challenge it. After the challenge is successful , you can get ETH pledged on the proof as a reward.
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.
If the algorithm or mechanism can avoid these assumptions, the system can work normally without any assumptions, which is the best OK For sharding, researchers have been trying to keep the number of assumptions as low as possible. For example, before sharding relied on the "majority honesty assumption", now even if you control 2/3 of the validators, you cannot put invalid blocks on the chain. For "fraud proofs", if we use zk Rollup, we can keep shards safe without applying fraud proofs.
Vitalik published a discussion post titled "Ethereum Roadmap with Rollup as the Core" in the forum in October this year. Many people think that Ethereum is going to abandon sharding and turn to the Rollup solution for expansion . Vitalik unequivocally denies this claim. and explained in further detail.
(Rhythmic Note: Rollup is a two-layer expansion scheme on Ethereum. Simply put, in order to reduce a Rollup will process a large number of transactions, and will finally inform the main chain of the results after processing.)
Regarding the difference between sharding and Rollup, Vitalik said that many people now There is a misunderstanding in the understanding of sharding, thinking that sharding is a group of nodes, but this is not the sharding that Vitalik understands.
Vitalik believes that each piece in a shard is a logical subset of a blockchain, and then a group of nodes Dispatched to validate this logical subset, each node can validate multiple shards.
Rollup has some of the characteristics of sharding, but not all.
One of the similarities is the splitting of calculations on the chain. If you have many Rollups, different Rollups will be responsible Respective calculations, this is how Rollup expands.
Another similarity is that cross-chip or cross-Rollup cannot directly synchronize interaction and execution (Synchronous interaction/execution) , each shard or Rollup is a separate "Domain". The interaction within the domain can be synchronized, but the interaction between domains cannot be synchronized. While synchronous interaction across Rollups is possible, it is difficult.
One difference between sharding and Rollup is the security model. The security of different Rollups on a chain will be taken care of by the same data layer, such as Rollup on Ethereum, all their data will be verified by ETH nodes, but this is not the case with sharding, so to some extent Rollup avoids Security flaws that can occur in some shards.
Although sharding and Rollup have many similarities and differences, for users, the user experience will not be different too much difference. Another interesting thing is that when Rollup is applied to ETH2, you will find that different Rollups will use different shards. One Rollup may use 5 shards, or 5 Rollups may share one shard.
Vitalik first shared his views on the value difference between Bitcoin and Ethereum. Compared to the Bitcoin community, the Ethereum community is more pragmatic. For example, regarding the Ethereum Gas Limit issue, after coordination among various interest groups in the community, the optimal block size will eventually be weighed, instead of sticking to a unified standard, which will eventually lead to forks.
Ethereum is now facing two very real problems. From the soaring Gas fees, it can be seen that Ethereum is in extreme demand Expansion, and hope that the expansion will be realized immediately. Excessive gas fees have forced out many applications on Ethereum, especially those non-financial applications.
From a practical technical point of view, Rollup is the existing and best technical choice. Although state channels are also available now, state channels are only suitable for individual applications and are too restrictive. Plasma is also an option, but Plasma is only applicable to the payment field and does not support general contracts. Therefore, even in the medium term, Rollup will be the best choice for capacity expansion.
Another interesting thing is that if we look at the roadmap of Rollup and ETH2 together, we can See, the PoS of Phase0 (the zeroth stage), the fragmentation of the data of Phase1, and the fragmentation of the execution of Phase2, as long as Rollup is added to Phase1, Ethereum will be able to achieve extremely high throughput, so as long as people are willing to continue Rollup technology, not only the current Ethereum can achieve expansion, but in the future, the Phase1 throughput of ETH2 will far exceed people's imagination.
So people need to recognize reality, and the Ethereum community should be committed to the development of Rollup. Vitalik gave several reasons:
1. Rollup will be implemented soon and has a strong capacity for expansion .
2. If the function of the underlying public chain can be single, then ETH2 can discard some such as "fraud proof" security assumptions, then the security will be greatly improved, which will also allow Rollup to focus more on its own work.
3. As mentioned in "Ethereum Satellite Ecology", if Ethereum can focus on Rollup, ETH2 will be able to Cooperating with other Ethereum helpers, enablers, and even competitors in the ecosystem, Ethereum will become a platform for these projects, and these projects are like satellites surrounding Ethereum, interacting with Ethereum through bridges, and finally at the execution layer Create synergies together.
Vitalik believes that in the future, most users will live in the second-tier network for a long time, and may not interact with the first-tier network for several years. However, there may be several situations where users will still interact with the first-tier network:
1. When users can effectively "mass exit" "Mechanism, shuttle between the first and second layer networks with extremely low fees;
2. If the second layer network crashes;
2. If the second layer network crashes;
2. p>
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.
Vitalik is confident that over time in the future, users will slowly migrate from Tier 1 to Layer 2 network.
The "Ethereum roadmap with Rollup as the core" part is not finished, in "Ethereum Design Art ( Part 2), Vitalik will continue to discuss the details of Rollup expansion, and give an overview of EIP-1559 and Phase 1.5 of Ethereum 2.0.
Bankless interview link
Welcome to join the official BlockBeats community:
Telegram Subscription Group: https://t.me/theblockbeats
Telegram Discussion Group: https://t.me/BlockBeats_App
Official Twitter Account: https://twitter.com/BlockBeatsAsia