Coins: 17,500
Exchanges: 1,293
Market Cap: $3.397T 1.3%
24h Vol: $76.905B
Gas: 6.622 GWEI
Go Ad-free
Glossary
TABLE OF CONTENTS

What Zero Knowledge Rollups (Zk-Rollups) Are, and How They Compare to Optimistic Rollups

4.0
| by
CoinGecko
|
Edited by
Loke Choon Khei
-

What Are Zk-Rollups?

Zero-knowledge rollups (Zk-rollups) are a type of Layer 2 scaling solution for blockchain networks. They are designed to enhance scalability and increase the efficiency of Layer 2 networks by bundling (or rolling up) multiple transactions into a single batch to process them off-chain

How Do Zk-Rollups Work?

Zk-rollups “roll up” multiple (up to thousands) transactions into a single batch and then process them off-chain. This way, Zk-rollups significantly reduce the workload on the parent chain, allowing for faster transaction processing and reduced fees. Some of the transactions handled off-chain include token transfers, contract interactions, and other activities that would normally occur directly on the Layer 1 network. 

After aggregating these transactions, a zk-rollup scaling solution generates a zero-knowledge proof, typically a zk-Snark (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) or a zk-Stark (Zero-Knowledge Scalable Transparent Argument of Knowledge). These cryptographic proofs serve as mathematical guarantees that the batched transactions have been executed correctly off-chain without disclosing any transaction details.

Once the zero-knowledge proof is created, it is submitted on-chain, along with a minimal set of transaction data. This usually includes a state root (a snapshot of the overall state of the system after the batch of transactions has been processed) and a transaction root (which summarizes the batched transactions). These are submitted to a smart contract deployed on the Layer 1 blockchain.

The smart contract on the Layer 1 network verifies the validity of the zero-knowledge proof. Since the proof is mathematically sound, this verification process takes significantly less time and computational resources than processing each transaction. After the proof is verified, the Layer 1 blockchain updates its state to reflect the changes induced by the processed batch of transactions.

Popular examples of zero knowledge Layer 2 networks include Immutable X, zkSync and Linea,  

Optimistic Rollups vs Zk-Rollups 

Rollups, in general, function by moving the heavy computational work off-chain while leveraging the security of the base layer. There are mainly two types of rollups, namely Zk-rollups and optimistic rollups, the key difference between these rollups lies in transaction validation, security, and efficiency. 

Here, we’ll look at how both types of rollups compare under the following subheadings. 

Transaction Validation

As earlier mentioned, Zk-rollups utilize zero-knowledge proofs to verify transactions, with only valid batches submitted on-chain. Optimistic rollups, on the other hand, assume that all transactions within a batch are valid while providing a challenge period (usually a week) for network participants to dispute fraudulent transactions. 

Security 

Zk-rollups and optimistic rollups are also unique in their security infrastructures. Zk-rollups, for example, employ mathematical proofs for security and to validate all transactions in a batch. Meanwhile, optimistic rollups utilize fraud proofs to ensure transaction validity and maintain network integrity.

Efficiency

Zk-rollups verify transactions with less data handled on-chain, with the goal being cheaper gas fees and faster transaction time since the proofs are immediately verifiable. In contrast, optimistic rollups assume transactions are valid by default, which in theory requires posting more transaction data on-chain, potentially leading to higher gas costs. Moreover, optimistic rollups have a longer finality time due to the challenge window, making them less efficient for time-sensitive transactions. While optimistic and zero knowledge rollups offer different benefits and drawbacks, Ethereum founder Vitalik Buterin believes zero knowledge rollups will win out in the mid to long term as Zk technology improves.

CoinGecko's Content Editorial Guidelines
CoinGecko’s content aims to demystify the crypto industry. While certain posts you see may be sponsored, we strive to uphold the highest standards of editorial quality and integrity, and do not publish any content that has not been vetted by our editors.
Learn more
Want to be the first to know about upcoming airdrops?
Subscribe to the CoinGecko Daily Newsletter!
Join 600,000+ crypto enthusiasts, traders, and degens in getting the latest crypto news, articles, videos, and reports by subscribing to our FREE newsletter.
Tell us how much you like this article!
Vote count: 4
CoinGecko
CoinGecko
CoinGecko's editorial team comprises writers, editors, research analysts and cryptocurrency industry experts. We produce and update our articles regularly to provide the most complete, accurate and helpful information on all things cryptocurrencies. Follow the author on Twitter @coingecko

