🌟 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
Off-chain Scaling Technology Depth Analysis: The Principles and Applications of State Channels and Sidechains
Off-chain Scalability Depth Analysis
1. The Necessity of Scalability
The future vision of blockchain is decentralization, security, and scalability, but usually only two of these can be achieved, which is known as the blockchain trilemma. For 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 issue, and this is one of the hot topics in the current development of blockchain.
The decentralization, security, and scalability of blockchain can be defined as:
Decentralization: Anyone can become a node and participate in the blockchain system. The more nodes there are, the higher the degree of decentralization, ensuring that the network is not controlled by a few centralized participants.
Security: The higher the cost of gaining control over the blockchain system, the higher the security, and the chain can resist attacks from a larger proportion of participants.
Scalability: The ability of the blockchain to handle a large number of transactions.
The first major hard fork of the Bitcoin network stemmed from scalability issues. As the number of users and transaction volume increased, the Bitcoin network with a 1MB block size limit began to face congestion. Since 2015, there has been a division in the Bitcoin community regarding scalability, with one side advocating for larger blocks and the other side supporting the use of Segregated Witness to optimize the main chain structure. On August 1, 2017, the side in favor of scalability independently developed an 8MB blockchain, leading to the first major hard fork of Bitcoin and the birth of the new cryptocurrency BCH.
The Ethereum network also chooses to sacrifice some scalability to ensure security and decentralization, limiting transaction volume through a gas fee cap. From the 2017 CryptoKitties to the rise of DeFi, GameFi, and NFTs, the market's demand for throughput has been increasing, but Ethereum can only process 15-45 transactions per second, leading to rising transaction costs and longer settlement times. Most DApps struggle to bear operational costs, making the entire network slow and expensive, urgently needing a solution to the scaling problem. The ideal scaling solution is to increase transaction speed and throughput as much as possible without sacrificing decentralization and security.
2. Types of Scalability Solutions
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 Scaling
Core concept: A solution that achieves scalability by changing a layer of the main network protocol, with the current main solution being sharding.
There are various solutions for on-chain scalability, here are two briefly listed:
Option one is to expand the block space and increase the number of transactions packaged in each block, but this will raise the requirements for high-performance node devices and reduce the level of "decentralization".
Option two is sharding, which divides the blockchain ledger into several parts, with different shards responsible for different bookkeeping, allowing parallel computation to handle multiple transactions simultaneously. This can reduce the computational pressure on nodes and the entry threshold, improving transaction processing speed and the degree of decentralization, but it means that the total computing power of the network is distributed, which may reduce the "security" of the entire network.
Changing a layer of the mainnet protocol may lead to unforeseen negative impacts; any slight security vulnerabilities at the underlying layer can seriously threaten the overall network security, and the network may be forced to fork or interrupt for repair and upgrades.
2.2 off-chain scaling
Core concept: an expansion solution that does not change the existing Layer 1 mainnet protocol.
The off-chain scaling solutions can be subdivided into Layer 2 and other solutions:
Layer2:
Others:
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 opening, closing, or resolving disputes in the channel, allowing interactions between users to be conducted off-chain to reduce transaction time and costs, enabling unlimited transaction counts.
State channels are simple P2P protocols suitable for "turn-based applications" such as two-player chess. Each channel is managed by a multi-signature smart contract on the mainnet, which controls channel assets, verifies state updates, and arbitrates disputes ( based on fraud proofs with signatures and timestamps ). After participants deploy the contract, they deposit funds and lock them in; the channel officially opens after both parties sign to confirm. The channel allows unlimited free off-chain transactions ( as long as the net value does not exceed the total amount deposited ). Participants take turns sending state updates and waiting for the other party to sign and confirm. Normally, state updates are not uploaded to the mainnet and rely on mainnet confirmation only in case of disputes or when closing the channel. When closing the channel, either party can make a request on the mainnet; if all signatures are approved, it is executed immediately; otherwise, it must wait for the "challenge period" to end.
State channels can significantly reduce the computing load on the mainnet, increase transaction speed, and lower transaction costs.
3.1.2 Timeline
2015/02: Joseph Poon and Thaddeus Dryja released the draft of the Lightning Network white paper.
2015/11: Jeff Coleman first systematically summarized the concept of State Channel, proposing that the Bitcoin Payment Channel is a sub-case of State Channel.
2016/01: Joseph Poon and Thaddeus Dryja officially published the Bitcoin Lightning Network white paper, proposing the Payment Channel scalability solution.
2017/11: The first design specification for State Channel based on Payment Channel was proposed by Sprites.
2018/06: Counterfactual proposed a detailed design for Generalized State Channels, the first fully relevant design.
2018/10: Proposed the concepts of State Channel Networks and Virtual Channels.
2019/02: State channels expanded to N-Party Channels, Nitro is the first protocol based on this idea.
2019/10: Pisa expanded the concept of Watchtowers to address the issue of participants needing to be online continuously.
2020/03: Hydra proposed Fast Isomorphic Channels.
3.1.3 Technical Principles
Traditional on-chain workflow: Users change the state of smart contracts by sending transactions to the chain, but this brings time and cost issues.
State Channel Workflow:
In a pessimistic scenario, if one party does not respond, the other party may challenge the contract by submitting the last valid state to the contract, which allows the other party to respond within a certain period. If there is no response, the contract automatically closes the channel and returns the funds.
3.1.4 Advantages and Disadvantages
Advantages:
Disadvantages:
3.1.5 Application
Bitcoin Lightning Network:
Ethereum Lightning Network:
Celer Network:
3.1.6 Application Comparison
Bitcoin Lightning Network:
Ethereum Lightning Network:
Celer Network:
3.2 Sidechains
3.2.1 Summary
The concept of sidechains was first proposed in the Bitcoin developer chatroom in 2012, and the first related article was 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 results of sidechain transactions are eventually sent back to the main chain, they are recorded on the validator's side. This model is infrastructure that is attached to the main chain and helps to solve problems.
3.2.2 Timeline
3.2.3 Technical Principles
Sidechains use two methods to communicate with the main chain: bidirectional anchoring ( Symmetric Pegged ) and uncoordinated anchoring ( Asymmetric Pegged ).
Symmetric Pegged:
Asymmetric Pegged:
Currently, most sidechains use the PoA mechanism or Relayers as an intermediary layer to confirm the state of the main chain blocks.
Sidechain Mechanism Summary:
The security of sidechain assets depends on the security of the sidechain, namely the sidechain consensus mechanism.
![Ten Thousand Words Depth Research Report: Comprehensive Analysis of off-chain Expansion](