Encrypted FinanceDownload PDF

Encrypted Finance: A Private ZK Order Book on Elysium

Encrypted Finance

encrypted.finance

Version 1.0 · December 2026

Abstract. On-chain derivatives settle in seconds and need no custodian, but every wallet, position, entry and liquidation price is published for anyone to read. Centralised venues keep that information private, but they hold customer funds and settle slowly. We describe a perpetual futures exchange that aims to give traders both. The first stage is live: an email sign-in that creates a fresh wallet, private funding that breaks the link to a trader's existing wallets, one HYPE balance on Elysium, and leverage up to 1000x on BTC, ETH and three currency pairs, executed on established venues. The second stage, not yet live, is an order book on Elysium in which orders and positions exist on-chain only as cryptographic commitments, are matched in sealed batches, and are settled by zero-knowledge proofs that show each state change is valid without revealing size, price or owner. This paper describes what runs today, what is and is not private, the design of the order book, its trust assumptions and its risks.

1. Introduction

Trading on a public blockchain has a cost that does not show up in fees. Every order and position is visible. A trader who opens a large position announces its size, its direction and the price at which it will be liquidated. Other participants can trade against that information, copy it, or push the price toward the liquidation level. The trader's wallet also links the position to every other transaction that wallet has made.

Traders accept this because the alternative has its own costs. A centralised exchange keeps positions private, but it holds the funds, it can freeze or lose them, and it settles on its own ledger rather than on a public one. What is needed is a venue that settles on-chain without a custodian and still keeps each trader's positions to themselves.

Bitcoin showed that value can move and settle without a trusted party [1]. Zero-knowledge proofs show it can do so without being seen. A contract can accept a state change, such as a trade, together with a short proof that the change follows the rules, without learning the values inside it. This has been shown for payments [2]. We apply the same idea to a leveraged order book.

We build in two stages. The first stage puts the account, funding and trading experience in front of traders now, using established venues for execution. The second stage replaces that execution with the private order book, while the account, the balance and the sign-in stay the same. This paper is explicit about which parts are live and which are design.

2. Accounts

A trader signs in with an email address. Privy creates an embedded wallet for that sign-in. The wallet is new, so it has no history and no link to wallets the trader already uses. There is no seed phrase to store and no browser extension to install.

Every transaction is signed in the trader's browser. The Encrypted Finance servers hold no key that can move a trader's funds, and no step of trading depends on such a key. A trader can export the wallet and use it elsewhere.

3. Private Funding

A fresh wallet is only private until it is funded. If a trader sends funds to it directly from a known wallet, the transfer links the two. To avoid this, deposits can be made through HYDE, a privacy layer that accepts funds from one address and releases them to another without an on-chain link between the two. The trading wallet receives HYPE on Elysium. Withdrawals leave as HYPE, either directly or through the same layer in reverse.

Direct deposits are also supported. They are simpler, but they link the trading wallet to the sending wallet, and the app says so.

4. Execution Today

Until the order book is live, trades are executed on two existing perpetual venues. The trader sees one balance, one order form and one list of positions. The app routes each trade to the venue that lists the market.

Source walletany chainHYDEprivate fundingTrading walletHYPE on ElysiumRelayHYPE to USDCLeverUpMonad · BTC, ETHgTradeArbitrum · EUR, GBP, JPYHyperliquidprices and charts
Figure 1. The path of a trade today. Each step is signed in the trader's browser.

4.1 Markets and routing

MarketVenueChainLeverage
BTC/USDLeverUpMonad500x to 1000x
ETH/USDLeverUpMonad500x to 1000x
EUR/USDgTradeArbitrum10x to 1000x
GBP/USDgTradeArbitrum10x to 1000x
USD/JPYgTradeArbitrum10x to 1000x

Exact limits, fees and funding are set by each venue and can change. The order form shows the terms in force.

4.2 Collateral

The balance is held in HYPE. When a trade opens, the required margin is converted to USDC through Relay and posted on the venue's chain. When the trade closes, the proceeds are converted back to HYPE. The trader never handles the intermediate chains or tokens.

