DEV Community

Eric See
Eric See

Posted on

Blockchain Layers

There are 4 layers in blockchains:

https://medium.com/@nick.5montana/blockchain-layers-l0-l1-l2-l3-in-a-diagram-569162398db

Image description

Layer 0:
The ground floor. This is where the internet, hardware, and connections exist that allow layer 1s like Bitcoin to run smoothly. Layer 0s are allowing several things to happen:

1) Allow blockchains to interact with each other

A great example is Cosmos, which creates an ecosystem of interoperable blockchains thanks to its ‘Tendermint IBC’ (Inter-blockchain communication protocol).
For developers, this is massive. If a Dapp can function on one blockchain, it can function automatically on other blockchains so long as they’re built using the same layer 0. No need to invest more time and resources to build the same app on another chain.

2) Faster and cheaper transactions

With IBC, PoS consensus can be achieved across multiple chains resulting in finality times happening almost instantaneously (finality = when a block is approved, can’t be rolled back, and is considered irreversible). The result is faster and cheaper transactions on cross-chain exchanges.

3) Infrastructure for developers

Developers don’t need to start from scratch and build their blockchains from the ground up. Many features are pre-built and ready to be implemented immediately.

Layer 1:
Layer 1s are blockchains (Bitcoin and Ethereum) that process and finalize transactions on their own blockchain. This is where things like consensus (PoW, PoS) and all the technical details like block time and dispute resolution take place.

The most important three aspects of blockchains are conquering the blockchain trilemma: decentralization, security, and scalability. Still no single blockchain has nailed all three.

Layer 2:
Layer 2s are third-party integrations used in conjunction with layer ones to increase scalability and transactions per second (system throughput).

When you hear zero-knowledge rollups (zk rollups), side chains, or anything to do with speeding up transaction throughput, it’s likely layer 2.

Layer 3:
Layer 3 is the application layer. This is the UI that we as consumers actually interact with.

Top comments (0)