As one of the important Layer2 scaling solutions for Ethereum, zero-knowledge rollups (ZK rollups) have continued to heat up this year. Not only is the sector increasingly drawing the attention of the media and VCs, but it also boasts of many leading projects that are making notable progress day by day, especially in terms of testnets and mainnets.
However, will ZK rollups be the future of rollups? What are the prospects of this segment from an investment perspective? In this report, senior analysts of Bing Ventures will walk you through the background, technical paths, and application scenarios of ZK rollups, as well as analyze for you the significant projects one by one to generate thoughts on the sector’s status quo, future trends, and prospects.
A Zero-Knowledge Proof (ZKP) allows you to prove the truth of a statement without revealing any information related to the statement.
It has three essential characteristics:
Completeness: If the underlying statement is TRUE, and the prover and verifier act honestly, the proof can be accepted.
Soundness: If the statement is invalid, it is theoretically impossible to trick an honest verifier into believing it is valid.
Zero-knowledge: The verifier learns nothing about a statement beyond its validity or falsity.
The mathematical workings behind ZKP are extremely complex, so we will only introduce its most basic features here to help readers understand the discussion below.
The core of the ZKP algorithms lies in the following:
All on-chain data is publicly visible. Being able to prove the authenticity of a statement without revealing the content of the statement, ZKPs are powerful in that they can be used for real-world problems such as privacy protection, the design of sensitive systems or contracts, etc.
The two main features of ZKP, zero knowledge and integrity, can, respectively, solve two pain points in the development of blockchain.
Based on these features, the two primary use cases of ZKPs at this stage are privacy protection and ZK Rollup.
Blockchain sacrifices user privacy for the transparency of transactions. While the real entities using the on-chain accounts are anonymous, the transaction data of their accounts is almost entirely transparent. That means, if intended, people can easily track these transactions. But most users are unwilling to be tracked.
Currently, most solutions use this technology to encrypt users' transaction information to protect user privacy. In the future, we expect more innovative solutions, such as combining ZKP with blockchain games to turn complete information games into incomplete information games for improved playability.
ZCash was announced in 2013 with the core technical team from MIT. The ZCash blockchain, ZChain, was launched in October 2016 with the issuance of the ZCash coin (ZEC). ZEC's design essentially copies BTC. It uses a PoW mechanism and has a total amount of 21mn. ZEC's current market cap is ~USD 59 Billion.
It uses ZKP technology to hide transaction addresses, thereby concealing the sender and receiver of funds and protecting user privacy.
In 2020, it was decided that 20% of the ZEC networks' mining rewards would be distributed to the ZCash Foundation for running the project. But some participants were discontented with this, and they created a fork of the chain, ZCL.
Tornado Cash started testnet testing in December 2019 and officially launched in December 2021. It is a coin mixer that allows users to deposit supported assets (ETH, DAI, USDC, and other ERC-20 tokens) and withdraw them from a different crypto address. It encrypts the depositor's wallet address using ZK technology and mixes it with those of other users depositing in the same token, making it difficult for the outside world to track the whereabouts of the fund.
It got deployed on Ethereum, BSC, Polygon, and the Optimism Network. Before it was sanctioned, there had already been ~USD 8 billion through Tornado Cash.
On August 8, 2022, the Office of Foreign Assets Control (OFAC, under the United States Department of the Treasury) blacklisted Tornado Cash, announcing that it is illegal for US citizens, residents, and companies to receive or send funds through the service. Meanwhile, the US Treasury Department accused it of laundering more than USD7bn in virtual currency, USD455mn of which is believed to have been stolen by the hacking group Lazarus Group supported by DPRK
On August 10, 2022, Tornado Cash developer Alexey Pertsev was arrested in Amsterdam for "involvement in concealing criminal financial flows with the decentralized mixer on Ethereum Tornado Cash and facilitating money laundering through the mixing of cryptocurrency."
The FTX incident reinforced distrust in CEXes. To rebuild market confidence, CEXes must disclose their assets more transparently than before. However, this brings privacy issues since many users and institutions do not want their account balances to be public.
Vitalik Buterin pointed out that CEXes can store all user balances in Merkle trees or KZG commitments and use ZK-SNARK to prove that all balances are non-negative and add up to the total deposit value claimed by the exchange, which not only protects user privacy but also effectively discloses the status of assets.
Simply put, ZK rollups can scale the Ethereum mainnet by ensuring consensus between the mainnet and the rollup chain using ZKPs. The ZKPs are generated to validate the transactions on the rollup chain. They are sent to the Ethereum mainnet and validated by pre-deployed smart contracts on Layer1.
In short, rollups are Layer2 scaling solutions that solve the congestion problem of Ethereum by increasing throughput, reducing gas costs, and optimizing application efficiency.
The current capacities of the Ethereum mainnet cannot meet the ever-increasing demand. It is reflected in the aspects below.
The three ideal properties of blockchain are decentralization, security, and scalability, but a basic blockchain architecture can only achieve two of them (the impossible triangle). Ethereum chose decentralization and security, resulting in low scalability because:
Source:Fingo.pl
Therefore, under the premise of Ethereum's adherence to decentralization and security, improving its performance needs to start at a higher level. Currently, major solutions can be divided into two categories: on-chain and off-chain scaling.
Sidechains are blockchains that run independently, in parallel with the Ethereum mainnet, and are connected to the Ethereum mainnet via cross-chain bridges.
In general, sidechains sacrifice decentralization and security to some extent to improve transaction speed. Most sidechains are compatible with EVM. So developers can use sidechains to explore and test features and use cases that are not available on the mainnet.
However, as sidechains have their own consensus mechanism, they cannot inherit the security properties from Ethereum.
Major projects include Polygon, Gnosis Chain, Skale, Palm, and Ronin.
Layer2 solutions reduce the resource occupation on Layer1 through off-chain calculation/execution & returning results to the main chain, offline batch processing of data, etc., but still obtain security directly from the Ethereum Layer1 consensus.
Different Layer2 solutions find different balances between security, scalability, decentralization, and generality.
Currently, major Layer2 solutions include:
How it works:
Pros: low transaction costs, strong privacy, suitable for high-frequency micropayment.
Cons: withdrawals are slow (at least a week); owners need to be 100% online; it does not support smart contracts.
Major projects: BTC Lightening Network
Compared to other solutions, state channels focus more on security than performance improvement.
How it works:
Pros: high throughput, low transaction costs
Cons: slow withdrawals, little support for smart contracts
Major projects: OMG Foundation (converted to BOBA, OP Rollup), Polygon (converted to sidechain).
In theory, the Plasma chain could have subchains that form L3 or L4, but it seems that the effect will not be good at present.
How it works:
Pros:
Cons:
How it works:
OP rollups are similar to Plasma. They both suppose the off-chain transaction is valid, and instead of uploading the proof of the validity of the transaction, fraud-proof is used to detect the incorrect calculation of the transaction.
The difference is: Plasma keeps all transaction data and calculations off-chain, only uploading the Merkel root, while OP Rollup keeps some data on the Ethereum blockchain. As a result, all Ethereum nodes can verify the transactions on the rollup chain rather than just nodes participating in the rollup chain. The obvious benefits are enhanced security and avoidance of centralization.
OP rollups are generally well-compatible with EVM, so migrating existing Ethereum applications to OP rollups requires almost no new coding.
ZK rollups are similar to Validium. They both upload proof of the validity of each transaction. The smart contract deployed on the Ethereum main chain confirms the transaction by verifying ZK proofs.
The difference is: Validium only sends the state root to the main chain, not the state data itself, which makes its security completely dependent on proof of validity. So, if something goes wrong with Validium's operator, users may not be able to withdraw money from contracts on the Ethereum main chain. To solve this problem, Validium protocols propose a Data Availability Committee (DAC) mechanism, which allows some large entities to store copies of state and provide data when users need it (for example, to generate Merkle proofs for withdrawal requests). But in essence, it is similar to the consortium chain and is less decentralized. However, in ZK rollups, the state data itself will be sent to the Ethereum main chain together with proof of validity. Therefore, the ZK chain's state can be tracked on the main chain by verifying the validity of the state data.
The below table shows a horizontal comparison of the above-mentioned scaling solutions.
Key assumptions:
The calculation result is as below:
ZK rollup technology is still in its early stages. It is expected that the scale of the ZK Rollup operators' annual revenue will reach the level of USD1~10bn.
The development of ZK rollups faces high uncertainty. As a technology that has yet to see explosive growth, they still wait to be validated technologically as well as from the value and revenue points of view. And it is difficult to predict the annual growth rate. So, the evaluation above will only be referable in terms of the order of magnitude.
Based on statistics of L2Beat, the current market share breakdown of the rollup sector by TVL is as follows (assuming that the TVL outside Arbitrum and Optimism belongs to ZK rollups).
OP rollups currently occupy the majority share of the TVL, ~ 80%.
At present, the ZK rollups sector is very concentrated with several large projects occupying ~ 99% of the market share. It is mainly due to Starkware's dependence on several large customers of their StarkEx products, which creates dominance at first sight:
It is expected that after dYdX leaves Starkware, the competition landscape of ZK rollup will change greatly.
The chart below categorizes the existing larger ZK rollup projects according to whether SNARK or STARK technology is used, and whether data is available on the Ethereum main chain.
Source: Alvin Leong
Vitalik divides the existing ZK EVM/rollup solutions on the market into five categories according to the level of EVM compatibility from high to low.
Different types of ZK EVMs have different performances. Generally speaking, the better the compatibility with Ethereum/EVMs, the easier the design and refactoring process will be when mitigating apps to the ZK rollup chain, but the more difficult it is to generate ZK proofs later.
Source: Vitalik Buterin's website
The current TVL penetration rate of rollups is only 5%, which implies a lot of room for follow-up improvement.
Rollup TVL had explosive growth in 2020, peaking at $7.5 billion.
Source: L2Beat
Now rollup TVL is at $4.3 billion, accounting for~ 5% of the total market capitalization of cryptocurrency, with a low penetration rate and a lot of room for improvement.
Source: DefiLlama
Rollups enjoy the highest correlation with Ethereum in terms of security among all Layer2 solutions. And the level of security is also higher than sidechains and new public chains. With equal or better performance, rollups are poised to become the dominant scaling solution for Ethereum.
The following chart compares OP/ZK rollups on the key issues affecting the usability of scaling solutions:
At present, most of the existing rollup solutions are OP rollups. From the TVL perspective, the proportion is OP: ZK = 8:2.
Mainstream voices, including Vitalik Buterin, believe OP rollups are better choices for the short term as they have a lower barrier in terms of cost and technology, and are easier for developers to get started. Therefore, they are more suited for the current stage. On the contrary, ZK rollups have a higher development barrier and are more suitable for areas with higher demand for security and privacy. In the long run, with the continuous development of ZK-related technologies, the limitations of ZK rollups may be addressed, enabling them to unleash stronger potential.
The author basically agrees with the above point of view and believes that the reasons behind ZK rollup's superiority include the following.
OP rollups rely on the counterbalance among honest players, verifiers, counterfeiters, and other participants for security, while ZK rollups rely on the mathematical mechanisms provided by the ZK algorithms for security. The ZK rollups' approach is more rigorous and secure.
Compared with OP rollups' flowed security logic, ZK rollups' weaknesses are basically technical ones. With a large number of excellent R&D personnel involved in research, we believe these problems will be solved.
With OP rollups, users need to delay withdrawals for a week from requesting. This is inherently unintuitive, just like complex mnemonic words and long strings of private keys. Institutional investors have stronger liquidity, so they have a higher tolerance for this. But individual users will be much more sensitive about this.
On the contrary, ZK rollup allows users to withdraw money immediately when they want. This suits the usage habits of Web2 users better and is conducive to possible mass adoption in the future.
As aforementioned, traders have the need for private transactions. In the current ZK rollup solutions, ZKP algorisms are mainly used to generate validity proofs for off-chain translations. There have yet emerged solutions that look to encrypt transactions. Indeed, to compete with other scaling solutions, ZK rollups are preoccupied with reducing the size of proofs because generating proofs requires a lot of computation and is limiting their performances. Therefore, at present, private transactions are not a focus.
However, as the token price falls and Ethereum converts to PoS, it is expected that a large amount of hash power will be turned into idle due to the revenue falling below the cost. At this time, if ZK rollups can harness this part of the hash power, the current limitation on performance will be greatly alleviated. At that time, ZK rollup projects will be able to incorporate private transactions into the existing ecosystems to create new growth points relying on their high familiarity with ZK encryption algorithms.
Therefore, it is believed that with the improvement in ease of use brought by technological progress, ZK rollups will replace OP rollups and become the mainstream of rollup solutions.
Current mainstream rollup solutions, both OP and ZK, are highly homogenetic technologically.
In terms of OP rollups, the techniques applied by the top 2 OP rollup projects Arbitrum and Optimism are not very different in nature.
Among ZK rollup projects, there is little difference in how they implement the rollups, apart from whether they choose to adopt zk-STARK or zk-SNARK. They all generate ZKPs for transaction data and send them to the main chain for verification. The major difference only lies in their compatibility with EVM.
So, against this backdrop, the competition in the L2 space is intense. Whoever can take the lead in grabbing the majority of users has the opportunity to generate the best attraction to applications, and become the largest liquidity pool for some tokens, thereby attracting more users, and then profiting from the network effect and defeating other opponents.
Most of the current projects are still trying to acquire users with large-scale airdrops. This competition is no different from that in the cash-burning stage in Web2. Essentially, it is difficult to continue forever and cannot build high barriers. Users attracted by your airdrop today can also be snatched away by other projects' larger airdrops tomorrow.
However, technological homogeneity does not translate to service homogeneity. Projects can provide a range of various added services ("Rollup as a service") to onboarded applications apart from the rollup platform, such as:
The author thinks that among the various RaaS services:
Due to the higher difficulty of software development on ZK rollups, it is easier to build barriers in this regard with ZK rollups than with OP rollups. Since Ethereum is not ZK-friendly, migrating EVM applications to ZK EVM requires a particularly heavy amount of code restructuring, causing inconvenience to developers and reducing their willingness to use ZK rollups.
Therefore, when evaluating ZK rollup project, in addition to focusing on the compatibility with EVM and its existing ecosystem, investors can further focus on the attractiveness of rollups' additional services to users, which may be the key to determining whether projects can win out in the future.
However, providing additional services to facilitate application migration is based on the poor compatibility of zkEVM and Ethereum EVM. With the advancement of ZK technology, in the long run, if the gap between the two is gradually narrowed, the value of additional services will continue to decrease. Therefore, when analyzing independent third-party ZK rollup SDK providers (like Stackr Network, a start-up project), investors should focus more on their revenue sustainability.
Starkware was founded in 2018. One of the leaders of their technical team was Alessandro Chiesa, co-founder of Zcash. The team proposed a new scalable ZKP algorithm zk-STARK, which is mainly dedicated to providing solutions for blockchain scaling and privacy protection.
The main product is StarkEx, which is a hybrid L2 solution that is compatible with both ZK rollups and Validium, and users can switch freely between them. Applications that have been deployed now include dYdX (will move to Cosmos later), Immutable, rhino.fi, etc.
Meanwhile, the team is developing a new product, StarkNet, an open-source ZK Rollup chain, in which any user and developer can deploy smart contracts without Starkware's permission.
TVL:USD573mn(StarkEx USD534mn + StarkNet USD3mn)。
The latest valuation was USD8bn, and historical investors include Sequoia, Paradigm, Alameda Research and 3AC.
Analyzed as a key project below.
Founded in 2017, Loopring is the first team in the world to implement ZK rollups. Using ZK-SNARK technology, it provides developers with an open-source ZK rollup protocol, and developers can use it to establish a decentralized exchange based on order books.
Also, the project has established a self-operated decentralized exchange and wallet on Loopring ZK rollup, hoping to build a more complete self-operated Defi ecosystem in the future.
TVL: USD83mn
Project token ($LRC) market cap: USD307mn, historical investors include Kosmos Ventures, China Growth Capital, etc.
Aztec was founded in 2017, originally with a focus on privacy. It used ZK-SNARK to provide users with a privacy cross-chain bridge Aztec Connect, allowing users to privately access dApps on Ethereum.
In addition to serving the Web3 field, it also cooperates with traditional financial institutions such as JP Morgan to provide ZK encryption solutions to solve privacy protection problems in private settlements.
In March 2021, it launched its own ZK rollup, zk.money.
TVL: USD8mn (Aztec Connect USD6mn + other Aztec products USD2mn)
The latest valuation was not disclosed but was expected to be USD68~102mn. The total amount of financing was USD17mn. Historical investors include Paradigm, Coinbase Ventures, IOSG etc.
Hermez Network started as an independent Defi company. It now has two generations of products:
The project established the "proof of donation" mechanism. In each period, everyone bids to obtain the right to create the next block, and 40% of the bidding income will be used to reinvest in the on-chain dapps to accelerate ecosystem development.
TVL: USD324k
Hermez was acquired by Polygon for USD250mn in August 2021, who fully integrated Hermez Network into the Polygon ecosystem.
Scroll was founded in early 2021. The core founders are from Peking University, Tsinghua Yao Class, and Cambridge.
The team's goal is to develop a class 2 ZKVM (fully equivalent to the EVM), in close cooperation with the Ethereum Foundation. Early testing of ZK Rollup and zk-EVM launched in July 2022.
The latest round valuation was undisclosed, while the total amount of financing reached USD33mn (Serie A 30mn + Angel 3mn), with historical investors including Polychain Capital, Bain Capital Crypto, Robot Ventures, Geometry DAO, and some Ethereum Foundation members.
Developed by Matter Labs, ZKSync 1.0 was released on the Ethereum mainnet in June 2020, with an embedded trading platform (Zigzag) that provides users with functions such as transferring and minting NFTs.
Its zkEVM started public testing in February 2022, which is the first EVM equivalent zkVM in terms of programming languages. It is under optimization with an objective to support 99% of the smart contracts written in Solidity.
ZKSync 2.0 Baby Alpha version was released on October 28, 2022, with the built-in zkEVM Alpha version. It will open to applications in their ecosystem for deployment, including browsers, new cross-chain bridges, wallets, etc.
According to the latest announcement of Matter Labs on December 23, 2022, ZKSync 2.0 will enter its Fair Launch Alpha phase in 2023Q1, opening up to dApp developers for deployment so that they can test and upgrade their contracts. The period is expected to last for several months. The full alpha version of ZKSync 2.0 will be launched in 2023Q2 when it will be available to common users.
TVL:USD85mn(ZKSync USD50mn + ZKSpace USD35mn)
ZKSync 1.0: a zk-SNARK-based ZK rollup, mainly used for token exchange and transfer and does not support smart contracts. Due to the lack of smart contract support, the adoption rate of ZKSync 1.0 was poor compared to other generic Layer2 solutions.
ZKSync 2.0: a ZK rollup with built-in zkEVM, supports smart contracts, and allows users to develop dApps.
ZKSpace: an AMM DEX based on the ZKSwap protocol on ZKSync.
ZK Porter: a new L2 solution developed by ZKSync where users can choose to store data off-chain and enjoys a security level between that of ZK rollups and Validium and per transaction gas fees of only a few cents.
Hyperlink: the L3 solution under development, which aims to improve interoperability among different L2 chains and is expected to be released in 2023Q1.
On customization, ZKSync has deep cooperation with well-known Defi dApps such as Uniswap, Maker, and 1inch. In the future, it can charge service fees and improve short-term income by providing solutions specifically optimized for these applications.
As for gas fees, with these applications getting onboard on ZKSync, they will bring a lot of transaction volume and gas fee revenue, and increase ZKSync's sustainable revenue.
Source: ZK_Daily
zkSync hasn't issued tokens yet. Matter Labs once promised to publish their tokenomics proposal in early November, but it was delayed until now.
Returning to the blockchain trilemma discussed earlier -- decentralization, security, and scalability. Although Ethereum abandoned scalability on Layer1, it has achieved de facto scalability through various Layer2 scaling solutions (sidechains, Layer2, etc.) by moving most of the transactions off the main chain.
It now appears that L2 solutions will increase in number, and these projects with different technical paths will coexist for a long time.
But these L2 solutions are quite isolated. It is difficult to migrate applications between different chains. This will pose problems for Ethereum and these various solutions.
Liquidity Fragmentation
In the short to medium term, the crypto market is limited in size. Different chains are splitting the market and their interoperability is poor. As a result, liquidity on each chain will be fragmented, resulting in problems such as trading difficulties and slippage.
For example, AMM Uniswap and SushiSwap are both on Ethereum, but they are both working to implement on separate Layer2 chains (Optimism and Polygon). Therefore, to transfer ERC-20 tokens from Uniswap's L2 to SushiSwap L2, the user must transfer his tokens from Optimism to the Ethereum main chain and then to Polygon. This inefficient process results in higher costs and longer processing times, which can sometimes take several days due to some Layer2 protocols requiring fraud proof to complete transactions.
Communication Difficulties
Different side chains and Layer2 chains have different consensus and validity verification mechanisms. Relatively speaking, OP rollups, Plasma, and some performance-focused sidechains almost copied EVM, so it is relatively easier to process data packs sent by other chains, while ZK rollups, Validium, and other privacy-focused sidechains lower EVM compatibility. Also, there exists quite a difference between virtual machines developed by different chains. The data packets they send may be difficult for other chains to process, making cross-chain communication difficult.
Low Contract Standardization
Each new protocol built on Ethereum has high standardization (such as ERC-20, ERC-721, ERC1155...), and other protocols can be easily built on top of them, which is one of the reasons for the rapid development of DeFi. But as various scaling solutions, especially ZK-based scaling solutions, gradually diverge from Ethereum's architecture, the contract standards between different chains will also diverge, making it difficult to migrate applications between chains.
Low Composability
Low composability is a problem resulting from communication difficulties and low contract standardization. It is mainly reflected in the interaction between dApps on the Ethereum main chain and other scaling chains. If the communication difficulties and low contract standardization problem cannot be solved well, dApps need to re-establish their own ecosystem on different scaling chains, which will cause a greater waste of resources.
Under the influence of these factors, the lack of interoperability between different blockchains and layer 2 solutions has resulted in highly fragmented user experiences, which could seriously hinder the large-scale adoption of blockchain technology.
The "Layer3" concept was proposed to solve the interoperability problem between Layer1 and Layer2, and different Layer2 chains**.**
By definition, interoperability (or cross-chain functionality) means that two blockchains with separate ecosystems (like Bitcoin and Ethereum) can communicate and interact without any centralized intermediaries.
The relationship between Layer3 and Layer2 is very different from that between Layer2 and Layer1. (Researches show that stacking the same scaling solution to form a three-tier structure often does not work well.) Instead of compressing and moving data across, Layer3 offers more innovative functions.
Layer2 for scaling, Layer3 for customized features (e.g. privacy): Adopting different layers to meet the custom requirements of different use cases.
L2 for generic expansion, L3 for customizable expansion: Customized scaling can come in different forms: specialized applications that are computed using virtual machines other than EVMs, rollups that are optimized for the data formats of specific applications, etc.
L2 for trustless extension (rollups), Layer3 for weak trust extension (Validium): As mentioned earlier, Validium is a system that uses SNARK to validate computations, but leaves data availability to trusted third parties or committees. Vitalik believes that Validium is highly undervalued. He believes that many "enterprise blockchain" applications are best served by a centralized server that runs a Validium prover and periodically submits hash value to the main chain, which is less secure but much cheaper.
The ZKSync team has conducted research in Layer3. They believe that Layer3 will become a customizable ecosystem powered by zkEVM, which will be infinitely scalable through unlimited customization, and will improve security, performance, cost reduction, ease of programming, and composability compared to current L2 solutions.
ZKSync's Layer3 project, HyperLink, will launch its testnet in 2023Q1. At that time, developers can choose ZK rollups, ZK Porter, and Validium according to their preferences on performance, security, and cost. They also provide developers with other customization options, such as:
Currently, in addition to ZKSync, there are also several other L3 projects developing interoperability protocols to connect different L2 chains, such as Interledger Protocol, IBC Protocol, Quant, and ICON. However, most of these projects are still at the theoretical stage.
References: