How Sei Became the Fastest Blockchain: Twin Turbo Consensus (2024)

Breaking down Sei’s Twin-Turbo Consensus

It is often said that Sei is the fastest blockchain. But what does this mean, and how did Sei Labs achieve it?

In this post, we peel back the layers of Sei’s "Twin-Turbo consensus" mechanism that made Sei the fastest chain to finality, at under 400 ms. This is a key design choice that ensures that Sei can approach “web 2 like'' user experiences, which have so far been difficult for existing blockchains to achieve.

Identifying the Most Impactful Optimizations

In the journey to build the fastest blockchain, there are numerous optimisations that are possible to make.

Consider that on most blockchains, the slowest part of the lifecycle of a transaction is determined by the “time to finality”, in other words, the time taken for the globally distributed set of validators to reach consensus. Therefore, this is where Sei Labs identified the largest improvements and efficiency gains can be made.

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (1)

In reality the lifecycle of a transaction is more complex, however we can see that the most significant time is taken by consensus. The complexity of it comes down to a few portions:

1. Transaction Creation / Submission (negligible time)

2. Mempool (1-N seconds, highly variable)

3. Block Proposal (negligible time)

4. Attestation and Block Building (~12 seconds)

5. Block Finalization (minutes to hours)

The fourth step here is the main focus of this blog post - consensus. On Ethereum, the process of validators attesting and building out a block takes 12 seconds in total.

In the case of Sei, Sei Labs opted for a different consensus mechanism to Ethereum, known as “tendermint consensus”, which has a 6 second block time.

Tendermint offers a unique feature known as “single slot finality”, which means that once a block is added to the chain, it's immediately final. This means that pont 5 above is negated entirely, as block finalization is instant.

This was the starting point to begin optimizing for the fastest time to finality possible; Sei Labs underwent rigorous performance testing to understand the bottlenecks, and was able to push Tendermint to its limits.

Through the improvements introduced by Twin Turbo consensus, Sei Labs had taken Tendermint’s 6 second blocktimes to <400 ms, with single slot finality. Considering that Ethereum takes one to two epochs to reach finality aka 13 minutes, that is over 2000x faster.

The net result of this optimization is unlocking “web-2” like speeds, with a globally distributed network of nodes.

Sei’s time to finality speed of <400 ms was mentioned in a recent blog: Sei V2 - The First Parallelized EVM. Every contract and application on Sei will benefit from this.

What’s Twin-Turbo Consensus?

In a nutshell, Twin-Turbo Consensus is the optimization of block propagation and block processing to help create the fastest chain in production today.

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (2)

Time to Finality (TTF) is the time it takes for a transaction to be completed and considered irreversible. Sei's Twin-Turbo consensus drastically reduces TTF to milliseconds, which means your transactions on the blockchain are almost instant (<400 ms).

Sei’s transaction finalization is comparable with the immediate response you would experience when playing a song on Spotify - there's no waiting, just immediate action upon clicking ‘play’.

The consensus mechanism designed delivers the immediacy you would experience from web-2 applications, where actions are instant and seamless. This approach addresses the common problem that still exists in blockchains today - too slow for everyday on-chain usage.

The two key optimizations made towards Tendermint are known as “optimistic block processing” and “intelligent block propagation”.

Both of them add up to produce the ultimate result Sei presents today - transaction processing that takes just milliseconds during consensus.

Technical Deep Dive into Twin-Turbo Consensus

Before getting into the optimizations made, let’s unpack Tendermint’s underlying technology first.

Under the hood, a block proposer first creates a block with all the transactions in it. A block proposal containing the block’s hash will then be created and distributed across the global network of validators.

Upon receiving the block proposal, validators must wait to receive the complete block with all key information needed to verify its contents, then only be able to proceed with consensus before committing the block to the blockchain.

However, when a full node receives a transaction, it gets broadcasted to other nodes in the network. This leads to redundant data transmission and increased waiting time, as 99.99% of the time, validators already have all transactions required in their mempools to form a block locally.

With the basics of Tendermint understood, let’s get into the optimizations made to the Tendermint consensus algorithm:

