ZK-Rollups vs. Optimistic Rollups: What’s The Difference? (2024)

ZK-Rollups vs. Optimistic Rollups: What’s The Difference?

Rollups are powerful blockchain scaling solutions that have become very popular over the last two years. There are two types of rollups: zero-knowledge rollups (ZK-rollups) and Optimistic rollups, which serve the same purpose but function differently.

Transactions in Optimistic rollups are automatically assumed valid until proven otherwise, while ZK-rollups utilize zero-knowledge proofs (will be explained below) to prove transaction validities. Both rollup types have their own benefits and drawbacks, which will be explained in detail below.

Why are Rollups Needed?

The last couple of years in the blockchain space have shown that scaling monolithic blockchains–which have transaction execution, consensus, and data availability all happen on the same layer–without sacrificing security and decentralization is very difficult, if not impossible.

For this reason, many Layer 1 blockchains have recently begun utilizing different rollup solutions to alleviate throughput demand by migrating transaction execution to Layer 2s. This way, the bulk of the transactions can be processed on a separate layer and then batched into a single transaction settled on the underlying Layer 1.

In simple terms, rollups are separate, high-throughput transaction execution networks built on top and borrow the security of Layer 1 blockchains. Rollups allow blockchains to scale to tens of thousands of transactions per second without compromising security and decentralization. Rollups provide users with a superior experience by significantly lowering transaction costs and increasing settlement times. For comparison, depending on the current network congestion, transactions on Ethereum can cost users anywhere between a few to a couple of hundred dollars. On the other hand, the current transaction fees on Ethereum-based rollups range from $0.01 to $0.1.

*Before continuing further, also check out the Layer 1 vs. Layer 2 blockchain explanation to fully understand the terms being used here.

The Difference Between ZK-Rollups and Optimistic Rollups

The main difference between the two rollup types is how they validate proofs.

Optimistic rollups are called “optimistic” because they assume all the Layer 2 transactions are valid until proven otherwise. On the other hand, ZK-rollups use a complex piece of cryptography called a zero-knowledge proof to prove the transactions’ validity without knowing too much about the transactions’ specifics.

Another difference between the two technologies is the amount of data they post to their underlying base chains. Because ZK-rollups have a mechanism to validate transactions before posting them to the base chain, they don’t need to transmit as much data as their optimistic counterparts to the Layer 1. Namely, ZK-rollups post only the validity proofs to settle transactions with finality on the base chain, while Optimistic rollups post the entire transaction data.

ZK-Rollups vs. Optimistic Rollups: What’s The Difference? (1)
The data relayed to Layer 1 by ZK-rollups (left) vs. Optimistic rollups (right).

For users, the crucial difference between the two rollup types is the withdrawal time. Namely, because Optimisitc rollups rely on validators to check each transaction and potentially dispute it if they deem it not valid, the withdrawal time for assets can last from several days to up to two weeks. While the dispute period for various Optimistic rollup implementations may vary, it’s nevertheless necessary, meaning that users must always wait a couple of days to withdraw their money on the base chain.

ZK-Rollups vs. Optimistic Rollups: What’s The Difference? (2)

This dispute period is necessary to give verifiers enough time to dispute suspect transactions via so-called fraud proofs. A fraud proof is a claim that a state transition (i.e., transaction) is invalid, and the entire batch should be reverted as a result. The verifiers can prove invalid transactions because they have complete data for all the transactions on Layer 2, including a copy of the current rollup state. They also compute the post-state root in the rollup.

If there’s no fraud proof claim from any verifier, the batch of transactions will be settled on Layer 1 automatically at the end of the dispute period. Once this is over, the original assets on Layer 1 will be unlocked while the identical copies on the Layer 2 get burned.

As for ZK-rollups, asset withdrawals to the base chain can be instantaneous because the transactions are already validated. As mentioned, ZK-rollups prove that transactions are valid via zero-knowledge proofs, which are cryptographic mechanisms that allow one party (prover) to prove something to another party (verifier) without sharing any sensitive information about the subject in question. Zero-knowledge proofs can come in two forms, STARKS (succinct, transparent argument of knowledge) and SNARKS (succinct, non-interactive argument of knowledge), each with its own benefits and drawbacks.

Optimistic vs. ZK-Rollups: Structure and Mechanism

ZK-rollups and Optimistic Rollups come with two roots, a pre-state root, and a post-state root.

The pre-state root displays the rollup state pre-transaction execution. On the other hand, the post-state root displays the rollup state post-transaction execution.

Both rollups also utilize multiple smart contracts. ZK-rollups use two smart contacts, a main and a verifier contract. The main contract stores rollup blocks and tracks asset deposits and withdrawals. Meanwhile, the verifier contract verifies the zero-knowledge proofs posted to the Layer 1.

On the other hand, Optimistic rollups utilize bridge smart contracts deployed on both the rollup and the underlying Layer 1. For every asset locked in the bridge smart contract on the Layer 1, an identical asset is minted on the rollup.

