🌟 Photo Sharing Tips: How to Stand Out and Win?
1.Highlight Gate Elements: Include Gate logo, app screens, merchandise or event collab products.
2.Keep it Clear: Use bright, focused photos with simple backgrounds. Show Gate moments in daily life, travel, sports, etc.
3.Add Creative Flair: Creative shots, vlogs, hand-drawn art, or DIY works will stand out! Try a special [You and Gate] pose.
4.Share Your Story: Sincere captions about your memories, growth, or wishes with Gate add an extra touch and impress the judges.
5.Share on Multiple Platforms: Posting on Twitter (X) boosts your exposure an
Comprehensive Analysis of Off-Chain Scalability: Technical Evolution and Application Comparison from State Channels to Sidechains
Comprehensive Depth Research Report: In-depth Analysis of off-chain Scalability
Authors: Ellaine Xu, Hettie Jiang, June Wang, Walon Lin, Yiliu Lin
1. The Necessity of Scaling
The future of blockchain is a grand vision: decentralization, security, and scalability; but usually blockchain can only achieve two of these, and meeting all three requirements is known as the impossible triangle problem of blockchain. For many years, people have been exploring how to solve this dilemma, how to improve the throughput and transaction speed of blockchain while ensuring decentralization and security, that is, solving the scalability issue, which is one of the hot topics discussed in the current blockchain development process.
Let's first broadly define the decentralization, security, and scalability of blockchain:
The first major hard fork of the Bitcoin network was due to scaling issues. As the number of Bitcoin users and transaction volumes increased, the Bitcoin network, with a block size limit of 1MB, began to face congestion problems; starting in 2015, there were differences in the Bitcoin community regarding the scaling issue. One side, represented by Bitcoin ABC, supported expanding the block size, while the other side, represented by Bitcoin Core, believed that the Segregated Witness (Segwit) solution should be used to optimize the main chain structure. On August 1, 2017, Bitcoin ABC launched its client system, developed to 8MB, resulting in the first major hard fork in Bitcoin's history, which also led to the birth of a new cryptocurrency, BCH.
Similarly, the Ethereum network has chosen to sacrifice some scalability to ensure the security and decentralization of the network; Although the Ethereum network does not limit the volume of transactions by limiting the block size as the Bitcoin network does, but instead sets a cap on the gas fees that can be accommodated in a single block, the purpose is to achieve Trustless Consensus and ensure a wide distribution of nodes ( whether the limit is removed or increased will eliminate many smaller node ) with insufficient bandwidth, storage, and compute.
From the emergence of on-chain applications like CryptoKitties in 2017, DeFi summer, to the later rise of GameFi and NFTs, the market's demand for throughput has been continuously increasing. However, even the Turing-complete Ethereum can only handle 15 to 45 transactions per second ( TPS ), which results in rising transaction costs, longer settlement times, and makes it difficult for most Dapps to bear operating costs. The entire network has also become slow and expensive for users, highlighting the urgent need to resolve the blockchain scalability issue. The ideal scaling solution is to improve the transaction speed of the blockchain network ( shorter finality time ) and transaction throughput ( higher TPS ) 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 standard of "whether to change a layer of the mainnet".
2.1 On-chain Scaling
Core concept: a solution to achieve scalability by modifying 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 on them, and briefly lists two solutions below:
Changing the code of a layer 1 mainnet protocol can have unpredictable negative impacts, as any slight security vulnerability in the underlying system can severely threaten the overall security of the network, potentially forcing the network to fork or interrupt for repair upgrades. For example, the inflation vulnerability incident of Zcash in 2018: Zcash's code is modified based on Bitcoin version 0.11.2, and in 2018, an engineer discovered a high-risk vulnerability in its underlying code, namely that tokens could be minted infinitely. The team then spent 8 months secretly patching it, and only disclosed the incident after the vulnerability was fixed.
2.2 off-chain scaling
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 Overview
State channels stipulate that users only need to interact with the mainnet when the channel is opened, closed, or disputes are resolved, placing user-to-user interactions off-chain to reduce the time and monetary costs of transactions for users, while allowing for unlimited transaction frequency.
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 ( based on fraud proofs with signatures and timestamps ). After the contract is deployed on the blockchain network, participants deposit a sum of funds and lock it in; once both parties sign to confirm, the channel is officially opened. The channel allows for an unlimited number of off-chain free transactions ( between participants as long as their 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's signature confirmation. Once the other party signs to confirm, the state update is considered complete. Normally, state updates agreed upon by both parties are not uploaded to the mainnet; they only rely on mainnet confirmation in the event of a dispute or when closing the channel. When it is necessary to close the channel, either participant can propose a transaction request on the mainnet, and if the exit request receives unanimous signature approval, it is executed on-chain immediately, meaning the smart contract distributes the remaining locked funds based on the final balance of each participant in the channel; if other participants do not sign to approve, everyone must wait for the "challenge period" to end before receiving the remaining funds.
In summary, the state channel solution can significantly reduce the computational load on the mainnet, increase transaction speed, and lower transaction costs.
3.1.2 Timeline
3.1.3 Technical Principles
The general workflow of state channels:
Alice and Bob deposit funds from their personal EOA to the on-chain contract address, and these funds are locked in the contract until the channel is closed, at which point the balance is returned to the user; after both parties sign and confirm, the state channel between them is officially opened.
Alice and Bob can theoretically conduct an unlimited number of transactions off-chain through this channel, with participants communicating with each other via encrypted signed messages ( instead of communicating with the blockchain network ). Both users need to sign each transaction to prevent double-spending malice. Through these messages, they propose their account state updates and accept the state updates proposed by each other.
If Alice wants to close the channel and end the transaction with Bob, Alice needs to submit the final state of her account to the contract. If Bob signs to approve, the contract will release the locked funds back to the corresponding user according to the final state. If Bob does not respond with a signature, the contract will release the locked funds back to the corresponding user after the challenge period ends.
3.1.4 Advantages and Disadvantages
Advantages:
Disadvantages:
3.1.5 Application
Bitcoin Lightning Network
Overview: The Lightning Network is a small payment channel in the Bitcoin network, and its overall technological evolution has experienced: 2/2 multi-signature construction of unidirectional payment channels, the addition of RSMC ( Revocable Sequence Maturity Contract ) allows for the construction of bidirectional payment channels, and the further addition of HTLC ( Hash Time Lock Contract ) enables the connection of payment channels to expand to multi-party payments, ultimately constructing the payment network known as the Lightning Network. Through off-chain small payment channels, and then utilizing intermediaries to form a transaction network, it can solve the scalability problem of the Bitcoin network. The overall usage of the Lightning Network follows the process of "Deposit ( Establish Channel ) → Lightning Network Transaction ( Update Channel Status ) → Refund/Settlement ( End Channel )"; theoretically, the Lightning Network can process one million transactions per second.
Timeline:
Ecological Development:
Ethereum Lightning Network
Overview: The Lightning Network is a micropayment channel built on Ethereum, similar to the Lightning Network, aimed at achieving near-instant, low-cost, and scalable ERC20 token payments.
Timeline:
Currently not widely adopted, reasons include: