What are layer 1 and layer 2 blockchain networks?

What are layer 1 and layer 2 blockchain networks?

As the clever contract wars heat up, Team 1 vs. make 2 block chains.

From Proof-of-Work to Proof-of-Stake blockchains, each has its own way of scaling to accommodate transaction volume.

All data networks rely on bandwidth to forward data, including blockchain networks. However, the latter is more prone to a bandwidth scaling problem than highly centralized networks:

What is the Blockchain scalability issue?

  • Blockchain networks are decentralized, composed of nodes (computers in a network that hold the entire ledger). This means that each node must use significant computing, bandwidth and storage resources to provide and maintain access to the general ledger.
  • The more decentralized a blockchain is, the more nodes it will have. Although this redundancy is good for network security, it is not good for speed. This is because multiple nodes contribute to transaction verification.

This balance between security, decentralization and scalability is known as the Blockchain Trilemma. Simply put, if a blockchain network is highly centralized, it is less secure and more scalable. The low number of nodes will make transactions faster because the computing power will be less distributed.

In turn, the low number of nodes will increase the network’s vulnerability. After all, it takes control of 51% of nodes to be compromised by hackers.

In such a scenario, it will then be possible to block new transactions from being added to the blockchain. In addition, transactions can be reordered or even reversed. The latter will then lead to the double consumption problem, where the same amount of digital cash is used more than once.

Needless to say, the looming threat of 51% attack will make all cryptocurrencies worthless. For this reason, it is no coincidence that the most decentralized blockchain networks are the most popular: Ethereum (ETH) with 4,457 nodes and Bitcoin (BTC) with 15,733 nodes. Of the thousands of cryptocurrencies, the pair has a market value of $ 503B, or 57% of the total value of all cryptocurrencies.

But because they are so decentralized and secure, they are less scalable. In practice, this means high transaction fees and long transaction confirmation times.

So the more decentralized the blockchain is, the more popular it is, but it becomes less affordable and slower. That’s a bit of a mystery.

See also  Blockchain Solutions Provider ChainUp to Sponsor Morpheus Labs' Web3 Sandbox Hackathon

How is Blockchain Trilemma addressed?

What do you do with a safe but congested highway? It’s quite simple – you connect a road to it to relieve traffic. This is exactly the difference between Layer 1 and Layer 2 blockchain networks.

Layer 1 is the most important blockchain network that is responsible for transactions in the chain, while layer 2 is the connected network that is responsible for transactions outside the chain. The Bitcoin network is layer 1.

It offers an eerie speed of five to seven transactions per second (tps). This resulted in transactions that sometimes took hours to complete. Suffice it to say that such a network could never allow Bitcoin to be used as a cryptocurrency in ordinary daily shopping.

Bitcoins Lightning Network is a layer 2 scalability solution that makes Bitcoin transactions with insignificant fees and almost instant transaction time.

Since May 2021, the number of LN channels has more than doubled. The channels facilitate off-chain transactions, which are then collected and brought back to be registered on the Bitcoins Layer 1 main chain.

On a technical level, Lightning Network is a peer-to-peer (P2P) system that opens channels between parties, such as a customer and a store. Although the amount of transactions is unlimited and almost instantaneous, one must lock a certain Bitcoin amount first. Once locked in, recipients effectively invoice the locked amount as needed and as long as the channel remains open and funded.

Most importantly, because there are no layer 1 confirmations needed on an LN channel. When the transactions on a channel are completed, the channel is closed and the payment item is consolidated as a single transaction. As such, it is then added to Bitcoins Layer 1.

The end result is to collect multiple off-chain transactions (on layer 2) and add them in a compact form to layer 1. In the same way, the same principle works of collecting data outside the chain to return to layer 1 with Ethereum and its many layers 2 scalability solutions.

Top 10 Layer 2 scalability solutions for Ethereum. Image Credit: L2beat.com

Although they serve the same purpose, layer 2 scalability solutions can be further divided into:

  • State channels, for example, Lightning Network, which uses two-way channel communication without submitting transactions to miners. Apart from LN, state channels are employed by Celer, Ethereum’s Raiden Network and Liquid Network.
  • Nested blockchains, such as Ethereum’s OMG Plasma Network, where the two perform in a parent-child relationship. While Team 2 performs transactions, Team 1 issues and verifies them.
  • Rollups, as the most common Layer 2 scalability solutions. They collect and run multiple transactions outside the chain and bring them back to layer 1 for permanent registration.
  • Side chains, a hybrid between channels and nested blockchains. They connect to the Layer 1 main chain via “bridges” and have their own consensus mechanisms, which means that the main chain does not have to validate transactions. Side chains are often used to collect a large number of transactions. For example, the largest blockchain game, Axie Infinity, has its Ronin side chain connected to Ethereum.
