Skip to content
SPECTRE
Xcoming soon

How it works

Creators keep their code. Allocators keep custody. SPECTRE runs the code where neither side can see into it, inside limits both sides can read.

The pieces

A strategy is a Python package plus a manifest. The package holds the logic. The manifest holds the limits: which markets it trades, its maximum leverage and position size, its drawdown stop, its fees, its capacity and the smallest allocation it accepts.

  1. SealingThe creator encrypts the package in the browser to the sandbox's public key. Only the SHA-256 hash of the package is published, committed on Elysium in the StrategyRegistry contract. A new version commits a new hash.
  2. SandboxThe sandbox decrypts and runs the package with CPU, memory and time limits. It gives the code market data and the state of a reference portfolio. It gives it no network access and no keys. The code can only return target positions or order intents.
  3. Risk guardA separate service checks every intent against the manifest, the allocator's own caps and global limits. It rejects anything outside them and logs the rejection. It also runs the drawdown stop and the global kill switch.
  4. SignerA separate service holds one Hyperliquid agent key per allocator. It sizes each order to the allocator's allocation relative to the reference portfolio, respects Hyperliquid's minimum order size and available margin, attaches SPECTRE's builder code and signs.
  5. RecordThe record service reads fills from Hyperliquid and computes return, maximum drawdown, volatility, average leverage, volume and age. It commits a hash of each day's record to Elysium so the history cannot be rewritten.
  6. SettlementBuilder fees accrue to SPECTRE's builder account on Hyperliquid. Each week a settlement pays creators their share on Elysium and publishes the accounting.

The order of events for an allocator

You pick a live strategy and size your allocation. You set a loss limit for yourself. From your own wallet you approve a named agent key on Hyperliquid and SPECTRE's builder fee, then pay the monthly subscription on Elysium. From the next rebalance, the signer places orders in your account in proportion to the strategy's reference portfolio.

You can pause or stop the allocation from your portfolio, or revoke the agent key from Hyperliquid directly. If your subscription lapses, the engine closes your positions in an orderly way and stops trading your account.

What runs where today

The sandbox and the signer run in Phala Cloud confidential VMs (Intel TDX). Their keys are derived inside those VMs, and each publishes a remote attestation that our API has checked by Phala's verifier every ten minutes. The API, the engine and the risk guard run on Railway, outside the enclaves: they handle strategy targets and orders, never strategy code or agent keys. The Transparency page links both attestation reports and shows when they were last checked.