Skip to content

About

Sealed-bid call auctions for tokenized stocks on Robinhood Chain: private orders, one zero-knowledge-verified clearing price, public prints.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation


Overview

Luminary logo

Luminary is a venue for sealed-bid, uniform-price call auctions of crypto assets on Elysium, Kinetiq's Arbitrum Orbit L2 that settles to Hyperliquid's HyperEVM. Balances, orders and fills live in a shielded note pool, so what a participant holds and bids stays private, while every clearing result is public and verified on chain.

  • Sealed orders. An order is encrypted in the browser and proven valid with a zero-knowledge proof before it rests in an auction. Nobody sees the book.
  • One clearing price. At the call, every crossable order fills at a single price p* that maximizes volume inside a band around the Chainlink reference. The contract checks the clearing with an AuctionClearProof without ever seeing an order.
  • Public prints. Each settlement writes its price and volume to a public tape in the same transaction.
  • Always an exit. Cancels, reclaims and the ragequit (a depositor's own value back to their own address) need nothing from the operator, the owner or a pause.

Markets: UBTC, UETH, USOL, WHYPE (canonical-bridge tokens of the HyperEVM assets), quoted in USDC (bridged from HyperEVM). Auctions call every day, weekends included, at 00:00, 08:00 and 16:00 UTC, plus two-party RFQ blocks that cross whole at the reference.

How it works

sequenceDiagram
    autonumber
    actor User
    participant SDK as Browser SDK
    participant Pool as AuctionPool
    participant Feed as Chainlink (mirrored)
    participant Op as Operator
    Op->>Feed: Relay the latest rounds from HyperEVM before the call
    User->>SDK: Place order (side, size, limit)
    SDK->>SDK: Seal the order, prove OrderValidity (Noir / UltraHonk)
    SDK->>Pool: placeOrder(commitment, proof, sealed order)
    Note over Pool: Collecting: only commitments are visible
    Op->>Pool: pin(id) at the call time
    Pool->>Feed: latestRoundData (asset and quote)
    Note over Pool: Reference and band fixed on chain
    Op->>Op: Open sealed orders, clear at one p*, prove AuctionClear
    Op->>Pool: settleAuction(clearing, proof, sealed results)
    Pool-->>User: Fill, refund and fee notes (readable only by their owners)
    Pool-->>Pool: Print (p*, volume) to the public tape
Loading

Every state change is backed by a proof checked against a bb-generated UltraHonk verifier:

Circuit Proves
deposit the queued note holds exactly the asset and amount the pool received
tree_update a batch of notes was appended to the Merkle root (no Poseidon on chain)
transact up to two notes become two notes, releasing an amount to a recipient and a fee to a relayer
order_validity an order locks part of a note the sender owns, above the market minimum, with valid terms
auction_clear 64 orders cleared at one p* inside the band, volume maximized, every output correct
reclaim an order's owner takes the lock back (cancel, voided auction or left-out order)
rfq_cross a two-party block crossed whole at the reference, or both sides refunded

Architecture

flowchart LR
    subgraph Browser["Browser"]
        SDK["Shielded SDK<br/>keys · notes · proofs in a web worker"]
    end
    subgraph Operator["Operator (serverless workers)"]
        W["Scheduler · pin · clear and prove · settle<br/>relayer · indexer · screening · alerts"]
        DB[("Postgres<br/>public chain mirror")]
    end
    subgraph Chain["Elysium · 99901"]
        P["AuctionPool"]
        D["RfqDesk"]
        G["ScreeningGate"]
        R["PrintRegistry"]
        V["7 UltraHonk verifiers"]
        M["PriceMirror<br/>mirrored Chainlink feeds"]
        TL["Timelock · 48 h"]
        S["Safe · 2-of-3"]
    end
    subgraph Hyper["HyperEVM · 999"]
        RL["PriceRelay"]
        CL["Chainlink feeds"]
    end
    SDK -- "proofs, sealed orders" --> P
    SDK -- "relayed calls" --> W
    W -- "pin, settle, advance tree" --> P
    W <--> DB
    P --> V
    P --> R
    P -- "reference prices" --> M
    W -- "relay()" --> RL
    RL -- "reads" --> CL
    RL -- "retryable ticket" --> M
    D --> P
    P --> G
    S -- "proposes" --> TL
    TL -- "owns" --> P
    TL -- "owns" --> G
Loading
Layer Stack
Contracts Solidity 0.8.28 (Foundry), no proxies, no delegatecall, transient-storage reentrancy lock
Circuits Noir 1.0.0-beta.22, UltraHonk (Barretenberg), keccak transcript for the EVM verifiers
Client TypeScript SDK, proofs generated in the browser with noir_js and bb.js
Operator TanStack Start API routes on serverless functions, Postgres, scheduled workers
Oracles Chainlink feeds on HyperEVM (0.5% deviation, 24 h heartbeat), carried to Elysium by a permissionless PriceRelay → PriceMirror
Governance Safe 2-of-3 → OpenZeppelin TimelockController (48 h)

Deployments

Elysium mainnet (chain ID 99901) · explorer elysium.kinetiq.xyz · gas in HYPE

Contract Address
AuctionPool 0xC6201e94FF6Ce6DD9a5918C493f9dE9d897Da33F
RfqDesk 0xeA1C416d50a076bC69cD8B00A1346F8EFBB4057A
ScreeningGate 0x354153a447b978b38c3a01E2503ad99e2796bdc5
PrintRegistry 0x725721E2F9E332c0927fF6d895702E2A913f0F9F
DisclosureRegistry 0x8d366b92FD161e8b57a046d6046A06Df6b77C2e6
Owner · TimelockController (48 h) 0x7E52e5b210034DC3B252Faf740300A406C6eAd87
Safe (2-of-3, proposer and guardian) 0x6Cc54Bb49D9f26b2968A09F2019021D77381EA97
PriceMirror (mirrored Chainlink feeds) 0x11FFef5BA283cC80d85a680aB992EfE3cd82D04a
PriceRelay (on HyperEVM, chain 999) 0x6C141FB723fDE136D0686B14830Edc9508A2665f
Market Token on Elysium Decimals Minimum lock
UBTC 0xE9C29585EAe4B9a55b02a9605AEa892B40d972E8 8 0.001
UETH 0x7A66A75fe41Bc26867C17fe1bc7D1C076EBd4eCd 18 0.02
USOL 0xd78eC40Ac7412069cA0f223413c7E5E1d18f4315 9 0.5
WHYPE 0xbA876237B0F021A6c6D852d6c26E107997cC5E81 18 0.5
USDC (quote, bridged) 0xb47c4C8F73F009CC0C0d3f92B388d13E293F0B65 6 25

The core contracts sit at the same addresses as the retired previous mainnet deployment because the same deployer key and nonces were used; on Elysium they are a new deployment. The full manifest, including the mirrored feeds, is contracts/deployments/99901.json. script/PostDeployCheck.s.sol verifies, read-only, that the live bytecode is this build and that ownership, roles, markets, price feeds and screening are configured as intended; --sig "runRelay()" checks the relay side on HyperEVM.

Security model

Custody Funds are notes in the pool; every movement is a proof. No role can move a user's notes or mint notes.
Governance A 2-of-3 Safe controls a 48-hour timelock that owns the pool and the gate. Every owner action is public 48 hours before it can run. The deployer holds no role.
Emergency stop The Safe, as guardian, can pause deposits or halt a market immediately. Only the timelock can resume either. Exits stay open.
Prices Chainlink's feeds on HyperEVM reach Elysium through a permissionless relay; the mirror accepts only the relay's bridge messages and never rolls a round back. The pool reads the mirrored round at the call and voids an auction whose round is older than 25 hours. The operator runs the relay but cannot set a price.
Screening Withdrawals and orders prove their deposit is in a screened association set (sanctions list and blocklist). A depositor left out can always ragequit.
Order privacy Today one operator key opens sealed orders at settlement, so the operator can read orders before the call. A threshold committee is built in but not switched on yet; once on, members verify every request on chain and decrypt only after an auction is pinned.
Monitoring Alerts on every timelock, Safe and admin event, large outflows, voided auctions, operator gas on both chains and stalled workers.

Every privileged role, each accepted risk and the incident runbook are in SECURITY.md.

Important

Luminary has no external security audit. Interact only with amounts you can afford to lose, and only where you are eligible: the service is intended for non-US participants in permitted jurisdictions.

Repository layout

contracts/          Foundry project: pool, desk, gate, registries, price relay and mirror, verifiers, deploy and checks
circuits/           Noir workspace: deposit, tree_update, transact, order_validity, reclaim, auction_clear, rfq_cross
src/shielded/       Browser SDK: keys, sealing, ledger rebuild, proving, orders, RFQ
src/server/         Operator workers: scheduling, price relay, clearing, settlement, relayer, indexer, screening, alerts
src/routes/api/     Public API and worker endpoints
supabase/           Database schema and SQL functions (public chain mirror, auctions, prints)
test/               End-to-end suite on a local chain and the coverage runner
scripts/            Committee member client, verifier generation, migrations, coverage

Build and test

Prerequisites: Bun 1.3.13, Node.js 24, Foundry v1.5.1, Noir 1.0.0-beta.22.

git clone https://github.com/luminaryRH/Luminary-stack.git && cd Luminary-stack

# app and server: frozen install with install scripts disabled, then checks and type check
bun install --frozen-lockfile --ignore-scripts
bun run check
bunx tsc --noEmit

# contracts
cd contracts
git clone --depth 1 --branch v1.16.2 https://github.com/foundry-rs/forge-std lib/forge-std
git clone --depth 1 --branch v5.7.0 https://github.com/OpenZeppelin/openzeppelin-contracts lib/openzeppelin-contracts
forge test
FORK_RPC_URL=https://rpc.elysium.kinetiq.xyz RELAY_FORK_RPC_URL=https://rpc.hyperliquid.xyz/evm \
  forge test --match-contract ForkTest
cd ..

# end-to-end on a local chain, with the off-chain coverage report
bun scripts/coverage.ts

# circuits
cd circuits && nargo test --workspace

Testing and verification

Check Result
Contract tests (Foundry) 94 tests: 89 local, plus 5 fork tests that run against mainnet when FORK_RPC_URL (Elysium) and RELAY_FORK_RPC_URL (HyperEVM) are set
Live deployment script/PostDeployCheck.s.sol, read-only against Elysium (bytecode, owners, wiring, markets, feeds, fees); no dated readback of the Elysium deployment is published yet
Stateful invariants 4 invariants × 128,000 calls: conservation, single spend, slot consistency
Contract line coverage 98.6% (97.8% of functions), local tests
Mutation testing (Gambit) 90.4% of 893 mutants killed (pool, desk, gate, registries; PriceFeeds.sol not yet included)
Symbolic checks (Halmos) 7 properties proven for every input
Circuit tests (nargo) 53 tests, including failure cases for every constraint
End-to-end (local chain) 21 app tests: deposits, sealed orders, settlement, RFQ, withdrawals, ragequit, screening, committee, alerts
Off-chain line coverage 95.6% of the SDK, workers and API

Every push runs the full suite in CI, together with Slither, Semgrep and a gitleaks secret scan; every Action is pinned to a commit.

Security disclosure

Please report vulnerabilities privately through GitHub private vulnerability reporting (Security → Report a vulnerability). Do not open a public issue, and do not test against the live pool with funds you do not own; forge test on a fork reproduces the deployment.

License

Released under the MIT License.


Luminary
Luminary · Private intent. Verifiable outcomes.

About

Sealed-bid call auctions for tokenized stocks on Robinhood Chain: private orders, one zero-knowledge-verified clearing price, public prints.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages