BPOI Banner
What Are Layer-2 Networks and Sidechains? Ethereum Scaling Explained What Are Layer-2 Networks and Sidechains? Ethereum Scaling Explained

What Are Layer-2 Networks and Sidechains? Ethereum Scaling Explained

Blockchain infrastructure has evolved to encompass an ecosystem of layer-1 and layer-2 networks.

In this article we’ll explore the difference between the two, and how layer-2 networks and other scaling methods like sidechains attempt to address the scalability challenges of layer-1 blockchains.

What are layer-2 networks?

Simply put, layer-2 networks are blockchain networks that live atop a layer-1 network such as Ethereum, with the layer-1 network providing the base layer of infrastructure and security for networks building on it, validating transactions and achieving consensus.

The layer-2 networks use a variety of technologies to address scalability bottlenecks on the layer-1 blockchain, which are caused by throughput and transaction costs.

Ethereum, for example, currently handles around 14 transactions per second (TPS), per blockchain explorer Etherscan. Visa, by comparison, processes around 65,000 transactions per second.

Scalability issues are most pronounced during periods of high network activity, when blockchain networks face increased transaction fees (also known as gas fees), along with network congestion and reduced transaction times.

In 2017, Ethereum creator Vitalik Buterin identified the “scalability trilemma” for blockchains, arguing that they face the challenge of processing thousands of transactions per second while remaining secure and adhering to the ethos of being decentralized, that is, run without the need for centralized control.

The “scalability trilemma.”

The theory, imported from computer science, is that a network can only ever focus on two of these principles by making concessions at the expense of the third.

Ethereum’s solution to the problem of scalability is to focus on making its own layer-1 blockchain network as secure and decentralized as possible, while outsourcing scaling to layer-2 networks built atop its infrastructure.

How do scaling networks work?

Scaling networks deploy a variety of different solutions to help address the scalability challenges of the layer-1 network.

These networks include bundling transactions or processing transactions off-chain, using sidechains or layer-2 rollups.

Sidechains

Sidechains are blockchains that run independently of the layer-1 chain, with their own consensus mechanism and token.

They connect to the layer-1 blockchain by means of a bridge, which uses a smart contract to “lock” assets from the layer-1 chain and mint a mirror image of those tokens on the sidechain, with the value of those tokens pegged to the locked asset.

These mirrored tokens are then used to perform transactions, after which they can be destroyed, releasing the locked tokens on the layer-1 chain.

Rollups

Rollups take a different approach, by rolling up (hence the name) multiple transactions, presenting them to the layer-1 blockchain as a single transaction that can be processed much more quickly than the individual transactions.

There are two main types of rollups: optimistic rollups and zero-knowledge (zk) rollups.

Optimistic rollups assume that all of the rolled-up data is valid, allowing people to contest transactions after the fact to determine whether they’re legitimate or not. The contested transaction is submitted directly to the layer-1 network to settle the dispute, with both parties standing to lose staked tokens should they be proved wrong.

Zero-knowledge rollups employ zero-knowledge proofs, a cryptographic technique that can be used to prove that something is known without revealing the known information directly. Transactions are rolled up into batches that are executed off-chain, with the completed batch submitted to the layer-1 chain using a zk-proof that demonstrates the proposed state changes are correct.

Ethereum scalers you need to know

There are a number of different layer-2 and sidechain networks building atop or alongside Ethereum, each with their own preferred technological solution to scale the layer-1. Per CoinGecko data, the following are the largest Ethereum chains by total value locked (TVL), as of November 2024.

Base

Incubated by crypto exchange Coinbase, Base is built atop Ethereum scaling solution Optimism. It quickly established itself as a leading player in the layer-2 space following its launch in August 2023, surging to over one million addresses in just 11 days. According to Coinbase CEO Brian Armstrong, the exchange has no plans to launch a token for Base, and is attempting to make Base “something that’s much broader” than a Coinbase-led project.

Arbitrum

Created by Offchain Labs, Arbitrum leverages optimistic rollups to scale Ethereum, with a claimed 40,000 tps versus Ethereum’s more stately 14 tps. In March 2023, Arbitrum launched its native ARB token for governance, handing control of the project over to a decentralized autonomous organization (DAO) made up of community members.

Polygon

Formerly known as Matic Network, Polygon takes a multi-pronged approach to scaling, deploying multiple solutions including its main POS Chain (sidechain), Plasma chains, zk-rollups and optimistic rollups. It aspires to be more than just a scaling solution, billing itself as a platform for launching interoperable blockchains. In September 2024, it completed its migration from its original native token MATIC to a new token, POL.

Optimism

Launched on mainnet in January 2021, Optimism—as its name suggests—uses optimistic rollups, which assume that all transactions in the rollup are valid. Optimism further compresses the data in its rollups using a sequencer, before submitting transaction data to the main Ethereum chain. Validators for each rollup are given a week to query the rollup if they believe that it contains fraudulent data.

Scroll

A relatively new entrant to the layer-2 space, Scroll launched on mainnet in October 2023. The platform uses zkEVM technology to batch proofs, leveraging “bytecode-level compatibility” with Ethereum Virtual Machine support to ensure that EVM applications and tools are compatible “out-of-the-box.” Scroll launched its SCR token in an October 2024 airdrop.

Blast

