header-langage
简体中文
繁體中文
English
Tiếng Việt
Scan to Download the APP
Partnered With:

What is side chain and rollup? What's the difference?

Read this article in 9 Minutes
They offer lower transaction fees and faster transaction confirmation than Ethereum. Crucially, they also improve ethereum's ease of use.
原文标题:《 Off-chain protocols: Sidechains and Rollups 》
Original author :  Patrick McCorry   
Ah Jian is a fan of Ethereum





Infura now supports networks outside of Ethereum, including Arbitrum, Optimism and Polygon.


All three projects are new blockchain networks. They offer lower transaction fees and faster transaction confirmation than Ethereum. Crucially, they also improve ethereum's ease of use, as the assets that users originally put on Ethereum can also be used on these networks.


This extended approach is called an "off chain protocol". We wrote a short article explaining how they can help expand Ethereum's throughput (and improve its ease of use).


Why not just trade on Ethereum, where is the throughput bottleneck 



Average Gas prices for the past three months. They soar when the network is congested.  


Ethereum only supports 15 transactions per second, and as you can see from Figure 1, the fee level skyrocket as user demand exceeds the throughput bottleneck. To some extent, throughput limits are self-imposed by communities in pursuit of decentralization.


The goal of decentralization is to maximize the number of participants worldwide who can verify the integrity of the blockchain in real time. This goal is critical to minimizing trust in block producers, so the community self-imposes consensus rules that define the validity of blocks. In order to achieve the goal of participants as a percentage of the world's population, it is necessary to limit the computation, storage and bandwidth burden of transaction processing.


