Hadal
Start trading

A market does not need to see orders to price them

Follow one sealed order from the wallet to its receipt, and see what you, the cluster and the chain can each read at every step.

01 · SealIn your wallet

Side, size and limit are encrypted in the wallet.

The order is encrypted in your browser to the cluster’s key before it is signed. From here on it exists only as ciphertext.

You see
Side, size and limit, as you typed them.
The cluster sees
Nothing yet.
The chain sees
Nothing yet.

The deal

A deal is a sealed order addressed to one counterparty. The maker seals a side, a size, a minimum size and a limit, for one named wallet or for anyone holding the deal’s link. The maker’s size is escrowed from their sealed balance.

A taker answers with a sealed size and limit. If the limits cross and the size meets the minimum, the smaller of the two sizes trades at the midpoint of the two limits, between the two sealed balances, and both sides get a receipt. Each side pays 0.05%.

If they do not cross, the only thing revealed is that there was no deal. Each taker gets 3 attempts unless the maker sets another number, so a limit cannot be found by probing.

The invariant

For each token of a market, what the vault holds always equals what Hadal owes:

vault balance = sealed balances + pool reserve
              + resting escrow and proceeds + accrued fees

Every computation conserves it. Withdrawals are the only way out, and each one is checked against a sealed balance inside the computation. On any sweep the curve keeps the product of its reserves from falling.

Arcium’s part

An MPC network on Solana: a program queues a computation over encrypted state and receives the result in a callback.

Privacy holds while one node of the cluster is honest.

The book and the pool live in the program’s own accounts as ciphertext. A computation the cluster does not finish is void after 180 slots: a deposit is refunded and an order returns to pending.

The reference price is inside. Orders cross at the pool’s own mid, computed in the same computation, so there is no oracle and no public quote to push around.