Skip to content

About

Independent Hyperliquid reconstruction research: verified binary evidence, pinned source references, and reproducible static analysis.

Resources

Contributing

Stars

62 stars

Watchers

0 watching

Forks

Repository files navigation

Hyperliquid Source

100% focused on node #115 — an independent, open-source Rust reconstruction.

Progress · Target · Source availability · Get started · Task queue

The goal is a source-built Linux node that runs in Docker, connects to the network, and synchronizes and validates chain state. This independent project already contains bounded Rust implementations and substantial binary research; an integrated, runnable node remains in progress.

Progress

Node #115 progress

241 active Rust implementation areas · 204 top-level Cargo manifests · 4627 #115 research work items.

These inventory counts describe available work, not completed components.

Completion percentages

Measure Completed / scope Percentage
Accepted full-scope gates 0/92 0.00%
Complete node components 0/23 0.00%
Components fully mapped 0/23 0.00%
Components fully built 0/23 0.00%
Components with full behavioral validation 0/23 0.00%
Components with full code/data identity 0/23 0.00%
Target .text bytes compared 5,318,174/83,719,936 6.35234%
Target .text bytes raw-equal 4,968,370/83,719,936 5.93451%

Gate percentages require acceptance of the full component scope. Byte percentages cover the authenticated comparison registry, including dependencies; they do not measure whole-node completion or remaining engineering effort.

Registered bounded Rust work occurs in 20/23 component work areas (103 implementation paths). These are fragment registrations, not completed components. Each fragment keeps its own #115 contract; an integrated node executable remains unaccepted.

Node #115 component acceptance

Node #115 reconstruction: 0.00% (0/92 accepted gates; 0/23 components complete).

Component Target Accepted gates Milestones Compared implementation bytes Registered implementation windows
Foundation utilities Node #115 0/4 0% 0 0
Serialization fork Node #115 0/4 0% 0 0
Storage and snapshots Node #115 0/4 0% 0 0
Network transport Node #115 0/4 0% 0 0
Consensus Node #115 0/4 0% 0 0
Node runtime and gossip Node #115 0/4 0% 0 0
Block execution and state Node #115 0/4 0% 0 0
Action wire and signing Node #115 0/4 0% 0 0
Action dispatch and handlers Node #115 0/4 0% 0 0
Exchange orchestration Node #115 0/4 0% 0 0
Order books and matching Node #115 0/4 0% 0 0
Clearinghouses and risk Node #115 0/4 0% 0 0
Assets and fixed-point quantities Node #115 0/4 0% 0 0
Fees and volume Node #115 0/4 0% 0 0
Vaults and subaccounts Node #115 0/4 0% 0 0
Bridge and withdrawals Node #115 0/4 0% 0 0
HyperEVM execution Node #115 0/4 0% 0 0
Staking and validator lifecycle Node #115 0/4 0% 0 0
DEX registry Node #115 0/4 0% 0 0
Remaining L1 state helpers Node #115 0/4 0% 0 0
Info API Node #115 0/4 0% 0 0
EVM JSON-RPC Node #115 0/4 0% 0 0
Global configuration Node #115 0/4 0% 0 0

Accepted gates: 0/92. Full-component byte and function denominators remain unmeasured. Zero registered implementation comparisons do not mean zero correct code.

Node #115 binary comparisons

Dependency windows count once in the target total and separately by source. Their equality does not establish first-party or whole-node completion.

Comparison Raw matching bytes / compared Raw-equal windows Raw + relocation-qualified windows
Node #115 total 4,968,370/5,318,174 (93.42%) 507/7,885 (6.43%) 7,885/7,885 (100.00%)
compiler-builtins 2,769/2,874 (96.35%) 5/13 (38.46%) 13/13 (100.00%)
native-libraries 4,721,227/5,058,182 (93.34%) 445/7,266 (6.12%) 7,266/7,266 (100.00%)
rust-alloc 759/838 (90.57%) 0/9 (0.00%) 9/9 (100.00%)
rust-core 37,344/39,873 (93.66%) 5/112 (4.46%) 112/112 (100.00%)
rust-std 57,583/60,556 (95.09%) 16/174 (9.20%) 174/174 (100.00%)
vendored-crates 146,270/153,433 (95.33%) 34/309 (11.00%) 309/309 (100.00%)
zstandard 2,418/2,418 (100.00%) 2/2 (100.00%) 2/2 (100.00%)

Compared code: 5,318,174/83,719,936 .text bytes (6.35234%).

All active findings bind to node #115. See detailed progress and source-built node acceptance.

The 2026-11-09 post-merge evidence review rechecks the merged-main snapshot: 6.35234% of target .text bytes compared, 5.93451% raw-equal, and 0.00% of full-scope gates accepted. The earlier review snapshots and unmatched results remain preserved.

Target: node #115

Node #115 is the only node implementation target, authenticated by SHA-256 a6e2897cd051213d004802deca416e8eca62b7a8278fa39f249e98c3867b5301. All active research, implementations, tests and PRs must advance this artifact. Unvalidated retired work has been removed from the active tree and is recoverable through Git history. Migration provenance records the retained shared helpers and the validated unsigned128 conversion and tagged-count migrations.

100% focus does not mean 100% completion. An integrated node, current-network compatibility and whole-ELF reproduction remain open acceptance requirements. The captured visor is an optional static-analysis smoke fixture, not a second node implementation project.

Public source and private changes

The upstream libraries are public. The exact node-specific versions and modifications are a separate question.

  • Reuse public code: Rust and its core library, compiler-builtins and Zstandard have public source and licenses. Match their exact revision, options and integration instead of reinventing them.
  • Recover private changes: the binaries contain paths for forks of bincode, Hyper/TLS and EVM-related dependencies. Those paths establish build inputs, not public availability of the exact fork source. Public upstream code alone does not establish the contents of those exact forks.
  • Reconstruct node logic: consensus, state execution, matching and other unavailable native-node code need independently authored implementations. New implementation must be independently authored or reused under an applicable source license; inferred unlicensed code cannot be copied.

That is why dependency byte matches are reported separately from component completion. They validate reused code and build provenance; they do not finish consensus or order matching. Public contracts and companion data tools have their own scope and are not extra native-node components to reconstruct.

Next delivery milestones

  1. Establish #115's exact dependency/fork inputs and validate every retained implementation against its actual #115 call, data and behavior contract.
  2. Join startup, transport, peer handshake, storage and block validation into an actual source-built node with offline replay.
  3. Validate the chosen current network, state synchronization, restart and APIs, then deliver a reproducible runtime Docker image.

Full-component acceptance, source/license closure and whole-ELF identity remain separate requirements. See the full release criteria and bounded task queue. The existing .devcontainer provides research tools; it is not the node runtime image.

Contribution and evidence requirements

Contribution focus

All PRs, submissions and agent work must focus on completing the reverse engineering of the node's code. Contributions should hillclimb completion through binary-backed findings, independently reconstructed Rust and validation against the target. Show the concrete gap closed or evidence gained, even when the result is partial and the component's acceptance gates remain unfinished.

Tooling, infrastructure, workflow and surrounding architecture changes are accepted only when an active reverse-engineering task is blocked. Document the blocker, make the smallest necessary fix, verify that the work can proceed, and return to reverse engineering. Window dressing, cosmetic cleanup and inconsequential PRs or submissions will be closed, as will supporting changes without a demonstrated blocker. See CONTRIBUTING.md for the acceptance policy and evidence requirements.

Get started

Prerequisites: Git, Git LFS, Python 3.10+, ripgrep, GnuPG, GNU binutils (objdump and readelf on PATH) and rustup. LLVM's llvm-objdump is useful for further disassembly. On macOS, where /usr/bin/objdump is LLVM:

brew install git-lfs ripgrep gnupg llvm binutils rustup
export PATH="$(brew --prefix binutils)/bin:$(brew --prefix llvm)/bin:$PATH"
git clone --recurse-submodules https://github.com/lalalune/hyperliquid-source.git
cd hyperliquid-source
./scripts/setup.sh
make verify
make test
make catalogue-check
make doctor
make index
make reproduce

Setup installs Rust 1.94.1 and 1.95.0 via rustup, initializes pinned submodules, and materializes Git LFS objects. It does not launch any captured executable. For an existing clone, make pull materializes pinned source and binary inputs. make fetch offers checksum-locked upstream recovery of missing artifact files; mutable publisher URLs may no longer serve the pinned release, so LFS is preferred.

Ghidra

The native analysis provider is Ghidra, accessed through pinned REA 6.8.0. With Ghidra and a compatible JDK installed:

make rea-doctor                 # verify provider, Java and target availability
make rea-native-smoke           # decompile the visor entrypoint; reduced analysis
python3 tools/rea.py target 115  # verify the implementation target and full SHA-256
python3 tools/ghidra_plan.py --release 115  # print a digest-specific import command

For the desktop UI, set GHIDRA_INSTALL_DIR to your installation and run "$GHIDRA_INSTALL_DIR/ghidraRun". Keep projects under ignored work/ghidra/. The smoke check performs static analysis; it does not run the captured binary or establish full-node analysis or reconstruction completion. See REA setup and analysis profiles and the scope and acceptance requirements.

Layout

  • artifacts/: node #115, an optional visor analysis fixture, signatures and public key; binaries use Git LFS.
  • upstream/: pinned official node tooling, contracts, block importer, EVM sync, order-book server and historical-data repositories.
  • tools/legacy/: the preserved inventory parser required by reproducibility checks.
  • tools/artifacts.py: integrity, download and isolated GPG verification.
  • research/imported/: authenticated #115 and optional visor inventories and #115 dependency strings.
  • research/upstream-docs/: collected documentation and repository inventories.
  • provenance/: imported file hashes, artifact identities and source commit pins.
  • src/: independently authored, bounded Rust reconstructions; no integrated node executable yet.
  • research/catalogue/: generated #115 component map and byte-comparison records.
  • research/progress.json: reviewed acceptance gates; make catalogue regenerates tables.
  • work/: ignored output from local analysis, unwind indices and Ghidra projects.

See research status, toolchains, reproducibility and third-party notices. REA is pinned locally: see REA setup for make rea-install, make rea-doctor, make rea-smoke and the existing Codex connection.

New project work is MIT licensed; imported materials retain their original terms.

About

Independent Hyperliquid reconstruction research: verified binary evidence, pinned source references, and reproducible static analysis.

Resources

Contributing

Stars

62 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages