Dark pool on Vela

A seller offers a block of the stack's token for ETH. Bidders send their bids encrypted to the enclave; nobody sees a bid before the close; the matching runs inside; winners and losers are settled from escrow, and the losing bids are never revealed. This console plays every side on a devnet: the seller's desk here, and a desk per bidder it sets up. Every action is one request to the enclave, 30 to 60 s.

Stackdevnet.synsema.app
Seller0x187E…655e
Wallet9,993.998174 ETH · 99,000 TST
Asset0x976f…98a1
App4728895160359397288
Claimable0 ETH · 0 TST

The seller

Offer a block

Blocks on offer

#OfferReserveRuleStatus
11,000 TST for ETH1 ETHuniformclosed · sold 600 TST for 0.9 ETH · 0.0015 ETH per TST on average

Bidders' desks

WhoAddressWallet
Ana0x5347…75BC0.999056 ETH · 0 TST
Beto0x770f…c6A20.999073 ETH · 0 TST

A desk is a wallet this console custodies for the demo; it registers and deposits by itself and its bids are signed with its own key. A bidder with a wallet of their own uses the command-line client and never sees this page.

What the chain sees

BlockPublic event
614cleared · #1 · sold 600 TST · uniform
598opened · #1 · 1,000 TST for ETH · uniform

That a block was offered and what it cleared at. Never who bid what, never a losing bid.

The enclave's answers to the seller

BlockWhat happened
614cleared · #1 · sold 600 TST · unsold 400 TST · proceeds 0.9 ETH · 0x5347…75bc 600 TST for 0.9 ETH; 0x770f…c6a2 0 TST for 0 ETH
598opened · #1 · 1,000 TST for ETH · reserve 1 ETH for the lot · uniform
596deposit · 1,000 TST · balance 1,000 TST

Built with Synsema on Vela · the code: SYNSEMA/vela-dark-pool · click an address to copy it