What Is HyperBFT and How Does It Work?

What Is HyperBFT and How Does It Work?

What Is HyperBFT?

HyperBFT is Hyperliquid’s in-house consensus protocol. It decides how validators agree on the order in which valid transactions and orders get processed, and which blocks are finalized and added to the blockchain.

That’s especially important for Hyperliquid, because the platform runs a fully on-chain order book. It’s not just executed transactions that get written to the blockchain, but also placing and canceling orders, liquidations, and other changes in the trading environment. All of these actions need to be processed in the right order and confirmed by the network.

HyperBFT makes sure a single validator can’t decide on its own what happens on the blockchain. Validators check proposed blocks and reach agreement together before new info gets permanently added. This lets the network keep working correctly even if a limited part of the voting weight goes offline, makes mistakes, or spreads bad info, as long as a quorum of more than two-thirds of the total stake keeps participating honestly.

The protocol is based on the principles of Byzantine Fault Tolerance. That means the network is built to stay reliable even when not every validator behaves correctly. HyperBFT is also heavily inspired by HotStuff, a BFT protocol that uses rotating leaders, voting rounds, and proofs that enough validators support a proposal.

Hyperliquid adapted these ideas and optimized them for what a trading platform needs. With on-chain trading, orders need to be processed fast, while all validators still have to agree on the order and the outcome. So HyperBFT focuses on low delay, fast finality, and handling large amounts of trading activity.

That makes HyperBFT the consensus layer of Hyperliquid. It ensures that HyperCore, where the order book and trading markets run, and other parts of the network can rely on the same shared and finalized state of the blockchain.


Key Takeaways

  • HyperBFT is Hyperliquid’s in-house consensus protocol.
  • It’s based on Byzantine Fault Tolerance and inspired by HotStuff.
  • HyperBFT makes sure validators reach enough agreement on the order of transactions and the contents of new blocks.
  • The protocol is optimized for low latency and high throughput.
  • Thanks to HyperBFT, Hyperliquid can offer a fully on-chain order book with fast finality.

How Does HyperBFT Work?

HyperBFT is the consensus layer of Hyperliquid’s blockchain. Every time a user places or cancels an order, or executes a transaction, validators have to agree on the network’s new state. Only after that does it get permanently added to the blockchain.

To do this, Hyperliquid uses a Proof-of-Stake network with an active set of 24 validators. Anyone can run a node, but only the 24 validators with the most delegated stake are part of the active validator set. They produce blocks and take part in HyperBFT consensus.

For example, when a user places a limit order, it gets sent to the Hyperliquid network. A validator that’s allowed to propose a block in that consensus round can include the order in the new block. The other active validators check the proposal and then vote on it.

HyperBFT doesn’t rely on just one validator. A block only becomes final when more than two-thirds of the total staked voting weight supports the same proposal. This prevents a small group of broken or malicious validators from deciding on their own which transactions or orders get processed.

Once enough validators reach agreement, the block becomes final right away. The blockchain’s state is then updated, so all users see the same order book, the same transactions, and the same trading history. This one-block finality is one of the reasons Hyperliquid can process orders almost instantly.

Example:

Say you place a limit order on the Hyperliquid network to buy 1 HYPE.

The order is sent to the Hyperliquid network and can then be included in a proposed block. Once a quorum of more than two-thirds of the total stake supports the block, the block becomes final and the order book is updated.

This way, every participant is working off the same finalized state of the order book. So users don’t each end up seeing a different version of open orders and executed transactions.

How Is HyperBFT Different From Other BFT Protocols?

HyperBFT isn’t a completely new consensus protocol. According to Hyperliquid, it’s a variant of HotStuff that’s been further optimized for the specific needs of the Hyperliquid network.

HotStuff is a modern Byzantine Fault Tolerance protocol (BFT). BFT means a network can keep reaching agreement even when part of the validators go offline, make mistakes, or spread incorrect information. The goal is for honest validators to keep following the same transaction order and not finalize two conflicting versions of the blockchain.

HotStuff uses a temporary leader who proposes a block, and then the other validators vote on it. Once enough validators support the same proposal, there’s proof of broad agreement and the block can eventually be finalized. The protocol mainly improved older BFT protocols by organizing communication more efficiently. HotStuff mainly improved older BFT protocols by organizing communication and replacing a faulty leader more efficiently. The protocol has linear communication complexity and is optimistically responsive. That means if the leader is reliable, once the network is stable enough, it can reach consensus based on actual network delay instead of always having to wait for a pre-set maximum timeout.

Hyperliquid used these ideas as the foundation for HyperBFT. The exact technical changes aren’t fully described publicly, but Hyperliquid confirms that both the consensus algorithm and the network layer have been optimized for the lowest possible end-to-end latency. That’s the time between sending an order and receiving confirmation that it’s been finalized.

That optimization matters because HyperBFT doesn’t just order normal transactions. The protocol also has to process orders, cancellations, trades, and liquidations quickly and in one fixed order for Hyperliquid’s fully on-chain order book.According to Hyperliquid, the median end-to-end latency for a client located geographically close to a validator is about 0.2 seconds. Under these conditions, the 99th percentile latency is about 0.9 seconds. According to the official documentation, HyperCore currently supports around 200,000 orders per second. Right now, the execution layer is the bottleneck, not the consensus protocol or the network layer.

