🎉【Gate Singapore Flagship Event · Square Fun Quiz Challenge Day 1】
#TOKEN2049# is just around the corner, and Gate is bringing the heat to Singapore!
Token of Love Music Festival, Gate x Oracle Red Bull Racing Reception, and the F1 Race Viewing are all set to roll out!
Join Square Fun Quiz Challenge now, test how much you know about the events and share $100 BTC in rewards!
To join: Comment your answers (format: 1B 2A 3B 4C)
🎁 Rewards: 3 lucky winners each day → $10 BTC each
👑 Bonus: Answer all questions correctly for 3 days → Extra $10 BTC for Super Quiz King!
📖 Day 1 · Quiz (Single Choic
A look at the Ethereum zkEVM on the eve of the Cancun upgrade
Author: RJ; Source: Author Twitter @0xRJ_eth
Introduction
The major upgrade of Ethereum, the Cancun-Deneb Upgrade, is expected to be implemented in the autumn and winter of 2023. The core goal is to enhance the scalability, security, and availability of the Ethereum network, while greatly reducing the gas of the second-layer network. fee. Therefore, if it is successfully implemented, it will directly benefit the L2 Rollups ecology of Ethereum, and it is even expected to drive the outbreak of the entire L2 track.
In the L2 expansion track, the zero-knowledge proof expansion scheme (ZK Rollups) with excellent data compression performance has been considered as the medium and long-term core scheme of Ethereum. In 2022, Vitalik, the founder of Ethereum, divided ZK Rollups into 4 different types according to their compatibility with the EVM (Ethereum Virtual Machine) Ethereum virtual machine, and established the basic standard for the zkEVM type.
This post was heavily inspired by Vitalik's seminal taxonomy mentioned above. After a year of development, the field has made significant progress. This article aims to provide track updates and more detailed interpretations (friendly to novices) with clear logic and concise language, based on Vitalik's insights.
What is EVM?
EVM (Ethereum Virtual Machine) is the first Turing-complete blockchain virtual machine. It can be understood as the code runtime environment on Ethereum, which is specially used to execute smart contracts deployed on the Ethereum network. Through EVM, smart contracts can realize automated functions on a decentralized network.
As the most proven blockchain virtual machine released in 2015, EVM is definitely a very important infrastructure for Ethereum. Even when judging other blockchains, EVM compatibility is already an important dimension of consideration, because EVM compatibility represents not only the smart contract execution environment, the available Ethereum toolset, but also the huge network effect And mature and complex ecology.
However, at the beginning of the design of EVM, it was not imagined that ZK Rollup L2 would become the core solution of Ethereum expansion one day, so the design of EVM did not consider being friendly to zero-knowledge proofs. This makes it very difficult to build a zero-knowledge proof-friendly EVM (zkEVM).
What is zkEVM?
Because of the difficulty in compatibility between Zero Knowledge Proof and Ethereum Virtual Machine (EVM), the early ZK Rollup did not support EVM. They generally lack the ability to execute smart contracts (or support special virtual machines), so they are limited to relatively simple specific scenarios: such as token exchange (swap) and payment (payment).
In order to solve this problem, many organizations and researchers focus on creating zkEVM (Zero Knowledge Ethereum Virtual Machine), which, as the name suggests, generates zero-knowledge proofs for the execution (process and result) of smart contracts in EVM.
With the increase in the certainty of the ZK Rollup expansion scheme and the advancement of technology, various zk expansion projects have created different futures based on the trade-offs between Compatibility and Performance (Proving Time for generating zero-knowledge proofs). EVM execution combined with zero-knowledge proof computation.
Different types of zkEVM:
Source: Vitalik blog "The different types of ZK-EVMs"
In 2022, Vitalik published an article explaining "different types of zkEVM", and roughly classified and compared zk expansion projects on the market.
Next, let us use plain language and clear logic to sort out the types, technical architecture, and respective advantages and disadvantages of zkEVM.
Type1 class zkEVM: completely equivalent to Ethereum
Type2 class zkEVM: fully compatible with EVM Ethereum virtual machine (there used to be Type2.5 class, but now it seems that it is basically integrated with Type2 class)
Type3 class zkEVM: Almost compatible with EVM Ethereum virtual machine
Type4 class zkEVM: Compatible with high-level languages
Type1 class zkEVM - fully equivalent to Ethereum
Architecture:
advantage:
shortcoming:
Mainstream projects:
Type2 zkEVM - fully compatible with EVM Ethereum virtual machine
Architecture:
advantage:
shortcoming:
Mainstream projects:
Type3 zkEVM - almost compatible with EVM Ethereum virtual machine
Architecture:
advantage:
shortcoming:
Mainstream projects:
Type4 zkEVM-compatible high-level language
Architecture:
advantage:
shortcoming:
Mainstream projects:
Based on Vitalik's classification of different zkEVMs in 2022, combined with the progress of each project (as of August 2023), we can briefly summarize with the following figure:
Classification of mainstream ZK Rollup projects
All kinds of zkEVM mainstream projects
Comparison Chart of Mainstream ZK Rollup Projects
Vitalik concluded at the end of his article: "Personally, I hope that over time, through the improvement of zkEVM combined with the improvement of Ethereum itself, it will make (Ethereum) more friendly to ZK-SNARK, and eventually everything Both will be Type1 classes.
In such a future, we will have multiple zkEVM implementations that can be used both for ZK Rollup (zero-knowledge scaling) and for validating the Ethereum chain itself. In theory, there is no need for Ethereum to have a single, standardized zkEVM specification for L1 (first layer) use; different clients can choose to use different proofs, so we can continue to benefit from code-level redundancy .
However, it will take quite some time before such a future can be realized. At the same time, we will also see a lot of innovation in the expansion of Ethereum (itself) and the different paths of ZK Rollup based on Ethereum. "
At the same time, it should be emphasized that although the mainstream zkEVM classification method on the market is the classification launched by Vitalik in 2022 (cited in this article), there are also other classification standards. And no matter how they are classified, there is no absolute distinction between these zkEVM types. They are just a trade-off between compatibility and speed: Type1 zkEVM has the highest compatibility with Ethereum, but proves to be slower (in the ZK Rollup track); Type4 zkEVM is less compatible with Ethereum, But verification is faster.
Of course, the compatibility and speed of zkEVM are not actually the only indicators for developers to consider which ZK Rollup should be used to deploy applications. There are many other factors that can influence their choice, such as:
Decentralization of L2 transaction ordering: Whether the sequencer/proposer is decentralized or not, this directly affects the complexity of ecological participants and the security of the entire network;
Fees: Which tokens are used to pay fees, and what is the token economic model of a public chain;
Rules for Proof Generation: Incentive mechanism for prover, hardware standard for accelerating proof generation;
Self-hosting: Is there a clear mechanism to ensure that user assets can still be recovered in L1 when an accident occurs in L2;
Data Availability: The cost of complete data availability is naturally higher. Is it acceptable to accept the lower-cost data availability mode adopted by some ZK Rollups.
However, since most general-purpose ZK Rollup projects are still in the testnet stage, many of the above factors cannot be compared horizontally.
Finally, the type of any zkEVM project is not static. With the exploration of various schemes in zkEVM, and even the improvement of Ethereum itself, it is possible that all schemes can eventually achieve the effect of Type 1 zkEVM. At that point we will have multiple zkEVM implementations - both for ZK Rollups and for validating the Ethereum chain itself.
Until then, let’s look forward to seeing continued innovation on different paths to scaling Ethereum and ZK Rollup.