Optimization 1: Intelligent Block Propagation

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (3)

The first potential optimization identified with Tendermint was this “unnecessary wait time”. Sei flips this on its head with its block propagation technique: instead of initially sending out the entire block to other validators of the network, block proposers will send a compact block proposal (as a single message) containing unique transaction identifiers, together with a reference to the full block.

Proposers will first disseminate the proposal to the validators, followed by the entire block containing the full contents of each transaction. The block will then be broken into smaller parts and randomly gossiped to the other validators.

If a validator already has all the necessary transactions, it can immediately reconstruct the full block locally without waiting for individual block parts to be sent across the network. If not, it will wait until it has the complete content of the block then reconstruct it with all of its transactions.

This process is known as “intelligent block propagation”, an optimization that significantly reduces the time validators would spend waiting for data to form a block, thereby enhancing the network's throughput and reducing latency.


Optimization 2: Optimistic Block Processing

A second potential optimization was identified in the overall consensus steps taken in tendermint. The idea here was to modify the overall process so that consensus steps can happen simultaneously; saving significant time.

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (4)

After block proposal, prevote and precommit are crucial steps that traditionally must happen before block processing and committing takes place. This is because the block might potentially be rejected by validators if it doesn’t comply with the consensus rules, or in other words fail block validation.

Byzantine nodes may also exist in the network - if a sufficient number of validators act differently and broadcast an invalid or conflicting block, the block could be rejected if detected by honest validators.

Although it doesn’t happen often, these are crucial precautionary steps that must be taken.

Optimistic block processing dovetails with intelligent block propagation to expedite consensus further:

It takes the first block at any given height where the validator would receive it, run sanity checks and start processing it simultaneously during prevote and precommit. The optimistic block processing will then write the candidate state to a cache.

This allows validators to process transactions optimistically as soon as they receive a valid block proposal, rather than waiting until the precommit step ends. The logic behind adopting this approach is that in most cases, the first proposed block at any given height is the one that gets accepted after voting. Therefore, initiating the processing of transactions from the first block right away capitalizes on this likelihood.

Should the block be accepted, the candidate state cache processed optimistically will be committed to the blockchain instantaneously.

However if the block gets rejected, then the data from the cache will be discarded, and future rounds of that block height will not use optimistic block processing. The validator will then reset and prepare to process the next block proposal.

This concept leverages the typically predictable behavior of block acceptance in order to significantly speed up transaction processing time, while countering the potential rejection a block might face, underscoring Sei Labs’ commitment to high performance.

The theoretical improvement in latency due to optimistic block processing can be described with:

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (5)

In which Tprevote represents prevote latency, Tprecommit as precommit latency, N as the number of transactions, and T as the average latency of a single transaction.

This illustrates the potential efficiency gains, significantly reducing overall time to finality, especially in this given case where transaction processing (N * T) is much faster compared to the consensus stages (Tprevote + Tprecommit).

The two pillars crafting the Twin-Turbo consensus mechanism have been pivotal to Sei achieving <400 ms block time that it presents today - the fastest chain to finality in existence.

If you haven’t noticed already, every millisecond matters for Sei

The specifics of the optimistic block processing proposal in August 2022 can be found here.

Trade-Offs

With Sei achieving these rapid times to finality, it may seem like a no-brainer to implement these same enhancements on other blockchains. However, it’s important to acknowledge tradeoffs do exist to achieve this web2-like user experience:

Quadratic Communication Complexity

We mentioned that tendermint ensures rapid finality, which accelerates the “decision making” process within the network. However, it also establishes a key communication pattern where each validator has to communicate with every other validator to reach consensus. The trade-off here is quadratic communication complexity, which means the number of messages grows significantly as more validators join the network.

This makes it more difficult to increase the number of nodes in the network than usual, since a much larger set of validators will result in increased bandwidth and processing requirements. While the existing validator set will continue to grow at a steady pace, with nodes already distributed across multiple continents, Sei plans to further address this issue through its decentralization efforts covered in its roadmap, aiming to maintain network performance with the globally distributed set of validators alongside light clients for trustless verification. Despite this trade-off, the mechanism's benefit of much faster finality remains a substantial advantage for network efficiency, which Sei Labs believes is important to deliver the best possible user experiences.

