https://learn.bybit.com/blockchain/zk-rollups-eth-scalability/
Scalability is a major problem for Ethereum and most blockchain projects. As the number of computationally intensive processes on the main blockchain increases, it clogs up the network and makes transactions slow and expensive. This hurts user experience and the Ethereum ecosystem as a whole. However, there may be a solution to the scalability problem for Ethereum: ZK-Rollups. This article will introduce you to ZK-Rollups and their benefits and limitations, and compare them to other scaling solutions while examining the best ZK-Rollup coins.
ZK-Rollups, or zero-knowledge rollups, are smart contracts that implement Ethereum Layer 2 scaling solutions for more efficient transaction processing on the blockchain.
To understand ZK-Rollups, you must have a foundational knowledge of rollups in general and why they hold the key to Ethereum Layer 2 scalability solutions. Layer 2 solutions are based%20and%20reduce%20gas%20fees.) on a secondary chain instead of the mainchain.
Rollups are among the most popular Layer 2 solutions because they provide a high throughput (transactions per second), without sacrificing security or decentralization. They achieve this by moving computationally intensive processes from the Ethereum mainnet (Layer 1) to a sidechain (Layer 2). A rollup submits just enough data to the mainchain so that any participant can recreate the transaction states and detect invalidity or errors. Security isn’t compromised, since the transaction data is stored on the Ethereum mainchain.
ZK-Rollups bundle — or “roll up” — transaction data into a single block and process it off the mainchain to ease congestion. Network participants known as transactors and relayers handle this data, while verifying and submitting it to the mainnet.
Transactors post their transaction data — which consists of the indexed address, value, network fee and nonce (number only used once) — to the network. The indexed address uses fewer processing resources, and smart contracts link these addresses to Merkle trees, data structures that make sure data can’t be faked within a ZK-Rollup. A ZK-Rollup has two Merkle trees: one that records accounts, and another that stores transaction values. This also is an efficient use of processing power and time.
Relayers create rollups by aggregating transactions. They create a zero-knowledge, succinct non-interactive argument of knowledge (ZK-SNARK) proof that validates transactions by comparing the blockchain state before and after. ZK-SNARK is a novel way of proving possession of specific information without revealing that information, and without the prover interacting with the verifier. The relayer forwards the results of the proof to the mainchain in a verifiable hash. Relayers must stake their crypto in a smart contract to incentivize honesty. Any fraudulent act attracts loss of the staked funds, discouraging bad actors and reducing the need for frequent disputes.
ZK-Rollups are a more efficient use of blockchain space, as they require less storage than traditional smart contracts since “zero knowledge” of the whole transaction’s data is needed. They only need validation proof, which makes validation quicker and cheaper because minimal data is included. The transactions have already been verified on the sidechain, which automatically validates them on the mainchain. Validating using a ZK-Rollup requires less data, which is quicker and less expensive than executing the transactions on the main Ethereum chain.
Cheaper and faster, ZK-Rollups offer some of the best Ethereum Layer 2 scaling solutions. Here are the primary advantages:
With its innovative approach, the ZK-Rollup protocol promises to be the future of Layer 2 scaling. Of course, it’s not without its drawbacks. ZK-Rollups present some limitations that will need to be overcome to achieve mainstream adoption:
Rollup protocols and other Layer 2 scaling solutions operate similarly, but each one is designed to serve specific use cases within the blockchain ecosystem.
Some Layer 2 solutions may offer enhanced scalability and throughput by not posting any data to the Ethereum mainnet. However, this comes at the cost of reduced security.
ZK-Rollups and optimistic rollups both achieve scalability improvements by moving transaction computation off-chain and submitting highly compressed data to the Ethereum mainnet. Where they diverge is in their verification methods. ZK-Rollups validate transactions with complex cryptographic validity proofs, with each batch of transactions submitting a validity proof to the mainnet.
Optimistic rollups, on the other hand, believe all the transactions to be valid, and submit transaction batches without any calculations. This leads to a considerable uptick in scalability. However, there’s a challenge period in which anyone can question the validity of any transaction. If an anomaly is observed, the rollup runs a fraud proof (a check on transactions for possible fraud) using the data available on Layer 1. This challenge period wait causes more delays than with ZK-Rollups.
The optimistic rollup protocol incentivizes legitimate transactions by rewarding sequencers (parties responsible for storing and executing user transactions off-chain). Sequencers who submit fraudulent transactions to the Ethereum blockchain are punished by having their ETH stake slashed.
Optimistic rollups can offer up to 100x increase in scalability, since they don’t need to carry out complex computations. However, the challenge period means their withdrawal period is far longer than that of ZK-Rollups.
Another main difference is that optimistic rollups offer smart contract capabilities, which are challenging to implement with ZK-Rollups.
Sidechains are blockchains which are linked to the main blockchain, such as Ethereum via bridge contracts. They differ primarily from ZK-Rollups in that they receive data from the mainnet without needing to validate it. Instead, sidechains rely on a set of parties who control [the bridge](https://techcrunch.com/2022/02/03/blockchain-bridge-wormhole-confirms-that-exploiter-stole-320-million-worth-of-crypto-assets/#:~:text=A bridge is a combination,and then initiate a transaction.) contracts to confirm that the mainnet isn’t compromised and relay this information to the bridge.
As a separate entity, sidechains have their own security properties and consensus mechanisms to process transactions. Like ZK-Rollups, sidechain transactions are often cheaper than mainchain transactions.
Meanwhile, for ZK-Rollups, sequencers give proof of the network state to the bridge contract, which has to validate the evidence and verify that the network hasn’t been compromised.
ZK-Rollups use Ethereum network security, and consume more resources as a result. This makes ZK-Rollups more expensive compared to a sidechain.
The main difference between ZK-Rollups and sidechains is the method for storing transaction data. Whereas rollups batch transactions on Layer 2, and then submit them to the mainchain, sidechains create entirely separate chains — and then submit only the deposit and withdrawal to the mainchain. While ZK-Rollups can rely on the security of the mainchain, sidechains are responsible for their own. There’s also the chance with any sidechain that the operators creating new blocks could stop producing blocks, or limit withdrawals. As with mainchains, sidechains are also subject to 51% attacks.
Plasma chains are a scalability solution first proposed by Joseph Poon and Vitalik Buterin (co-founder of Ethereum).
Plasma is a Layer 2 scalability solution that offloads transactions to a Layer 2 sidechain (or “child chain”) and periodically submits newly created blocks back to the Ethereum mainnet. Plasma creates blocks through consensus mechanisms, similar to sidechains, but posts block roots to the mainchain, which act as a security layer.
Similar to ZK-Rollups, plasma chain transaction costs are lower than on the mainchain. They also use fraud proofs to secure the plasma chain. These sets of checks and balances allow users to challenge the validity of their funds on the mainchain, creating comparable security to that of rollups.
ZK-Rollups and plasma chains both scale Ethereum by moving transactions off the mainchain to a Layer 2 sidechain. However, the fundamental difference is that ZK-Rollups group hundreds of transfers into a single transaction, which is validated with a ZK-proof on the Ethereum mainnet, whereas plasma chains create and submit one transaction per transfer.
Plasma’s scalability is limited by the high amount of data requirements on the mainnet for validating blocks when users want to withdraw from the sidechain. Furthermore, the challenge period is lengthy, and users must stay online — or forfeit their rewards. ZK-Rollups are more user-friendly, utilizing fewer resources and making them a more promising Ethereum scaling solution than plasma for most use cases.
Plasma is designed to interact and communicate as rarely as possible with the mainframe. This has caused some data unavailability errors. When this occurs, it has to be determined whether the ledger is correct and the operator is trustworthy. Some plasma implementations hold votes among governance token holders to resolve this issue. This differs from the assumed trusted state of rollups, which rely on the “one in n” rule to validate authenticity.
One major upside to plasma and rollups is that even if the exchange running the scaling solution is down, funds can be withdrawn because of the fraud proofs on the main public ledger.
State channels are scaling solutions that allow two or more parties to transact securely off the Ethereum blockchain. The parties involved interact without recourse to the mainchain by sending state updates between themselves.
When any of the parties decide to stop using the channels, they initiate an “exit” — that is, they submit the last state updates to the mainchain, and the current balances are transferred to the parties that started the channel. The mainchain validates this current state by verifying final balances and signatures, making it challenging for anyone to exit from an invalid state.
But there’s a drawback: The mainchain has no way of knowing if another transaction has been added to the previous ones after the last state updates have been submitted. A way around this is to allow a period for any of the parties to challenge the exit. To eliminate the extended wait times to withdraw to the mainchain, parties involved in the transaction can sign a “conclusion proof” which allows a party to exit without waiting for the challenge period to elapse.
State channels have the advantage of allowing transactions between two parties without involving a third party, unlike ZK-Rollups, where a rollup operator must process all transactions.
Another difference between state channels and ZK-Rollups is that state channels have immediate finality: The state is final once the counterparty confirms that an update was received (i.e., the transfer of values is instant).
Zero-knowledge rollups hold significant potential as an ideal scalability solution for Ethereum.
Therefore, to take advantage of this fast-developing technology, here’s a list of protocols that implement ZK-Rollups and their coins.
The Loopring network is a ZK-Rollup-powered project that enables developers to create exchanges or DEXs with fast settlement for traders on the Ethereum network. Loopring DEXs offer low-cost trading and payment on the Ethereum blockchain, leveraging the high-throughput advantage of ZK proofs.
ZK-Rollups enable Loopring DEXs to take settlement computation off-chain, rather than settling directly on the Ethereum blockchain like other exchanges. This slashes the number of transactions submitted to the Ethereum network, easing congestion, increasing speed and reducing trading costs.
LRC is the native utility token of the Loopring network. Traders pay in LRC when processing each trade. On Loopring, 80% of the funds are sent to the liquidity providers, and the balance is shared between insurers and Loopring’s DAO.
The LRC price could be affected by the performance of the Ethereum network. As transactions on Ethereum increase, slowing down the network and driving fees higher, more users will favor scalability solutions such as Loopring.
Immutable X is a Layer 2 scaling solution for non-fungible tokens (NFTs) on Ethereum. It uses ZK-Rollups to scale up instant trading, and to eliminate gas fees for NFT minting and trading, without sacrificing the security of users and assets.
IMX is the native utility token of the Immutable X protocol. Users can earn IMX by trading and carrying out other activities on the network. IMX can be used to pay fees, to stake on the protocol, or as a governance token.
Immutable X stands at the intersection of three popular narratives in the crypto space —
NFTs, ZK-Rollups and Gaming ― making it a promising asset worth considering. Furthermore, because its zero gas fees for trading NFTs attract more developers to the platform, Immutable X is primed for substantial growth.
Polygon network is a ZK-Rollup-based protocol for building and connecting Ethereum-compatible blockchain networks. It allows developers to build DApps which combine the high-security features of Ethereum with the low gas fees and scalability of Polygon Network.
MATIC is the native token powering the Polygon Network. It’s used to pay transaction fees, and can also be staked in the PoS consensus to earn passive income. Users can earn MATIC by providing resources for transaction validation and executing smart contracts on the network.
The main reason to keep an eye on MATIC is the rapid growth of the Polygon network, with more interoperable projects launching on it. Also, Polygon has recently acquired the Ethereum scaling startup Mir Protocol for $400 million. Mir Protocol boasts the fastest and most advanced ZK-proof technology, called Plonky2, which was designed to generate proof faster and to verify more transactions in one proof.
This is the second major acquisition by Polygon, having previously bought ZK-Rollup Hermez Network (now Polygon Hermez) for $250 million.
Syscoin is a PoW blockchain that combines Layer 1 and Layer 2 elements to create a platform for the development of Web 3.0 DApps. It combines the high security of Bitcoin and the DApp capabilities of Ethereum (using a ZK-Rollup scaling solution) to create fast and secure DeFi products. The Syscoin project aims to create a platform for organizations to utilize distributed ledger technology with high security, low cost and high scalability.
Syscoin’s native token, SYS, is used to pay network fees, collateralize a masternode for rewards and participate in governance. Users can also create a custom asset token, Syscoin Platform Token (SPT), which uses the Syscoin Token platform. Both Bitcoin and SYS can be mined simultaneously in a process known as merge-mining.
There’s every reason to be bullish about Syscoin in 2022. The Syscoin network offers various applications in Web 3.0, NFTs and the metaverse, and an increasing number of projects are launching on the platform. With the ZK-Rollups scaling solution promising throughput of 210,000 TPS, the Syscoin network will increasingly handle more transactions at very low fees.
ZKSwap is a decentralized exchange (DEX) protocol built on the automated market maker (AMM) model. It’s the first DEX to implement a Layer 2 scaling solution based on ZK-Rollup technology which promises security and high scalability. Using ZK-Rollup technology, ZKSwap lessens the load on the main Ethereum network and offers better security, lower cost, higher TPS and privacy for traders.
The ZKSwap network is powered by ZKS, its native ERC20 token. ZKS is used to reward users for community mining, transaction verifications and other pro-network tasks. ZKS holders can vote for token listings and also govern the network.
There are great plans ahead for ZKSwap: Proposed Layer 2 lending and stable currency exchange services are in the works. ZKSwap is also developing a general EVM model which is based on ZK-Rollups.
ZKSwap partners with popular DEXs, such as MXC, Huobi, DODO and DeFiBox, and is working to integrate more protocols in the near future.
With its increasing popularity, the Ethereum network is still facing scalability challenges as more projects launch. Expectedly, Layer 2 solutions are only going to become more relevant. In this space, ZK-Rollups with breakthrough zero-knowledge-proof technology offer significant advantages in TPS, gas fees, security, privacy and scalability. Even better, ZK-Rollups and ZK-proof technology are relatively nascent, and more technological advances are to be expected in this field.
可扩展性是以太坊 和大多数区块链项目的主要问题 。随着主区块链上计算密集型进程数量的增加,它会阻塞网络并使交易变得缓慢且昂贵。这损害了用户体验和整个以太坊生态系统。然而,以太坊的可扩展性问题可能有一个解决方案:ZK-Rollups。本文将向您介绍 ZK-Rollup 及其优点和限制,并将它们与其他扩展解决方案进行比较,同时检查最佳 ZK-Rollup 硬币。
ZK-Rollups 或零知识汇总是智能合约,它实现了以太坊 第 2 层 扩展解决方案,以在区块链上进行更有效的交易处理。
要了解 ZK-Rollups,您必须对汇总有基本的了解,以及为什么它们是以太坊第 2 层可扩展性解决方案的关键。 Layer 2 解决方案基于%20and%20reduce%20gas%20fees.) 辅助链而不是主链。
Rollups 是最流行的第 2 层解决方案之一,因为它们提供了高吞吐量(每秒事务数),而不会牺牲安全性或分散性。他们通过将计算密集型进程从以太 坊主网 (第 1 层)移动到侧链(第 2 层)来实现这一点。汇总向主链提交足够的数据,以便任何参与者都可以重新创建交易状态并检测无效或错误。安全性没有受到影响,因为交易数据存储在以太坊主链上。
ZK-Rollups 将交易数据捆绑或“汇总”到单个块中,并从主链处理它以缓解拥塞。被称为交易者和中继者的网络参与者处理这些数据,同时验证并将其提交到主网。
交易者将他们的交易数据——包括索引地址、价值、网络费用和随机数(仅使用一次)——发布到网络。索引地址使用较少的处理资源,智能合约将这些地址链接到 Merkle 树,确保数据不会在 ZK-Rollup 中被伪造的数据结构。ZK-Rollup 有两棵 Merkle 树:一棵记录账户,另一棵存储交易价值。这也是对处理能力和时间的有效利用。
中继 器通过聚合事务来创建汇总。他们创建了一个 零知识、简洁的非交互式知识论证 (ZK-SNARK) 证明,通过比较之前和之后的区块链状态来验证交易。ZK-SNARK 是一种证明拥有特定信息的新颖方法,无需透露该信息,也无需证明者与验证者交互。中继器将证明的结果以可验证的 散列转发到主链。中继者必须将他们的加密货币放入智能合约中以激励诚实。任何欺诈行为都会导致质押资金的损失,从而阻止不良行为者并减少频繁发生纠纷的需要。
ZK-Rollups 是对区块链空间的更有效利用,因为它们需要比传统智能合约更少的存储空间,因为需要对整个交易数据的“零知识”。他们只需要验证证明,这使得验证更快、更便宜,因为包含的数据最少。交易已经在侧链上得到验证,侧链会自动在主链上验证它们。使用 ZK-Rollup 进行验证需要更少的数据,这比在以太坊主链上执行交易更快且成本更低。
ZK-Rollups 更便宜、更快,提供了一些最好的以太坊第 2 层扩展解决方案。以下是主要优点:
更快的交易完成时间
:ZK-Rollups 提供更快的交易完成时间(用户确认区块链交易不会被更改或取消所需的时间)。一旦发送了有效性证明,以太坊网络会立即验证更新的状态。
提高吞吐量和可扩展性
:ZK-Rollups 提高了吞吐量和可扩展性,因为每个事务都包含最少的数据。ZK-Rollup 将所有交易编译成一个单一的交易,然后通过有效性证明进行验证。因此,节点之间只需要传递最新的状态,从而实现更快、更高效的处理。
更便宜的交易费用
:ZK-Rollups 使交易费用更实惠。用户之间分摊 gas 成本,因为他们的交易是捆绑或“汇总”的。有了足够多的用户,gas 费可能只需要几美分,因为 ZK-Rollup 可以捆绑几乎无限数量的交易
更快的取款时间
去中心化但安全
凭借其创新的方法,ZK-Rollup 协议有望成为第 2 层扩展的未来。当然,它也不是没有缺点。ZK-Rollups 存在一些限制,需要克服这些限制才能实现主流采用:
Rollup 协议和其他第 2 层扩展解决方案的运行方式类似,但每一种都旨在为区块链生态系统中的特定用例提供服务。
一些第 2 层解决方案可以通过不向以太坊主网发布任何数据来提供增强的可扩展性和吞吐量。然而,这是以降低安全性为代价的。