Blockchain Rollups are an L2 scaling solution that increases the transactions per second on Ethereum without increasing gas costs by “rolling up” multiple off-chain transactions into one.
This article will explain why rollups are needed, what Optimistic and Zero-knowledge (ZK) rollups are, and how they work. We will also compare the different types of crypto rollups and their differences.
Before diving into this article, to better understand why Rollups play a foundational role in solving Blockchain scalability issues, we highly suggest you read our complete guide on what a Layer-2 or L2 blockchain is and how it works.
As explained in our guide on blockchain architectures, blockchain scalability solutions like rollups come from the need to solve the blockchain Trilemma.
Blockchains aim to have the three following properties:
The blockchain trilemma states that blockchain systems can only ever have two-thirds of their properties. If the system is scalable and secure, decentralization will be sacrificed.
Additionally, Ethereum inherently has a scalability problem. It can only process ~15 transactions per second. As Ethereum gains in popularity, the number of transaction requests increases. The gas price to pay for transactions increases to “jump the queue” and avoid long transaction wait times. If blockchain systems are to reach mainstream adoption, gas prices need to be reduced, even in the face of high transaction volumes.
Rollups aim to solve the trilemma problem by increasing throughput on Ethereum without sacrificing either the decentralization or security of the system. This is done by processing the transactions off of the L1 blockchain.
A blockchain rollup is an L2 solution that aims to solve the Ethereum scaling problem. It is an L2 chain that processes transactions off-chain and then bundles, compresses, and posts them to an L1. This means the gas fee is distributed across all people sending transactions in the transaction rollup.
By posting the transactions to the L1, they inherit the security of Ethereum since reverting the rollup would require reverting Ethereum.
There are two main types of rollups, and they differ in how these off-chain transactions are validated to be legitimate rather than fraudulent.
There are two primary types of rollup:
Optimistic blockchain rollups assume the transactions executing on the L2 are valid (how optimistic!) by default. They then allow people to challenge those transactions by submitting a fraud-proof. If a batch of transactions is invalid, the fraud-proof is accepted, and the batch of transactions is reverted.
Examples: Optimism, Arbitrum
Unlike Optimistic Blockchain rollups, ZK-based blockchain rollup solutions prove each batch of transactions correct by having a validity proof (or zero-knowledge (ZK) proof) submitted on-chain for every batch of transactions.
Examples: zkSync Era, Starkware’s StarkEx
When a user submits a transaction on a Blockchain Rollup like zkSync, the operator, a node, a set of components, or an entity responsible for processing the transactions takes over. The operator's job is to combine the transactions, compress them, and submit the block to Ethereum. This process is a key feature of Optimistic and ZK rollups, enabling them to handle transactions efficiently:
This transaction lifecycle works the same on optimistic and ZK blockchain rollups. The difference lies in how the rollups check the validity of the transactions.
As we said before, as the name suggests, Optimistic blockchain rollups optimistically assume every transaction is valid by default, allowing operators to challenge those transactions by submitting a fraud-proof within a defined time frame:
On the other hand, Zero-Knowledge blockchain rollup solutions prove each batch of transactions correct by having a validity proof (or zero-knowledge (ZK) proof), a complex mathematical cryptographic proof submitted on-chain for every batch of transactions:
When discussing crypto rollup solutions, different operators typically perform different actions. The term “operator” can refer to a node or entity (such as a set of components).
Different blockchain rollups use operator setups, but some common types of operators are described here:
For example, Arbitrum uses a whitelisted validator system to check a transaction's validity (or create disputes) and a sequencer to bundle and order off-chain transactions.
zkSync Era, on the other hand, uses a sequencer to order and bundle transactions into a batch and submit them to Ethereum and a prover to generate and submit zk proofs and finalize the batch.
For a specific rollups’ operator system, refer to their technical documentation.
The stage of a rollup is a framework to categorize rollups inspired by Vitalik’s proposed milestones and is an opinionated assessment of the maturity of the rollup by the L2BEAT team. It creates an incentive for projects to work toward decentralization. There are three stages:
Learn more about the stages of a rollup and the requirements.
Blockchain Rollups are an Ethereum Layer 2 solution designed to enhance transaction speed without inflating gas costs by bundling multiple off-chain transactions. This article delves into the necessity of rollups, their operational mechanisms, and the comparison between optimistic and zero-knowledge rollup types, outlining their respective workings and benefits.