What are ZK-Rollups (Zero-Knowledge Rollups)?
Definition: ZK-rollups are layer 2 networks that run transactions away from a base blockchain and then post compressed transaction data and a cryptographic proof back to it, showing the new state is correct.
ZK-rollups (zero-knowledge rollups) are layer 2 networks that execute transactions away from a base blockchain and then post two things back to it: compressed transaction data and a cryptographic proof that the new state was computed correctly. A contract on the base chain checks the proof, and once it passes, the batch is final. The base chain never re-runs the transactions itself.
The proof is built with the techniques of the zero-knowledge proof, although most rollups use them for compression and correctness rather than privacy; for that reason the term validity rollup is also used. ZK-rollups are one of the two main rollup families on Ethereum. The other is the optimistic rollup, which assumes batches are valid unless someone challenges them.
Architecture
Users send transactions to an operator called a sequencer, which orders them and executes them against the rollup's current state. The state, covering every account balance and contract, is summarised in a single cryptographic fingerprint known as a state root. After executing a batch, the operator produces a new state root.
A separate component, the prover, then generates a succinct proof that applying the batch to the old root yields the new one under the rollup's rules. The proof and the batch data are submitted to a verifier contract on the base chain. If the proof checks out, the contract records the new state root. Users can always rebuild the state from the posted data, which lets them withdraw funds even if the operator stops working, provided the rollup supports forced exits.
Proof systems
Most ZK-rollups use one of two proof families. The zk-SNARK produces very small proofs that are cheap to verify, though many constructions need a trusted setup ceremony to generate their parameters. STARKs avoid a trusted setup and rely only on hash functions, which are also thought to resist attack by quantum computers, but their proofs are larger. Many systems combine both, generating a STARK and wrapping it in a SNARK to cut verification cost on the base chain.
Proving is computationally heavy. Early ZK-rollups supported only simple payments and swaps, because general smart contracts were too costly to prove. Since about 2023 several teams have run zkEVMs, rollups that can prove the execution of Ethereum-style contracts, with ZKsync and others offering networks of this type.
Data availability and costs
Posting the batch data matters as much as the proof. Without the data, nobody but the operator could reconstruct balances. Rollups originally posted data in transaction call data, which was expensive. The Dencun upgrade of March 2024 added a cheaper type of temporary data storage, called blobs, designed for rollups, and fees on many rollups fell sharply afterwards. Some designs, called validiums, keep the data off the base chain entirely, trading lower cost for weaker guarantees. A design that proves batches but keeps the data elsewhere is a validium.
The cost per transaction falls as batches grow, because the fixed cost of verifying one proof is shared. A simple model is:
where is the base-chain cost per transaction, is the fixed cost of verifying the batch proof, is the number of transactions in the batch and is the data cost per transaction. With illustrative values of gas, and gas, the cost is gas per transaction, about a tenth of the 21,000 gas of a plain Ethereum transfer. Users also pay the operator's proving and sequencing costs as part of the gas fee.
Comparison with optimistic rollups
An optimistic rollup posts batches without proofs and allows a challenge period, typically about seven days, during which anyone can submit a fraud proof. Withdrawals to the base chain must wait for that window. A ZK-rollup reaches finality on the base chain as soon as its proof is verified, which can shorten withdrawals to hours or less. In exchange, ZK-rollups must pay for proof generation and have historically been harder to build for general computation.
Risks and limitations
A valid proof only shows that the rules in the circuit were followed; bugs in the circuit or verifier can still let invalid states through. Most rollups keep the ability to upgrade their contracts, often under a multisignature council, so users depend on those keyholders for now; smart contract upgradeability is a frequent point of criticism. Sequencers are usually run by a single company, which can delay or reorder transactions and capture maximal extractable value, although it cannot steal funds if forced exits work. Moving assets between rollups still relies on a blockchain bridge or the base chain, which fragments liquidity across networks.
Ref 1070000210