Multi-Market Venue
TL;DROne Darknyx confidential VM can serve several spot pairs. Each pair has its own
order book, oracle, limits, and on-chain market configuration, while traders use
one verified enclave origin, one attestation check, and one authenticated stream. Matches from
different markets never share a proof batch.
Why markets share one venue
Running one confidential VM per pair would multiply endpoints, logins, and attestation checks. It would also make a client decide which machine to trust before it could even discover a market. Darknyx instead presents one venue:GET /instruments lists every pair available in that session. An order’s signed
symbol routes it to exactly one isolated book, and later reads, cancels, and
stream events follow that routing without asking the client to switch endpoints.
What stays isolated
Every configured pair has:- a distinct base/quote mint pair and on-chain
MarketConfig; - its own order book, clearing-price calculation, oracle feed, and batch sequence;
- its own tick size, minimum size, price scale, and circuit-breaker policy; and
- a separate settlement proof batch, even when several markets clear on the same matching tick.
What is shared
The books share the confidential VM’s proving, Solana submission, Merkle-shard, and network capacity. That gives traders a simpler trust experience, but it also creates shared fate: a venue-wide attestation, signer, or finalized-governance mismatch pauses new trading across every pair. Cancels and settlement reconciliation continue during that pause. This is a fail-closed safety choice: the venue does not keep accepting private intent when its authority or governed market view is uncertain. Oracle health is isolated more narrowly. A stale, missing, replayed, or unauthenticated feed pauses only the markets bound to that feed; healthy books continue using the same attested session.GET /instruments exposes a dynamic
trading_enabled flag per market, while order writes recheck the gate to close
snapshot races.