Many Ethereum Users must have used Layer2’s such as Arbitrum, Optimism, Zksync, Linea, Metis, and many more. At some point, we all wondered what the difference was between these Layer 2 rollups. Before we discuss the depth of this topic, let’s understand what rollup means for the Ethereum Mainnet.
Rollup:
Rollup means bundling multiple transactions into batches off-chain and processing them as a single transaction on Ethereum Mainnet.
It reduces data storage on-chain, thus reducing congestion on the network and increasing scalability.
ZK and optimistic Rollups
Optimistic Rollups
Optimistic rollups work on the thesis that all the transactions are valid until they are proven not to be. They believed all the network participants to be honest, so there were no hiccups.
If the transaction validity is questioned, validators need to produce fraud-proof proof. If validators fail to produce fraud-proof proof, the transaction will be reverted. Thus, the reason for a longer withdrawal period (3 to 14 days) for assets from L2 to the main net is justified.
I can sense what the readers are thinking in their minds right now ?
Crypto FoMo, We withdraw assets instantly from rollups, and there are no withdrawal delays longer than 7 days for us. So, where does this problem exist for us?
The bridges and interoperability solutions take the risk of assets arriving after a withdrawal delay and provide users with their assets immediately, removing any discomfort.
Does that make everything safe? No. For example, A User from Ethereum had deposited 1 ETH to an optimistic rollup at block number 69. Transaction validity at block 69 is questioned and the validator has failed to provide fraud proof. The transaction will be reverted, and the user should have 1 ETH back on the mainnet. It is all good when the batched transaction achieves finality on the main net. However, few interoperability protocols do not wait for finality and credit funds for users on an instant basis. While 99 percent of the time, there were no issues, during the adverse times where validators failed to provide fraud-proof resulted in a lot of mess.
For fungible tokens, it might not be an issue. But for NFT, it becomes increasingly complex as NFT has different rarities, colors, and many more variables. So, Interoperability solutions cannot provide exact NFT to users as it is impossible to have every NFT in inventory. It is one of the main reasons many experts vouch for optimistic rollups are good for defi but not for gaming and NFT.
ZK ROLLUP
Zero Knowledge Rollups, commonly known as ZK Rollup, employs ZK Proofs, a cryptographic method for verifying the authenticity of transactions without revealing their content. This provides instant finality, thus eliminating waiting times associated with fraud proofs.
ZK Rollups is perfect for gaming and NFT use cases as there are no waiting periods, which is necessary for the gaming sector's adoption.
ZK Rollup
ZK Rollups are harder to build due to their complex architecture, and there are more than five types of ZK EVM, which we will discuss in the latter threads.
ZK Sync, Polygon ZK EVM, Scroll, TAIKO, and Kakarot build rollups using ZK TECH, whereas Arbitrum, Optimism, and Metis use optimistic rollup tech.