(Translator's Note: The author's reasoning here is valid, but the statement is romanticized. I have never heard anyone identify the running burden of full nodes (aka real-time validators) in relation to the number of participants and propose resource constraints in terms of computation and so on. The credibility of such a study is questionable. And reality simply doesn't work that way. We just need to know that improving throughput is not a cost-free thing. By implying that there is a consensus on how throughput should be controlled, the concept of "community" is deified and prevents people from understanding the actual situation.)


Our challenge is to increase throughput without overstepping resource constraints.


Why do I need to know about off-chain protocols like side chains and rollup   


Most approaches to extending the network start with:


· Distribution validation burden. The validation task is distributed among the nodes of the network, rather than requiring all nodes to do exactly the same job as Ethereum currently does.


· Make better use of the resources available on the network. The resources in the network should be continuously utilized and not idle. For example, shorten the interval between blocks to make better use of bandwidth.


These scalable solutions may still take many years to implement, as they require significant changes to the underlying Ethereum protocol.


But a more popular alternative is off-chain protocols, which are available now. Because it expands the throughput of the network in the following way:


Off-chain protocol: The burden of transaction processing is shifted from Ethereum to another network, but the assets affected by these transactions still reside on Ethereum.


Such a scale-up would use another blockchain network with different resource constraints than Ethereum. Such a network could be used to experiment with multiple extension protocols (or simply test the limits of Go-Etherum, the current mainstream client of the Ethereum network), while improving ethereum's ease of use.



When I plug assets into another network, where do they go


Your assets are transferred to a dedicated bridge on Ethereum, and an equal amount of assets will appear in your account on the target network. Once the asset is cast, you can use it in the target network, and eventually, when you want to take it out, you need to get it back through the appropriate bridge engagement.


Not all bridge joints have the same functions and characteristics. We must consider how the bridge contract determines when to release assets and return them to the user. Ideally, the asset should be released only when the bridge is sure that the corresponding network has not been compromised. This is known as the "trust assumption" and is the ultimate measure to protect users' money. This is often debated when discussing whether off-chain protocols really extend Ethereum.


On the one hand, there are users who believe that alternative blockchain networks are indeed an extended solution, since they can guarantee equal (or very close) security to Ethereum. The much-discussed "rollup" protocol is ideally capable of achieving this level of security. However, other users will accept a stronger assumption of trust that assets locked in another network are always secure enough (just being "side chain" will satisfy them).


A rollup scheme that maintains the same security as the main chain (as opposed to the side chain) requires more resources. For example, every transaction in the Rollup network requires a status update to be submitted to the bridge engagement. The side-chain protocol, on the other hand, does not require a significant resource cost for Ethereum, as transaction verification is performed by a set of external participants. (Specifically, because the side chain doesn't have to expose any details of its operation to the Ethereum blockchain). This security/resource trade-off ultimately translates into a financial burden for users, and there is no such thing as a free lunch.


In any case, we believe that Bridges will emerge with different trust assumptions. Ultimately, all networks that support trading assets on Ethereum will improve ethereum's ease of use. It's just that users need to think twice before locking their funds into a bridge engagement and be aware of the differences and risks of trust assumptions.



What is side chain?  


The term "side chain" originated in a paper by Blockstream. It is an interoperable solution that allows two blockchain networks to verify information about each other's progress through lightweight proofs. The idea was to lock up bitcoin on the Bitcoin blockchain and release it (or vice versa) on another network without trusting an intermediary.


But over the years, the term "side chain" has taken on a life of its own. It is commonly used to refer to an independent blockchain network associated with another blockchain network. In effect, this is done through a bridge engagement that allows assets to move from the main chain (such as Ethereum) to another blockchain network.


Side chains may use three different types of bridge joints:


· Single tissue type. Funds locked up in bridge engagement are held in escrow by a single community.


· Multi-organization type. Locked funds are held in custody by specific multiple independent participants. Only K of N participants need to agree to perform an action.


· Password economy. Dynamic combination of participants, by the weight of assets to determine the qualification to participate in the decision to lock up the whereabouts of funds.


For example, WBTC is a single-organization bridge because BTC is hosted by BitGo. Liquid networks and RSK blockchains, on the other hand, are implemented by multi-organization Bridges, as a set of pre-designated participants have the right to transfer assets from one chain to another (with multiple signatures to indicate permission). Polygon, on the other hand, is a cryptographic economic bridge because it relies on a majority of more than (2/3) equity to specify a verifier who periodically submits network state checkpoints to the bridge engagement (and which can be used to authorize withdrawals).


Most importantly, a side chain bridge contract does not verify the integrity of other networks, so it requires a set of participants to be held accountable for validity. That is, it assumes that at least a certain percentage of participants will be financially motivated to stay honest and protect their users' assets.


What is a rollup   


The word "Rollup" is derived from Barry Whitehat's concept of Zkrollup, derived from Plasma's research.


A Rollup system is also a separate blockchain network, but the assets traded in the Rollup system remain on the Ethereum blockchain and are protected by bridging contracts. The bridge engagement must continuously confirm that the ROLLup network has not been compromised and funds are not at risk. In the worst case, bridging requires ignoring the network's request and allowing users to get their money back.


Rollup can maintain (at least very close to) ethereum security at the expense of addressing the following issues:


· Data availability. The bridge engagement must ensure that all data is publicly available. This allows everyone to independently calculate the latest state of the rollup.


· Integrity of state transitions. The bridge engagement must confirm that all state transitions (transactions) are valid.


· Censorship resistance. Bridging contracts can execute transactions autonomously, so that if the network is compromised (or can't advance), users can eventually withdraw their money themselves.


Quick summary of solutions. The data availability problem is solved by publishing the data of all transactions within the system to the Ethereum blockchain, hence the name "rollup" (which rolls transactions up in batches). The completeness of state transitions is solved by fraud proof (Optimistic rollup) or validity (ZK rollup). Anti-censorship is tricky and usually not discussed, but it requires a bridge to be able to autonomously accept and execute transactions initiated by ordinary users.


Rollup has an ongoing cost. Such a network must continuously provide bridge engagement with proof that all transactions being processed are valid and that the network has not been breached. This consumes Ethereum's resources and affects its scalability. In the medium term, however, it could significantly reduce transaction costs for users. For example, on Arbitrum, the cost of a coin swap is 1600 gas, while on the Ethereum main network it costs 120,000 gas.


While side-chain transactions don't consume Ethereum's resources, the trade-off is that they don't have the same security and (ultimately) trustworthiness as Ethereum.


How does the side chain differ from Rollup


Side chains (such as Polygon) and Rollup (such as Optimism and Arbitrum) are independent blockchain networks that have their own block producers and smart contract operating environments. The key difference is the bridging of locked capital. To be precise, it is the difference between the assumption of trust that protects users' money.


Side chain. A bridge engagement receives information about a separate network, but does not verify its correctness. A group of participants controlling the bridge engagement checks the state of the individual network (to make sure it has not been compromised) and presents relevant facts to the bridge engagement.


A Rollup. A group of participants (sequencers) is responsible for providing evidence for the status updates of the independent network, and the validity of the evidence (and whether the independent network is intact and not broken) is verified by bridging contracts.


There's a subtle difference here, but it comes down to whether a bridge on the main chain can enforce the validity of transactions on an independent network, or whether it can only rely on a set of trusted participants to indicate that those transactions are valid.


Of course, there is no such thing as a free lunch. The Rollup network can maintain the same security as the main Ethereum network, but also consume more resources in the Ethereum network. This drives up the cost of trading on the rollup network. As a user or developer, you need to consider the additional security and financial costs that the network provides.

There is no best, only the most suitable.


The original link





Welcome to join the official BlockBeats community:

Telegram Subscription Group: https://t.me/theblockbeats

Telegram Discussion Group: https://t.me/BlockBeats_App

Official Twitter Account: https://twitter.com/BlockBeatsAsia

举报 Correction/Report
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit