
Due to growing demand for cryptocurrencies, the capacity of some blockchains is reaching its limits. This can lead to network congestion and high transaction fees. For this reason, solutions are being developed and tested to increase transaction throughput and speed. These solutions can be divided into two categories: Layer 1 and Layer 2 scaling solutions.
Layer 1 scaling solutions, such as sharding, make changes directly to the main blockchain (also known as the base blockchain or Layer 1 blockchain). Layer 2 scaling solutions operate above the Layer 1 blockchain. Layer 2 solutions include state channels, sidechains, or blockchain rollups.
Blockchain rollups are protocols designed to increase throughput and reduce costs. Their goal is to solve this problem by aggregating transactions and reducing data size, making transaction processing and storage more efficient.
A rollup is a Layer 2 solution that aggregates transaction data and moves it off the main blockchain. Transaction execution occurs off-chain, while assets are stored on the blockchain in a smart contract. After transaction completion, the transaction data is sent back to the main blockchain.
Rollups that increase transaction efficiency in terms of throughput can theoretically be implemented by any Layer 1 blockchain. Through rollups, a blockchain can increase the number of transactions processed and recorded within a specific time period.
Currently, two types of rollups exist: optimistic rollups and zero-knowledge (zk) rollups.
Optimistic rollups are protocols that increase the feasible transaction volume by batching multiple transactions for processing off-chain. Transaction data is then recorded on the main blockchain using data compression techniques, which help reduce costs and increase speed. According to Ethereum research, optimistic rollups can improve scalability ten to one hundred times.
Transactions are considered valid by default to increase processing efficiency. You might wonder if this reduces security in favor of transaction speed. However, optimistic rollups use a fraud-proof system with a dispute resolution period. During this period, anyone monitoring the rollup can challenge the transaction verification through a fraud proof.
If errors are found in a batch, the rollup protocol corrects them by re-executing the erroneous transactions and updating the block. Parties that approved incorrect transactions are penalized.
Because transactions are not verified upfront, optimistic rollups have a dispute resolution period, unlike zk rollups, which extends the time needed to complete transactions.
Transaction finality on blockchains with optimistic rollups is also longer compared to blockchains with zk rollups. Transaction finality measures how long a user must wait to have reasonable assurance that transactions will not be reversed or modified. Withdrawals on blockchains with optimistic rollups are delayed because the dispute resolution period must elapse before funds are released. In contrast, withdrawals on blockchains with zk rollups are executed immediately after the zk rollup protocol's smart contract verifies the validity proof.
Some consider optimistic rollups less efficient than zk rollups. When using optimistic rollups, all transaction data must be published on the blockchain for transaction finality. Zk rollups require only validity proofs on the blockchain.
Zero-knowledge rollups are protocols that batch transactions and execute them off the main blockchain. Once transactions in a batch are executed, the zk rollup operator sends a summary of required changes with each batch. Operators must also create a validity proof to demonstrate that the changes are correct. These proofs are substantially smaller than transaction data, making their verification faster and cheaper.
On Ethereum, zk rollups reduce transaction data size using compression techniques when writing transactions to Ethereum as calldata, effectively reducing user fees.
Zk rollups use zero-knowledge proofs to verify transactions. Zero-knowledge proofs are used by a so-called prover, who wants to convince another party, called a verifier, that they possess knowledge, thereby verifying the transaction.
It works as follows:
The prover provides a mathematical proof that only they can generate.
The verifier uses this mathematical proof to verify the transaction's validity.
Information can obtain the validity proof without the verifier learning its contents.
When properly implemented, zk rollups can offer users a high level of security. One of the key elements contributing to this security is the use of zero-knowledge validity proofs. The network can operate only in a valid state through these proofs, and operators cannot steal user funds or damage the system in any way.
Another advantage of zk rollups is that users do not need to monitor the network. Zk rollups store all data on the blockchain and require validity proofs. The operator cannot commit fraud, and users do not need to worry about network misconduct. Additionally, zk rollups allow users to withdraw funds to the mainnet without needing to communicate with operators and can prove token ownership through data availability.
Zk rollups, like optimistic rollups, use a mechanism that executes transactions off the main blockchain and increases the speed of their completion.
Optimistic rollups and zero-knowledge rollups represent two distinct approaches to Layer 2 scaling, each with different trade-offs:
Transaction Verification: Optimistic rollups assume transactions are valid by default and rely on fraud proofs for verification, while zk rollups use cryptographic zero-knowledge proofs to verify all transactions upfront.
Dispute Resolution: Optimistic rollups require a dispute resolution period (typically 7 days) before transaction finality, whereas zk rollups achieve finality immediately upon proof verification.
Data Requirements: Optimistic rollups must publish all transaction data on-chain, while zk rollups only need to publish compact validity proofs, resulting in lower data costs.
User Withdrawal Speed: Withdrawals from optimistic rollups are delayed until the dispute period expires, while zk rollup withdrawals are processed immediately.
Computational Complexity: Generating zero-knowledge proofs is computationally intensive, making zk rollups more complex to implement. Optimistic rollups have simpler logic but longer finality times.
Security Model: Both approaches are cryptographically secure, but through different mechanisms—fraud proofs versus mathematical proofs.
The future of zero-knowledge and optimistic rollups remains promising. As more people adopt cryptocurrencies and blockchain technology, these solutions can play an increasingly important role in improving blockchain efficiency. Blockchains will likely continue testing various scaling solutions, including sharding, rollups, and Layer 0 solutions. We may even see the creation and implementation of new solutions, either alongside rollups or as their alternatives.
As demand for cryptocurrencies continues to grow and tests the limits of current blockchains, many developers are coming up with various scaling solutions. In this article, we explored the differences between optimistic rollups and zk rollups. With continued testing and refinement of these rollup technologies, we may eventually discover even better variants that could help us achieve the scalability needed for widespread cryptocurrency adoption by the general public.
Optimistic Rollups assume transactions are valid unless proven otherwise, while Zero-Knowledge Rollups assume transactions are false until proven valid through cryptographic proofs. Optimistic Rollups offer faster processing; ZK-Rollups provide enhanced privacy and security.
Optimistic Rollups are faster and cheaper with lower transaction costs, but have longer finality times. Zero-Knowledge Rollups offer faster finality but require more computational resources, making them slower and more expensive initially.
Zero-Knowledge Rollups offer superior security through cryptographic proofs that verify transactions mathematically, while Optimistic Rollups depend on a challenge period and fraud proofs, making ZK Rollups inherently more secure.
The Challenge Period is a 7-day window where validators can contest transactions on Optimistic Rollups. The system assumes all transactions are valid by default, but this period allows disputes to be raised to prevent fraud.
Optimistic Rollups are used by Optimism and Arbitrum for general-purpose scaling. ZK Rollups are utilized by zkSync, StarkNet, and Polygon zkEVM. Both enable faster transactions and lower costs across DeFi, gaming, and other applications.
Zero-knowledge proofs enable a prover to demonstrate transaction validity without revealing transaction details. Transactions are batched off-chain, compressed into a cryptographic proof, and only the proof is submitted on-chain for verification, ensuring privacy while maintaining security and scalability.
Optimistic Rollups assume transactions are valid by default and only verify them if challenged. Fraud proofs enable anyone to prove invalid transactions, incentivizing validators to act honestly and protecting the network from malicious actors through economic security.
Advantages: faster transaction speed, lower costs, quicker fund withdrawal to Layer 1. Disadvantages: higher technical complexity, more demanding computational requirements, smaller transaction throughput capacity.
Layer 2 Rollups offer lower transaction costs and faster finality by leveraging Layer 1 security, unlike sidechains which maintain separate security mechanisms. They provide better scalability while maintaining strong settlement guarantees on the main chain.
Optimistic Rollups and ZK Rollups will coexist and complement each other. Optimistic Rollups will focus on faster transactions and simpler implementation, while ZK Rollups will emphasize enhanced security and privacy. Both technologies will evolve to meet different application needs in blockchain scalability.











