Starcoin：Why we need Layer 2Published at December 2, 2022 By Starcoin.
After all these years of development, the blockchain industry has achieved initial proof in the fields of Cryptocurrency and DeFi, and the prototypes of applications are already present, but how to make blockchain technology adopted by massive users is the most important challenge that the industry needs to solve at present.
We can deconstruct the challenge into two questions:
- How can blockchain support massive users? That is the blockchain scaling problem.
- How can the blockchain support the building of applications? That is the relationship between blockchain and Web3 application.
The most critical goal of blockchain is to achieve decentralization, ensure Permissionless, and make a “bootstrap” infrastructure system to serve everyone without distinction, and we call such a system Layer 1.
The key feature of Layer 1 is “bootstrap”, and its Finality only relies on its own internal consensus system, not on external arbitrators. This design also brings scalability problems.
There are two key ideas to solve the scaling problem:
- Adopt new technologies, try to build a new Layer 1, such as improving consensus, sharding, multi-chain framework, parallel execution, etc., and make different trade-offs in decentralization, security, and scalability.
- Migrate the execution of transactions from Layer 1 to other layers to achieve scaling. The idea of modular blockchain is evolved further to split the blockchain from a monolithic architecture into multiple functional modules, which are provided by different systems.
There is no consensus in the industry as to how the “Layer” of a blockchain should be divided.
But we can give a broad definition here:
Layer 2 is a blockchain scaling technology solution that achieves finality through Layer 1, to ensure security. It can contain its own internal consensus or rely on external systems to implement consensus, and the key is that its execution results can be reversed on Layer 1 through an arbitration mechanism.
And the achievements of the above two directions of exploration can be combined.
If we solve the blockchain scaling problem, we also need applications to attract massive users into the decentralized world, which is the main reason why the industry has shifted from Cryptocurrency story to Web3 story.
The relationship between Web3 and blockchain is still debated, but we believe that if Web3 applications are decentralized, it must require the settlement and arbitration capabilities provided by blockchain.
There are several major directions to explore how decentralized applications (DApps) can be built on the chain.
- The application is directly implemented through smart contracts, running on the generic smart contract Layer 1, so that it can also be migrated to the Layer 2 execution layer.
- The application is implemented through a dedicated application chain, which implements the application logic on the chain and contains a internal consensus mechanisms.
- The application is built on a P2P network, acting as a decentralized protocol with an existing Layer 1 as the consensus layer.
All applications in Option 1 run in the same global smart contract world, with no isolation between applications, easily ensuring composability, but competing for the capacity of the same Layer 1.
Option 2 achieves application isolation, but has higher startup costs and still has Layer 1 scaling problem.
We believe that the Web3 application will be built out as Option 3, and there are two difficulties in combining P2P networks and chains:
- The asynchronous confirmation mechanism of Layer 1 makes it difficult to provide settlement capability to P2P networks directly.
- Multi-layer ecosystem, applications built directly on Layer 2 can cause fragmentation of the application ecosystem.
Based on the above discussion, we found that the market requires such a protocol:
- It is a layered modular scaling solution.
- It bridges the differences between multiple layers through a layer of abstraction to provide a unified execution environment and settlement protocol for Web3 applications.
And this is the goal of Starcoin L2.