What are Layer 2 solutions?

Technology for scaling blockchains ⚙️ 


Layer 2 scaling solutions refer to blockchain-based projects dedicated to increasing the efficiency and usability of Layer 1 blockchains. 

These protocols typically aim to reduce transaction fees and increase the amount of transactions per second that Layer 1 blockchains can process.

Although many Layer 1 blockchains continue to deliver updates that improve the functionality of their networks, Layer 2 solutions continue to play an important role in increasing the efficiency of using blockchain technology.

layer 2 scaling image

Layer 2 solutions explained 👩🏽‍🏫


It may be easiest to understand Layer 2 scaling solutions by looking at one aspect of our day-to-day lives. 

Every day, billions of people travel from their home to their work. Some make this journey in their own private vehicle, while others commute on public transportation.

Different scaling solutions address the throughput limitations of blockchain networks in ways that may seem similar to your daily commute too.

Some scaling solutions are similar to opening another road next to a highway

Rather than making all transactions only follow a single path, these scaling solutions offer side roads that increase the transaction processing capabilities.

Other scaling solutions are more similar to a public bus

Rather than having each person sit in their own car and take up space on the road, people join together and sit next to each other in a single vehicle. The same principle applies to some types of Layer 2 solutions, which batch and process multiple transactions together, instead of processing them individually on the blockchain network.

Layer 1 blockchain shortcomings 👎 


Layer 1 blockchains like Bitcoin (BTC)Ethereum (ETH) and Solana (SOL) allow developers to build various products, features, applications and infrastructure on top of them. 

A key advantage of this functionality is the ability to launch new cryptocurrency projects quickly and more cost-effectively than building an entirely new blockchain from scratch. 

These newly-built projects also benefit from the underlying security of the Layer 1 blockchain.

The main drawback of hosting multiple different projects on one blockchain, however, is network congestion that can occur. 

As blockchains grow, they can attract thousands of users who may be looking to use the protocol at the same time.

These users end up competing against each other in order to have their transactions committed to the Layer 1 blockchain first.

As more people use the blockchain network, the throughput capacity of the blockchain may not be able to keep up. This can result in the blockchain becoming increasingly slower and more expensive to use, thereby undermining the practicality.

Because of this scaling limitation, a variety of Layer 2 solutions have emerged. 

Each offers a unique method for addressing the throughput and cost challenges while also increasing the efficiency of using blockchain technology.

Why are Layer 2 solutions needed? 🤷‍♂️


Within the blockchain space, there is a tradeoff that exists.

Those building blockchain networks are often face a trilemma, with a choice between:

  • Security
  • Scalability
  • Decentralization

Many leading blockchain networks are said to have favored security and decentralization over scalability.

The rationale behind this decision is that blockchains must be secure and reliably store information in a highly tamper resistant way. 

Blockchain developers also feel their networks should also be decentralized, otherwise they would not be much different than the traditional centralized solutions they aim to replace.

This means that as blockchain developers ensure their networks are secure and decentralized, they often face challenges in scaling their technology in a way that can accommodate the vast amount of transactions per second processed by more centralized or less tamper resistant options.

Additionally, optimizing Layer 1 blockchains often takes a lot of time, coordination and resources. Updates can require rounds of revision and full network support before they're activated.

For example, only two major upgrades have occurred on Bitcoin's blockchain since its inception — SegWit and Taproot

Meanwhile, the Ethereum Merge, which saw Ethereum transition from a proof-of-work to a proof-of-stake based consensus mechanism took more than two years to fully ship.

To address the challenges of making changes to the Layer 1 blockchain network, Layer 2 solutions have emerged. 

Layer 2s are built independently from the Layer 1 blockchain’s community of developers and network participants. 

This separation ultimately allows for greater autonomy and flexibility as they develop innovative ways to improve the efficiency of Layer 1 chains.

Popular Layer 1 platforms 🥇


ethEthereum Price

$2 440.95
24H
Change
-1,57 %
High
2 481
Low
2 368

solSolana Price

$163.24
24H
Change
-0,85 %
High
165
Low
155

How do Layer 2 solutions work? 👷


Secondary scaling services leverage various off-chain technologies to improve Layer 1 blockchains in a bid to improve their usability. 

Though several different Layer 2 solutions have emerged, not all of them work in the same way. So let’s take a close look at some of the leading Layer 2s in the blockchain ecosystem today.

Some of the most popular types of Layer 2 systems include:

  • Rollups
  • Sidechains
  • Off-chain payment channels

Rollups

Rollups represent a type of Layer 2 technology that involves processing blockchain data off-chain (away from the Layer 1 blockchain) before submitting some type of cryptographic proof on-chain (on the Layer 1 blockchain).

There are two leading types of rollup technologies used to improve the scalability of Layer 1 blockchains: 

  1. Zero-knowledge (ZK) rollups
  2. Optimistic rollups 

Both of these solutions are predominantly used to improve the Ethereum blockchain's transaction throughput, but can integrate with other Layer 1 chains too. 

Using the transportation analogy, both types of rollups can be thought of as similar to the public bus - where multiple transactions are grouped together like passengers on a bus, rather than each one taking up space and creating congestion.

