The Capital
Published in

The Capital

Layer 1 vs Layer 2 : What you need to know about different Blockchain Layer solutions

By Petro Wallace on The Capital

Layer-1 vs Layer-2

Layer-2 Solutions

  • State channels.
  • Nested blockchains.

State Channels

  • A portion of the blockchain is sealed off via multi-signature or some sort of smart contract, which is pre-agreed by the participants.
  • The participants can directly interact with each other without submitting anything to the miners.
  • When the entire transaction set is over, the final state of the channel is added to the blockchain.

Nested Blockchains

  • The main, base blockchain is going lay down the ground rules of this entire system. It will not directly take part in any operations unless it needs to resolve some disputes.
  • There will be multiple levels of blockchains sitting on top of the main chain. These levels will be connected to each other to form a parent-child chain connection. The parent chain delegates work amongst its child chains. The child chains then execute these actions and send the result back to the parent chain.
  • Not only does this solution significantly reduce the load in the root chain, but, if executed properly, it will increase scalability exponentially.

Layer-2 Solution Pros

  • The biggest pro is that it doesn’t mess with the underlying blockchain protocol.
  • Layer-2 solutions like state channels, and particularly lightning network, to conduct multiple microtransactions without wasting time with miner verification and paying unnecessary transaction fees.

Layer-1 Solutions

  • Consensus protocol changes.
  • Sharding.

Consensus protocol changes

Sharding

Layer-1 Solution Pros

The Biggest Problem with both Layer-1 and Layer-2

So, What’s the Solution?

  • The leader and selected verifiers (SV) are chosen from each step of the Byzantine Agreement.
  • The computation cost a single user faces only involves generating and verifying signatures and simple counting operations.
  • The cost is not dependent on the number of selected users for each block. This number is constant and unaffected by the size of the whole network.
  • Increasing computational power directly improves performance, which makes Algorand perfectly scalable. This means that as the network increases in size, it sustains a high transaction rate without incurring extra costs.

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Petro Wallace

Blockchain Developer in the making, who has embarked on a journey to deploy his own dApps! Fan of Enterprise Blockchain, Crowdfunding and Digital Payments