---
title: "hyperscale-rs protocol reference"
url: "https://radix.wiki/contents/tech/research/hyperscale-rs-reference"
updated: 2026-11-29
license: CC-BY-4.0
license_url: "https://creativecommons.org/licenses/by/4.0/"
version: "1.0.0"
---

# hyperscale-rs protocol reference

|  |  |
| --- | --- |
| **hyperscale-rs protocol reference** |  |
| Main article | [hyperscale-rs](/contents/tech/research/hyperscale-rs) |
| Covers | State tree · committees · virtual nodes · fees and emission · substate sweep · formal verification · performance · disk use · signature schemes · crate structure |
| Sources | [design documents](https://github.com/hyperscalers/hyperscale-rs/tree/main/docs), [formal models](https://github.com/hyperscalers/hyperscale-rs/tree/main/specs), the project's [Telegram channel](https://t.me/hyperscale_rs) |

## What does this page cover?

This page holds the technical detail behind [hyperscale-rs](/contents/tech/research/hyperscale-rs), the community-built Rust implementation of the Hyperscale consensus protocol and the candidate codebase for [Xi'an](/contents/tech/releases/radix-mainnet-xian). The main article explains what the project is, who builds it and how its consensus works; the sections below are for readers who want the mechanisms and measurements underneath.

## State and committees

### One State Tree

All state sits in one versioned [binary Jellyfish Merkle Tree](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/03-state-and-sync.md), a hash tree over a 256-bit keyspace whose root commits to every value in it, hashed with [Blake3](https://github.com/BLAKE3-team/BLAKE3). A shard is a prefix subtree. Engine-internal objects such as [vaults](/contents/tech/core-concepts/buckets-proofs-and-vaults) are keyed under their owning account's prefix, so an account's assets stay on one shard and resharding is a tree operation. Which shard holds a key follows from the beacon's record of splits. The lead developer [calls "pre-sharded" state an incoherent idea](https://t.me/hyperscale_rs/10358); the open question, in his account, is knowing in advance which keys a transaction will touch.

### Fault Model and Committees

The [security analysis](https://github.com/hyperscalers/hyperscale-rs/blob/main/specs/committee_security.md) prices committees of 128 seats. Voting is **one seat, one vote**: stake decides who may hold a seat, never how much a vote weighs. The [threat model](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/05-byzantine-safety.md) states what [sharding](/contents/tech/core-concepts/sharding) costs: a single chain is safe below a third of corrupt stake, whereas a sharded network's safety falls smoothly as corruption in the validator pool rises, because an adversary needs only the worst-drawn committee. The goal is security competitive with an unsharded chain, "not safer than one". At 128 seats the pool must stay under about 13% corrupt seats for the analysis to guarantee safety.

Within a committee, agreement is unconditional below f+1 corrupt seats; from f+1 to 2f a fork becomes possible, but only through double-signatures that prove themselves; at 2f+1 the committee has unilateral control, and the documentation states there is no recovery.

### Design Documentation

In early July 2026 the project published a [design-documentation set](https://github.com/hyperscalers/hyperscale-rs/tree/main/docs) of nine documents, mirrored on [hyperscale.rs](https://hyperscale.rs), from consensus layers to [resource](/contents/tech/core-concepts/resources) economics and determinism. It ends with an [invariant register](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/08-invariants.md) of 75 safety and liveness properties, which the models in the [`specs/` tree](https://github.com/hyperscalers/hyperscale-rs/tree/main/specs) check (see _Formal Verification_).

## Virtual nodes and contended state

### Virtual Nodes

An operator can run several validators as **virtual nodes** (vnodes) in one process, and those shuffled into the same shard share execution, storage and networking. The lead developer runs eight on one 16-core machine.

### Batch Sequencing on Contended State

State locks would throttle a hot spot such as a popular DEX pool to under one transaction per second. **Fine-grained per-substate locking** reads a manifest and the [blueprint](/contents/tech/core-concepts/blueprints-and-packages) metadata of the [components](/contents/tech/core-concepts/components) it calls to find the substates it touches, so transactions on different parts of one component run concurrently. For indivisible state such as a pool's price, **hot-state flagging** lets one shard sequence whole batches under a single lock once the beacon agrees the flag, at the cost of more load on that shard, a window for [maximal extractable value](https://ethereum.org/en/developers/docs/mev/) within each batch, and a wait for the next epoch of about five minutes. Both were designed for a mempool that settled conflicts before execution, a premise removed in August 2026 (see [contention on the main article](/contents/tech/research/hyperscale-rs#contention)).

## Fees, Emission and the Work Budget

A sharded network has to decide who is paid when several shards do the work of one transaction. [docs/06-resource-economics.md](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/06-resource-economics.md) answers it in sections added in August 2026 on [where fees burn](https://github.com/hyperscalers/hyperscale-rs/commit/f00d565e) and [bounding the drain](https://github.com/hyperscalers/hyperscale-rs/commit/d09ea58d).

### Fees burn where they are signed

No shard is paid. A fee is a claim against the payer named in the signed envelope, on that payer's shard, and nowhere else. The signed fee ceiling is a block-validity condition: a block is invalid if it commits a transaction whose payer cannot cover its ceiling, counting every ceiling the block and its uncommitted ancestors already engage. The reservation moves nothing and resolves once at finalization, inside the settling receipt, burning the attested cost on success or a class floor on abort. No shard's revenue then depends on another shard's honesty, though a counterpart shard does real work for a fee it never receives.

### The emission divides by measurement

The fixed per-epoch emission pays for that work. Each shard's blocks carry two running totals every verifier recomputes, attested work and stored bytes, and the epoch fold divides the issuance into a participation floor per ready validator plus each shard's share of the epoch's work and storage. The floor exists because weighting on work alone would pay an idle shard nothing and leave a new shard unfundable.

### The work budget

Fees do not bound what a shard commits to doing. It commits work when it proposes and discharges it at settlement several blocks later; the work in between is the **drain**, bounded by the `MAX_DRAIN_WORK` figure the [contention rewrite](https://github.com/hyperscalers/hyperscale-rs/pull/142) put on the block header. A transaction's work is derived at admission, never taken from the wire: a fixed admit-and-track charge, its declared footprint, and its signed execution ceiling. The fixed charge prices zero-gas envelopes, which still cost a receipt and mempool tracking, and declared gas has its own ceiling, so one envelope cannot reserve a shard's whole allowance.

The header carries the running total, so a validator checks it without reading history. A block that adds transactions to an over-budget drain is invalid, while a block with none stays valid, so the blocks carrying releasing certificates are never refused. The budget replaced a per-block transaction count that priced a publish and a transfer alike. The economic invariants are [INV-ECON-1 to INV-ECON-6](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/08-invariants.md).

## Retiring State: the Substate Sweep

The substate sweep deletes kernel state that is owed only for a bounded time, such as a subintent nullifier, the replay protection for a subintent, once no chain can still need it. The [automated digest](https://t.me/hyperscale_digest_bot) called it [the network's first real garbage collection](https://telegram-mcp-phi.vercel.app/2026-09-06); [asked](https://t.me/hyperscale_rs/12119) what that meant, the lead developer [said](https://t.me/hyperscale_rs/12120) it reclaims storage, not memory, which Rust needs no collector for.

### Why a sweep is a consensus operation

Under [docs/03-state-and-sync.md](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/03-state-and-sync.md), nothing retires a committed cell on a schedule, so without a sweep, time-bounded state is permanent. Removing a cell moves the state root, so every validator must reproduce each removal exactly. Three rules follow:

- **The cell carries its own expiry** in its value and its key, so no side index is needed.
- **The block states a frontier, not a list.** Sweepable cells sort by expiry bucket, so a block removes the cells between its parent's frontier and its own, capped per block, with a cursor marking where it stopped.
- **Advancing is mandatory.** A removal earns no fee and costs block space, so honest proposers would converge on omitting it; a block that could sweep and did not is refused.

The properties are [INV-SWEEP-1 to INV-SWEEP-9](https://github.com/hyperscalers/hyperscale-rs/commit/f6183b15) in [docs/08-invariants.md](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/08-invariants.md): a block's removals depend only on its frontier pair and committed state; a sweep removes no cell an admissible transaction could still read; sweep work per block is bounded, so a backlog drains across blocks; and the cursor never moves back across a reshape.

The work landed on 31 August and 1 September 2026 and closed with [a Quint model](https://github.com/hyperscalers/hyperscale-rs/commit/82bf799c), `specs/substate_sweep.qnt` (Model K), checked with the twins described under Formal Verification. The same week, intents gained [a signed header naming their network](https://github.com/hyperscalers/hyperscale-rs/commit/17d5dbb7), and a transaction's [validity window narrowed to the intersection of every intent it binds](https://github.com/hyperscalers/hyperscale-rs/commit/c88e690b), closing cross-network replay. Integrating the sweep into shard execution comes next.

## Formal Verification

Deterministic simulation testing cannot speak for paths it never walked, so since **3 July 2026** the project has also kept machine-checked models of its protocols. The repository's [specs/ directory](https://github.com/hyperscalers/hyperscale-rs/tree/main/specs) holds ten models written in [Quint](https://quint.sh/), a specification language in the TLA+ family, and checked with [Apalache](https://apalache-mc.org/), a symbolic model checker that searches every behaviour the rules permit up to a fixed number of steps. Each model checks properties named in the [invariant register](https://github.com/hyperscalers/hyperscale-rs/blob/main/docs/08-invariants.md).

All ten pass, per [specs/README.md](https://github.com/hyperscalers/hyperscale-rs/blob/main/specs/README.md), read 24 August 2026:

| Model | What it checks | Depth bound |
| --- | --- | --- |
| **A** `wt_clock` | The weighted-time clock: vote clamp, quorum mean, epoch resolution | – |
| **B** `shard_consensus` | Shard consensus: safe-vote rule, commit, crash recovery | 8 |
| **C** `atomic_commitment` | Cross-shard commitment: one abort aborts all, success needs every shard | 10 |
| **D** `straddler_settlement` | Settlement across a shard that terminates mid-transaction | – |
| **E** `beacon_spc` | Beacon consensus: Prefix Consensus values, epoch ratification, views | 5–10 |
| **F** `reshape_lifecycle` | The beacon's reshape: trigger, cohort draw, seating gate, shuffle | – |
| **G** `shard_recovery` | Recovery after the Byzantine premise has failed: halt detection, cross-shard freeze | – |
| **H** `witness_fold` | The governance-leaf accumulator and the epoch randomness it carries | – |
| **I** `reshape_handoff` | The seam between a terminating chain and its successor committees | 4–13 |
| **J** `vm_fee_assurance` | Cross-shard fees: the payer's reservation and the validity-window abort | 12 |

A statistical companion, [SEC-1](https://github.com/hyperscalers/hyperscale-rs/blob/main/specs/committee_security.md), uses concentration bounds and Markov analysis to price the premise every model assumes: that fewer than one third of any committee is Byzantine.

### What the models have found

Modelling the beacon against [Prefix Consensus for Censorship Resistant BFT](https://arxiv.org/abs/2602.02892) (Xiang, Tonkikh and Spiegelman, February 2026), the algorithm it implements, showed the implementation resolving a value's parent differently from the paper in one corner case. The deterministic simulator replayed the model's counterexample as a failing test, and the fix landed with a permanent regression scenario.

Model G's finding G-1, in which a committee past the one-third bound skews the weighted timestamp until a replica admits an orphan commit past a halted shard's tip, led to a beacon-mandated freeze, now modelled and implemented, that revokes a halted committee's cross-shard authority at detection. The project records the band between f+1 and 2f corrupt members as "a bounded-exposure regime, not a clean recovery".

### Limits

The project states them in the explainer [hyperscale.rs/proof](https://hyperscale.rs/proof), [posted to the project channel on 24 August 2026](https://t.me/hyperscale_rs/10838). The register is a to-do list worked through in the open, not a completed proof. A model is not the code, so every counterexample is replayed against the consensus core, which is written as pure transition functions. Checking covers small committees and short horizons, ten steps by default; specs/README.md says bounded checking is not proof and names inductive invariants as the next step. None of this is an external review.

## Performance

### Consensus simulation

A [300-node run on the deterministic simulation harness, reported on 13 April 2026](https://t.me/hyperscale_rs), completed 23,950 of 30,000 submitted transactions within a 30-second window, at an average 798 TPS and a peak of 1,147, with median latency of 6.4 seconds, 7.8 seconds at p99, and no lock contention.

The per-shard target is roughly 1,000 TPS at 5-second finality. The lead developer calls this a deliberate trade: rather than chase sub-second finality, which atomic commit bounds, the project targets hardware a home user on consumer fibre can run, for what he estimates at a few dollars a month. 10,000 TPS per shard is configurable but would need machines beyond that profile.

### Execution against the Radix Engine

On 19 August 2026 the lead developer published the first execution benchmark for the [purpose-built VM](https://github.com/hyperscalers/hyperscale-vm) that replaces the [Radix Engine](/contents/tech/core-protocols/radix-engine), in [hyperscalers/vm-comparison](https://github.com/hyperscalers/vm-comparison). It times plain token transfers on one core, from received transaction to committed store, with both engines pinned by git revision, signing done outside the timed loop as a wallet would, and a distinct sender per transfer. The figures are from [the rerun of 11 September 2026](https://github.com/hyperscalers/vm-comparison/commit/14900e61), which moved both engines to their latest versions, on an Apple M4 Max: 1,000 transfers, best of three rounds.

|  |  |  |  |
| --- | --- | --- | --- |
| **Stage** | **hyperscale (&micro;s/tx)** | **Radix Engine (&micro;s/tx)** | **Ratio** |
| validate | 10.54 | 2.77 | 0.3× |
| execute | 17.34 | 770.88 | 44.5× |
| commit | 2.07 | 2.55 | 1.2× |
| **total** | **29.95** | **776.21** | **25.9×** |
| **transfers/second** | **33,386** | **1,288** | **25.9×** |

Hyperscale is slower at validate, where it pays for admission and shard routing that Babylon has no counterpart for. The Radix Engine figure agrees with the engine's own `--bench transfer` benchmark. The harness lists architectural differences that cut both ways: the Radix Engine's account is native Rust and touches no wasm, while hyperscale calls its account component through wasmtime twice per transfer; a Babylon transaction must `lock_fee`, while the hyperscale transfer measured here performs no fee operation. A Scrypto-blueprint transfer, which would compare the two wasm engines directly, has not been built.

The README's four-core figure of up to about 134,000 transfers a second is what perfect scaling would give, not a prediction: the parallel executor spawns a thread per conflict group, shared-memory effects are unpriced, and one contended AMM cell serialises completely. Babylon's figure stays flat by design. Its committer executes one transaction at a time because a manifest's `references` grant visibility rather than declare an access set, so before execution there is no conflict set for a scheduler to group on.

### Why more throughput means more shards

[Asked](https://t.me/hyperscale_rs/10741) on 20 August 2026 whether the VM should use a hardware-shaped register instruction set as [Solana](/contents/tech/comparisons/radix-vs-solana) does, the lead developer [replied](https://t.me/hyperscale_rs/10745) that per-shard throughput "will pretty much always be bandwidth" bound, and that adding shards beats marginal compute gains "which might have to come at the cost of expressiveness". At 30 &micro;s a transfer, execution sits far inside the 1,000 TPS per-shard target, so the benchmark is a margin rather than a goal, and throughput grows with shard count.

## Disk Use and History

On 9 October 2026 the lead developer published [ballpark disk-use figures](https://t.me/hyperscale_rs/13405) for a validator at production settings. A node keeps its shard's current state and about three hours of history, and prunes the rest, which is safe because [shard blocks are checkpointed into the beacon chain](https://t.me/hyperscale_rs/13411).

| Per shard | Size | Basis |
| --- | --- | --- |
| Current state | ~355 bytes per account, ~35 GB per 100m accounts | Measured; mostly the Merkle tree |
| 3 hours of blocks, transactions and receipts | ~1 GB at 100 TPS, ~10 GB at 1,000 TPS | Estimate |
| Rolling snapshots for syncing validators | A few GB, possibly tens | Least certain |

A busy shard would hold steady at 60–100 GB. State grows with accounts until a shard splits; storage bonding, a charge for ongoing use of state, is still to be built. The beacon chain keeps everything, at 15–130 MB a day, the one unbounded item. [Validators need only current state](https://t.me/hyperscale_rs/13426), so full history would sit with [gateway operators](https://t.me/hyperscale_rs/13430) in archive nodes he [expects 2–3 entities to run](https://t.me/hyperscale_rs/13412), a design not yet started. All of this is design, not shipped behaviour.

## Post-Quantum Signatures

The [Xi'an RFC](https://radixtalk.com/t/rfc-xian-delivering-hyperscale-for-radix/2280) schedules post-quantum cryptography for Milestone 5, but the first post-quantum scheme landed on **16 August 2026**, when the execution layer [registered ML-DSA-65 in its signature scheme registry](https://github.com/hyperscalers/hyperscale-vm/commit/4e5dea0bf4547594c9931bbf15a7d0766b714878). [ML-DSA-65](https://csrc.nist.gov/pubs/fips/204/final) is a parameter set of FIPS 204, NIST's lattice signature standard of August 2024. In [`crates/types/src/scheme.rs`](https://github.com/hyperscalers/hyperscale-vm/blob/main/crates/types/src/scheme.rs) it takes scheme id `3`, after Ed25519 (`1`) and secp256k1 (`2`). The registry records sizes and verification cost, in Ed25519 verifications:

|  |  |  |  |
| --- | --- | --- | --- |
| **Scheme** | **Public key** | **Signature** | **Verification cost** |
| Ed25519 (RFC 8032) | 32 bytes | 64 bytes | 1 |
| ECDSA secp256k1 ([Olympia](/contents/tech/releases/radix-mainnet-olympia)) | 33 bytes | 64 bytes | 2 |
| ML-DSA-65 (FIPS 204) | 1,952 bytes | 3,309 bytes | 3 |

The registry does not say which schemes a network accepts, a protocol-version question, and leaves verification to an embedder through the `SchemeVerifier` trait. The same day the consensus repository [added transaction signing and verification under ML-DSA-65](https://github.com/hyperscalers/hyperscale-rs/commit/aa1adef93009), with scenarios for [securifying an account onto it](https://github.com/hyperscalers/hyperscale-rs/commit/f9a4ced38efd) and for [virtual and native ML-DSA-65 accounts](https://github.com/hyperscalers/hyperscale-rs/commit/ba81891c5544).

Asked whether this meant an Olympia-style migration, the lead developer said [it adds a third signing scheme to Babylon's two](https://t.me/hyperscale_rs/10675). Holders would move by choice through [account securification](https://docs.radixdlt.com/docs/account/#account-securification), which rewrites an account's authorisation rules without changing its address.

He called post-quantum work ["a cross cutting concern, it'll just be done as appropriate"](https://t.me/hyperscale_rs/10687), outside the milestones, with transaction signing the easy part. Post-quantum consensus signing, which involves zero-knowledge constructions and [WOTS+ and XMSS](https://en.wikipedia.org/wiki/Hash-based_cryptography), has not been attempted, and no network has been versioned to accept scheme `3`.

## Crate Structure

The [Cargo workspace](https://github.com/hyperscalers/hyperscale-rs/tree/main/crates) sits beside the crates of the execution engine, [hyperscale-vm](/contents/tech/research/hyperscale-vm), in the `vm/` submodule. Every subsystem with an I/O or timing dependency is a trait with a production and a simulation backend: networking (`network-iroh` / `network-memory`; iroh replaced libp2p as the only production transport [on 28 October 2026](https://github.com/hyperscalers/hyperscale-rs/commit/721f3b3b22d5af5672fb6fc1aa5db203237676eb)), storage (`storage-rocksdb` / `storage-memory`), task dispatch (`dispatch-pooled` / `dispatch-sync`) and signing (`crypto-bls` / `crypto-mock`).

The consensus-critical crates are `shard` (per-shard consensus), `beacon` (the control plane), `execution` (execution certificates), `provisions`, `remote-headers` (header sync for verifying remote shards), `jmt` (the state tree), `effects-bridge` (the binding to the VM) and `engine` (the batch executor over the VM kernel). Tooling makes up the rest: `simulation` and `simulator` host the deterministic harness; `scenarios` holds tests that run on both the simulator and a real multi-process cluster, so a scenario that passes on one and fails on the other is a real defect; and `demo` is the WebAssembly build behind the in-browser network demo.

## External Links

- [Wiki: hyperscale-rs](/contents/tech/research/hyperscale-rs)
- [Design Documentation – /docs (overview + invariant register)](https://github.com/hyperscalers/hyperscale-rs/tree/main/docs)
- [Formal Models – /specs (Quint + Apalache)](https://github.com/hyperscalers/hyperscale-rs/tree/main/specs)
- [hyperscale.rs/proof – what the models do and do not show](https://hyperscale.rs/proof)
- [vm-comparison – the execution benchmark harness](https://github.com/hyperscalers/vm-comparison)