4.3 Price data

Charts and live prices in the app come from Hyperliquid market data. Execution and liquidation prices are set by each venue's own oracle, not by the app.

5. Privacy Model Today

The first stage protects the link between a trader and their positions. It does not hide the positions themselves.

InformationTodayWhy
Source of fundsPrivateHYDE breaks the link between the source wallet and the trading wallet.
IdentityPrivateThe trading wallet is new and has no history. No KYC is requested.
PositionsPublicPositions settle on gTrade and LeverUp, where they are visible on-chain.
Order flowPublicOrders reach the venue in the clear.

An observer can see that some wallet holds a position, but not whose wallet it is, provided the trader funds through HYDE and does not link the wallet in other ways. Hiding the position itself requires the order book described next.

6. The ZK Order Book

The order book is not live. This section describes its design. The full circuits will be published and audited before launch, and details may change.

6.1 Notes and commitments

Balances and positions are held as notes. A note is a small record, such as an amount of collateral or a position with its market, side, size, entry price and margin, together with its owner's key and a random value. The contract never stores a note. It stores a commitment to it, a hash that reveals nothing about the contents but cannot be opened to anything else:

cm = H(market, side, size, entry, margin, owner, r)

Commitments are kept in a Merkle tree on Elysium. To spend a note, its owner reveals a nullifier derived from the note and their secret key. The contract records nullifiers and rejects any it has seen before, which prevents a note from being spent twice without revealing which commitment it belonged to. This construction follows Zerocash [2].

6.2 Orders

A trader places an order by encrypting it to the matcher and attaching a proof that it is backed by an unspent collateral note with enough margin for its size and leverage. The contract and other traders learn only that a valid order exists. They do not learn its side, size, limit price or owner.

6.3 Matching in sealed batches

Orders are collected for a short interval and then matched together at a single clearing price per market, in the style of a frequent batch auction [4]. Because every order in a batch fills at the same price, there is no advantage in seeing an order a moment before others, and no order can be placed in front of another within a batch. The clearing price must fall within a band around the oracle price, which limits how far a batch can move from the market.

Sealed ordertrader ASealed ordertrader BSealed ordertrader CBatch matcherone clearing priceValidity proofπElysium contractverify π · add new commitments · spend nullifierspublic: root, nullifiers,price, total volume
Figure 2. One batch. Orders arrive sealed, are matched at one price, and settle with one proof.

6.4 Settlement proofs

The matcher computes the fills and produces a single proof π for the batch. The proof shows that: each fill comes from a valid order signed by its owner; each fill respects its order's limit price; each new position has the margin its leverage requires; and the total of notes created equals the total of notes spent, less fees. The contract verifies π, adds the new commitments to the tree, and records the spent nullifiers. Proof systems with short proofs and fast verification, such as Groth16 [3] or PLONK [5], make this practical on-chain.

What a batch makes public is limited to the new Merkle root, the nullifiers, the clearing price and the total volume matched. Who traded, in which direction and at what size is not published.

6.5 Funding

Perpetual futures charge a periodic funding payment between longs and shorts to keep the contract price close to the index. In the order book, funding accrues to a public per-market index. Each position note records the index at entry, and the payment is settled inside the proof whenever the position is changed or closed, so no individual payment is published.

6.6 Liquidations

A position must be closed when its losses approach its margin. In a public book anyone can see this and act. In a private book no outsider can, because the liquidation price is hidden. In the first version, a position note also carries its liquidation price encrypted to a liquidation committee. When the oracle price crosses that level, a committee member submits a proof that the committed position is past liquidation, and the contract closes it at the oracle price.

This means the committee can see positions, though it cannot move funds or forge trades. It is a trust assumption, and we state it as one in Section 7. Removing it, for example with threshold decryption so that no single member sees a position, is part of the research plan.

6.7 Deposits and withdrawals

