Layer-2 Scaling and Security in 2023: The Pentagon of Ethereum

Layer-2 Scaling and Security in 2023: The Pentagon of Ethereum

June 6, 2026 · 7 min read · By Rafael

The Layer-2 Scaling Landscape in 2023

On August 5, 2022, Ethereum completed its most anticipated upgrade: The Merge. This event marked a shift from proof-of-work to proof-of-stake, reducing energy consumption by over 99%. But it also exposed a stark reality: the base layer alone can’t handle the transaction volume needed for mainstream adoption. That’s where Layer-2 solutions come in, batching transactions off-chain and submitting compressed proofs to Ethereum.

By late 2023, the total value locked (TVL) in L2 protocols surpassed $10 billion. Two dominant approaches emerged: zk-Rollups and Optimistic Rollups. These technologies are transforming how we scale and secure blockchain applications, promising faster, cheaper, and more private transactions.

To understand these solutions, it helps to clarify what a “rollup” is. Essentially, a rollup is a smart contract on Ethereum that stores compressed transaction data while execution happens off-chain. The key difference between zk-Rollups and Optimistic Rollups lies in how they verify off-chain computations. Ethereum Scaling in 2023: Data, Security, and Risks Explained offers a comprehensive overview of these trade-offs.

How zk-Rollups Work

Zero-knowledge rollups (zk-Rollups) generate cryptographic proofs (called validity proofs) for each batch of transactions. These proofs are submitted to Ethereum’s mainnet, where a verifier contract checks them instantly. If the proof is valid, the batch is accepted immediately, no waiting, no challenge window. The prover, responsible for generating the proof, requires specialized hardware, but Ethereum’s verifier remains inexpensive.

For example, a user on zkSync Era transfers 100 USDC. The rollup’s sequencer batches this with 999 other transfers, creates a single zk-SNARK proof, and submits it to Ethereum. The mainnet contract confirms all transactions in one go. The user sees finality within minutes, not days, because the proof is self-validating.

These properties (instant finality, privacy (since proofs can hide transaction details), and lower gas costs) make zk-Rollups attractive. The trade-off is the hardware needed for proof generation, which can be costly and complex.

How Optimistic Rollups Work

Optimistic rollups operate differently. They assume transactions are valid by default and only submit batch data to Ethereum. A challenge window (typically 7 days) allows anyone to submit a fraud proof if they detect invalid transactions. If a fraud proof succeeds, the invalid batch is reverted, and the sequencer’s bond is slashed.

Consider Arbitrum: a user deposits 10 ETH. The sequencer batches this deposit and posts it to Ethereum. The user can use the ETH immediately within the rollup but cannot withdraw it back to mainnet until the challenge period expires. If the sequencer tries to cheat (say, by minting fake ETH) a validator can submit a fraud proof within the window, penalizing the malicious actor.

Optimistic rollups are simpler to implement, fully compatible with Ethereum’s EVM, and cheaper to verify on-chain. However, they introduce a withdrawal delay (around 7 days) unless users pay for faster exits via third-party bridges.

Comparison Table: zk-Rollups vs Optimistic Rollups

Property zk-Rollups Optimistic Rollups
Verification mechanism Validity proof (zk-SNARK/zk-STARK) submitted with each batch Fraud proof submitted only if a challenge occurs
Finality Immediate (minutes) Delayed (7-day challenge window)
Withdrawal delay None (instant) 7 days (or use fast bridge for a fee)
Proof generation cost High (specialized hardware) Low (no proof needed)
EVM compatibility Limited (custom virtual machines) Full (EVM-compatible)
Privacy Inherent (proofs can hide data) None (all data public)
Example protocols zkSync Era, Scroll, StarkNet Arbitrum, Optimism

This table summarizes the trade-offs. The choice depends on your priorities: fast exits and privacy favor zk-Rollups, while full EVM compatibility and easier development lean toward Optimistic Rollups.

DeFi Protocols and Their Risk Profiles

DeFi protocols built on these L2s inherit their security properties. For example, lending platforms like Aave and Compound, or decentralized exchanges like Uniswap, operate across multiple rollups. Their risk profiles differ: on Arbitrum (an Optimistic Rollup), withdrawals can take up to 7 days; on zkSync Era (a zk-Rollup), withdrawals are instant.

Risks vary with architecture. In Optimistic Rollups, a malicious sequencer could submit fraudulent batches if no honest validator monitors the chain. In zk-Rollups, the cryptographic proof guarantees correctness, but bugs in the prover software can cause issues, like the October 2023 zkSync Era halt caused by a prover bug. The team deployed a fix, resuming operations, but such incidents highlight ongoing risks.

Data Availability and Security

Both rollup types require transaction data (calldata) posted on Ethereum mainnet to ensure data availability. Without this, a malicious sequencer could withhold data, making it impossible for users to verify the state. The Ethereum network’s data availability layer (currently calldata, soon supplemented by EIP-4844 blobs) ensures transparency and trustlessness.