So the biggest difference is that HotStuff is a general BFT protocol that can serve as a base for different distributed systems. HyperBFT is a customized variant built specifically for the Hyperliquid Layer 1, with extra focus on low latency, high throughput, and quickly updating a fully on-chain order book.

Why Is HyperBFT So Fast?

HyperBFT was designed from the ground up for high-speed trading apps.

According to Hyperliquid, both the consensus algorithm and the underlying network layer are optimized to make the time between sending an order and final processing as small as possible. This is also called end-to-end latency.

For users who are geographically close to a validator, the median end-to-end latency is about 0.2 seconds. On top of that, HyperCore currently supports about 200,000 orders per second. According to Hyperliquid, the consensus protocol itself is designed to eventually support much higher numbers once the execution layer is optimized further.

These performance levels make it possible to build a trading platform that’s similar in speed to centralized exchanges, while keeping the order book fully on-chain.

What Role Does HyperBFT Play Within Hyperliquid?

HyperBFT secures the entire Hyperliquid Layer 1.

The consensus protocol makes sure HyperCore and HyperEVM use the same shared blockchain. HyperCore handles things like the order book, perpetual futures, and spot markets, while HyperEVM supports smart contracts that are compatible with Ethereum. Both parts rely on the same consensus layer.

Every order, cancellation, trade, and liquidation is ultimately confirmed by HyperBFT before it becomes a final part of the blockchain.

What Are the Advantages of HyperBFT?

HyperBFT offers several advantages for Hyperliquid:

  • Low latency: According to Hyperliquid, the median end-to-end latency for a client that’s geographically close to a validator is about 0.2 seconds. This lets orders be placed, changed, and processed quickly. Actual latency can be higher depending on location and network conditions.
  • Fast, final processing: Once a block is confirmed via HyperBFT, it’s final immediately. So users don’t have to wait for multiple new blocks before an order or transaction is considered completed.
  • One shared on-chain order book: Orders, cancellations, trades, and liquidations are processed through the same blockchain. That means all participants use the same finalized version of the order book, and trading activity can be checked transparently.
  • Protection through staked HYPE: Validators must stake HYPE to take part in consensus. This gives them a financial incentive to do their job correctly. Validators who break the rules may face financial consequences depending on the protocol rules.
  • High throughput: HyperBFT and the network layer are tuned to process large amounts of trading activity. This lets Hyperliquid handle lots of orders without using an off-chain order book.
  • Built specifically for on-chain trading: HyperBFT is designed for processes that need to happen fast and in the right order on a trading platform, like placing and canceling orders, executing trades, and processing liquidations.

What Are the Disadvantages of HyperBFT?

HyperBFT also comes with a few limitations:

  • Limited public technical documentation: Hyperliquid explains the main parts of HyperBFT, but doesn’t fully publish all internal voting phases and optimizations in detail. This makes it harder for external developers and researchers to independently verify exactly how the protocol works.
  • Depends on an honest majority of stake: HyperBFT stays secure as long as enough staked voting weight behaves honestly. If a small number of parties control a large share of the stake together, they gain a lot of influence over consensus and block production.
  • The network can temporarily stall: If not enough validators actively participate or reach agreement, the required quorum can’t be formed. New blocks and changes to the order book may then not be finalized for a while.
  • A relatively small active validator set: A smaller group of active validators enables fast communication and low latency, but it also means consensus is spread across fewer parties. This can make the network more sensitive to concentrated voting weight or coordinated downtime.
  • Heavily tailored to Hyperliquid: HyperBFT is specifically optimized for Hyperliquid’s architecture and trading activity. Because of that, it’s less broadly tested as a general consensus protocol for other kinds of blockchains and apps.

Final thoughts

HyperBFT is the technical foundation of the Hyperliquid blockchain. The consensus protocol makes sure a quorum of validators agrees on the order of transactions, orders, and blocks. This helps the network maintain one consistent version of the blockchain and the order book.

Unlike general BFT protocols, HyperBFT was built specifically for the needs of a fully on-chain trading platform. By combining Byzantine Fault Tolerance principles with a HotStuff-inspired architecture and an optimized network layer, Hyperliquid can offer very low latency, high throughput, and fast finality.

That makes HyperBFT an important part of the tech behind Hyperliquid, and it enables the fast, transparent, fully on-chain trading experience the platform is known for.

About Finst

Finst is a leading cryptocurrency platform in the Netherlands, providing ultra-low trading fees, institutional-grade security, and a comprehensive suite of crypto services such as trading, custody, staking, and fiat on/off-ramp. Finst, founded by DEGIRO's ex-core team, is authorized as a crypto-asset service provider under MiCAR by the Dutch Authority for Financial Markets (AFM) and serves both retail and institutional clients in 30 European countries.

The crypto platform for all investors

Whether you're an active trader or long-term investor, Finst enables you to grow your crypto wealth with confidence and peace of mind.

Sign up