Conclusion

Sei's Twin-Turbo consensus represents great enhancement in blockchain technology, pushing the boundaries of finality speed to deliver the user experience that is unparalleled today.

By reducing TTF to <400ms, Sei has set a new standard in transaction processing speed, making it the fastest blockchain to finality currently available.

Both TTC’s concepts enhance the well understood and proven tendermint consensus mechanism used by all cosmos blockchains today; where the former allows validators to quickly construct blocks from existing mempool transactions, while the latter slashes idle time by enabling immediate transaction processing upon receiving the block proposal’s receipt.

As Sei continues to evolve, its focus on optimizing every aspect of the blockchain lifecycle, ensures to maintain its lead in providing fast, reliable, and user-friendly blockchain experiences - seamlessly running at an unmatched speed.

How Sei Became the Fastest Blockchain: Twin Turbo Consensus (2024)

FAQs

How Sei Became the Fastest Blockchain: Twin Turbo Consensus? ›

SEI V2: Under the Hood

Which is the fastest blockchain in the world? ›

Solana a non-EVM blockchain takes the first spot as the fastest blockchain followed by Sui another non-EVM blockchain, going by this list the fastest EVM-compatible blockchain is BNB Smart Chain (BSC).

How many transactions per second can Sei do? ›

Sei is an open-source Layer 1 blockchain that optimizes the trading of digital assets. The Sei Network is one of the fastest blockchains in existence, boasting a theoretical speed of executing 12,500 transactions per second and a block finality time of 380 milliseconds.

What is sei blockchain? ›

The Sei blockchain is designed to provide high-speed processing that's ideal for scaling decentralised finance (DeFi) apps including trading platforms, decentralised exchanges (DEXs), NFT marketplaces, and Web3 games that include in-game financial transactions (aka GameFi).

What is the most powerful blockchain? ›

Here are nine of the top blockchain platforms to consider.
  • Ethereum. Introduced in 2013, Ethereum is one of the oldest and most established blockchain platforms. ...
  • IBM Blockchain. ...
  • Hyperledger Fabric. ...
  • Hyperledger Sawtooth. ...
  • R3 Corda. ...
  • Tezos. ...
  • EOSIO. ...
  • Stellar.
Jan 12, 2024

What is the fastest blockchain in 2024? ›

#NameReal-time TPS
1Hedera2,402 tx/s
2Solana665 tx/s
3Stellar105 tx/s
4opBNB92.92 tx/s
40 more rows

Is SEI the fastest blockchain? ›

This dual-layer approach ensures that SEI can handle a high volume of transactions simultaneously, reducing latency and increasing throughput. This makes SEI one of the fastest blockchains available, capable of meeting the demands of large-scale applications and high-frequency trading environments.

Is SEI better than Sui? ›

The Sui vs Sei battle looks to have completed in a mechanic tie, they can both coexist as long as they have varied targets. Yes, they have analogy but that both are based on a useful form and are not obligatorily a bad thing. Both are budding, sustainable and have massy foundation.

Does SEI Coin have a future? ›

Sei Overview

Our most recent Sei price forecast indicates that its value will increase by 14.24% and reach $0.327765 by September 18, 2024. Our technical indicators signal about the Bearish Bullish 26% market sentiment on Sei, while the Fear & Greed Index is displaying a score of 39 (Fear).

What is the advantage of SEI? ›

Meanwhile, some of the advantages of Sei Network include a special trading blockchain, high speed, transaction throughput, high security, and Parallel Order Execution.

What is SEI's consensus model known as? ›

Twin-Turbo Consensus

Sei's consensus model is an iterative improvement of Tendermint which breaks it down to suit the specific needs of the DeFi sector. The Twin-Turbo consensus model is made up of two features: intelligent block propagation and optimistic block processing.

Is SEI built on Ethereum? ›