A deposit of HYPE creates a new collateral note. A withdrawal spends one and pays HYPE to any address the owner chooses. Combined with private funding, this means a trader's positions are linked neither to their source of funds nor to where they withdraw.

7. Trust Assumptions

We list what each party can and cannot do, for each stage.

PartyCanCannot
Encrypted Finance (today)Run the app and choose the routingSign for or move a trader's funds
Venues (today)Execute, liquidate and see positionsLink a position to the trader if funding was private
HYDE (today)Process private deposits and withdrawalsMove funds outside the deposit flow
Matcher (order book)See orders in its batch; delay a batchForge a fill, change a price outside the band, take funds
Liquidation committeeSee positions; trigger liquidationsLiquidate a solvent position or take funds
Contract (order book)Verify proofs and hold collateralRead the contents of any note

In the first version of the order book the matcher sees the orders in its batch. A malicious matcher could leak them but could not alter a trade. Distributing the matcher, so that no single party sees an order before it is matched, is a goal for later versions.

8. Leverage and Liquidation

Leverage L multiplies price moves. If the price moves against a position by a fraction δ, the position loses roughly L·δ of its margin. Ignoring fees and the maintenance buffer each venue keeps, a position is liquidated when

L · δ ≥ 1,  that is,  δ ≥ 1 / L

LeverageAdverse move that liquidates (approx.)
10x10%
100x1%
500x0.2%
1000x0.1%

In practice the move is smaller, because opening fees and the maintenance buffer are taken from the margin first. The app shows each position's liquidation price. At the highest leverage, ordinary price noise is enough to close a position.

9. $ENCRYPT

$ENCRYPT is the Encrypted Finance token. Contract address: 0x2da18a55b76106e408301bdbf0ed17ff539dbeed. This paper makes no promise about the token's utility, value or returns.

10. Roadmap

StageStatusWork
TodayLiveEmail sign-in, private funding through HYDE, one HYPE balance, five markets up to 1000x
NextIn developmentZK order book on testnet, circuits published, security audit
ThenAfter the audit passesZK order book on mainnet, execution moves to Elysium, more markets

When the order book launches, the sign-in, the wallet and the HYPE balance stay the same. Only the place where trades execute changes.

11. Risks

  • Leverage. A small move can liquidate a position and lose the whole margin.
  • Third-party venues. Trades today depend on the contracts, oracles and uptime of gTrade and LeverUp.
  • Private funding. Privacy of funding depends on HYDE working as described and on how the trader uses it.
  • Cross-chain steps. Conversion and routing between chains add delay and smart contract risk.
  • Cryptography. Bugs in circuits or proof systems could allow invalid state changes. This is why an audit gates launch.
  • Roadmap. The order book is in development and may change, be delayed, or not ship as described.

12. Conclusion

We have described a perpetual futures exchange that aims to combine the privacy traders expect from centralised venues with the speed and self-custody of on-chain settlement. The first stage is live and makes the trader private: a new wallet, private funding and one balance, with execution on established venues. The second stage makes the trade private: orders and positions held as commitments, matched in sealed batches and settled by zero-knowledge proofs on Elysium. We have stated which parts depend on trust and how we intend to reduce them.

References

  1. [1] S. Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System," 2008.
  2. [2] E. Ben-Sasson, A. Chiesa, C. Garman, M. Green, I. Miers, E. Tromer, M. Virza, "Zerocash: Decentralized Anonymous Payments from Bitcoin," IEEE Symposium on Security and Privacy, 2014.
  3. [3] J. Groth, "On the Size of Pairing-based Non-interactive Arguments," EUROCRYPT, 2016.
  4. [4] E. Budish, P. Cramton, J. Shim, "The High-Frequency Trading Arms Race: Frequent Batch Auctions as a Market Design Response," Quarterly Journal of Economics, 2015.
  5. [5] A. Gabizon, Z. Williamson, O. Ciobotaru, "PLONK: Permutations over Lagrange-bases for Oecumenical Noninteractive arguments of Knowledge," 2019.

This paper is not financial advice.