Meet the L2s in the Race to Scale Ethereum

March 1, 2024
Quantstamp Labs

Why Ethereum Scaling is Needed

Since its launch in 2015, Ethereum has gained significant traction. However, scalability has been a consistent issue and a problem that must be tackled for the network to reach its full potential. Ethereum has a big vision: to be scalable, secure, and decentralized—but meeting all three requirements is known as the scalability trilemma.

The scalability trilemma, first referenced by Vitalik Buterin.


While Ethereum is considered very secure, this security comes at a cost: the main reason behind Ethereum’s scalability issues is that each node in the network has to process each transaction. And, as the number of people using Ethereum has grown, its capacity has been tested.

Some rapidly growing sectors, such as NFTs or gaming, have been held back due to costs and transaction times. Many users have been priced out of using decentralized exchanges or yield farms due to high gas fees. And while scaling solutions such as sharding will help when Ethereum moves from Proof of Work (PoW) to Proof of Stake (PoS), this is a complex upgrade that may take a while to happen. Enter Layer 2 scaling solutions.


Scaling Solutions

Scaling solutions can be divided into two categories: on-chain and off-chain scaling. Sharding is an on-chain scaling solution, meaning it involves changes to the protocol layer itself. On the other hand, L2s are scaling solutions that handle transactions off-chain without losing the security and decentralization of the mainnet. And, with the demand for faster and cheaper transactions growing exponentially, the Layer 2 landscape is definitely heating up.

Rollups perform transaction execution outside of Layer 1, then post data to Layer 1 where consensus is reached. Optimistic rollups, used by Optimism and Arbitrum, and ZK Rollups (dYdX, DeversiFi, ImmutableX) have different security models, but both aim to reduce transaction costs and increase throughput.


Optimistic Rollups

Optimistic Rollups don't do any computation by default, but assume transactions are valid and rely on fraud proofs to dispute any fraudulent transactions. Unfortunately, this comes with the tradeoff of longer wait times during the period where a transaction could potentially be challenged. 

In July, Arbitrum made headlines when Reddit announced plans to scale its two community tokens using Arbitrum One by Offchain Labs. Since the launch of their mainnet in August, Arbitrum has gained significant traction, recently rising to dominate the Layer 2 landscape at more than 60% market share. Only 42 days after the launch of Arbitrum One, OffChain Labs then announced Arbitrum Nitro, the next iteration of Arbitrum which promised faster speeds and cheaper transactions. This upgrade could bolster even more growth.

The idea of a “Layer 2 Summer” seemed likely in July this year with Uniswap V3’s deployment onto Optimism. Optimism took a different approach by initially whitelisting a few projects including Uniswap and Synthetix, a decentralized synthetic asset issuance protocol. While Uniswap V3 was highly anticipated and Synthetix has gained a substantial user base, Optimism hasn’t been able to capture even close to the same market share as Arbitrum.

Like Arbitrum, Optimism also uses Optimistic Rollups; however, they differ in respect to fraud-proof logic. While Optimism limits smart contract sizes to what can be re-executed on Ethereum, Arbitrum resolves disputes interactively and minimizes the amount of on-chain computation necessary to resolve them. One of the biggest drawbacks of Optimistic Rollups is the period during which a transaction can be challenged. For the user, this translates into a 7-day wait when bridging tokens back to the mainnet. However, this issue is being mitigated through numerous bridging solutions that let users transfer funds back and forth almost immediately.

Recently, the Optimism team made the bold claim that Ethereum’s native protocols will be able to launch on Optimism with “a single click” by the end of October. If any existing Ethereum mainnet protocol could decide to seamlessly deploy to Optimism, this could make them a formidable contender in the race for market share.


ZK Rollups & Validium

