Go to app

How ZKsync's zk-rollup works

Published 10/17/2026, 12:14:02 AM

ZKsync is a zero-knowledge rollup on Ethereum: transactions are executed off-chain on ZKsync's own virtual machine, batched, and a succinct validity proof is posted to L1 so Ethereum verifies the proof instead of re-executing every transaction. Per ZKsync's docs: "It executes transactions off-chain, aggregates them into batches, and generates a succinct zero-knowledge validity proof to verify all state changes" [Source: https://docs.zksync.io/zksync-network/zksync-era]. The full pipeline spans five layers: an execution VM, a sequencer, batch/pubdata compression, a prover, and L1 settlement contracts.

Note on terminology: ZKsync is fundamentally a zk-rollup (pubdata is posted to L1). Validium is an optional mode of the modular ZK Stack framework where data availability moves off-chain — the base ZKsync Era chain itself is a rollup [Source: https://docs.zksync.io/zksync-protocol/rollup].

1. Execution layer: EraVM (a ZK-optimized VM, not an EVM clone)

ZKsync chains run on EraVM, which "differs from the Ethereum Virtual Machine (EVM) in its instruction set and execution model" [Source: https://docs.zksync.io/zksync-protocol/era-vm/evm-interpreter/overview]. Its defining properties:

2. Sequencer: ordering and soft confirmation

Users submit transactions to the sequencer, which "collect[s] and execute[s] these transactions using the L2 Virtual Machine, EraVM" and provides a soft confirmation. Users can force inclusion of a transaction by submitting it through L1 [Source: https://docs.zksync.io/zksync-protocol/era-vm/transactions/transaction-lifecycle]. The newer ZKsync OS Server sequencer claims "over 10,000 transactions per second through a single-binary architecture" [Source: https://docs.zksync.io/zk-stack/components/server] — a first-party claim, not independently confirmed; a related ZKsync blog post claims "beyond 15K TPS" [Source: https://www.zksync.io/blog/introducing-the-zk-stacks-atlas-upgrade].

3. Batching and pubdata (data availability)

Executed L2 blocks are grouped into L1 batches, and the rollup publishes compressed pubdata (the data needed to reconstruct state) to L1. The L1Messenger system contract "is responsible for validating the total pubdata to be sent on L1" [Source: https://docs.zksync.io/zksync-protocol/era-vm/contracts/system-contracts]. Per Quarkslab's technical deep-dive, the L1 contract "verifies that the pubdata is consistent and was compressed properly... the compressed data is stored on zkSync's L1 smart contract using the EraVM-specific opcode to_l1" [Source: https://blog.quarkslab.com/zksync-transaction-workflow.html].

4. Prover: generating the validity proof

The prover converts each batch's execution into a cryptographic proof:

5. L1 settlement: commit → prove → execute

The L1 smart contract acts as a state transition function verifier — "the only role of which is to check whether the state transition proposed by the operator of the chain is correct" [Source: https://docs.zksync.io/zksync-protocol/contracts/l1-contracts/l1-ecosystem-contracts]. The ExecutorFacet "accepts L2 batches, enforces data availability and checks the validity of zk-proofs," and the state transition is divided into three stages: commitBatches → proveBatches → executeBatches [Source: https://docs.zksync.io/zksync-protocol/contracts/l1-contracts] [Source: https://github.com/bheema-bhx/zkevm/blob/cronos-v25.0.0/docs/specs/l1_smart_contracts.md]. Quarkslab confirms commitBatches "makes no guarantee on the validity of the set of changes" (it only commits the effects); "the proof comes next, when the proveBatches function gets called (only by a validator)" [Source: https://blog.quarkslab.com/zksync-transaction-workflow.html].

StageFunctionWhat happens
1commitBatchesValidates batch ordering/timestamps, processes L2 logs, stores compressed pubdata via to_l1 — no validity guarantee yet [Source: https://blog.quarkslab.com/zksync-transaction-workflow.html] [Source: https://docs.zksync.io/zksync-protocol/contracts/l1-contracts]
2proveBatchesValidator submits the zk-proof; L1 verifies the state transition is correct [Source: https://blog.quarkslab.com/zksync-transaction-workflow.html]
3executeBatchesFinalizes state changes on L1 after proof verification [Source: https://docs.zksync.io/zksync-protocol/contracts/l1-contracts]

6. Modular framework: ZK Stack and Elastic Network

ZKsync is not a single chain but "a protocol designed to enable the creation of a network of interoperable zero-knowledge (ZK) L2 rollups and validiums built with ZK Stack" [Source: https://docs.zksync.io/zksync-protocol/rollup]. ZKsync Era was the first chain launched with the ZK Stack and the first member of the Elastic Network, "which now includes over 15 interconnected ZK chains" [Source: https://docs.zksync.io/zksync-network/zksync-era] — a first-party claim; a ZKsync Q1 report mentions "19+ ZK Chains" [Source: https://www.zksync.io/papers/ZKsync_and_Elastic_Networks_Q1_Wrapped.pdf], but no independent third-party source was found for the exact count.

Trade-offs and risks

  • Proof-system risk: L2BEAT flags that "Bridge Funds can be lost if the proof system is implemented incorrectly" [Source: https://l2beat.com/layer2s/projects/zksync-era].
  • Censorship risk: "Users can be censored if the validator multisig does not approve batch execution" — a real centralization vector, since the validator multisig gates proveBatches/executeBatches [Source: https://l2beat.com/layer2s/projects/zksync-era].
  • SNARK / quantum concern: pairing-based SNARKs "inherit a dependency on elliptic curve discrete-log hardness," which breaks under Shor's algorithm on a sufficiently powerful quantum computer [Source: https://shattered.io/zk-snarks-vs-zk-starks-2026/].
  • Audit history: ZKsync Era circuits were audited in 2023, which "identified 6 high-risk" issues in the constraint system [Source: https://arxiv.org/pdf/2405.12115v2] — evidence that circuit correctness is a live, non-trivial concern.

Bottom line: ZKsync is a modular zk-rollup where EraVM executes transactions off-chain, a sequencer batches them, the Boojum-based prover generates recursive SNARK validity proofs, and the L1 ExecutorFacet enforces data availability and verifies proofs through a commit → prove → execute cycle before finalizing state. The security model ultimately rests on the correctness of the proof system and on the validator multisig not censoring batch execution. Performance claims (10–15K TPS) and Elastic Network chain counts are first-party and not independently verified.