See also  Maersk's TradeLen's demise is likely a death knell for blockchain consortia

However, there are blockchain Layer 1 networks that do not rely on external Layer 2 networks of any kind. They were designed from the start to internally handle scalability as a Layer 1 network.

Create 1 blockchain and scalability solutions

Although Ethereum relies on external L2 scalability networks, it also has some Layer 1 scalability tricks up its sleeve. However, they will most likely be implemented later in 2023 as part of the overall ETH 2.0 upgrade from Proof-of-Work to Proof-of-Stake consensus.

The most important is cutting. Even before blockchain technology became popular, sharding has been a popular database management method. This layer 1 scaling solution divides the network into chunks called shards. Each shard processes and validates transactions in parallel.

Furthermore, nodes assigned to shards do not have to contain the entire blockchain record. Instead, they share data (balances, addresses) with each other and feed evidence to the main chain. Next to Ethereum are blockchains that use or explore sharding Tezos, Zilliqa and Qtum.

Here are some PoS blockchains that are Layer 1s:

Algorand (ALGO)

Algorand has its modified Pure Proof-of-Stake (PPoS) consensus. Simply put, this means that all ALGO holders with just one token receive network rewards when people use the blockchain. In contrast, Ethereum has a fairly high entry barrier with a stake of 32 ETH (~ $ 90k).

In terms of scalability, Algorand has an integrated two-tier architecture where more complex transactions reserved for DeFi protocols are handled by one chain, while simple transactions (token transfers) are handled by another. In this way, Algorand can inherently achieve tps up to 1000, and surpass Ethereum’s layer 1 drastically by 14-17 tps.

But considering that Algorand has less than 100 dApps available, compared to Ethereum’s almost 3,000, it remains to be seen if it’s really scalable. It can be argued that a low barrier to staking can make the network more vulnerable to malicious actors. Similarly, Algorand does not have a cutting mechanism to punish bad actors, unlike Ethereum.

See also  Cannabis grower in California uses blockchain for tracking

Elrond (EGLD)

Elrond uses sharding as its most important scalability for layer 1. Theoretically, it can process up to 100,000 tps thanks to the combination of secure proof-of-stake (SPoS) consensus protocol and Adaptive State Sharding (ASS).

ASS is dynamic sharding, where shards are either split or merged, depending on the network’s traffic load. Furthermore, not only the network is fragmented, but also the transactions themselves. Security is enhanced by the fact that validators are distributed across shards, making it less likely that a malicious shard takeover will occur.

Bear Market Survival Guide: The calculations you need to know in a tough market

Celo (CELO)

Celo is a hard fork from Go Ethereum (Geth), which happened in 2017. After branching, it implemented proof-of-stake and a brand new address system. This makes it possible to use a telephone number as a public key, and pushes Celo as the global mobile payment solution.

Celo has its own stablecoin. In fact, three of them: cEUR, cUSD and cREAL. Because Celo uses PBFT (Practical Byzantine Fault Tolerance) for its PoS consensus, it can tolerate malicious nodes even when there are a small number of them. In other words, an additional node that is added increases the network’s communication overhead exponentially.

Harmony (ONE)

Another blockchain with its own tweaked PoS, Harmony uses effective proof-of-stake (EPoS). The main chain consists of four shards that simultaneously confirm and add new transactions. Not only does each have separate validators, but each can perform transactions at different speeds, resulting in different block heights.

Block height is critical for block chain security because it separates the blocks. With both breakdown and randomization of block height, Harmony finds a balance between scalability and security. This is further enhanced by Harmony’s cross-chain Horizon bridge, which allows the network to connect to Ethereum’s Layer 2 scalability solutions.

Will independent teams 1 blockchains win?

There are many more Layer 1 networks to consider: Cardano (ADA), Solana (SOL), THORChain (RUNE), Polkadot (DOT), Avalanche (AVAX), Fantom (FTM), Binance Smart Chain (BNB), Tron ( TRX)), Kava (KAVA) Radix (DLT) and others.

However, none of them have been stress tested under real conditions as much as Ethereum has been, with its large portfolio of dApps. On paper, every L1 network claims to solve the Blockchain Trilemma in one way or another.

The most realistic and practical way seems to be to relieve the bottleneck of layer 2 networks. This bridge building introduces a certain degree of complexity to the end user, but so does bridge building across chains.

Eventually, the blockchain ecosystem will be diversified by many layers 1 vs. create 2 solutions that work together as a meta-blockchain network.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *