Understanding ZK-EVM Types | Layer 2 Review
Understanding ZK-EVM Types | Layer 2 ReviewQuick Reads and Hot Links Covering the People and Projects Who Are Scaling EthereumDear Frens, In recent months we’ve been working in BanklessDAO to fulfill our obligations as part of Optimism’s Collective Intent 3: Spread Awareness of the Optimistic Vision. To celebrate, we shipped eight of our Optimism-focused articles on BanklessDAO’s Mirror page. These articles are available as free, open-edition digital collectibles, helping you to curate writings on one of the most impactful ecosystems in web3. Even before that Mission, we’d written a lot about Optimism, and it’s time to turn our attention to different scaling solutions. Last week, Bankless Publishing shipped an article entitled Understanding ZK-EVM Types, and it’s gone a bit crypto viral, with more than 163 likes. Given the demand for this knowledge, we’re going to ship the same article in this newsletter too. If you want more of this type of easy-to-understand technical content, please let us know in this issue’s Polling Station! 🗳️ In addition to ZK-EVM upskilling, this issue is packed with our regular sections, including Governance, Data, Project Watch, and Ecosystem Updates. We’re aiming to make this newsletter your fortnightly source for L2 news and trends. If you have any hot tips or just want to let us know how we’re doing, please DM Bankless Publishing on X. Thank you for being on this journey with us. ❤️ Contributors: Warrior, Chameleon, jengajojo, Lisa Akselrod, thinkDecade, trewkat, HiroKennelly This is an official newsletter of BanklessDAO. To unsubscribe, edit your settings. ✅ Action Items🏃♀️ Catch up on Ecosystem Updates at the end of the newsletter! 🗳️ Vote to decide whether Arbitrum becomes an official sponsor of Ethereum Mexico 2023. 🌶️ Spicy TakesFrom the OP Forum: SEED Latam | Regarding the selection of the new badgeholders for our members 🔥 Hot NewsArbitrum Odyssey is BackAfter an abrupt halt 16 months ago, Arbitrum has announced that Odyssey is back! There are seven weeks of questing, with many hoping that there is a pot of ARB at the end of the journey. Good luck frens, and happy adventuring! Arbitrum Claws Back Tokens for DAO TreasuryAlso in Arbitrum news, nearly 70M unclaimed ARB tokens were clawed back by the ArbitrumDAO. Not to throw shade on Arbitrum, but there are other ways to get tokens to users. Optimism Disburses Unclaimed Tokens to WalletsOptimism sent unclaimed funds from Airdrop #1 directly to wallets who were eligible to receive that airdrop. Check your wallets frens, and take note Aribitrum! Optimism Airdrop #3!Also in airdrop news, Optimism sent Airdrop #3 directly to wallets so there are no scammy links to click or confusing claims processes. In Airdrop #3 Optimism rewarded the practice of delegating tokens to active delegates, so if you delegated but did not get the bonus, your chosen delegate may not have been active enough and it’s time to rethink your delegation. Optimism Opens RetroPGF 3 Application PortalIn other exciting Optimism news, applications are open for RetroPGF 3, with 30M OP tokens allocated for distribution. The Round 3 application window will close on October 23, 2023. 🏛 Governance🗳️ On SnapshotArbitrum as Official Sponsor of Ethereum Mexico 2023From the proposal: “Ethereum Mexico is a driving force for Ethereum growth in Mexico, educating individuals on blockchain technology and promoting Ethereum values. Serving as a link between the Ethereum community, the Ethereum Foundation, and Mexico’s local communities. Our organization offers IRL Meetups, Twitter Spaces, Workshops, and educational content. One of their major 2023 initiatives is a large event in Mexico City, set for October 21st, expecting over 800 attendees. This event aims to foster education and innovation within the Ethereum community.” ⭐ Featured ProposalsPIP-18: Polygon 2.0 Phase 0 — FrontierFrom the proposal, in relevant parts: “This proposal specifies Phase 0 of Polygon 2.0, a multi-phased upgrade to the Polygon Ecosystem. Polygon 2.0 envisions a network of interconnected ZK-powered L2 chains that, on aggregate, expand Ethereum blockspace and create the Value Layer of the Internet. This environment is seamlessly interoperable, offering access to unified blockspace across all Polygon chains as well as infinite scalability. The end goal is to extend Ethereum blockspace in a fashion that more resembles a mesh network topology like the internet. With ZK technology, Ethereum blockspace can scale to the size of the Internet for the first time in blockchain history. This proposal represents the next step in this journey, defining the initial tasks to bring the Polygon 2.0 vision to life.” There’s been little activity on the post to date, but it’s worth your attention. 💬 Proposals in DiscussionArbitrumOptimismPolygonStarknet🗳️ Polling Station
🪂 Airdrop Station📈 DataTotal Value Locked on L2s Surpasses $10 Billion Again!Top Ten Projects by Total Value Locked:🔭 Project WatchArbitrumTop Projects by TVL in the Last 7 DaysTrending NFT CollectionsOptimismTop Projects by TVL in the Last 7 DayTop/trending NFT CollectionsTop Projects by InteractionzkSyncTop Projects by TVL in the Last 7 DayszkEVMTop Projects by TVL in the Last 7 DaysUnderstanding ZK-EVM TypesAuthor: Lisa Akselrod About one year ago, a wave of ZK-EVMs announced the upcoming launch of testnets. These initiatives piqued curiosity within the Ethereum community, prompting questions about the nuances behind terms like Ethereum-equivalence and EVM-equivalence. To create clarity, Vitalik Buterin wrote a seminal article titled The Different Types of ZK-EVMs, which classifies various ZK-EVMs into four types and explains their distinctions. The central idea is this: Type 1 (e.g. Taiko) is exactly Ethereum-equivalent, while Type 4 (e.g. zkSync) excels at efficient proof generation. All other types, Type 2, Type 2.5, and Type 3, fall between these two extremes (e.g. Polygon zkEVM, Scroll, Linea). Most ZK-EVMs initially started as Type 3 or Type 2.5, and broadcasted some intentions to move towards Type 1 or Type 2, although no specific timing or commitments were provided by these projects. This article primarily focuses on the differences between Type 1 and Type 2/2.5, and describes the possible consequences of breaking Ethereum-equivalence. We will also briefly touch on the other types. The primary objective of ZK-EVM is to scale Ethereum — to enhance Ethereum’s throughput while retaining its other attributes (security, developer experience, etc.) In an ideal scenario, ZK-EVM would:
Distinctions Among ZK-EVM TypesIn the ZK-EVM domain, distinctions arise from Ethereum/EVM-equivalence levels, the influence of ZK-unfriendly elements on proof generation costs and speed, and the intricacy of circuit implementation (such as VM building or state trees). Let’s analyze these differences, specifically focusing on separating Type 1 from Type 2/2.5. We’ll also touch on use cases most relevant to each type. When comparing the various types, the diagram below is commonly used: This table may appear cryptic for those who don’t work full-time in the ZK-EVM space, so let’s take a closer look in plain English. This graphic brings more clarity to what the practical consequences are for each Type, but it can still be a bit cryptic. Let’s connect the dots by explaining each type separately and explore the ZK-EVM landscape in its entirety! Type 1: Ethereum-equivalent
Type 1 denotes no changes to any part of the Ethereum system to make it easier to generate proofs. No changes to Ethereum means uncompromising security, as most cryptographic primitives (e.g. hash functions), developer infrastructure (e.g. debugger), or chain infrastructure (e.g. execution clients) have been battle tested for over 9 years. A Type 1 ZK-EVM doesn’t replace anything: hashes, state trees, transaction trees, precompiles, or any other in-consensus logic. Everything is exactly as it is in Mainnet’s EVM.
Type 2: EVM-equivalentType 2 removes some ZK-unfriendly parts to make proof generation faster and circuit development easier. However, as a consequence of the latter, it might make the development of other parts of the ZK-rollup (e.g. node software) more complicated. These complications may arise because of established best practices and testing tools that might be incompatible with the implemented changes (e.g. changed state tree). Note: Ethereum-equivalent and EVM-equivalent are not the same. While Ethereum-equivalent means no Ethereum parts were changed, that is, perfect compatibility with all Ethereum dApps, EVM-equivalent allows changing data structures (e.g. block structure or state tree). Although these adjustments might appear minor, they impact Ethereum compatibility. Altering data structures could render Ethereum dApps incompatible with a Type 2 ZK-EVM, particularly when verifying Merkle proofs of historical Ethereum blocks for claims about past transactions, receipts, or state (as seen in bridges, for instance). Removing ZK-unfriendly ElementsThe modifications made to Ethereum aim to streamline development and boost proof generation speed. The goal is to trim parts of Ethereum that rely on ZK-unfriendly cryptography. In more technical terms, it’s those demanding numerous gates (addition and multiplication operations) due to non-native fields (e.g. hash functions); a large amount of multiscalar multiplications and/or FFTs; or just a large number of required operations. The following are specific examples of ZK-unfriendly elements Type 2 ZK-EVM might modify:
The Poseidon hash function holds a significant speed advantage in proof generation. However, it’s important to note that newer cryptography primitives are less preferred than established ones endorsed by a broad community across industries. While Poseidon may offer speed, the battle-tested nature of Keccak makes it more robust and secure, given its widespread adoption. That is why, Keccak, despite being older and a standard adopted by a wider community (also in other industries, e.g. for sensors in security systems or smart devices), can be considered more battle tested and therefore more robust and secure than Poseidon, a new hash function created and used within the ZK community.
Changing even one of these components breaks Ethereum equivalence. Type 2.5 ZK-EVM (EVM-equivalent, With Gas Cost Considerations)A Type 2.5 ZK-EVM increases the gas cost of specific operations in the EVM that are difficult to prove with ZK technology. Given Ethereum’s gas limit per block (30M gas), increasing gas cost per opcode leads to fewer opcodes per block. As a result, less complex opcodes can be included in one block. Less complex opcodes make their circuit smaller, and the proof is generated faster.
Parts That Are Hard to ZK-prove:
Changing gas costs may reduce developer tooling compatibility and break some dApps. For instance, a smart contract that frequently executes an opcode with increased gas costs might exceed the block gas limit and be unable to execute. Type 3 (Almost EVM-equivalent)Type 3 ZK-EVMs omit ZK-unfriendly precompiles and potentially tweak memory and storage access. dApps reliant on removed precompiles need rewriting. Differences in how Type 3 ZK-EVM and original EVM handle edge cases might entail dApp adjustments too in uncommon circumstances. Type 4 (High-level-language equivalent)Type 4 is already pretty far from EVM. Smart contract source code written in a high-level language (e.g. Solidity, Zinc) is compiled into Intermediate Representation generating opcodes for the ZK-friendly VM.
In the ZK circuit proving the execution trace, constraints are implemented for each step, and the cost of each step is the sum of all opcodes. Therefore, Type 4 ZK-EVMs aim to use as few complex opcodes as possible to optimize efficiency. On the positive note, custom opcodes (not covered by Ethereum) enable the implementation of new features not available on Ethereum by default. For example, multiple call execution for Account Abstraction features, or initiating smart-contract wallets using out-of-the-box solutions like Argent. Summing Up the TaxonomyDifferent ZK-EVM Types prioritize different goals and characteristics. Type 1 focuses on Ethereum equivalence, while Type 4 prioritizes efficient proof generation. Other types fall in between these extremes, and many Type 2 and 3 ZK-EVM protocols have announced their intentions to move towards Ethereum equivalence. This four-type taxonomy might not be the final state for ZK-rollups; further modifications could occur in the future. For example, some ZK-EVMs might become hybrid: Type 1 and 2 might develop Type 4 solutions (with the highest efficiency possible) and offer dApps both options, while Type 3 and 4 ZK-EVMs might add Ethereum-equivalent options. This article was first published on the Bankless Publishing website. 🔥 L2 Fees and Costs UpdateTransaction Fees as of September 27, 2023:Security Costs as of September 27, 2023:🗞️ Ecosystem Updates⛓️ Social Decentralization & the OP Stack’s Fault Proof Virtual Machine 🆕 What Is opBNB? BNB’s Optimistic Layer 2 Rollup ➿ Polygon Emerges as Suitor for Celo’s New Layer-2 Blockchain, Competing With OP Stack ⚡ Layer 2 Rivals Base and zkSync Era Blaze a Trail in Transaction Speeds ⭕ Introducing Ancient8 Chain: The Future of Web3 Gaming on Ethereum 🔒 Why Decentralize Sequencers? 📈 Embracing Optimism With Pessimism 🔮 Canto and Astar Migrate to Ethereum as Layer 2 Solutions 🏁 Metis Aims to Become Ethereum's First Fully Decentralized Layer 2 in 2023 😹 Meme of the FortnightThank you somewhere in the metaverse we can’t remember: |
Older messages
Let’s Give the DAO Its Cut: Funding DAO Ops Through RPGF Funding | BanklessDAO Weekly Rollup
Saturday, September 23, 2023
Catch Up With What Happened This Week in BanklessDAO
Bear Market Best Practices | State of the DAOs
Thursday, September 21, 2023
You're reading State of the DAOs, the high-signal low-noise newsletter for understanding DAOs.
GM, HODL, WAGMI | Bankless Publishing Recap
Wednesday, September 20, 2023
Top-shelf Educational Web3 Content Shipped Directly to Your Inbox
The Optimism Collective’s RetroPGF Learning Journey | Layer 2 Review
Sunday, September 17, 2023
Quick Reads and Hot Links Covering the People and Projects Who Are Scaling Ethereum
#Permissionless2 — A Whole Lotta Love | BanklessDAO Weekly Rollup
Sunday, September 17, 2023
Catch Up With What Happened This Week in BanklessDAO
You Might Also Like
Your biweekly source of crypto insights📈
Thursday, November 21, 2024
DeFi on NEAR is busy right now. Since 11/10, trading volume on Ref Finance, one of the ecosystem's largest protocols, has surged as much as 400% in a A DeFi on NEAR is busy right now. Swap volumes
Cardano’s Charles Hoskinson nominates Coinbase’s Brian Armstrong for Donald Trump’s crypto czar
Thursday, November 21, 2024
Hoskinson cites Armstrong's leadership at Coinbase as key to overcoming regulatory hurdles and promoting industry unity. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
China's Murad: The Community Leader Who Brought ACT to Binance
Thursday, November 21, 2024
When Binance suddenly announced it would list ACT, one name you might have heard repeatedly in the buzz was “Wizard.” ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
BlackRock supports US strategic Bitcoin reserve amid rumors of executive order
Wednesday, November 20, 2024
Porter also revealed that state governments are rushing to pass legislation establishing their own Strategic Bitcoin Reserves before Trump signs an executive order. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
DeFi & L1L2 Weekly — 📈 Trading volume on Solana DEXes surpasses Ethereum’s by more than 2x; PayPal USD integrates…
Wednesday, November 20, 2024
Solana's total trading volume reached $85.9 billion, which is more than double the volume on Ethereum. PayPal USD partners with LayerZero for seamless transfers between Ethereum and Solana. ͏ ͏ ͏ ͏
DeFi & L1L2 Weekly — 📈 Trading volume on Solana DEXes surpasses Ethereum’s by more than 2x; PayPal USD integrates…
Wednesday, November 20, 2024
Solana outshines Ethereum with 123 million active addresses in October. Ethereum launches Mekong testnet to preview Pectra upgrade. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
What is Ethereum 3.0 Beam Chain, and what problems does it aim to solve?
Wednesday, November 20, 2024
Beam Chain proposes a redesign of Ethereum's consensus layer by integrating the latest research advancements, aiming for a safe and swift transition from the current Beacon Chain to the Beam Chain,
Bitwise expects options trading for its Bitcoin ETF to start tomorrow
Tuesday, November 19, 2024
Options trading for Bitcoin ETF is expected to enhance market liquidity and attract diverse investor engagement. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
A Data-Driven Update on Stablecoins
Tuesday, November 19, 2024
An update on the stablecoin landscape, growing supply and stablecoin trading volumes, on-chain usage and yield generation ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
ACT Story: One Strikes It Rich with 2 Million, Another Sells Before the Surge
Tuesday, November 19, 2024
In this episode, WuBlockchain dives into the AI memecoin investment trend and the recent surge of ACT, with guests Defioasis, Maodi, and Chen Yiyi sharing their experiences with ACT and similar