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:
- Register-based, not stack-based: "EraVM is a register-based virtual machine" [Source: https://github.com/Openchain-Labs/zksync-node/blob/main/docs/specs/zk_evm/vm_specification/compiler/instructions/overview.md].
- Solidity and Vyper are compiled to EraVM bytecode via ZKsync's LLVM-based compiler (
zksolc), rather than run as raw EVM bytecode [Source: https://ethereum.stackexchange.com/questions/149162/differences-between-on-zkevm-and-zksync-era]. - EVM Bytecode Interpreter: to close the compatibility gap, ZKsync added an EVM execution mode so unmodified EVM bytecode runs directly. Announced April 2025: "ZKsync has achieved EVM equivalence with EVM Interpreter: Developers can run unmodified EVM bytecode... tools like Foundry and Hardhat just work out of the box" [Source: https://zksync.mirror.xyz/a_fFyNZJDa8Amuk9puDLVtKFbjQf8Ad1WuFWBx_tRVY]. Confirmed independently by Binance News [Source: https://www.binance.com/en/square/post/05-06-2025-zksync-evm-solidity-23902116375490] and ZKsync's docs [Source: https://docs.zksync.io/zksync-network/zksync-era/unique-features].
- Native account abstraction and paymasters are protocol-level features, going beyond Ethereum's defaults [Source: https://docs.zksync.io/zksync-network/zksync-era/unique-features].
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:
- Boojum is ZKsync Era's SNARK-based proof system [Source: https://github.com/matter-labs/era-boojum]. ZKsync's own account described it as delivering "world-class performance" for "zkSync Era's current SNARK-based proof system" — a first-party promotional claim [Source: https://x.com/zksync/status/1680820952991408129].
- Proof generation is a multi-stage pipeline: "the initial jobs are created by the Prover gateway, and then moved by the House Keeper until the proof is generated"; the Circuit Prover "takes outputs from witness generators and produces proofs... there's vector generation and GPU proving" [Source: https://github.com/matter-labs/zksync-era/blob/main/prover/docs/src/00_intro.md] [Source: https://github.com/matter-labs/zksync-era/blob/main/prover/docs/src/03_launch.md].
- From protocol version v27, the old prover stack (Witness Vector Generator & Prover Fri) was replaced by the new Circuit Prover stack [Source: https://github.com/matter-labs/zksync-era/blob/main/prover/docs/src/00_intro.md].
- Recursive/aggregated proofs compress many sub-proofs into one succinct proof — the core technique ZKsync relies on: "Recursion enables the compression of multiple proofs into a single aggregated proof by verifying constituent proofs within a circuit itself" [Source: https://arxiv.org/pdf/2509.16581].
- ZKsync OS is moving to a multi-proof design: "One state transition, two independent provers: every batch is proven by Airbender (the primary RV32I prover) and [another]" [Source: https://github.com/matter-labs/zksync-os-zisk/blob/main/docs/multiprover.md].
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].
| Stage | Function | What happens |
|---|---|---|
| 1 | commitBatches | Validates 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] |
| 2 | proveBatches | Validator submits the zk-proof; L1 verifies the state transition is correct [Source: https://blog.quarkslab.com/zksync-transaction-workflow.html] |
| 3 | executeBatches | Finalizes 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.