Skip to main content

Why Darknyx

Public markets make price discovery transparent, but they also make intent a resource other participants can exploit. A large resting order advertises side, size, urgency, and often strategy. Moving the book off-chain hides that intent, but usually replaces market transparency with trust in an operator that can see orders, control custody, or both. Darknyx separates those powers:
  • Solana holds custody and verifies value movement. The vault accepts only proof-valid deposits, withdrawals, merges, and settlements.
  • An attested confidential VM matches private orders. Its code identity and complete settlement-signer set are bound into an Intel TDX quote that clients can verify before disclosing intent. The programmatic transport model binds a boot-random TLS certificate to a separate nonce-challenged quote, so the gateway passes ciphertext rather than terminating the protected session. Replacement sockets are refused inside the connector before request bytes can leave, and a new engine boot must establish and verify a fresh transport identity.
  • The client keeps custody secrets. Spending and viewing keys remain with the trader; the venue receives only the material needed to validate and match an order.
The product is a fully collateralized spot venue with private order flow, uniform batch clearing, on-chain custody, and recoverable shielded balances.

The trust decomposition

Darknyx does not collapse every guarantee into the phrase “trustless.” Each layer has a narrower, inspectable job. This division is deliberate. Zero knowledge makes settlement correctness independent of the operator, while attestation makes the remaining matching policy auditable without publishing the book.

Why uniform batch clearing

Orders that cross in one matching interval trade at one clearing price. That reduces the value of nanosecond ordering within the interval and gives both sides the same execution price. The matcher respects each order’s limit and an oracle-based circuit-breaker policy, while the settlement proof constrains the scaled price arithmetic and resulting notes. Batching also amortizes one proof across several matches. It is therefore both a market-structure choice and a practical way to make private settlement fit a high-throughput chain.

What privacy does and does not cover

Darknyx hides the live book, settled trade amounts and prices, shielded note owners, and the link between commitments. It does not make the public edges of a token transfer disappear:
  • a deposit reveals its Solana signer, mint, and gross amount, but VALID_DEPOSIT hides the wallet-wide note owner and the note’s inner value;
  • a withdrawal reveals its destination, mint, and amount, but not which note commitment or prior trade supplied it;
  • the confidential matcher sees order plaintext inside protected memory; privacy therefore depends on current TDX security and verification of the expected image;
  • network timing and venue-level aggregate activity may still be observable.
The useful guarantee is not “nothing is visible.” It is that public custody can be audited without turning every balance, order, and fill into public market intelligence.

Product boundaries

Darknyx is intentionally narrow today:
  • spot assets only; no leverage, funding, liquidations, or unsecured credit;
  • fully collateralized orders backed by one shielded note;
  • a confidential matching service can be halted or censored, so liveness is not decentralized even though custody enforcement is on-chain;
  • fair matching and oracle/limit enforcement remain part of the attested code trust boundary rather than the settlement circuit.
Those boundaries make the claim legible: Darknyx is not trying to hide trust. It is trying to minimize it, isolate it, and make the remaining assumptions verifiable.

Continue