Both ZK-rollups and Optimistic rollups have an operator called a sequencer whose job is to facilitate transactions, produce rollup blocks, add transactions to the contract, and submit data back to the underlying Layer 1. Sequencers are effectively tasked to connect the Layer 1 and Layer 2 networks. When users migrate assets from the base chain to the rollup and vice versa, the sequencers relay the transactions.

When a sequencer submits transaction data, it also automatically proposes a new post-state root to the rollup smart contract. The rollup has to ensure the current state root is equivalent to the pre-state root. After it is verified, the sequencer's proposed post-state root becomes the new current state root.

Benefits and Drawbacks


The benefits of Optimistic rollups are their lesser complexity and lower transaction costs, which come at a cost of long dispute periods or withdrawal times. On the other hand, ZK-rollups are considerably more complex under the hood, but boast considerable advantages in speed, security, and privacy.

ZK-rollups Optimistic Rollups
Challenges More expensive hardware requirements and costs to generate zero-knowledge proofs for validations Long withdrawal period (from Layer 2 to Layer 1) due to dispute period and fraud-proof mechanism which requires the existence of verifiers
Benefits Faster withdrawal time since there is no need for a dispute period. Everything is verified through cryptographic proofs Lower rollup costs since there’s no need to use cryptographic proofs for every transaction block. Since every transaction is assumed to be valid until a fraud-proof claim, it saves a lot of costs for data submission.

A comparison table between Optimistic and ZK-rollups.

What Type of Rollup Does Nervos Use?

Nervos utilizes a custom Optimistic rollup solution for its first Layer 2 chain, Godwoken. Godwoken’s dispute period is approximately seven days, like other rollup solutions on Ethereum, long enough to ensure adequate security.

Godwoken is a high-throughput, GameFi-focused Layer 2 network built on top of Nervos’ highly secure Proof-of-Work Layer 1, Common Knowledge Base. It’s fully EVM-compatible, meaning developers can port their decentralized applications from Ethereum with relative ease and only minor modifications.

Conclusion

The topic of ZK-rollup vs. Optimistic Rollup remains a highly debated issue, with each approach having its own advantages and disadvantages. Currently, Optimistic Rollups are marginally more favored than ZK-rollups due to their more cost-effective nature. However, as the development of both types of rollups progresses rapidly, a clear winner between them has yet to emerge. It remains plausible that ZK-rollups may eventually gain greater prominence and practicality, thus making them a popular choice in the future.

ZK-Rollups vs. Optimistic Rollups: What’s The Difference? (2024)

FAQs

ZK-Rollups vs. Optimistic Rollups: What’s The Difference? ›

Optimistic Rollups operate on the assumption that all transactions are valid unless proven otherwise, while ZK-Rollups assume all transactions are false until proven valid.

What is the difference between optimistic rollups and zero-knowledge rollups? ›

Zero knowledge rollups employ smart contracts to handle the verification of transactions' integrity through ZK validity proofs. In contrast, optimistic rollups consider transactions valid and depend on the fraud-proof system which adopts a tradition similar to the consensus systems.

What are the key tradeoffs between optimistic rollups and ZK rollups? ›

Optimistic Rollups assume transactions are valid and use fraud proofs, which require a challenge period to verify disputed transactions. ZK-Rollups use zero-knowledge proofs for immediate validation without revealing transaction details, offering enhanced privacy and immediate finality.

What is the difference between validity rollup and ZK rollup? ›

As seen above, optimistic rollups achieve this by assuming transactions are valid unless they are challenged with a “fraud proof”. ZK rollups on the other hand, use “validity proofs”, or ZK proofs, to validate the correctness of each batch of transactions sent through to the base layer.

What are optimistic rollups? ›

Optimism is an "Optimistic Rollup," which is basically just a fancy way of describing a blockchain that piggy-backs off of the security of another "parent" blockchain. Specifically, Optimistic Rollups leverage the consensus mechanism (like PoW or PoS) of their parent chain instead of providing their own.

What are the downsides of ZK rollups? ›

What are the disadvantages of ZK rollups?
  • Technological complexity — the ZK-rollup technology is quite complex. ...
  • Computational intensity — zero-knowledge proof generation requires significant processing power, which can be a challenge, especially for validators and operators handling large volumes of transactions.
Dec 12, 2023

What is an example of a ZK rollup? ›

Thanks to zero-knowledge cryptography, the validity proofs generated are smaller than the transaction data, allowing for quick verification and lowering the cost to submit to the mainchain, thanks to compressing down data. Examples of zkRollups that are up and running include zkSync, Starkware, and Polygon zkEVM.

What are the benefits of ZK rollups? ›

Zk-rollups support increased blockchain scalability by moving computation and state off-chain while storing transaction data in bundled-up batches on-chain. Blockchains have historically struggled to maintain a high degree of trust-minimization for use cases that require high speed and low cost.

What is the best zk rollup? ›

Manta Network is one of the top ZK rollup projects, and it specializes in ensuring privacy for DeFi transactions. It operates on Ethereum's Manta Pacific layer-2 and employs zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) to safeguard transaction privacy.

What is the ZK rollup process? ›