Launched by a team led by Tieshun “Pacman” Roquerre—founder of NFT marketplace Blur—in February 2024, Blast differentiates itself from other layer-2 networks with features including native yield for ETH and stablecoins. The layer-2 conducted an airdrop of its native token BLAST in June 2024

The future of layer-2 networks

Layer-2 networks form a key part of Ethereum’s “rollup-centric roadmap,” according to Ethereum co-founder Vitalik Buterin, who hopes to use layer-2 solutions to increase the blockchain’s capacity to handle over 100,000 transactions per second.

Buterin has outlined plans to converge Ethereum’s two scaling strategies, sharding and layer-2 protocols, in what he described as “The Surge.” This roadmap would see layer-2 blockchains implement cryptographic solutions such as SNARKs (Succinct Non-interactive Argument of Knowledge) to ensure the integrity of transactions. Buterin also seeks to ensure that layer-2 networks inherit Ethereum’s core principles of trustlessness, openness, and censorship resistance.

Layer-2 networks aren’t just confined to Ethereum. In June 2024, coders at BitcoinOS claimed to have verified a zk-proof on the Bitcoin mainnet for the first time, opening up the possibility of using rollups to scale Bitcoin. Solana is also seeing increasing layer-2 activity, such as via the gaming-centric Sonic SVM network.

Meanwhile, new layer-2 networks continue to spring up on Ethereum. In October 2024, decentralized exchange Uniswap announced plans to develop its own layer-2 network, Unichain, using Optimism technology, plus centralized exchange Kraken will launch its own Optimism-based layer-2 called Ink.

Edited by Andrew Hayward

Daily Debrief Newsletter

Start every day with the top news stories right now, plus original features, a podcast, videos and more.

Source link

Stephen Graves

https://decrypt.co/resources/what-are-layer-2-networks-and-sidechains-ethereum-scaling-explained

2024-11-03 19:29:17

bitcoin
Bitcoin (BTC) $ 95,935.70 1.68%
ethereum
Ethereum (ETH) $ 3,326.95 1.55%
tether
Tether (USDT) $ 1.00 0.18%
xrp
XRP (XRP) $ 2.25 0.31%
bnb
BNB (BNB) $ 658.30 1.06%
solana
Solana (SOL) $ 182.56 0.99%
dogecoin
Dogecoin (DOGE) $ 0.319433 1.65%
usd-coin
USDC (USDC) $ 1.00 0.17%
staked-ether
Lido Staked Ether (STETH) $ 3,321.88 1.65%
cardano
Cardano (ADA) $ 0.895438 2.01%
tron
TRON (TRX) $ 0.247515 0.76%
avalanche-2
Avalanche (AVAX) $ 37.41 2.19%
chainlink
Chainlink (LINK) $ 22.27 1.86%
wrapped-steth
Wrapped stETH (WSTETH) $ 3,956.21 1.12%
the-open-network
Toncoin (TON) $ 5.43 1.86%
shiba-inu
Shiba Inu (SHIB) $ 0.000022 1.32%
wrapped-bitcoin
Wrapped Bitcoin (WBTC) $ 95,489.58 1.79%
sui
Sui (SUI) $ 4.38 4.18%
stellar
Stellar (XLM) $ 0.361274 0.46%
polkadot
Polkadot (DOT) $ 6.98 0.97%
hedera-hashgraph
Hedera (HBAR) $ 0.268088 4.77%
hyperliquid
Hyperliquid (HYPE) $ 30.39 4.35%
weth
WETH (WETH) $ 3,327.24 1.51%
bitcoin-cash
Bitcoin Cash (BCH) $ 451.57 1.31%
leo-token
LEO Token (LEO) $ 9.32 0.76%
uniswap
Uniswap (UNI) $ 14.20 5.73%
litecoin
Litecoin (LTC) $ 101.47 0.40%
pepe
Pepe (PEPE) $ 0.000018 1.84%
wrapped-eeth
Wrapped eETH (WEETH) $ 3,512.63 1.53%
near
NEAR Protocol (NEAR) $ 5.07 0.25%
ethena-usde
Ethena USDe (USDE) $ 1.00 0.07%
bitget-token
Bitget Token (BGB) $ 4.14 2.99%
aptos
Aptos (APT) $ 9.41 3.57%
usds
USDS (USDS) $ 0.99961 0.03%
internet-computer
Internet Computer (ICP) $ 10.09 1.84%
aave
Aave (AAVE) $ 309.07 0.98%
crypto-com-chain
Cronos (CRO) $ 0.157875 1.91%
polygon-ecosystem-token
POL (ex-MATIC) (POL) $ 0.481261 0.54%
mantle
Mantle (MNT) $ 1.18 0.67%
ethereum-classic
Ethereum Classic (ETC) $ 26.27 0.13%
vechain
VeChain (VET) $ 0.046317 0.57%
render-token
Render (RENDER) $ 7.10 1.44%
monero
Monero (XMR) $ 192.50 1.32%
whitebit
WhiteBIT Coin (WBT) $ 24.53 0.12%
mantra-dao
MANTRA (OM) $ 3.70 2.09%
dai
Dai (DAI) $ 1.00 0.29%
bittensor
Bittensor (TAO) $ 461.53 0.29%
fetch-ai
Artificial Superintelligence Alliance (FET) $ 1.27 0.41%
arbitrum
Arbitrum (ARB) $ 0.754465 0.14%
ethena
Ethena (ENA) $ 1.05 2.26%