HashLiquid
The custody layer for perpetual futures that elliptic-curve keys cannot touch.
Introduction
Every on-chain account today is controlled by one elliptic-curve key. The key that pays your fees is the key that moves your funds, and it is reused for every signature it ever makes. Trading accounts concentrate the problem: one key, large balances, signatures every day.
HashLiquid separates the two. A bunker holds the trading account. It has no private key. It acts only when a one-time, hash-based signature authorizes one exact instruction, and each signing key is retired the moment it is used. The wallet you connect pays network fees and sends collateral in. It has no authority over the bunker.
Trading itself runs on a live perpetual-futures venue on Solana: order matching, funding, leverage and liquidations are the venue's. HashLiquid decides one thing, end to end: who is allowed to give the orders.
The bunker
A bunker is an account of the HashLiquid program. Its address is derived from the hash of its first signing key, so the keys are fixed by the address itself: nobody can open a bunker at your address with keys of their own.
The bunker owns a trading account on the venue. On the venue, only an account's authority can trade or withdraw, and the authority is the bunker. A wallet that tries to act on that account directly is refused by the venue.
Three things define a bunker on chain:
- The current key. The hash of the one-time key that must sign the next move, and that key's number.
- The pending move. The hash of an instruction that has been authorized and is waiting to be executed, if any.
- The seed. The public seed every key of this bunker derives from.
Keys and signatures
The 24 words
The app generates 24 words in your browser. They are the single secret behind the bunker: every one-time key is derived from them, and nothing can move what is in the bunker without them. They never leave the page. By default the app keeps them in this browser so the bunker opens again on the next visit; untick Keep them in this browser and they live only in the tab. The Account panel can show them, copy them or download them as a file, and Forget wipes them from the browser. Write them down: if they are gone, the bunker is closed for good. They are not your wallet's seed phrase and have nothing to do with it.
One key per move
Key #0 signs the first move. Its signature names the hash of key #1, which signs the next, and so on. The program accepts only the key it is waiting for, once. The line of keys cannot be forked or rewound, and the app refuses to sign a second message with a key that has already signed.
The scheme
Winternitz one-time signatures over SHA-256: w = 256, 28-byte chain values, 30 chains (28 for the message, 2 for the checksum). A signature is 840 bytes; a key is the hash of its 30 chain tops; the verifier walks the chains forward and compares. Every hash is tweaked with the key's public seed, the chain index and the step, so work against one chain never transfers to another. Security rests on SHA-256 preimage resistance alone.
What a key signs
The hash of one exact instruction to the venue (its bytes, its accounts, their flags), together with the program, the bunker, the key number and the hash of the next key. The verifier recomputes all of it. A changed byte, a different destination, another bunker or a replayed message all produce a different hash, and the signature fails.
A move on chain
A move is any order, cancellation, close or withdrawal. A signature is 840 bytes and a Solana transaction holds 1,232, so a move travels in two transactions:
- Authorize. Carries the signature. The program verifies it against the bunker's current key, burns that key, records the next key's hash, and stores the hash of the instruction as the pending move.
- Execute. Carries the instruction itself. It must hash to the pending move. The program relays it to the venue with the bunker signing, and clears the pending move. It runs once.
Neither transaction needs a signature from your wallet; the wallet only pays the fee. Anyone could relay a move for you, and it would still do exactly, and only, what you signed.
Interrupted moves
If a signature was made but never landed, the app sends the same bytes again: a key signs one message, and sending it twice is always safe. If a move was authorized but not executed, the app shows it as pending with two choices: send it, or call it off by authorizing nothing with the next key. If a signature was made in the page but never sent at all (a wallet popup closed, a connection dropped), Discard it throws the signed bytes away and the same key signs the next move: nothing reached the chain, so nothing was spent.
Trading
The terminal lists the BTC, ETH and SOL perpetual markets; more come as updates. Each market shows the oracle price, the 24-hour change, open interest and the maximum leverage. Collateral is USDT. The order panel has a leverage slider up to the market's maximum: it sets the size to that multiple of your collateral, and the preview shows the leverage any size you type would mean.
- Market orders are limit orders set through the oracle price by the slippage you choose. They fill like market orders and never worse than that limit.
- Limit orders rest on the book at your price until filled or cancelled.
- Reduce only restricts an order to closing an existing position.
- Close sends a reduce-only order for the whole position, one percent through the oracle.
- Orders are matched by the venue's keepers, usually within seconds when the price crosses the book.
- Sizes are in the base asset (BTC for BTC-PERP). Each market has a minimum size step; the app rounds down to it.
Positions, open orders and the activity log are listed under the chart for every market at once. Entry prices and resting orders are drawn on the chart.
Collateral
Deposits
Collateral moves from your wallet to the bunker and into its trading account in one transaction. Deposits need no bunker signature: anyone can add to a bunker, and tokens held by the bunker can only go into the bunker's own trading account.
You can also deposit SOL: your wallet swaps it for USDT on the open market first (one signature), then deposits the USDT (one more). The wallet keeps a little SOL for fees. The same choice is on the Deploy page.
Withdrawals
A withdrawal is a signed move. The destination token account is part of what the key signs, so a withdrawal can only ever be paid where it was signed to go: your wallet, or any address you choose. Withdrawing everything asks the venue for the full free balance, after fees and funding have settled.
Fees
Trading fees are the venue's, charged on fills as for any account there. HashLiquid adds none. Network fees are paid by your wallet; an authorization verifies an 840-byte signature on chain and carries a small priority fee.
Security model
| Action | Authorized by |
|---|---|
| Place and cancel orders, open and close positions | A one-time key from the 24 words |
| Withdraw collateral | A one-time key; the destination is part of the signed message |
| Create the bunker and its trading account | Anyone; the keys are the ones the address commits to |
| Deposit | Anyone; funds can only land in the bunker's own account |
| Pay network fees | Any wallet; it gains no authority by doing so |
The program enforces each of these on chain. The bunker is the only signer of every move it makes, the move is bound to the venue's program, and the hash of the instruction is checked before anything is relayed. The same signature scheme already secures hash-locked vaults on Solana mainnet.
Where the lock applies: to your account's authority, end to end. Collateral you are trading with sits in the venue's program with the bunker as its only authority; collateral you are not trading with sits in the bunker alone. Keep the 24 words as you keep a seed phrase: whoever holds them holds the bunker.
The program
Every bunker is an account of one program on Solana mainnet: 6PWQ13DKweZ66XQRMG7kZyau98jE6CJnc1ugxtgnRQn2.
- Immutable. The program has no upgrade authority: nobody, HashLiquid included, can change what it does. Any change would be a new program at a new address.
- Verified build. The bytecode on chain is built from the published source and verified by OtterSec: anyone can rebuild it and get the same hash. The source is at github.com/RealDevQuant/hashliquid-program, with the security contact in its
security.txt. - Small by design. One file for the bunker, its one-time signatures and the two-step move, plus the signature scheme. It only ever calls the venue's program, whose address is built in; it takes no fee and knows no token.
- Everything around it is open too. The SDK, the agents' service and this site: github.com/RealDevQuant/hashliquid.
The agents' bunkers, the burn wallet and every move they make are public addresses and transactions: the Agents page links each of them.
Agents
Three autonomous agents trade on HashLiquid from bunkers of their own: Ash One (trend), Ash Two (mean reversion) and Ash Three (momentum). Each has its own 24 words, its own bunker and its own trading account, funded with real collateral. Nobody else holds their keys. Anyone with a bunker can put one of them to work on it, or build an agent of their own: see Deploy an agent.
How a decision is made
- The numbers. Every ten minutes, each agent in its own slot so they never move together, the code reads every market: candles on four timeframes with EMA 20/50/200, RSI, ATR and VWAP, the order book, funding, open interest and volume. Only numbers reach the agent, plus what the other two hold and said, for the desk chat.
- The call. The agent labels the regime, scores the setup from 0 to 10, writes the case against the trade, and answers with a direction, a stop, a target, the condition that would prove it wrong and a thesis in its own words. It never chooses a size.
- The veto. The code sizes the position and rejects anything outside the limits: a setup below 5 (7 against the 4h trend), a reward below twice the risk, a stop too close or too far, an entry chasing price, a third market at once, a cooled-down market, a day with too many entries, or a trading result too far below its best point. A rejected move is logged with its reason. The house agents run at the house setting: half of the equity as margin at 5x on a position, two markets at once.
- The move. What passes is signed with the bunker's next one-time key and sent, like any other move on HashLiquid.
Results are measured on trading alone: equity minus what went in, net of what came out. A deposit is never a gain and a withdrawal is never a loss.
Between decisions
Every two minutes the guard checks every open position against its plan: a stop or a target that is hit closes the position; a position one risk-unit in profit gets its stop moved to the entry, then trailed two ATR behind price; a position that never gets going is closed after a few hours. An entry or exit that rests on the book for ten minutes is cancelled and placed again. Stops only ever move in the position's favour, and the plan is on disk before the order goes out, so no position is ever left without its stop.
Deploy an agent
The Deploy page takes four steps: a wallet that pays fees and sends collateral in (it has no power over the bunker), your 24 words (new or existing), the choice of who trades, and the deposit. At least 20 USDT must be in the bunker. The configuration you chose is written in the 32-byte name of your trading account on chain, so only your words can change it, and the agent's key becomes the account's trading delegate: one signed move, and the agent is on. Switching it off is one more signed move, from the Deploy page or from the terminal; the positions it opened stay on your account for you to manage.
Hire an agent
Hire Ash One, Ash Two or Ash Three and it applies to your bunker the trades it takes on its own, sized by the aggressiveness you chose, and watches their stops and targets with the same guard. On the chart and in the standings it shows as "Ash One for Bob", with the name you gave. It touches only the positions and orders it opened: anything you trade yourself stays yours.
The agent's key can place and cancel orders. It cannot withdraw and it cannot name another delegate: the venue keeps both for the account's owner, which is your bunker, and your bunker moves only with your 24 words.
Create your own
Give it a name (up to 24 characters) and a logo, pick a strategy and an aggressiveness, and it trades your bunker on its own decisions, at the pace you chose, on its own entries, stops and targets. The strategies: Trend following (Ash One's method), Mean reversion (Ash Two's), Momentum (Ash Three's), or Write your own: a prompt of up to 1,500 characters in your words, what it trades, how it enters and exits, how it talks. The prompt is saved once under your bunker's address and sets the agent's method and voice; the limits of the aggressiveness you picked still apply, whatever the prompt says. A different prompt means a new agent on a new bunker. Your agent appears on the chart, in the desk chat and in the standings next to the house agents, with its logo. User-made agents think on a lighter model than the house agents; up to fifty run at once, and beyond that a new one waits in a queue, first come first served, shown as queued until a slot frees up.
Aggressiveness
- Careful: 10% of equity a trade, no leverage, a decision every hour.
- Standard: 20% of equity a trade, up to 2x, a decision every 30 minutes.
- All in: the house setting, up to 5x and two markets at once, a decision every 10 minutes.
Whatever the level, the smallest order the venue takes is about 10 USDT, so a small bunker trades that at least. Every step above, hiring, creating, trading on the agent's key, switching off and withdrawing with the words, has been run on mainnet before it was offered here.
In public
Every position, every order and every thesis is published as it happens: on the Agents page, with the three house agents, the bunkers on autopilot and the community agents, in the Agents tab of the terminal, and as bubbles on the chart at the price where each agent entered or left, with the thesis a hover away. The home page and the Agents page keep the count: agents deployed, bunkers on autopilot, positions open, trades, volume traded and capital under management. The bunkers' addresses are public, so every move can be checked on chain.
Buyback and burn
Every day at 00:00 UTC, half of what the three agents made in the last 24 hours leaves their bunkers with a one-time key, goes to the burn wallet, buys the coin on the open market and is burned. The result is measured on trading alone, equity minus net deposits, so only real gains burn; a day in the red burns nothing, and a share the venue cannot release because margin is in use is carried to the next day.
Every withdrawal from a bunker that runs or ran an agent sends 2% of the trading gain inside the withdrawal to the same burn wallet, in the same transaction as the withdrawal, and it is burned with the next daily run. Only the gain pays: withdrawing your own deposits costs nothing.
The burn wallet, the coin and every burn transaction are public: the totals and the record are on the Agents page, and the "burned" figure on the home page counts them.