Why Would a Layer2 Decentralize its Sequencer?
Tags: rollups
Published: 2024-04-16 05:47:25

<p>Sequencers are the air-traffic control (ATC)&nbsp; system of the L2 network; however, if the air-traffic control is not performing its duty in the right way, it could topple the entire airline industry. Likewise, sequencers need to perform their duties more efficiently; otherwise, the trust in using L2s for better UX will eventually fade and defeat the whole purpose of needing an L2 to scale Ethereum.&nbsp;</p>
<p>This concern has been rightfully acknowledged by the founder of&nbsp; Ethereum,&nbsp; Vitalik Buterin, who says that rollups and layer-2s that exist on Ethereum today basically have training wheels or some kind of backdoors letting developers come in and stop or change the protocol.&nbsp; As a result of this centralization,&nbsp; the essence of the rollups, which revolved around solving the trilemma challenge of blockchain, is slowly withering off because of centralized sequencers. The need of the hour is to decentralize Layer2 sequencers.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://www.zeeve.io/rollups/"><img src="https://www.zeeve.io/wp-content/uploads/2024/04/Build-Your-Own-Custom-Rollup-with-Zeeve-Rollups-as-a-service-1-1024x213.jpg" alt="Layer2 Decentralized Sequencer" class="wp-image-65147"/></a></figure>
<h2 class="wp-block-heading" id="h-why-will-layer-2-willingly-nbsp-decentralize-its-sequencers">Why Will Layer 2 Willingly&nbsp; Decentralize Its Sequencers?</h2>
<p>To understand why L2s will willingly decentralize their sequencers, we need to first look at the present state of the L2s with respect to centralized sequencers. In the present state of the rollups/L2s, there’s a single sequencer for every rollup chain&nbsp; that is&nbsp; directly receiving the orders from the users to sequence their transaction and putting them in the block for validation from the L1 chain in the following manner;&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lrlfdgsc60u6ufuw6lc2.png)
<p>This process is undoubtedly very effective from a user’s standpoint because users pay lower gas fees and enjoy faster finality. However, there’s a price users have to pay to use a single sequencer for rollups. What price, if one may ask, is the price of centralization that Vitalik Buterin has admitted time and again!</p>
<p>As a result, the rollup environment is vulnerable to SPOFs or Single Points of Failure, where if the single sequencer fails to operate and goes offline, the Layer 2 chain halts. On the <a href="https://www.zeeve.io/appchains/arbitrum-orbit-rollups/">Arbitrum Rollup chain</a>, such an event occurred in&nbsp; December 2023, when the sequencer went offline for 78 minutes and brought the network to a standstill. Though Arbitrium One is the only rollup chain that can tackle network non-liveness, it takes almost a week to restore normalcy, which still needs to be feasible to host a complete global financial system on top of it.&nbsp; Hence, such events can lead to lost opportunities for users and loss of trust in decentralized technology. For example, if a favorable trade option was available during such a time, the user will lose that opportunity because there’s only a single sequencer set managing the whole network ecosystem that has gone offline suddenly. Thereby discouraging them from using rollup environments with centralized sequencers in the near future.&nbsp;</p>
<p>Furthermore, a single centralized sequencer set also exposes other vulnerabilities like transaction censorship and monopoly over MEVs through front and back-running and sandwich attacks and lack of cross-rollup composability, which we have already seen on multiple rollup chains. However, such a scenario changes when a decentralized sequencer enters the space.&nbsp;</p>
<h2 class="wp-block-heading" id="h-how-do-decentralized-sequencers-change-the-game">How do decentralized sequencers change the game?</h2>
<p>&nbsp;A decentralized sequencer brings a network of nodes that will be given the task of sequencing the transactions for a larger rollup chain. Since there will be random selection among a large network of nodes to sequence transactions for all the connected rollup chains based on consensus, it dramatically resolves the problem of centralization of the rollup chain and eliminates attacks in the form of SPOFs, MEVs, and censorship of transactions on the roll-up chain in the following manner, as explained below:</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82dwcdah71355ys3qsn2.png)
<p>As you can see above, the transactions are recorded on the mempool by the user encrypting the transaction and putting it for execution through a PVDE function. The sequencers will be given a keyshare that they will be using to decrypt the transaction to execute the transaction in the order they come up, and the PVDE will assess that they are sequencing the transactions based on a time-lock hash algorithm. Since the entire process is done in a round-robin manner, there’s no point in any opportunity for a single sequencer to use in any way to benefit themselves, like reorganizing transactions, denial of services, or censorship.&nbsp;&nbsp;</p>
<p>Moreover,&nbsp; the use of a consensus mechanism would ideally evoke decentralization while proposing and sequencing the transactions on the layer2 rollup chain because all the sequencing will be subsequently signed and proposed to the network via consensus for execution into a block for validation via L1 chains by all the participating sequencer nodes.&nbsp;&nbsp;</p>
<p>Another advantage of a decentralized sequencer set is that the transaction can be validated using the sequencer across different rollup environments.</p>
<p>In this way, the rollup operators can also pursue decentralized sequencing economically because all the rollup sequencer/ validator networks will actively play a complementary role in keeping the entire rollup ecosystem functional, cost-effective, and secure from a 360-degree standpoint.&nbsp;&nbsp;</p>
<h2 class="wp-block-heading" id="h-how-is-a-feasible-decentralized-sequencer-for-layer-2">How Is a Feasible Decentralized Sequencer for Layer 2?</h2>
<p>When we are speaking about decentralized sequencer for layer2, at one end of the spectrum, we have to duly acknowledge the fact that not all blockchains/rollup chains are synchronous. As a result, if Layer 2s intends to use a decentralized sequencer in the first place, they will have to address the problem of blockchain synchronicity through some noble means.&nbsp;</p>
<p>It could either be through a DVT or a Distributed Validator Technology in which every private validator/sequencer key for its own rollup chain is broken and stored in the Distributed Validator Cluster, and the keys representing the distributed cluster will be jointly used to sign the transaction to validate the blocks or a shared sequencing layer for all the rollup to validate/sequence transactions on their chains. Such a practice can streamline better coordination among all the sequencers of the rollup chains to streamline the decentralization of sequencers.&nbsp;</p>
<p>At the moment, some of the blockchain protocols have engineered this approach, standardizing the language across different rollup ecosystems to provide middleware support so that all the rollup environments can dynamically communicate and establish decentralized sequencing.&nbsp;</p>