🎉 #Gate Alpha 3rd Points Carnival & ES Launchpool# Joint Promotion Task is Now Live!
Total Prize Pool: 1,250 $ES
This campaign aims to promote the Eclipse ($ES) Launchpool and Alpha Phase 11: $ES Special Event.
📄 For details, please refer to:
Launchpool Announcement: https://www.gate.com/zh/announcements/article/46134
Alpha Phase 11 Announcement: https://www.gate.com/zh/announcements/article/46137
🧩 [Task Details]
Create content around the Launchpool and Alpha Phase 11 campaign and include a screenshot of your participation.
📸 [How to Participate]
1️⃣ Post with the hashtag #Gate Alpha 3rd
Comprehensive Analysis of Off-chain Scalability: Detailed Comparison of State Channels, Sidechains, and Plasma Technologies
off-chain Scalability Depth Analysis
1. The Necessity of Scaling
The future vision of blockchain is decentralization, security, and scalability, but usually only two of these can be achieved, which is the impossible triangle problem of blockchain. For years, people have been exploring how to improve the throughput and transaction speed of blockchain while ensuring decentralization and security, that is, solving the scalability problem.
Let's first define the decentralization, security, and scalability of blockchain:
The first significant 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 problems. Since 2015, there have been disagreements within the Bitcoin community regarding scalability, ultimately leading to the first significant hard fork in Bitcoin's history on August 1, 2017, which resulted in the creation of a new cryptocurrency, BCH.
Similarly, the Ethereum network also chose to sacrifice some scalability to ensure the security and decentralization of the network. Although Ethereum does not impose a block size limit like Bitcoin, it indirectly sets a cap on the gas fees that can be accommodated in a single block, all aimed at achieving Trustless Consensus and ensuring the widespread distribution of nodes.
From the rise of CryptoKitties in 2017, the DeFi summer, to the later emergence of on-chain applications like GameFi and NFTs, the market's demand for throughput has been continuously increasing. However, Ethereum can only process 15-45 transactions per second. This has led to increased transaction costs and longer settlement times, making it difficult for most DApps to bear operating costs. The entire network has become slow and expensive for users, and the blockchain scalability issue urgently needs to be addressed. The ideal scalability solution is to increase the network's transaction speed and throughput as much as possible without sacrificing decentralization and security.
2. Types of Scalability Solutions
We categorize the scalability solutions into two main types: on-chain scalability and off-chain scalability, based on the criterion of "whether to change a layer of the mainnet."
2.1 on-chain expansion
Core concept: a solution that achieves scalability by altering 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 but will briefly list two:
Plan One is to expand the block space, that is, to increase the number of transactions packed in each block, but this will raise the requirements for high-performance node devices and reduce the degree of "decentralization".
Plan two is sharding, which divides the blockchain ledger into several parts, with different nodes responsible for different accounting. This can reduce the computational pressure on nodes and the threshold for joining, improving transaction processing speed and the degree of decentralization; however, it means that the overall network's computing power is dispersed, which may reduce the "security" of the entire network.
Changing a layer of the mainnet protocol can have unpredictable negative impacts, as any subtle security vulnerability in the underlying layer can severely threaten the security of the entire network.
2.2 off-chain scalability
Core concept: an expansion solution that does not change the existing layer one mainnet protocol.
Off-chain scaling solutions can be further divided into Layer 2 and other solutions:
3. Off-chain scaling solutions
3.1 State Channels
3.1.1 Overview
State channels stipulate that users only need to interact with the mainnet when opening, closing, or resolving disputes in the channel, allowing interactions between users to occur off-chain, thereby reducing the time and monetary costs of transactions and enabling an unlimited number of transactions.
State channels are simple P2P protocols suitable for "turn-based applications," such as a two-player chess game. Each channel is managed by a multi-signature smart contract running on the mainnet, which controls the assets deposited into the channel, verifies state updates, and arbitrates disputes between participants. After the network deploys the contract, participants deposit funds and lock them, and after both parties sign their confirmation, the channel is officially opened. The channel allows for unlimited off-chain free transactions between participants as long as the net transfer value does not exceed the total amount of tokens deposited. Participants take turns sending state updates to each other, waiting for the other party to sign and confirm. Normally, agreed-upon state updates are not uploaded to the mainnet; only in the case of disputes or when closing the channel will confirmation from the mainnet be relied upon. When closing the channel, either participant can submit a transaction request on the mainnet, which will be executed immediately if all signatures are approved; otherwise, they must wait for the "challenge period" to end before receiving the remaining funds.
In summary, the state channel solution can greatly reduce the computation load on the mainnet, enhance transaction speed, and lower transaction costs.
(# 3.1.2 Timeline
)# 3.1.3 Technical Principles
The workflow of state channels:
Alice and Bob deposit funds from their personal EOA into an on-chain contract address, where these funds are locked in the contract. After both parties sign to confirm, the state channel is officially opened.
Alice and Bob can conduct unlimited off-chain transactions and communicate with each other through encrypted signed messages. Both parties need to sign each transaction to prevent double spending malice. Through these messages, they propose updates to their account statuses and accept the updates proposed by the other party.
If Alice wants to close the channel and end the transaction, she needs to submit the final state of her account to the contract. If Bob signs to approve, the contract will return the locked funds to the corresponding user based on the final state. If Bob does not respond with a signature, the contract will return the funds to the corresponding user after the challenge period ends.
![Ten Thousand Words Depth Report: Comprehensive Analysis of off-chain Scaling]###https://img-cdn.gateio.im/webp-social/moments-ead28de03be9fc22dcfe3f679ee36bc5.webp###
(# 3.1.4 Advantages and Disadvantages
Advantages:
Disadvantages:
)# 3.1.5 Application
Bitcoin Lightning Network:
Ethereum Lightning Network:
Celer Network:
3.2 Sidechains
3.2.1 Summary
The concept of sidechains was first proposed in 2012 as a form of blockchain that emerged to accelerate Bitcoin transactions. Sidechains can utilize more complex contracts or improve consensus mechanisms ### such as PoS ###, or adjust block parameters to make sidechains serve specific functions. The transaction results of sidechains ultimately get recorded on the validator's end when sent back to the main chain. This blockchain model is not a new form of blockchain but rather infrastructure attached to the main chain that assists in solving issues for the main chain.
(# 3.2.2 Timeline
)# 3.2.3 Technical Principles
The technical principles of sidechains include two main cross-chain technologies:
Symmetric Pegged:
Asymmetric Pegged:
Sidechain Mechanism Summary:
The security of sidechain assets depends on the consensus mechanism of the sidechain. If someone creates assets out of thin air on the sidechain, there may be a risk of funds being stolen.
(# 3.2.4 Advantages and Disadvantages
Advantages:
Disadvantages:
)# 3.2.5 Application
xDai### now Gnosis Chain###:
Polygon:
Ronin: