FABRKNT
すべてのコース
コース · 自作 Perp
エキスパート660 分1270 XP

Step 1. Consensus — cargo init から single-validator devnet 構築

Hyperliquid シェイプの L1 コンセンサス層をスクラッチで構築する。プロダクションクオリティの Reth (EVM) と Malachite (BFT) を単一の Rust workspace へ統合し、end-to-end でのブロック生成機構を実装。リファレンス実装(psyto/openhl)をベースに手を動かしながら学ぶ、「DIY Perp シリーズ」の記念すべきファーストステップである。

ソースが第一のテキスト

このコースの進め方

このコースは記事の寄せ集めではなく、手を動かして進める実践型です。レッスンは順に積み上がる構成なので前から進めれば、ソースで得た理解がそのまま実際のコードに活きます。

コースを始める →16 レッスン · ネイティブプレイヤー
難易度
エキスパート
学習量
660 分
報酬
1270 XP
Orientation
  1. 01レッスン0 — OpenHL を自作する(cargo init → single-validator devnet)20 分 · 60 XP
Foundations
  1. 01レッスン1 — Workspace + Reth + Malachite45 分 · 80 XP
Contract types
  1. 01レッスン2 — openhl-types の共通 contract type30 分 · 60 XP
  2. 02レッスン3 — ConsensusBridge trait30 分 · 60 XP
EL test double
  1. 01レッスン4 — InMemoryEvmBridge — trait の最初の impl40 分 · 70 XP
  2. 02レッスン5 — real alloy 型を使う RethEvmBridge40 分 · 70 XP
CL types
  1. 01レッスン6 — OpenHlContext と Malachite の 10 sub-type50 分 · 90 XP
  2. 02レッスン7 — OpenHlSigningProvider と canonical encoding40 分 · 80 XP
  3. 03レッスン8 — OpenHlCodec — エンジンが要求する codec スロット35 分 · 70 XP
  4. 04レッスン9 — OpenHlNode と初の start_engine 呼び出し55 分 · 100 XP
Engine integration
  1. 01レッスン10 — run_engine_app と actor pipeline 経由の最初のブロック55 分 · 100 XP
Live Reth
  1. 01レッスン11 — workspace で live Reth EthereumNode を boot する40 分 · 80 XP
  2. 02レッスン12 — LiveRethEvmBridge が real chain から parent を読む50 分 · 100 XP
  3. 03レッスン13 — validate_payload が Reth の EthBeaconConsensus を走らせる55 分 · 100 XP
  4. 04レッスン14 — commit が Reth の Engine API forkchoice を駆動する50 分 · 90 XP
Capstone
  1. 01レッスン15 — 作ったもの、まだ stub のもの、次に行く先25 分 · 60 XP