What Is the Difference between an Optimistic Rollup and a ZK-Rollup?
Both are Layer-2 scaling solutions that bundle transactions off-chain. An Optimistic Rollup assumes all transactions are valid and uses a "fraud proof" system, where a dispute window allows anyone to submit a proof of fraud to revert a malicious transaction.
A ZK-Rollup proves the validity of all off-chain transactions cryptographically using a "validity proof" (Zero-Knowledge Proof) before submitting the state root to L1. ZK-Rollups offer faster finality as there is no dispute window.