Another type of scaling solution is Zero-Knowledge (ZK) Rollups, which improve upon some of the pain points that exist with Optimistic Rollups. ZK Rollups work by bundling transactions off-chain and generating a cryptographic proof, referred to as a SNARK (succinct non-interactive argument of knowledge). Since only the proof is required—rather than all the transaction data—validating a block is faster and less expensive. The biggest benefit of ZK Rollups is that they allow for much faster withdrawals than Optimistic Rollups— since the validity proofs are already verified, no challenge period is required.

StarkEx is already being used to help scale transactions on several Ethereum dApps, including dYdX, DeversiFi, and ImmutableX. StarkEx can be deployed in either ZK-Rollup mode (publishing data on-chain) or Validium mode (verifying data-availability with a sidechain).

dYdX is a margin, derivatives, and futures trading protocol on Ethereum that has seen its trading volume skyrocket over the past few months, making headlines in October for surpassing both Uniswap and Coinbase in terms of trading volume. While the protocol’s leveraged trading undoubtedly inflates these numbers, dYdX has still grown its daily exchange trade volume an impressive 20,000% since March. 

While dYdX’s StarkEx implementation is a ZK Rollup, DeversiFi and Immutable X use Validium, a scaling solution that also uses zero-knowledge proofs, but unlike ZK Rollups, data availability is kept off-chain. 

TikTok Top Moments, powered by Immutable X, is turning some of TikTok’s most popular moments into NFTs. Already, celebrities such as Curtis Roach, Grimes, and Lil Nas X have drawn a lot of attention to Immutable X and its potential to power NFT projects while leveraging Ethereum’s security and avoiding gas fees. StarkNet Alpha is set to go live in November, which will introduce an exciting new feature: composability. 

Another player in the scaling landscape is Polygon. Polygon is not a Layer 2, but a suite of Ethereum scaling solutions—however, the team has alluded to future plans and recently acquired Hermez Network, a ZK-Rollups-based Ethereum Layer 2 scaling solution. Polygon Hermez will add to their existing products including Polygon Avail and Polygon SDK. With NFTs and gaming fueling growth, Polygon has seen a substantial rise in its user base over the past few months, so it will be interesting to see the impact their upcoming developments will have on their role in the Layer 2 landscape.



Sidechains

While Layer 2 solutions like Arbitrum have dominated the landscape in terms of TVL, other scaling solutions are also making a name for themselves. Sidechains are independent, EVM-compatible blockchains that run in parallel to the mainnet. These are compatible with Ethereum via two-way bridges, and run under their own consensus rules and block parameters.

While sidechains don’t inherit the security of the mainnet like true Layer 2 solutions, they certainly add value to the ecosystem. At the end of June, Axie Infinity launched Ronin, an Ethereum-linked sidechain made specifically for the game. Complete with the Ronin wallet, described as a “boarding pass to a new digital nation,” players experience fast and seamless transactions that weren’t possible on Ethereum’s mainnet. 


The Competition Heats Up

While there will certainly be multiple solutions that emerge in the journey to scaling, it will be interesting to see which of these solutions garner the most traction and market share. However, improving network capacity in terms of speed and throughput is crucial to broader adoption, and all of these solutions—whether Optimistic Rollups, ZK Rollups, or even sidechains—bode well for Ethereum’s growth. 

While other Layer 1s have certainly attracted new DeFi projects and users through incentive programs and liquidity mining rewards, the rollout of numerous bridges and increased composability among these Layer 2 solutions is creating a more connected, cohesive ecosystem. According to Messari, Ethereum’s dominance among Layer 1s dropped about 20% over the past six months, holding in July at about 77% of the $110B TVL. With close to $4B TVL in these scaling solutions, a flourishing Layer 2 landscape may not only help Ethereum retain its market share, but also propel its growth significantly over the coming months.


Quantstamp Labs
November 8, 2021

Why Ethereum Scaling is Needed

Since its launch in 2015, Ethereum has gained significant traction. However, scalability has been a consistent issue and a problem that must be tackled for the network to reach its full potential. Ethereum has a big vision: to be scalable, secure, and decentralized—but meeting all three requirements is known as the scalability trilemma.