Related Articles

Select Currency
Suggested Currencies
USD
US Dollar
IDR
Indonesian Rupiah
TWD
New Taiwan Dollar
EUR
Euro
KRW
South Korean Won
JPY
Japanese Yen
RUB
Russian Ruble
CNY
Chinese Yuan
Fiat Currencies
AED
United Arab Emirates Dirham
ARS
Argentine Peso
AUD
Australian Dollar
BDT
Bangladeshi Taka
BHD
Bahraini Dinar
BMD
Bermudian Dollar
BRL
Brazil Real
CAD
Canadian Dollar
CHF
Swiss Franc
CLP
Chilean Peso
CZK
Czech Koruna
DKK
Danish Krone
GBP
British Pound Sterling
GEL
Georgian Lari
HKD
Hong Kong Dollar
HUF
Hungarian Forint
ILS
Israeli New Shekel
INR
Indian Rupee
KWD
Kuwaiti Dinar
LKR
Sri Lankan Rupee
MMK
Burmese Kyat
MXN
Mexican Peso
MYR
Malaysian Ringgit
NGN
Nigerian Naira
NOK
Norwegian Krone
NZD
New Zealand Dollar
PHP
Philippine Peso
PKR
Pakistani Rupee
PLN
Polish Zloty
SAR
Saudi Riyal
SEK
Swedish Krona
SGD
Singapore Dollar
THB
Thai Baht
TRY
Turkish Lira
UAH
Ukrainian hryvnia
VEF
Venezuelan bolívar fuerte
VND
Vietnamese đồng
ZAR
South African Rand
XDR
IMF Special Drawing Rights
Cryptocurrencies
BTC
Bitcoin
ETH
Ether
LTC
Litecoin
BCH
Bitcoin Cash
BNB
Binance Coin
EOS
EOS
XRP
XRP
XLM
Lumens
LINK
Chainlink
DOT
Polkadot
YFI
Yearn.finance
SOL
Solana
Bitcoin Units
BITS
Bits
SATS
Satoshi
Commodities
XAG
Silver - Troy Ounce
XAU
Gold - Troy Ounce
Select Language
Popular Languages
EN
English
RU
Русский
DE
Deutsch
PL
język polski
ES
Español
VI
Tiếng việt
FR
Français
PT
Português
All Languages
AR
العربية
BG
български
CS
čeština
DA
dansk
EL
Ελληνικά
FI
suomen kieli
HE
עִבְרִית
HI
हिंदी
HR
hrvatski
HU
Magyar nyelv
ID
Bahasa Indonesia
IT
Italiano
JA
日本語
KO
한국어
LT
lietuvių kalba
NL
Nederlands
NO
norsk
RO
Limba română
SK
slovenský jazyk
SL
slovenski jezik
SV
Svenska
TH
ภาษาไทย
TR
Türkçe
UK
украї́нська мо́ва
ZH
简体中文
ZH-TW
繁體中文
Welcome to CoinGecko
Welcome back!
Login or Sign up in seconds
or
Sign in with . Not you?
Forgot your password?
Didn't receive confirmation instructions?
Resend confirmation instructions
Password must contain at least 8 characters including 1 uppercase letter, 1 lowercase letter, 1 number, and 1 special character
By continuing, you acknowledge that you've read and agree fully to our Terms of Service and Privacy Policy.
Forgot your password?
You will receive an email with instructions on how to reset your password in a few minutes.
Resend confirmation instructions
You will receive an email with instructions for how to confirm your email address in a few minutes.
Get the CoinGecko app.
Scan this QR code to download the app now App QR Code Or check it out in the app stores
coingecko
Continue in app
Track prices in real-time
Open App