What is a ZK rollup?
A zero-knowledge rollup (ZK rollup) is a type of rollup: it hands the results of a batch of transactions to the main chain together with a proof, and the main chain accepts those results only after checking that the proof is valid. This proof is called a validity proof. It uses cryptography to show that the batch's computation followed the rules and produced the correct result, so the main chain does not have to re-execute every transaction.
The main chain is the blockchain a rollup relies on and that ultimately confirms its results. This article uses Ethereum as the example, so the main chain is the mainnet, the Ethereum network that actually runs and records transactions involving real assets; below, it is simply called mainnet. A ZK rollup is a layer 2 network: transactions are processed on it first, and the final results go back to mainnet for confirmation. On mainnet, the proof is checked by a program that runs automatically according to preset rules; programs of this kind are called smart contracts.
The "zero-knowledge" in the name does not mean that transactions are automatically private. Validity means that a proof shows the computation is correct; zero-knowledge means that a proof reveals no information beyond the public conclusion. The two can exist together, but they are not the same property; for the concept, see zero-knowledge proof. A ZK rollup still publishes enough data to rebuild accounts and other records. How it compares with an optimistic rollup, which assumes results are correct at first and lets others point out errors within a set time window, is covered in the general rollup entry; this article explains only the validity-proof type.
The sections below first look at how one proof gets mainnet to accept a batch, then at withdrawals, data publication, running Ethereum applications and proof costs, and finally at the limits of what a proof does and the risks that remain.
How a ZK rollup works: Ethereum accepts a batch of transactions on the strength of one proof
Three main roles are involved in processing a batch:
- The sequencer collects transactions, decides their order, executes them, packages them into a batch and submits it. The participant that runs this software and hardware is called the operator; on some networks a single operator acts as the sequencer on its own, while other networks let multiple parties take turns.
- The prover runs the proof-generating program and computes a validity proof for the batch. It can run separately from the sequencer.
- The verifier contract checks the submitted proof on Ethereum and decides whether to accept the new records.
A rollup uses hashing, a method that turns data into a fixed-length number, to condense records such as accounts and balances into a single number called the state root. Any change to the records also changes the state root. The rollup contract on Ethereum stores the state roots it has accepted.
Take a batch that contains just one transfer, in which A sends 10 tokens to B. This example shows only the balance changes and ignores fees:
- The sequencer checks whether A's balance is sufficient, whether the transaction sequence number is correct and whether the digital signature is valid. The transaction sequence number goes up by 1 each time the account sends a transaction; the digital signature is produced by A with their private key (the secret number that authorizes spending the assets) and proves that A really authorized this transfer. Once these checks pass, the sequencer subtracts 10 from A's balance, adds 10 to B's balance and calculates the new state root.
- The prover generates a validity proof showing that, starting from the records behind the old state root and executing this batch according to the rules, the result is this new state root.
- The operator submits the data the batch requires, the new state root and the proof to Ethereum.
- The verifier contract checks that the old state root in the proof matches the stored records, and that the proof is valid.
- Only if these checks pass does the contract record the new state root as the latest record.
Provided that the proof scheme's cryptographic assumptions and its implementation are sound, an incorrect balance cannot slip through on a valid proof; if the check fails, the mainnet contract will not accept the incorrect state, and withdrawals that rely on it cannot be completed. This is not a promise that the software is free of bugs; the specific preconditions are covered in the risks section.
Withdrawing from a ZK rollup: there is no challenge period, but the proof must pass verification
To move assets from a ZK rollup back to Ethereum through the rollup's own contracts, the withdrawal must first be included in a batch and pass the proof check. The process described in the Ethereum developer documentation is roughly as follows:
- The user initiates a withdrawal on the rollup, which voids the corresponding balance so it can no longer be used for payments.
- The operator includes the withdrawal transaction, the prover generates a proof for the batch that covers it, and that proof passes verification on mainnet.
- The user claims the mainnet assets under the contract's rules by submitting a receiving address, the transaction details and an inclusion proof. The inclusion proof here shows that "this withdrawal really is in an accepted batch"; it is not a second validity proof, generated by the user, showing that the whole batch was computed correctly. When each batch is accepted, the contract also stores a hash value calculated from all of that batch's transactions, called the batch root; the contract checks the inclusion proof against the batch root and then transfers the corresponding assets.
A ZK rollup does not set a deadline for others to challenge errors, known as a challenge period, but that does not mean funds arrive the moment a user clicks withdraw. The user still has to wait for the transaction to be included, the proof to be generated and mainnet verification to complete; some networks also add extra delays, and the specific process is defined by their contracts. The challenge wait in optimistic rollups and third-party fast withdrawals are covered together in the rollup entry.
ZK rollups still have to publish their data on mainnet
A validity proof spares mainnet from needing all the information required to redo each transaction, but the rollup must still publish enough data to recover the latest account records. Some publish compressed transaction data; others publish the changes to accounts and other records. Compression can reduce publication costs, but user fees also depend on the batch, proof costs and mainnet demand; publishing somewhat less data does not necessarily cut the final fee in the same proportion.
Others need this data to rebuild the state, and users need it to look up balances and prepare the inclusion proofs required for withdrawals. If the operator refuses to process transactions, participants able to take over processing or carry out the exit mechanism also need this data, rather than only a state root that cannot be unpacked.
If a network also uses validity proofs but keeps this data outside Ethereum, it belongs to a different type of solution, Validium. If the data custodian withholds the data, users may be unable to generate the inclusion proofs needed for withdrawals even though the proven computation itself is correct, leaving their assets frozen. The difference here is where the data needed to recover the records is kept, not whether either approach has validity proofs.
zkEVM: existing Ethereum applications are hard to run directly on a ZK rollup
Proving a simple transfer only requires checks built around a limited set of rules, such as balances, signatures and sequence numbers. Ethereum contracts, by contrast, can perform many kinds of operations, and they run in a unified program execution environment, the Ethereum Virtual Machine (EVM). To prove that every step of a contract follows the EVM rules, the proof-generating program has to handle more kinds of operations, which makes the work harder and more computationally intensive.
A zkEVM is an execution environment that can generate validity proofs for EVM execution, with the goal of letting developers keep using Ethereum's contract languages and development tools. Not all ZK rollups provide the same execution environment, and the word "zero-knowledge" alone is no basis for assuming that existing applications will run unchanged; which features are supported depends on each network's implementation.
ZK rollup costs: computing power to generate proofs and mainnet verification fees
Generating proofs takes the prover a large amount of computation, often on specialized hardware; the verifier contract also pays execution fees when it checks a proof on mainnet. Ethereum measures the work required to execute operations in gas; for how fees are charged, see gas fee. Proof size, generation time and verification cost depend on the specific scheme used to generate and verify proofs, and cannot be summed up as a single fixed fee.
These costs can be shared among the transactions in the same batch, but they may still push up user fees. Hardware requirements may also limit the number of operators able to take part in proof generation.
Recursive proofs can combine multiple proofs into one: the prover generates a proof showing that the other proofs all passed their checks, and by checking only this final proof, the mainnet contract can accept the results of the corresponding batches. This approach can reduce the number of separate verification submissions and increase the amount of processing covered by a single verification; how much cost is actually saved depends on the specific implementation.
What a validity proof guarantees and what risks ZK rollups still carry
A validity proof addresses one question: "Were the transactions included in this batch computed according to the established rules?" It does not guarantee that any given transaction will be included, nor does it prove that the rules and their implementation are free of problems:
- The sequencer refuses to process transactions or the network goes down: The proof does not cover transactions that were never included. The Ethereum developer documentation describes a mechanism for submitting a request directly to the rollup contract on mainnet and exiting without the operator's consent, but using it still depends on the specific contract, the data and available proof-generation capacity; it cannot be taken as a guarantee of immediate withdrawals in every outage scenario.
- The proof scheme's preconditions fail: Some systems require a trusted setup, in which public parameters used for generating and checking proofs are created in advance. If the secret material used during generation is mishandled, an attacker could forge proofs; not all proof systems require such a setup, and the principle is explained in the zero-knowledge proof entry.
- Bugs in contracts and proving programs: A valid proof shows that the computation followed the rules as encoded; it does not guarantee that the rules were encoded without errors. The contract that holds users' deposited assets also serves as the bridge connecting mainnet and the rollup; related vulnerabilities could expose those assets to attacks. For the basis of this risk, see the Ethereum developer documentation on bridges.
These are operating conditions that need to be checked separately; they do not constitute a recommendation to use any network or service, nor an assessment of which network is better.
FAQ
Does a passed proof mean the transaction can never be reversed?
You still need to distinguish between the rollup contract accepting the results and the mainnet block being finalized. Before the proof passes, a "processed" status shown in an interface may only be the operator's response; after the proof passes, the Ethereum contract accepts the batch, but the mainnet block containing the operation still needs to reach finality, meaning it will not be reversed under normal consensus conditions.
Do all ZK rollups use the same kind of proof?
No. Different generation and verification schemes vary in proof size, verification cost and whether a trusted setup is required. The names, meanings and a comparison of the common categories are collected in zero-knowledge proof.
Related terms
Learn more about rollups, zero-knowledge proofs, layer 2 networks, the Ethereum Virtual Machine, gas fees and blockchain finality, or return to the cryptocurrency glossary.
References
Active digitale supuse volatilității și nu sunt asigurate. Nu reprezintă un sfat financiar / de investiție. Nu toate produsele și serviciile sunt oferite în toate regiunile. Se aplică excluderi și Termene și condiții.
© 2026 OKX. Acest articol poate fi reprodus sau distribuit în întregime sau pot fi utilizate extrase de 100 de cuvinte sau mai puțin din acest articol, cu condiția ca o astfel de utilizare să fie non-comercială. Orice reproducere sau distribuire a întregului articol trebuie și să precizeze în mod vizibil: „Acest articol este © 2026 OKX și este utilizat cu permisiune”. Extrasele permise trebuie să citeze numele articolului și să includă atribuirea, de exemplu „Numele articolului, [numele autorului, dacă este cazul],© 2026 OKX”. Unele conținuturi pot fi generate sau asistate de instrumente de inteligență artificială (AI). Nu sunt permise niciun fel de lucrări derivate sau alte utilizări ale acestui articol.









