🎉 Gate Square Growth Points Summer Lucky Draw Round 1️⃣ 2️⃣ Is Live!
🎁 Prize pool over $10,000! Win Huawei Mate Tri-fold Phone, F1 Red Bull Racing Car Model, exclusive Gate merch, popular tokens & more!
Try your luck now 👉 https://www.gate.com/activities/pointprize?now_period=12
How to earn Growth Points fast?
1️⃣ Go to [Square], tap the icon next to your avatar to enter [Community Center]
2️⃣ Complete daily tasks like posting, commenting, liking, and chatting to earn points
100% chance to win — prizes guaranteed! Come and draw now!
Event ends: August 9, 16:00 UTC
More details: https://www
Comprehensive Analysis of Off-chain Scaling Solutions: The Technological Evolution from State Channels to Rollups
Off-chain Scaling Depth Analysis
1. The Necessity of Scalability
The future vision of blockchain is to achieve decentralization, security, and scalability, but usually only two of these can be realized. This is known as the impossible triangle problem of blockchain. For many years, people have been exploring how to improve the throughput and transaction speed of blockchain while ensuring decentralization and security, which is to solve the scalability problem.
Let's first roughly define the decentralization, security, and scalability of blockchain:
The first major hard fork of the Bitcoin network originated from the scalability issue. As the number of users and transaction volume increased, the 1MB block size limit of the Bitcoin network began to face congestion. Starting in 2015, there were disagreements within the Bitcoin community regarding the scalability issue, with one side supporting larger blocks and the other side advocating for the use of the Segregated Witness solution to optimize the main chain structure. On August 1, 2017, the side that supported large blocks independently developed an 8MB client system, leading to the first major hard fork of Bitcoin and the birth of BCH.
The Ethereum network also chooses to sacrifice some scalability to ensure network security and decentralization. Although Ethereum does not impose a block size limit like Bitcoin, it effectively sets a cap on the gas fees for individual blocks, aiming to achieve trustless consensus and ensure widespread distribution of nodes.
From the CryptoKitties of 2017 to the DeFi summer, and then the rise of GameFi and NFTs, the market's demand for throughput has been steadily increasing. However, Ethereum can still only process 15-45 transactions per second, leading to rising transaction costs, longer settlement times, and most DApps struggling to bear operational costs. The ideal scaling solution is to maximize the transaction speed and throughput of the blockchain network without sacrificing decentralization and security.
2. Types of Expansion Plans
We can categorize the scaling solutions into two main types: on-chain scaling and off-chain scaling based on "whether to change a layer of the mainnet".
2.1 on-chain scalability
Core concept: A solution to achieve scalability by changing a layer of the mainnet protocol, with the current main solution being sharding.
There are various solutions for on-chain scalability, this article will not elaborate, briefly listing two:
Changing a layer of the mainnet protocol may produce unpredictable negative effects, and any slight security vulnerability in the underlying layer can seriously threaten the entire network's security.
2.2 off-chain expansion
Core concept: a scaling solution that does not change the existing Layer 1 mainnet protocol.
Off-chain scalability solutions can be further divided into Layer 2 and other solutions:
3. Off-chain scaling solutions
3.1 State Channels
3.1.1 Summary
State channels stipulate that users only need to interact with the mainnet when the channel is opened, closed, or disputes are resolved, allowing interactions between users to be conducted off-chain, in order to reduce transaction time and costs, and achieve unlimited transaction frequency.
State channels are simple P2P protocols suitable for turn-based applications, such as two-player chess games. Each channel is managed by a multi-signature smart contract running on the mainnet, which controls the assets deposited in the channel, verifies state updates, and arbitrates disputes between participants.
3.1.2 Timeline
3.1.3 Technical Principles
The general workflow of a state channel:
Participants open a channel by depositing funds into the mainnet smart contract.
Participants can conduct an unlimited number of transactions off-chain and communicate with each other to update the status through signed messages.
When closing the channel, participants submit the final state to the mainnet contract. If all signatures are obtained, execute immediately; otherwise, wait for the challenge period to end.
In case of disputes, you can submit a fraud proof to the mainnet contract for challenge.
3.1.4 Advantages and Disadvantages
Advantages:
Disadvantages:
3.1.5 Application
Main applications: Bitcoin Lightning Network, Ethereum Lightning Network, Celer Network.
Bitcoin Lightning Network:
Ethereum Lightning Network:
Celer Network:
3.1.6 Application Comparison
The Lightning Network is currently the most successful state channel application with a relatively complete ecosystem. The development of the Thunder Network is relatively slow. Celer Network expands more application scenarios by adding an incentive layer.
3.2 Sidechains
3.2.1 Overview
The concept of sidechains was proposed in 2012 and the first related articles were published in 2014. Sidechains are a form of blockchain that emerged to accelerate Bitcoin transactions, allowing for more complex contracts or improved consensus mechanisms. When the transaction results of sidechains are ultimately sent back to the main chain, they are recorded on the validator's end.
3.2.2 Timeline
3.2.3 Technical Principles
The main technical principles of sidechains include:
Bi-directional anchoring: Main chain and side chain validators record each other's current state in real time.
Incoherent anchoring: Sidechain validators must monitor main chain activity, but the main chain cannot confirm the sidechain status, requiring the introduction of the Certifiers mechanism.
Asset Cross-Chain:
The security of assets on the sidechain depends on the security of the sidechain itself, primarily its consensus mechanism.
3.2.4 Advantages and Disadvantages
Advantages:
Disadvantages:
3.2.5 Application
Main applications: Gnosis Chain ( original xDai ), Polygon, Ronin
Gnosis Chain:
Polygon:
Ronin:
3.2.6 Application Comparison
Gnosis Chain focuses on stablecoin payments, Polygon is developing rapidly and comprehensively, and Ronin is designed specifically for gaming but its security is questionable. Polygon is leading in ecosystem development, technological innovation, and financial strength.
3.3 Plasma
3.3.1 Overview
Plasma is a framework for building scalable DApps. It emerges as an evolutionary solution for sidechains, aiming to minimize user trust in sidechain Operators. The fundamental principle of Plasma is that even if there is a security failure in the Plasma chain, user assets can still be withdrawn to the mainnet.
3.3.2 Timeline
3.3.3 Technical Principles
The core idea of Plasma:
User Flow: