DocsThe exchange

Confidential Execution Engine

One attested engine runs matching, risk, and accounting on a single private ledger.

Engine scope

CONFIDENTIAL EXECUTION ENGINESigned ordersowner or agentDepositsfrom custodyIndex pricesmajor venuesMATCHING AND RISKMatching · Margin · Funding · Stop triggers · LiquidationOne ledgerevery balance and positionFee routing · Vault accounting · Holder payouts · Reward scoringACCOUNTING AND PAYOUTSRepliesowner and agentsMarket datano accountsBatchesnet totals onlyOrdersDepositsPricesCONFIDENTIAL EXECUTION ENGINEOne ledgerevery balance and positionTRADINGMatchingMarginFundingStop triggersLiquidationACCOUNTINGFee routingVault accountingHolder payoutsReward scoringRepliesowner, agentsMarket datano accountsBatchesnet only
Three inputs cross into the engine and three outputs leave it. Every function inside works on the same ledger. No output carries an account’s positions or orders to the chain or to a public feed.

Attestation

  • The engine runs in a CPU confidential virtual machine under a published code measurement.
  • Account-state keys are released only to a machine attesting to that exact build.
  • The AMM vault’s strategy ships inside the same image, so it is part of the measured build.
  • TLS terminates inside the confidential machine with a key bound to the attestation, so a client can verify the hardware evidence and the published build before it trusts the connection.

Engine constraints

  • It cannot withdraw funds: custody pays a withdrawal only to the wallet of the owner who signed it.
  • It accepts no order or cancel unless the owner or one of its agents signed it and no withdrawal unless the owner signed it.
  • Its own orders are limited to triggers and TWAP slices an account signed for, liquidation closes, and the AMM vault’s quotes, which enter the same queue as client orders.
  • Agents place, modify, and cancel orders and set margin for the account. They never withdraw, transfer, stake or unstake, move vault funds, commit open interest, or change agents (Order lifecycle lists every permission).
Subliquid docs · Last changed October 28, 2026