The scalability trilemma, first referenced by Vitalik Buterin.


While Ethereum is considered very secure, this security comes at a cost: the main reason behind Ethereum’s scalability issues is that each node in the network has to process each transaction. And, as the number of people using Ethereum has grown, its capacity has been tested.

Some rapidly growing sectors, such as NFTs or gaming, have been held back due to costs and transaction times. Many users have been priced out of using decentralized exchanges or yield farms due to high gas fees. And while scaling solutions such as sharding will help when Ethereum moves from Proof of Work (PoW) to Proof of Stake (PoS), this is a complex upgrade that may take a while to happen. Enter Layer 2 scaling solutions.


Scaling Solutions

Scaling solutions can be divided into two categories: on-chain and off-chain scaling. Sharding is an on-chain scaling solution, meaning it involves changes to the protocol layer itself. On the other hand, L2s are scaling solutions that handle transactions off-chain without losing the security and decentralization of the mainnet. And, with the demand for faster and cheaper transactions growing exponentially, the Layer 2 landscape is definitely heating up.

Rollups perform transaction execution outside of Layer 1, then post data to Layer 1 where consensus is reached. Optimistic rollups, used by Optimism and Arbitrum, and ZK Rollups (dYdX, DeversiFi, ImmutableX) have different security models, but both aim to reduce transaction costs and increase throughput.


Optimistic Rollups

Optimistic Rollups don't do any computation by default, but assume transactions are valid and rely on fraud proofs to dispute any fraudulent transactions. Unfortunately, this comes with the tradeoff of longer wait times during the period where a transaction could potentially be challenged. 

In July, Arbitrum made headlines when Reddit announced plans to scale its two community tokens using Arbitrum One by Offchain Labs. Since the launch of their mainnet in August, Arbitrum has gained significant traction, recently rising to dominate the Layer 2 landscape at more than 60% market share. Only 42 days after the launch of Arbitrum One, OffChain Labs then announced Arbitrum Nitro, the next iteration of Arbitrum which promised faster speeds and cheaper transactions. This upgrade could bolster even more growth.

The idea of a “Layer 2 Summer” seemed likely in July this year with Uniswap V3’s deployment onto Optimism. Optimism took a different approach by initially whitelisting a few projects including Uniswap and Synthetix, a decentralized synthetic asset issuance protocol. While Uniswap V3 was highly anticipated and Synthetix has gained a substantial user base, Optimism hasn’t been able to capture even close to the same market share as Arbitrum.

Like Arbitrum, Optimism also uses Optimistic Rollups; however, they differ in respect to fraud-proof logic. While Optimism limits smart contract sizes to what can be re-executed on Ethereum, Arbitrum resolves disputes interactively and minimizes the amount of on-chain computation necessary to resolve them. One of the biggest drawbacks of Optimistic Rollups is the period during which a transaction can be challenged. For the user, this translates into a 7-day wait when bridging tokens back to the mainnet. However, this issue is being mitigated through numerous bridging solutions that let users transfer funds back and forth almost immediately.

Recently, the Optimism team made the bold claim that Ethereum’s native protocols will be able to launch on Optimism with “a single click” by the end of October. If any existing Ethereum mainnet protocol could decide to seamlessly deploy to Optimism, this could make them a formidable contender in the race for market share.


ZK Rollups & Validium

Another type of scaling solution is Zero-Knowledge (ZK) Rollups, which improve upon some of the pain points that exist with Optimistic Rollups. ZK Rollups work by bundling transactions off-chain and generating a cryptographic proof, referred to as a SNARK (succinct non-interactive argument of knowledge). Since only the proof is required—rather than all the transaction data—validating a block is faster and less expensive. The biggest benefit of ZK Rollups is that they allow for much faster withdrawals than Optimistic Rollups— since the validity proofs are already verified, no challenge period is required.

