Orders never touch the L1 mempool.
submit_order is signed and stored exclusively inside MagicBlock's Ephemeral Rollup. Side, price, amount, and your collateral note commitment all stay off-chain until a batch matches.
Nyx is a privacy-preserving on-chain darkpool for Solana. Order intent stays inside an attested ephemeral rollup. Settlement lands as shielded UTXO notes verified by Groth16 zero-knowledge proofs — every balance reconciles, no individual order is exposed.
Four properties define the system. Each one is verifiable on-chain today on Solana devnet — no off-protocol indexer required for correctness.
submit_order is signed and stored exclusively inside MagicBlock's Ephemeral Rollup. Side, price, amount, and your collateral note commitment all stay off-chain until a batch matches.
Withdrawals require a VALID_SPEND zk-SNARK proving you own a leaf in the vault's Merkle tree.
Settlement is written by a TEE-attested Ed25519 key into vault::tee_forced_settle. The on-chain instruction enforces the conservation law `note.amount = trade + change + fee` exactly before any state mutation.
Balances live as Poseidon-hashed UTXO leaves (mint, amount, owner_commitment, nonce, blinding). The tree's leaf-count and current_root are public; individual ownership stays cryptographically opaque.
Sign a deterministic seed in your wallet, prove VALID_WALLET_CREATE in the browser, and shield SPL tokens into the vault as a UTXO note.
Phantom signMessageVALID_WALLET_CREATEvault::depositYour trading key signs submit_order on the Ephemeral Rollup. run_batch clears the book at a uniform price. L1 sees only an aggregate snapshot.
delegate_pending_ordersubmit_orderrun_batchAn attested TEE settles atomically on L1 — locking input notes, appending output notes. Withdraw whenever, with a fresh VALID_SPEND proof.
undelegate_markettee_forced_settleVALID_SPENDWant to see every PDA, every cryptographic primitive, and every instruction the on-chain programs accept?
Architecture deep-diveConnect a Phantom wallet on Solana devnet and run the full flow — identity derivation, shielded deposit, ER-private order, TEE settlement, and proof-backed withdraw. Every receipt is an explorer link.