Skip to main content

Trade Flow

TL;DRYou deposit funds into the on-chain vault as a private note. You submit a hidden order, backed by that note, to the enclave. The enclave matches it in a batch auction and proves the matches, then settles them on Solana itself, moving value between notes against a zero-knowledge proof. Your order never becomes a Solana transaction. Only the result settles.

Order-to-settlement lifecycle

Step by step

What is on-chain and what is not

The chain sees that value moved correctly between committed notes, proven by zero knowledge. It never sees the orders that produced the trade, nor the trade’s plaintext size or price. The enclave sees the orders and chooses matches; clients therefore verify its attestation for matching fairness, while the chain independently rejects settlements that violate the proof-enforced invariants.

Why your order never hits the chain

A common misconception is that a private DEX “encrypts orders on-chain.” Darknyx does something stronger: your order is never a transaction at all. It lives only inside the attested enclave. What lands on Solana is the settlement, a transfer of value between notes accompanied by a proof that the transfer is correct. An observer indexing Solana therefore does not obtain plaintext order fields from the chain alone. See Privacy & Attestation for how you verify the enclave is the real engine, and Settlement for the on-chain pipeline in detail.