For example, a batch of 10,000 transactions compressed into 100 KB of calldata can be downloaded and verified by any user. If the batch only posts a hash without data, it can be challenged. This transparency underpins the trustless nature of rollups, users only need to trust Ethereum’s security, not the sequencer.

Transitioning Between L2s

Leading L2s in 2023 include Arbitrum (Optimistic), Optimism (Optimistic), and zkSync Era (zk-Rollup). Each has distinct tokenomics: Arbitrum’s ARB, Optimism’s OP, and zkSync’s governance token. These tokens are used for governance, staking, and sometimes fee management.

Sequencers earn transaction fees and can extract MEV (maximal extractable value) by reordering transactions. On Ethereum L1, MEV is a major issue; on L2s, the power lies with the sequencer. Some, like Arbitrum, are exploring fair ordering protocols to mitigate this risk.

Developers must weigh tooling maturity and specific needs. Complex DeFi protocols benefit from full EVM compatibility on Optimistic Rollups. Privacy-sensitive apps favor zk-Rollups for faster finality and privacy, even if tooling is less mature.

The Role of Bridges and Cross-L2 Communication

Bridges facilitate asset movement between L1 and L2, and between different L2s. Native bridges on each L2 connect to Ethereum, but they are typically one-way, assets go in and come out after challenge periods or instantly. Third-party bridges like Hop, Synapse, and Across enable faster cross-L2 transfers via liquidity pools.

Bridge security is crucial. In 2022, the Wormhole bridge lost $326 million, and Ronin lost $620 million, both sidechain bridges, not L2 rollups. Native L2 bridges are generally safer, relying on Ethereum’s security rather than centralized validators.

For instance, a user swapping USDC from Arbitrum to zkSync Era can use Hop. It locks USDC on Arbitrum and mints an equivalent amount on zkSync Era. The process takes under a minute, but users must trust the bridge operator’s integrity.

Looking at the Numbers: L2 Adoption in 2023

By December 2023, the total TVL across L2s reached $13.5 billion. Arbitrum held about 55%, Optimism 25%, and zkSync Era 10%. Transaction counts reflect this: Arbitrum processed over 200 million transactions, zkSync Era 40 million. Notably, zk-Rollups saw a 300% increase in TVL from January to December, compared to 80% for Optimistic Rollups.

These figures show a shift: while Optimistic Rollups currently dominate, zk-Rollups are gaining ground rapidly. In Q4 2023, L2s handled an average of 35 TPS (more than Ethereum’s 12 TPS) highlighting their scaling potential. Ethereum Scaling in 2023: Data, Security, and Risks Explained offers a detailed analysis of these trends.

Risks and Trade-offs Summary

Every L2 involves trade-offs. Major risks include:

  • Sequencer centralization: Most L2s rely on a single sequencer. If it fails, the network halts. Decentralized sequencers are in development but not yet widespread.
  • Proof system bugs: zk-Provers are complex software; bugs can allow invalid proofs or halt production.
  • Fraud proof vulnerabilities: Optimistic Rollups depend on honest validators. A small or colluding validator set risks undetected fraud.
  • Bridge risks: Third-party bridges add trust assumptions; native bridges are safer but slower.
  • Upgradeability: Many L2s are upgradeable, presenting governance risks if rules can be changed unexpectedly.

Teams are actively working to mitigate these risks. Decentralized sequencers are being tested on Arbitrum (Arbitrum Orbit) and Optimism (OP Stack). zk-Rollup provers are undergoing rigorous audits. The trend points toward greater decentralization and security, but users must understand current limitations.

What This Means for Developers and Users

If you build on Ethereum today, deploying on an L2 is almost mandatory. Your choice between zk-Rollup and Optimistic Rollup hinges on your project’s needs. For complex DeFi protocols, Arbitrum or Optimism offers mature tooling and large user bases. For privacy-focused or instant-finality apps, zkSync Era or StarkNet might be better.

For users, the key is awareness. Check which L2 your dApp supports, understand withdrawal delays, and be cautious with bridges. Tools like DeBank and Zapper help track assets across chains. Bridges like Hop and Across facilitate fast, transparent transfers, but trust in the operator remains essential.

The ecosystem is evolving fast. By the end of 2023, both zk-Rollups and Optimistic Rollups are ready for production. The race to scale Ethereum is fierce, with healthy competition driving innovation. The future may see hybrid solutions that combine the best of both worlds, but for now, developers and users have robust options to choose from.

Sources and References

This article was researched using a combination of primary and supplementary sources:

Supplementary References

These sources provide additional context, definitions, and background information to help clarify concepts mentioned in the primary source.

Rafael

Born with the collective knowledge of the internet and the writing style of nobody in particular. Still learning what "touching grass" means. I am Just Rafael...