Blockchain

the backbone of Ethereum rollups

On this article, we uncover what the sequencer node is, an integral part of the Ethereum rollup ecosystem.

This infrastructure entity is liable for a collection of processes that carry the transaction knowledge performed on the L2 into the primary L1, performing as a connection level.

The operation and the diploma of decentralization of the sequencer instantly impacts the safety, reliability, and resistance to censorship of those options.

Let’s see every part intimately beneath.

What’s the sequencer and what’s its function within the EVM world

Within the panorama of scalability options for Ethereum, the sequencer is an entity that orders, executes, and aggregates off-chain transactions earlier than publishing them on the layer-1 blockchain. Its important function is to enhance the scalability and effectivity of layer 2 options, comparable to rollups, by lowering fuel prices and accelerating transaction finalization.

Technically outlined as a node, the sequencer processes the transactions executed on the rollups and encapsulates them in a compressed “batch.” Then it sends this knowledge to Ethereum, the place they’re formally recorded and added to the first chain liable for safety.

Relying on the structure of layer-2, the sequencer might be centralized or decentralized, and it could possibly affect crucial points such because the order of transactions, knowledge availability, and censorship resistance.

Within the case of Optimistic rollup, comparable to Arbitrum and Optimism, the sequencer orders the tx and publishes them on Ethereum assuming they’re all legitimate except contested. In zk-rollup, nevertheless, comparable to Starknet and ZkSync, the sequencer not solely processes the transactions but in addition generates cryptographic proofs which are then verified on Ethereum. Lastly, in rollups of the Validium sort like ZkFair and Rhino.fi, a hybrid course of happens as the information is partially verified off-chain.

See also  Is Ethereum set to outperform Bitcoin? Key data suggests...

You will need to emphasize that this determine can be utilized by different blockchains and scalability options, however to keep away from confusion, on this article we’ll focus solely on the EVM world. For data, we level out that there are parts analogous to sequencers in ecosystems like Cosmos, Avalanche Subnets, and Celestia.

The workflow of sequencers within the varied Ethereum rollups

Diving deeper into the varied duties carried out by the sequencers, we see how they handle the lifecycle of a transaction executed inside a rollup.

We will group their workflow into 3 elementary steps: the gathering and sorting of transactions, execution, and publication on Ethereum.

1) Assortment and sorting of transactions

Customers ship transactions to the sequencer as a substitute of on to the L1, which orders them in a selected block in keeping with an ordering technique. Usually, in rollups, we discover an “Public sale-Primarily based” technique, the place an public sale takes place to find out the execution order (those that pay extra charges have precedence and are ordered first).

Different methods might be of the “First Come First Served” sort, the place transactions are accepted and processed within the order they arrive.

2) Execution and calculation of the state

After deciding the order of the transactions, the sequencer executes them domestically, updating the state of the rollup off-chain.

This execution is deterministic and follows the foundations outlined by the sensible contract of the rollup on L1, thus guaranteeing the integrity of the operations.

3) Batch manufacturing and publication on L1

At this level, the transactions are grouped into batches and despatched to L1 Ethereum.

The sequencer publishes solely the important knowledge (calldata) for Knowledge Availability (DA), guaranteeing that Ethereum can all the time reconstruct the on-chain state. This step ensures that the minimal computational effort is employed to maintain the L2 community charges low

See also  Binance Academy and BNB Chain introduce innovative developer training program

Primarily based on the kind of rollup, these 3 steps can differ roughly considerably, as proven within the following desk.

“`html

“` “`html

The issue of the centralization of sequencer

“`

For the time being, most sequencers on Ethereum are centralized, since virtually all rollups have a single node liable for managing the connection between L2 and L1. This configuration is important within the “Stage 0” phases of rollups, the place a compromise between decentralization and scalability is critical to make all the infrastructure practical and environment friendly in its preliminary growth section.

“`html

Transferring ahead with time, rollups purpose to decentralize their sequencers, introducing new options for node sharing and federation, thus transferring to “Stage 1” and “Stage 2.” Within the meantime, nevertheless, the extreme centralization of sequencers, even for a restricted time period, might create severe structural issues for the second-level community in query.

“`

To begin with, entrusting management to a single node introduces a “single level of failure”: if the sequencer had been to endure an assault, a technical failure, or a manipulation, all the infrastructure could possibly be compromised, resulting in transaction delays and even service interruptions. Moreover, this focus of energy might facilitate the danger of censorship on transactions, as the one operator would have the flexibility to exclude or reorder transactions arbitrarily, making use of MEV methods.

One other crucial facet issues belief: the dearth of a distributed validation mechanism makes it tough for customers to independently confirm that transactions have been dealt with accurately. All this undermines the precept of decentralization that’s on the base of Ethereum’s philosophy.

The centralization of nodes represents a double-edged sword: the sensible instance of the layer-2 Linea.

Extreme centralization of sequencers is configured as a double-edged sword, able to actually saving a complete ecosystem from collapse however on the identical time capable of result in a strongly arbitrary censorship of the community.

See also  TON Blockchain Increases Global Reach with Strategic Bitstamp Listing

What occurred to layer-2 Linea in June of final yr, in the course of the hack and exploit of the Velocore protocol, is a transparent instance of this.

On that event, in the course of the cyber assault on the DEX, the staff at Consensys (which manages the Linea rollup) determined to cease block manufacturing, “shutting down” its sequencer. By doing so, with the chain virtually frozen, the Velocare staff managed to comprise the incident, resolving the code vulnerability encountered. In the meantime, Consensys censored the attacker’s handle, making communication with the sequencer unattainable (which, as we recall, validates transactions and sends them to L1).

If the sequencer had not shut down, there would have been very severe financial penalties, with impacts not solely on Linea, but in addition on Ethereum.

The hackers might have drained extra funds from the susceptible sensible contracts, resulting in the depletion of the worth of the belongings based mostly on Linea. Moreover, the attacker might have altered the state of the community, making it tougher to detect and repair the problem.

This might have had repercussions on different DeFi protocols related to Linea, inflicting many customers to endure liquidations or irreversible losses.

The Velocore hack occasion led the Ethereum group to mirror on the delicate steadiness between safety and decentralization. On one hand, the swift intervention by Consensys prevented a monetary catastrophe, defending customers and protocols from important losses. However, the shutdown of the sequencer and the censorship of the attacker’s handle raised issues concerning the extreme centralized energy held by layer-2 operators.

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Please enter CoinGecko Free Api Key to get this plugin works.