Crypto 2.0: Rollups

 

The importance of scalable blockchains increased when global corporations started embracing the technology to save costs (potentially billions of dollars), therefore improving business processes and increasing transparency. Currently, CME Group, Coinbase, Stone Ridge, State Farm, Signature Bank, Pay Pal, and many others use Ethereum and other Blockchains to make transactions gaining a leading position in the future of digital assets. Hence, corporations are directly affected by Ethereum and other blockchain updates in security, scalability, performance, and usability.

Focusing on Ethereum scalability, we already know that efforts are being made through Ethereum 2.0 increasing throughput from 15 transactions per second (TPS) to 2,000 – 4,000 TPS. Alternative solutions to scalability as rollups have come to play an important role in the crypto market given that they offer better security conditions in comparison with other Layer 2 solutions such as state channels, plasma, and sidechains (Gluchowski, 2021). In addition, they make a great fit for high-volume transaction businesses. To illustrate, zero-knowledge rollups (zk) promises to reduce native withdrawal times of any asset from 1 week to 1-10 minutes, which at simple sight might not be much if the volume is low, however, this difference for a professional trader would significantly improve her/his margin.

This article analyzes the differences between optimistic rollups and zero-knowledge rollups and showcases its main providers.

 

Rollups

Rollups are a general-purpose scaling solution that relies on Ethereum security with the advantage of deploying all of the existing smart contracts without sacrificing security and with little or no changes. It basically can execute transactions in the rollup, takes the data, compresses it, and rolls it up to the Ethereum mainchain in a single batch, meaning it moves computation off-chain allowing more transactions to be processed.

 

Optimistic Rollups

There are two types of rollups, optimistic and zero-knowledge rollups. They differ from each other in the security protocols and their compatibility with the Ethereum Virtual Machine (EVM). Optimistic rollups post data in layer 1 (Ethereum) assuming it is correct. If the posted data is incorrect (invalid transaction), a dispute resolution system comes into play.

The dispute system verifies fraud proofs, detects fraudulent transactions, and disincentivizes bad actors by penalizing them (slashing ETH). If the posted data is correct no additional steps are needed. To be able to execute a rollup transaction on layer 1, optimistic rollups implement a system that is able to replay a transaction with the exact state that was present when the transaction was originally executed on the rollup. The system can detect fraud even if there is only 1 honest party that monitors the state of the rollup and submits fraud proofs if needed.  Optimistic rollups are more EVM compatible than ZK-rollups, in fact, more than 99% of optimistic rollups contracts can be ported without making any changes. It is much harder to create an EVM compatible ZK-rollups due to the complexity of the technology which makes it difficult to scale general purpose applications.

 

Zero-Knowledge Rollups

ZK-Rollups does not have a dispute resolution system. Instead, every batch posted in the Ethereum mainnet includes a cryptographic proof called ZK-SNARK. The proof is quickly verified by the Ethereum contract when the transaction batch is submitted and invalid batches can be rejected instantly. This is generally called ‘validity proof’. As opposed to optimistic rollups, ZK rollups do not have long waiting times for withdrawals. However, zk-rollups are more computation heavy given that nodes that compute zk-proofs have to be high-spec machines making it hard for users to run them. This, without compromising the sustainability of Ethereum (Wintermeyer, 2022). In the near future, the community is expecting a ZK-rollup solution compatible with EVM. Some advanced projects are led by ZKSync, with their ZK-EVM solution.

 

In terms of performance, rollups have very similar results, being zk-rollups cheaper than optimism rollups because it requires the least amount of data to be posted on-chain (no signatures and no transaction parameters) (zkSync, 2022).

In terms of usability and user experience, zk-rollups are better due to reduced waiting times for withdrawals. Any withdrawal is finalized between 15 minutes and 3 hours as opposed to 1 week when using optimistic rollups.

 

Rollup Providers

Currently, the top layer 2 providers in terms of total value locked (TVL) are Arbitrum, dYdX, Optimism, Metis Andromeda, Loopring, Boba Network, ImmutableX, ZKSwap V2, DeversiFi, and zkSync, being Arbitrum the provider with the greatest market share. In the following figure, there is a summary of the most popular rollups solutions focusing on costs and financial features.

 

About micobo

micobo GmbH is a leading European software company for Security Token Offerings and Blockchain Software Development (DLT). It provides fully compliant software solutions for Security Token Offerings and advises on structuring DLT- and Blockchain-based Securities. micobo empowers financial institutions with state-of-the-art technology focusing on providing a better customer experience and achieving measurable results.

 

 

Bibliography