StarkEx is already being used to help scale transactions on several Ethereum dApps, including dYdX, DeversiFi, and ImmutableX. StarkEx can be deployed in either ZK-Rollup mode (publishing data on-chain) or Validium mode (verifying data-availability with a sidechain).

dYdX is a margin, derivatives, and futures trading protocol on Ethereum that has seen its trading volume skyrocket over the past few months, making headlines in October for surpassing both Uniswap and Coinbase in terms of trading volume. While the protocol’s leveraged trading undoubtedly inflates these numbers, dYdX has still grown its daily exchange trade volume an impressive 20,000% since March. 

While dYdX’s StarkEx implementation is a ZK Rollup, DeversiFi and Immutable X use Validium, a scaling solution that also uses zero-knowledge proofs, but unlike ZK Rollups, data availability is kept off-chain. 

TikTok Top Moments, powered by Immutable X, is turning some of TikTok’s most popular moments into NFTs. Already, celebrities such as Curtis Roach, Grimes, and Lil Nas X have drawn a lot of attention to Immutable X and its potential to power NFT projects while leveraging Ethereum’s security and avoiding gas fees. StarkNet Alpha is set to go live in November, which will introduce an exciting new feature: composability. 

Another player in the scaling landscape is Polygon. Polygon is not a Layer 2, but a suite of Ethereum scaling solutions—however, the team has alluded to future plans and recently acquired Hermez Network, a ZK-Rollups-based Ethereum Layer 2 scaling solution. Polygon Hermez will add to their existing products including Polygon Avail and Polygon SDK. With NFTs and gaming fueling growth, Polygon has seen a substantial rise in its user base over the past few months, so it will be interesting to see the impact their upcoming developments will have on their role in the Layer 2 landscape.



Sidechains

While Layer 2 solutions like Arbitrum have dominated the landscape in terms of TVL, other scaling solutions are also making a name for themselves. Sidechains are independent, EVM-compatible blockchains that run in parallel to the mainnet. These are compatible with Ethereum via two-way bridges, and run under their own consensus rules and block parameters.

While sidechains don’t inherit the security of the mainnet like true Layer 2 solutions, they certainly add value to the ecosystem. At the end of June, Axie Infinity launched Ronin, an Ethereum-linked sidechain made specifically for the game. Complete with the Ronin wallet, described as a “boarding pass to a new digital nation,” players experience fast and seamless transactions that weren’t possible on Ethereum’s mainnet. 


The Competition Heats Up

While there will certainly be multiple solutions that emerge in the journey to scaling, it will be interesting to see which of these solutions garner the most traction and market share. However, improving network capacity in terms of speed and throughput is crucial to broader adoption, and all of these solutions—whether Optimistic Rollups, ZK Rollups, or even sidechains—bode well for Ethereum’s growth. 

While other Layer 1s have certainly attracted new DeFi projects and users through incentive programs and liquidity mining rewards, the rollout of numerous bridges and increased composability among these Layer 2 solutions is creating a more connected, cohesive ecosystem. According to Messari, Ethereum’s dominance among Layer 1s dropped about 20% over the past six months, holding in July at about 77% of the $110B TVL. With close to $4B TVL in these scaling solutions, a flourishing Layer 2 landscape may not only help Ethereum retain its market share, but also propel its growth significantly over the coming months.


Quantstamp Announcements

Modular Account: How Audits Can Help Shape Standards And Catalyze Mass Adoption

Quantstamp recently conducted a smart contract audit for Alchemy’s Modular Account, a wallet implementation designed from the ground up for ERC-4337 and ERC-6900 compatibility including two plugins

Read more
Quantstamp Announcements

Quantstamp 2023 Web3 Security Year In Review

As the year comes to a close, we wanted to take a moment to reflect on this year’s biggest hacks, root causes, and noteworthy trends.

Read more