Sei is one among multiple studios courting developers with the promise of a parallelized Ethereum Virtual Machine (EVM) — and perhaps a more scalable version of Ethereum's execution environment. Sei went live alongside an airdrop of its token in August.

Is ton the fastest blockchain? ›

📊​TON is officially the world's fastest blockchain On Octo | Glorypascal on Binance Square. On October 31, 2023, TON set a new world record by achieving an impressive peak of 104,715 transactions per second, completing a total of 107,652,545 transactions within 25 minutes during its first public performance test.

Which blockchain is most busy? ›

Identifying the top Blockchain networks

But it is equally true that the Ethereum blockchain is the most popular. How big is the Ethereum blockchain? It depends how you measure it. In 2021, the total number of transactions on Ethereum surpassed the number of Bitcoin transactions for the first time.

What is faster than blockchain? ›

DAG-based ledgers' remarkable consensus mechanism results in a faster transaction speed. Since DAGs' nodes are developed simultaneously, transaction speeds are almost always faster than blockchain transactions.

Is Sui faster than Solana? ›

SUI also utilizes parallel processing, which allows the system to achieve high throughput. Moreover, in real-world conditions, this coin is capable of processing around 120,000 transactions per second (TPS), which is nearly 2.5 times the capacity of Solana.

Top Articles
What is business viability? | ABS Institute
Rent Increase Request Form | Housing Authority of the County of Santa Cruz
Jordanbush Only Fans
123Movies Encanto
Thor Majestic 23A Floor Plan
Fat Hog Prices Today
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Regal Amc Near Me
Ross Dress For Less Hiring Near Me
Tyrunt
Green Bay Press Gazette Obituary
Big Y Digital Coupon App
Jasmine Put A Ring On It Age
Things To Do In Atlanta Tomorrow Night
Hijab Hookup Trendy
Craftology East Peoria Il
Haunted Mansion Showtimes Near Millstone 14
"Une héroïne" : les funérailles de Rebecca Cheptegei, athlète olympique immolée par son compagnon | TF1 INFO
Overton Funeral Home Waterloo Iowa
Paychex Pricing And Fees (2024 Guide)
360 Tabc Answers
Amazing deals for DKoldies on Goodshop!
Jet Ski Rental Conneaut Lake Pa
Espn Horse Racing Results
Between Friends Comic Strip Today
Football - 2024/2025 Women’s Super League: Preview, schedule and how to watch
Walmart Near South Lake Tahoe Ca
Rapv Springfield Ma
Devotion Showtimes Near Regency Buenaventura 6
480-467-2273
Star Wars Armada Wikia
Select The Best Reagents For The Reaction Below.
Mchoul Funeral Home Of Fishkill Inc. Services
Uno Fall 2023 Calendar
Ugly Daughter From Grown Ups
Missing 2023 Showtimes Near Grand Theatres - Bismarck
Fox And Friends Mega Morning Deals July 2022
Despacito Justin Bieber Lyrics
دانلود سریال خاندان اژدها دیجی موویز
Dmitri Wartranslated
Mychart Mercy Health Paducah
My Eschedule Greatpeople Me
56X40X25Cm
Matt Brickman Wikipedia
Mountainstar Mychart Login
Craigslist Chautauqua Ny
Egg Inc Wiki
Causeway Gomovies
28 Mm Zwart Spaanplaat Gemelamineerd (U999 ST9 Matte | RAL9005) Op Maat | Zagen Op Mm + ABS Kantenband
Latest Posts
Article information

Author: Ms. Lucile Johns

Last Updated:

Views: 6577

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Ms. Lucile Johns

Birthday: 1999-11-16

Address: Suite 237 56046 Walsh Coves, West Enid, VT 46557

Phone: +59115435987187

Job: Education Supervisor

Hobby: Genealogy, Stone skipping, Skydiving, Nordic skating, Couponing, Coloring, Gardening

Introduction: My name is Ms. Lucile Johns, I am a successful, friendly, friendly, homely, adventurous, handsome, delightful person who loves writing and wants to share my knowledge and understanding with you.