Ethereum Rollups: Optimistic and Zero-knowledge Rollups Explained

OnlyLayer
3 min readAug 21, 2023

--

Introducing Ethereum Rollups

Ethereum rollups are layer 2 scaling solutions that aim to improve the scalability and efficiency of the Ethereum blockchain. They work by aggregating and processing multiple transactions off-chain and then submitting a single summary transaction to the Ethereum mainnet.

This helps reduce congestion on the mainnet and lowers transaction fees. Rollups come in two main types: Optimistic Rollups and zk-Rollups. Optimistic Rollups use fraud proofs to ensure transaction correctness, while zk-Rollups use zero-knowledge proofs for enhanced privacy and security. Both types of rollups provide a way to process a larger number of transactions while benefiting from Ethereum's security and decentralization. Ethereum rollups provide scaling solutions, reduce gas fees, and offer faster transaction finality.

Optimistic Rollup Explained

Optimistic Rollup is a layer 2 scaling solution for Ethereum that aims to improve transaction throughput while maintaining compatibility with Ethereum's security model. It achieves this by executing transactions off-chain and then submitting a summary of those transactions to the Ethereum mainnet. Optimistic Rollup aims to improve the blockchain's scalability and throughput. It works by processing transactions off-chain and then submitting a condensed version of those transactions to the Ethereum mainnet.

In Optimistic Rollup, transactions are initially validated on the layer 2 chain, assuming they are valid and following the rules. This is why it's called "optimistic." If someone detects an invalid transaction, they can submit a "fraud proof" to the Ethereum mainnet, challenging the validity of the transaction. If the fraud proof is successful, the invalid transaction is reverted, and the malicious actor is penalized. This approach allows for greater throughput and lower transaction fees, while still leveraging Ethereum's security guarantees.

Optimistic Rollups intends to strike a balance between scalability and security, but they do require users to wait for a challenge period to pass before their transactions are confirmed. This period allows time for potential fraud proofs to be submitted.

ZK Rollup Explained

ZK-Rollup, on the other hand, is a different type of layer 2 solution that uses zero-knowledge proofs to bundle multiple transactions into a single proof, which is then validated on-chain. This provides scalability by reducing the amount of data that needs to be processed on the mainnet.

ZK Rollup aims to improve the scalability of blockchain systems by processing most transactions off-chain and only submitting a compressed proof of those transactions to the main chain. The "ZK" stands for Zero-Knowledge, referring to zero-knowledge proofs used to validate the correctness of transactions without revealing their contents. This approach reduces the computational load on the main chain and enables faster and cheaper transactions while maintaining security and decentralization.

OP + ZK implementation and benefits

To implement a ZK-Rollup on top of an Optimistic Rollup, you would essentially combine the benefits of both approaches. Transactions would still be processed off-chain and aggregated into batches, similar to Optimistic Rollup. However, instead of submitting transaction summaries directly to the mainnet, you would use zero-knowledge proofs to validate the correctness of those transaction batches.

This combined approach could potentially offer even greater scalability and privacy benefits compared to each solution on its own. However, implementing such a system would be quite complex and would require expertise in both Optimistic Rollup and ZK-Rollup technologies.

Website is in progress

--

--