Technical definition
In ZK-rollups, fraud proofs are a secondary validation layer that operates when the primary zero-knowledge proof (ZKP) cannot be instantly verified or is not yet available. If a sequencer submits an incorrect state transition (e.g., by manipulating transaction execution), a watcher or challenger can submit a fraud proof to the rollup contract. This proof typically includes the disputed transaction and a pre-state root, demonstrating that the sequencer’s claimed state transition violates the rollup’s rules. The contract then verifies the fraud proof and slashes the sequencer’s bond, reverting the invalid state. Fraud proofs rely on the assumption that at least one honest participant monitors the rollup and can provide the necessary data to reconstruct the correct state.
An analogy
Imagine a notary public who certifies a contract’s validity by checking all signatures and terms. If someone later claims the contract was forged, a fraud proof is like presenting the original signatures and timestamps to prove the forgery. The notary (or a judge) then invalidates the fraudulent claim and penalizes the forger.
Why it matters
Fraud proofs provide a critical safety net for ZK-rollups, ensuring correctness even when zero-knowledge proofs are delayed or computationally expensive to verify. They enable trustless operation by allowing anyone to challenge invalid state transitions without relying solely on cryptographic proofs.
Where it came from
Fraud proofs were first proposed in the context of optimistic rollups (e.g., Optimism, Arbitrum) as a primary security mechanism. Their adaptation for ZK-rollups emerged as a hybrid approach to address latency issues in ZKP generation, with early implementations appearing around 2020–2021 in projects like zkSync Era and Polygon zkEVM.
Example in practice
In zkSync Era, if a sequencer attempts to include a transaction that steals funds by manipulating the smart contract state, a watcher can submit a fraud proof to the rollup contract. The contract verifies the fraud proof, reverts the invalid state, and slashes the sequencer’s bond, returning the stolen funds to the correct state.
Common misconceptions
- Fraud proofs are the primary security mechanism in ZK-rollups → Fraud proofs are a secondary mechanism; zero-knowledge proofs are the primary security layer.
- Fraud proofs eliminate the need for zero-knowledge proofs → Fraud proofs complement ZKPs but do not replace them; they are used when ZKPs are unavailable or unverifiable.
Risks & limitations
- Data availability dependency: Fraud proofs require access to historical state data, which may not always be available if the rollup relies on external data availability layers (e.g., Celestia).
- Latency in dispute resolution: The challenge period for submitting fraud proofs can take hours or days, delaying finality and exposing users to prolonged risk.
- Economic attacks: Malicious actors may spam the rollup with fraudulent challenges to drain sequencer bonds or disrupt operations.
- Complexity overhead: Implementing fraud proofs adds significant complexity to the rollup’s smart contracts, increasing the attack surface for bugs or exploits.