A ZK-Rollup, or Zero-Knowledge Rollup, is a type of blockchain rollup that uses zero-knowledge proofs to ensure the validity of batched transactions. ZK-Rollups process multiple transactions off-chain and convert them into a cryptographic proof (a "zero-knowledge proof") that is submitted to the main blockchain.

How many zk rollups are there? ›

ZK-Rollups Real-World Applications
NamePurposeMax TPS
Polygon zkEVMUniversal1.41
zkSync LitePayment, Tokens3.29
ScrollUniversal2.35
ZKSpaceTokens, NFTs, AMMn/a
6 more rows
Nov 9, 2023

What is the architecture of ZK rollups? ›

ZK-Rollup Architecture

The ZK-rollup's core architecture is made up of the following components: On-chain contracts: The ZK-rollup protocol is governed by the smart contracts deployed on Ethereum. The main contract stores rollup blocks, tracks deposits, and monitors state updates.

What is the purpose of zero-knowledge rollups? ›

ZK Rollups (Zero-Knowledge Rollups) are a type of Layer 2 scaling solution designed to address scalability limitations on blockchains. They significantly enhance transaction processing capacity and efficiency, paving the way for a more robust digital ecosystem.

Which is better zk rollup or optimistic rollup? ›

Both have their own advantages and disadvantages, with Optimistic Rollups having the potential for quicker transaction processing and ZK-Rollups having the potential for enhanced privacy and security.

Can an optimistic rollup also be a based rollup? ›

Whereas optimistic and ZK rollups take different approaches to validating state, based rollups are defined by the way they deal with sequencing. While a traditional rollup, be it an optimistic or a zero-knowledge one – uses its own sequencer, a 'based' rollup utilizes its base Layer 1 protocol for the same purpose.

Is base optimistic rollup? ›

Base is the first Layer 2 optimistic rollup built on top of Ethereum using the OP stack. This rollup is EVM-equivalent with focus on security, scalability, and stability, while providing many times lower transaction fees.

What is the purpose of a zero-knowledge rollup? ›

ZK Rollups (Zero-Knowledge Rollups) are a type of Layer 2 scaling solution designed to address scalability limitations on blockchains. They significantly enhance transaction processing capacity and efficiency, paving the way for a more robust digital ecosystem.

What are the different types of blockchain rollups? ›

The two most common types are ZK-Rollups and Optimistic Rollups. Rollup solutions were developed as a response to the growing demand for blockchain scalability. In particular, networks like Ethereum carry high gas fees and slow transaction times that have been persistent issues for users.

What is the difference between arbitrum and optimistic rollup? ›

Optimism is an optimistic roll-up that shares the security of the Ethereum mainnet but takes 7 days to finalize transactions. Arbitrum comes in two forms – Arbitrum One, which is an optimistic roll-up, and Arbitrum Nova. The latter comes with lower fees but is less decentralized.

What is the difference between optimistic and pessimistic locking hibernate? ›

Optimistic locking is preferred for scenarios with high read volume and low likelihood of update conflicts, as it incurs less overhead. Pessimistic locking is suited for situations where update conflicts are likely or when critical operations must not be interrupted.

Top Articles
A kid's guide to accounting
Someone is pretending to be me online! What to do?
My E Chart Elliot
Craigslist Mpls Mn Apartments
Voordelige mode in topkwaliteit shoppen
Crocodile Tears - Quest
7.2: Introduction to the Endocrine System
How To Get Free Credits On Smartjailmail
Pickswise the Free Sports Handicapping Service 2023
According To The Wall Street Journal Weegy
Anki Fsrs
William Spencer Funeral Home Portland Indiana
Find The Eagle Hunter High To The East
Craigslist Heavy Equipment Knoxville Tennessee
What Is A Good Estimate For 380 Of 60
Healing Guide Dragonflight 10.2.7 Wow Warring Dueling Guide
Studentvue Columbia Heights
How to find cash from balance sheet?
Midlife Crisis F95Zone
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Google Flights Missoula
Erica Banks Net Worth | Boyfriend
The Pretty Kitty Tanglewood
Tinker Repo
Sulfur - Element information, properties and uses
Laveen Modern Dentistry And Orthodontics Laveen Village Az
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Rochester Ny Missed Connections
Walgreens Bunce Rd
Mals Crazy Crab
Fiona Shaw on Ireland: ‘It is one of the most successful countries in the world. It wasn’t when I left it’
Egusd Lunch Menu
Section 408 Allegiant Stadium
Jeep Cherokee For Sale By Owner Craigslist
Little Caesars Saul Kleinfeld
Max 80 Orl
Ourhotwifes
Serenity Of Lathrop - Manteca Photos
How to Destroy Rule 34
Viewfinder Mangabuddy
Cherry Spa Madison
Philadelphia Inquirer Obituaries This Week
Updates on removal of DePaul encampment | Press Releases | News | Newsroom
manhattan cars & trucks - by owner - craigslist
Myrtle Beach Craigs List
8776725837
Petra Gorski Obituary (2024)
The Great Brian Last
Rheumatoid Arthritis Statpearls
Www.homedepot .Com
Wera13X
Strawberry Lake Nd Cabins For Sale
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 5593

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.