Technical Analysis of Hyperliquid Architecture: Interpretation of Cross-Chain Bridges and HyperEVM Dual-Chain Design

robot
Abstract generation in progress

A Deep Dive into the Architecture and Potential Issues of Hyperliquid from a Technical Perspective

Hyperliquid, as one of the representatives of on-chain order book exchanges, has surpassed a TVL of 2 billion USD and is referred to as the "on-chain Binance." This article will delve into the architectural principles of Hyperliquid from the perspectives of technical construction and security.

Hyperliquid Cross-Chain Bridge Analysis

Hyperliquid has deployed a cross-chain bridge contract on Arbitrum to store users' USDC assets. The bridge contract includes four groups of validators:

  • hotValidatorSet: handles high-frequency operations such as withdrawals
  • coldValidatorSet: Modify system configuration to invalidate withdrawal requests
  • lockers: can pause the bridge contract operation
  • finalizers: Confirm cross-chain bridge status changes

The hype is receding, a technical interpretation of Hyperliquid's bridge contract, HyperEVM, and its potential issues

Deposit Process

The Bridge Contract uses the Permit method of EIP-2612 to handle deposits, supporting batch operations. The deposit logic is simple and has lower security risks.

The tide of speculation recedes, interpreting Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

Withdrawal Process

Withdrawal requests must meet the following conditions:

  1. Collect 2/3 of the voting weight from hotValidatorSet.
  2. After a 200-second dispute period
  3. Finally confirmed by members of finalizers

During the dispute period, lockers can suspend the bridge contract, and coldValidatorSet can invalidate withdrawals.

The hype is fading, a technical analysis of Hyperliquid's bridge contract, HyperEVM, and its potential issues

Bridge Contract Locking Mechanism

A total of 2 lockers' votes are required to lock the bridge contract. Unlocking requires 2/3 signature weight from the coldValidatorSet, and it can also update the validator set.

The hype is fading, analyzing Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

Validator Set Update

Updating the hotValidatorSet and coldValidatorSet requires signatures from all members of the hotValidatorSet, and will be confirmed by the finalizers after a 200-second dispute period.

The hype is waning, an analysis of Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

potential risks

  1. Once the coldValidatorSet is compromised, it can bypass security mechanisms to steal assets.
  2. Finalizers may refuse to confirm withdrawal transactions.
  3. Lockers may maliciously lock bridge contracts.

The tide of speculation recedes, analyzing the bridge contract, HyperEVM, and its potential issues of Hyperliquid from a technical perspective

HyperEVM and Dual-Chain Interaction Architecture

Hyperliquid adopts a dual-chain architecture:

  • Hyperliquid L1: Dedicated order book system, permission-based
  • HyperEVM: EVM-compatible chain, permissionless

The two chains interact through Precompiles and Events:

  • Precompiles: Allow HyperEVM to read L1 state
  • Events: Allow HyperEVM to write data to L1

The hype is fading, an analysis of Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

HyperBFT Consensus

Hyperliquid developed the HyperBFT consensus algorithm based on HotStuff, with a theoretical processing capacity of up to 2 million orders per second.

The hype is fading, analyzing Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

Developer Notes

  1. msg.sender may be the address of a system contract.
  2. EVM and L1 interaction is non-atomic, failure cases need to be handled.
  3. The EVM contract address needs to create a mapped account on L1.
  4. Cross-chain assets may be temporarily invisible and need to be handled properly.

The hype has receded, a technical interpretation of Hyperliquid's bridge contract, HyperEVM, and its potential issues

Overall, HyperEVM is similar to an L1 layer two architecture but offers higher interoperability. Developers need to pay attention to the technical details brought by its unique dual-chain structure.

The hype has receded, analyzing Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

The hype is receding, an analysis of Hyperliquid's bridge contract, HyperEVM, and its potential issues from a technical perspective

View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • 7
  • Share
Comment
0/400
StopLossMastervip
· 07-13 23:58
Is it safe to use such a complex dual chain?
View OriginalReply0
DegenMcsleeplessvip
· 07-11 22:04
If you don't understand, just ask. The two chains and one bridge have become so common.
View OriginalReply0
StakeTillRetirevip
· 07-11 06:11
The architecture is so complex, who dares to engage?
View OriginalReply0
GasFeeCriervip
· 07-11 06:11
The risks are so high, yet you're still doing cross-chain?
View OriginalReply0
gas_fee_therapistvip
· 07-11 06:07
This technical solution is unreliable, I want to run away after seeing it.
View OriginalReply0
GasGrillMastervip
· 07-11 06:03
I've run both on-chain and cross-chain, the security emmm...
View OriginalReply0
BakedCatFanboyvip
· 07-11 05:57
With so much technology, how can one learn it all?
View OriginalReply0
Trade Crypto Anywhere Anytime
qrCode
Scan to download Gate app
Community
English
  • 简体中文
  • English
  • Tiếng Việt
  • 繁體中文
  • Español
  • Русский
  • Français (Afrique)
  • Português (Portugal)
  • Bahasa Indonesia
  • 日本語
  • بالعربية
  • Українська
  • Português (Brasil)