A ZK-rollup, or zero-knowledge rollup, is a layer 2 network that executes transactions off the base chain, posts the data needed to reconstruct its state to that chain, and submits a cryptographic validity proof showing that every state change in a batch was computed correctly. A smart contract on the base layer verifies the proof, so users do not have to trust the operator to behave honestly.
In blockchain scaling, the ZK-rollup is one of the two main rollup families, next to the optimistic rollup. Its defining feature is that correctness is proven up front rather than assumed and challenged later, which gives faster finality on the base chain and removes the long withdrawal delay typical of optimistic designs, at the cost of heavy proof computation.
How a ZK-rollup processes a batch
A ZK-rollup moves work off the base chain while keeping the base chain as the final judge of correctness. The process follows a fixed pipeline from user transaction to verified state, summarized in the table below.
| Stage | Performed by | Result |
|---|---|---|
| Ordering | Sequencer | Transactions grouped into blocks |
| Execution | Sequencer and nodes | New layer 2 state computed |
| Data publication | Sequencer | Compressed data posted to base chain |
| Proof generation | Prover | Validity proof for the batch |
| Verification | Base chain contract | New state root accepted as final |
Users get a soft confirmation from the sequencer within seconds, but a transaction becomes final on the base chain only after its batch proof is verified. Depending on how often the operator proves and batches, this hard finality usually arrives within minutes to a few hours.
The data posted to the base chain is what lets anyone rebuild the rollup state independently. If the operator disappears, users can reconstruct balances from that data and use the escape hatch to withdraw, which is why data publication matters as much as the proof itself.
Validity proofs and their trade-offs
The proof is the heart of the design. It is a short cryptographic object that convinces the verifier contract that a program, here the rollup’s state transition function, was executed correctly on specific inputs. Verification is far cheaper than re-executing thousands of transactions, which is where the scaling gain comes from. Despite the name, most rollups use these proofs for succinctness and integrity rather than for privacy.
Two proof families dominate, and they differ in size, setup and assumptions.
| Property | SNARK | STARK |
|---|---|---|
| Proof size | Hundreds of bytes | Tens to hundreds of kilobytes |
| Verification cost | Low, often a few hundred thousand gas | Higher, often wrapped in a SNARK |
| Trusted setup | Required by many schemes | Not required |
| Cryptographic basis | Elliptic curves and pairings | Hash functions |
| Quantum resistance | Not expected | Considered more robust |
Generating a proof is computationally expensive, often requiring large servers or specialized hardware. Provers therefore aggregate many transactions per proof, which spreads the fixed verification cost but also lengthens the time to hard finality.
ZK-rollup compared with other scaling approaches
The ZK-rollup inherits security from the base chain because the base chain verifies every state change and stores the data needed to rebuild it. Neighboring approaches make different assumptions, as the comparison shows.
| Design | Correctness guarantee | Withdrawal to base chain | Data location |
|---|---|---|---|
| ZK-rollup | Validity proof | After proof verification | Base chain |
| Optimistic rollup | Fraud proof if challenged | About seven days | Base chain |
| Validium | Validity proof | After proof verification | Off-chain committee |
| Sidechain | Own validator set | Via bridge rules | Sidechain itself |
| State channel | Signed participant updates | When the channel closes | Participants |
Since blob transactions were introduced on Ethereum, rollups post their data in a dedicated, cheaper data space that is pruned after a few weeks. This greatly reduced fees and made data availability rather than execution the main cost driver.
zkEVM and compatibility choices
Early ZK-rollups supported only payments or swaps because proving general computation was too slow. Modern designs implement a zkEVM, a virtual machine whose execution can be proven, so existing smart contracts can be deployed with little change. Designers trade compatibility against proving speed: an exact replica of the EVM is hardest to prove, while a custom virtual machine proves faster but requires new compilers or languages.
Teams choosing a ZK-rollup should check the degree of EVM equivalence, the maturity of the prover, whether the proof system has been audited and whether users have an escape hatch to withdraw if the operator stops producing batches.
The gap between soft and hard confirmation shapes how applications are built. Exchanges and bridges that credit deposits quickly accept a small reorganization risk from the sequencer, while applications that settle large values often wait for the batch proof before treating funds as final.
Several networks are also working toward decentralized sequencing and proving, where multiple parties can propose batches or generate proofs. This would reduce censorship risk and single points of failure, although it adds coordination overhead and is not yet the norm.
Limitations and open risks
- Centralized sequencers and provers: most networks rely on a single operator, which allows censorship or downtime even though invalid state cannot be accepted.
- Upgradeable contracts: a security council or multisig can often change the verifier, so governance becomes a trust assumption.
- Proof system bugs: a flaw in the circuits could let an invalid state pass, which is why multiple provers and audits are encouraged.
- Prover cost: hardware and energy costs for proving are passed on to users through fees.
- Fragmented liquidity: assets spread across many rollups need bridges and interoperability layers.
A plain-language summary
A ZK-rollup is like a busy branch office that sends a verified summary to headquarters. The branch handles thousands of customer transactions on its own, then sends the main office a compact report together with a mathematical seal proving that every calculation was correct.
Headquarters, which is the main blockchain, checks the seal in seconds instead of redoing all the work. Because the proof cannot be faked, users get cheaper and faster transactions while still relying on the security of the main chain.
An example from practice
A payments company wants to let customers send small stablecoin transfers of around 20 dollars. On the base chain, each transfer would cost more than many customers are willing to pay during busy periods. The company moves its payment flow to a ZK-rollup, where thousands of transfers share one proof and one data posting.
Each transfer now costs a few cents, and users see a confirmation within seconds. When a merchant wants to move funds back to the base chain, the withdrawal completes after the next proof is verified, typically within a few hours rather than a week. The company also documents the operator’s upgrade powers and the escape hatch, so its risk team understands which trust assumptions remain.