Zero-knowledge rollups

Zero-knowledge rollups get their name because of how they allow a person to prove the validity of a computation without disclosing any details related to the data.

This  enables the privacy and security of user data, while still allowing for efficient and trustless processing of transactions. In addition to privacy and scalability benefits, ZK rollups also have the potential to significantly reduce transaction fees on the Ethereum network.

These types of rollups involve operators processing batches of transactions off-chain and creating a cryptographic validity proof to show beyond doubt that the transactions are valid.

A smart contract deployed on the Layer 1 blockchain manages the ZK rollup verification process and authenticates each ZK validity proof. Operators then submit the single, compressed zero-knowledge proofs on-chain.

Because of this, the network only needs to store a single proof that represents all transactions within that bundle, rather than processing every single transaction independently on-chain.

Examples of ZK rollup solutions include zkSync, Polygon zkEVM protocol and Loopring.

Optimistic rollups

Optimistic rollups operate in a slightly different manner than ZK rollups. 

Instead of providing cryptographic proofs for every batch of transactions, all transactions within an optimistic rollup batch are considered valid unless proven otherwise. 

In his way, the solution is said to be “optimistic” about the truthfulness of submitted transactions - assuming they are valid until “proven” otherwise.

Here, trusted third parties called sequencers process batches of transactions and submit the transactions on-chain. A network of validators then reviews these transactions. 

In some instances, they may decide to submit fraud proofs on-chain if transactions are believed to be invalid. If proven right (ie. if the submitted transactions are proven to be fraudulent), the network reverses the invalid transactions and penalizes the sequencer.

Examples of optimistic rollup solutions include Optimism, Arbitrum and Boba Network.

Sidechains

Sidechains are separate blockchains that run in parallel to the main blockchain, allowing for interoperability between different blockchains. This means that assets and data can be transferred between different blockchains, opening up greater possibilities for developers and businesses.

With the current limitations of block size and transaction speed, sidechains offer a way to alleviate these issues by offloading some of the transaction volume to a separate chain. This can greatly improve the overall performance and efficiency of the blockchain network. 

Returning to the transportation analogy again, sidechains can be thought of as adding a road next to an already busy or congested highway. Rather than waiting in traffic on the crowded road, the sidechain allows transactions to reach their “destination” more efficiently, without having to wait behind other transactions.

Sidechains can also make it more practical for real-world applications such as payment processing and supply chain management to use blockchain technology.

A leading example of a Bitcoin sidechain project is the Liquid Network by Blockstream.

Off-chain payment channels

The Lightning Network stands as an important layer-two scaling solution, devised to address Bitcoin's scalability issues. 

It primarily enables faster and cheaper transactions by creating off-chain transaction channels.

Operating on a network of bidirectional payment channels, the Lightning Network allows users to conduct transactions without recording every detail on the main blockchain. 

Through smart contracts, participants can securely exchange funds multiple times before settling the final balance on the blockchain. 

Lightning Network's efficiency and potential to alleviate Bitcoin's scalability limitations have caused many to see it as a promising solution for microtransactions and cheaper Bitcoin transaction costs.

While Layer 2 solutions offer promising improvements to blockchain scalability and performance, it's important to consider these potential disadvantages and address them through careful planning and implementation. 

By addressing these issues, the blockchain ecosystem can benefit from the advantages of Layer 2 solutions without being hampered by their shortcomings and risks.

Popular Layer 2 platforms 🏆


arbArbitrum Price

$0.48
24H
Change
-1,06 %
High
0,49
Low
0,46

opOptimism Price

$1.40
24H
Change
+0,19 %
High
1
Low
1

maticPolygon Price

$0.30
24H
Change
-0,04 %
High
0,30
Low
0,29

Challenges of Layer 2 solutions ❌


Layer 2 solutions, which are designed to enhance the scalability and performance of blockchain networks, certainly have their advantages. 

However, it's also important to consider the potential limitations and risks of these solutions.

Complexity

One of the main disadvantages of Layer 2 solutions is the added complexity they bring to the blockchain ecosystem. 

By introducing additional layers on top of the underlying blockchain protocol, Layer 2 solutions can make the system more intricate and harder to understand for developers and users. 

This increased complexity can make it more difficult to troubleshoot and fix issues that may arise, leading to potential disruptions in the network.

Security risks

Another drawback of Layer 2 solutions is the potential security risks they pose. 

While these solutions are intended to improve the scalability and efficiency of blockchain networks, they can also introduce additional attack vectors that malicious actors could potentially exploit.

Centralization issues

Lastly, Layer 2 solutions may also face resistance from the wider blockchain community due to concerns about centralization and trust. 

Some argue that Layer 2 solutions, particularly those that rely on off-chain mechanisms for scalability, may compromise the decentralized nature of blockchain networks. This could hinder adoption and acceptance of Layer 2 solutions within the broader blockchain community.

Get started today


If you're interested in exploring the universe of Layer 2 cryptocurrencies, Kraken is committed to providing access to a wide range of digital assets for both novice and experienced investors.

Sign up for your free account today!