Equira
A private L2 on Hyperliquid's Elysium where every block is a single auction.
Abstract
Equira is a second layer on Elysium, the Hyperliquid chain run by Kinetiq, designed so that balances, payments, trades and launches concern only the people taking part in them. A sequencer signs one block per second, and every block header carries a Merkle root over the full state. A contract on Elysium keeps a chain of receipts for those blocks. HYPE enters through a door contract on Elysium and leaves the same way, so there is no new asset to hold and no new kind of key to manage.
Trading on Equira is a sealed auction. Every buy and sell of a coin that lands in the same block clears together at one price, and every launch opens with a thirty second sealed window in which the creator and all early buyers pay the same opening price. Nobody can snipe the first fill or sandwich an order, and that holds because of how blocks are built, not because anyone promises it.
The problem
On a public chain, an address is an open book: what it holds, whom it paid, what it bought, what it launched. Copy traders shadow the wallets that win, bots jump ahead of the ones that are slow, and a creator is watched from the very first buy. On top of that, launch curves fill orders in arrival order, which gives the first blocks of every launch to whoever runs the fastest bot.
Equira addresses both problems. Amounts stay with the people they belong to, the proofs stay public, and within a block it no longer matters who arrived first.
Design overview
The system has three parts.
- The chain. Accounts, transactions and state live here. Nothing changes except through a signed transaction in a block, and trades clear once per block.
- The settlement contract. A contract on Elysium that holds a forward-only chain of receipts. Changing the key allowed to post them takes a seven day timelock.
- The door. A contract on Elysium that accepts HYPE deposits and pays withdrawals, and will never pay the same withdrawal twice.
Accounts and transactions
Your EVM address is your Equira account, so the wallet you already have is all you need. A transaction is a small JSON object with five fields, chainId, from, nonce, type and body, serialized with sorted keys and no whitespace. Every account counts its own nonces upward, which makes replays impossible. A transaction's hash is the SHA-256 of those bytes, whichever way it was signed.
There are two ways to sign.
- A wallet signature. The wallet signs the text with
personal_sign, the readable prompt every EVM wallet shows. The text begins with"EQUIRA tx v1"and a newline, so it can never be confused with an Elysium transaction, and the chain recovers the signer's address from it. - A session key. With one signature, the wallet approves a key generated in the browser and gives it a spending cap, a list of allowed transaction types and an expiry of at most 24 hours. That key then signs payments, trades and launches with no prompt at all. Withdrawals and changes to the session still need the wallet. An agent uses the same mechanism with its own key.
Transfers, pay links, launches, buys, sells, graduation claims, withdrawals, sessions and perps are all transaction types. Deposits, refunds, payout confirmations and oracle prices enter as system transactions written by the sequencer, so no value moves without a block that records it.
Blocks
A block is an ordered list of transactions under a header with these fields:
chainId,heightandparentHash, which link each block to the one before ittimestampandtxCounttxRoot, a Merkle root over the hashes of the transactions in the blockstateRoot, a Merkle root over the whole state after the block is appliedproducer, the address that signs the block
The SHA-256 of the canonical header is the block hash, and the producer signs "EQUIRA block v1\n" + hash with personal_sign. Merkle leaves are SHA256(0x00 ‖ data), inner nodes are SHA256(0x01 ‖ left ‖ right), an odd node moves up unchanged, and an empty tree has a root of 32 zero bytes. For the state root, each leaf is SHA256(0x00 ‖ key ‖ 0x00 ‖ value) over the sorted state, so changing a single balance changes the root. Blocks come every second, and an empty block is written at least once a minute, so the chain never goes quiet.
The sealed auction
In every block, all the buys and sells of a coin that arrived in that block clear together. Sells are netted against buys first, and only the remainder moves the bonding curve. Every buyer in the block pays the same price and every seller gets the same price, with fills split pro rata by size. Each order's limit is checked against the real clearing price, and an order outside its limit is refunded in the same block.
A launch starts sealed. For thirty seconds buys queue up, the creator's own initial buy among them, and then all of them fill at one opening price. While the window is open the coin shows only how much HYPE is waiting and from how many buyers, and nothing can be sold.
The chain records one clear per coin per block, with the price, the totals and the number of buyers and sellers. Candles are built from those clears, and individual order sizes stay private. Orders are invisible before they clear because the chain itself is private, which is why this design needs a private chain to work.
Settlement on Elysium
The settlement contract is deployed once per chain with its chain id, an admin and a chain authority. Only the authority can post receipts. Replacing it takes a proposal, a seven day wait enforced by the contract, and an execute step, and the proposal can be cancelled in between. The admin can pause the contract immediately but can never post a receipt.
Every receipt names a block range and carries the Merkle root of those block hashes, the state root at the end of the range, the hash of the last block and the number of transactions in the range. The contract accepts a receipt only if it begins exactly where the previous one ended, so no block can be skipped or covered twice. Each accepted receipt extends a hash chain:
checkpoint = SHA256(prev ‖ from ‖ to ‖ blocksRoot ‖ stateRoot ‖ lastBlockHash ‖ txCount)Here from, to and txCount are big-endian 64-bit integers. Every field is emitted in a ReceiptPosted event, so the receipt chain can be rebuilt from Elysium logs alone and compared with the blocks in the explorer. The verifier shipped with the chain does that comparison end to end.
The door
To deposit, call depositFor(account) on the door contract from any EVM wallet, sending HYPE and naming the Equira account to credit. Plain transfers are rejected, so every deposit names its account. Once the deposit has enough confirmations, a system transaction credits it. Deposits into the door are visible on Elysium like any other transfer; a shielded door is the next step.
To withdraw, sign a transaction naming an EVM address. Your balance drops in that block and the door contract sends the HYPE. Each payout is keyed by the Equira withdrawal hash and marked as used on Elysium, so a second payout for the same withdrawal is impossible on chain, whatever the payout service does. A payout that cannot be delivered is refunded to your balance.
Privacy model
What the chain needs in order to prove itself is public. What belongs to a person is not.
- Block headers, hashes and state roots
- Each transaction's hash, type and status
- Coin prices, curves, candles and clearing prices
- Perps markets, mark prices and the vault's size
- Receipts and their Elysium transactions
- Who sent a transaction
- Who received it
- Amounts, balances and order sizes
- Who created a coin
- Positions and vault shares
Only the owner can read private data, by signing a timestamped request with the account key or with a live session key. With a session key there is no wallet prompt every few minutes. The operator that runs the sequencer can read the full state in this phase; the proofs above are what keep it honest about the outcome.
Applications
Payments. HYPE moves between Equira accounts, and nobody outside the two parties learns who paid or how much.
Pay links. Lock an amount behind a link and pass it on. Whoever opens the link claims the funds into their own account. A link lasts up to 90 days, and its creator can cancel it at any time.
Markets. Every coin has a bonding curve on the chain that clears once per block. Price, market cap and volume are shown in USD.
Launchpad. Launching costs a 2 HYPE bond, returned at graduation, and pays the creator 0.5% of every trade. On public graduation the coin becomes an ERC-20 on Elysium, paired with its curve's HYPE in a Uniswap pool whose liquidity is burned, and holders claim their tokens to any EVM address. On private graduation it keeps trading on Equira.
Perps. Long or short HYPE, BTC, ETH and SOL at up to 10x with HYPE margin, against a vault anyone can fund. Prices come from Hyperliquid and are posted as transactions, so the price behind every fill and liquidation is in a block. Positions are private.
Rules
| rule | value |
|---|---|
| Block time | 1 s |
| Empty block when idle | at least every 1 min |
| Max txs per block | 500 |
| Receipt posted to Elysium | about every 10 s |
| Trade fee | 0.9% |
| Fee split | 0.5% creator, 0.15% buyback, 0.25% operations |
| Coin supply | 1,000,000,000 tokens |
| Curve completes | at 793,100,000 sold |
| Creator bond | 2 HYPE, refunded at graduation |
| Sealed opening | 30 s after launch, one opening price |
| Clearing | one price per block for every coin |
| Public graduation | an ERC-20 with a Uniswap pool on Elysium, liquidity burned |
| Private graduation | the coin keeps trading in a pool on Equira |
| Claim after graduation | holders send the ERC-20 to an EVM address they choose |
| Perps | HYPE, BTC, ETH, SOL; up to 10x, HYPE margin |
| Perps fee | 0.1% of size to open and to close |
| Liquidation | when the loss reaches 90% of collateral |
| Profit cap | 3x collateral, reserved by the vault |
| Pay link expiry | up to 90 days (7 by default) |
| Withdrawal minimum | 0.001 HYPE |
| Session key | one wallet signature, up to 24 hours, with a spend cap |
Proof
What Elysium holds right now.
Every address, hash and signature below is public. Follow the links, or run the verifier over the same data.
| Settlement contract | |
| Door contract | |
| Block producer | |
| Chain head | |
| Receipts on Elysium | |
| Latest sealed block | |
| Latest receipt | |
| Latest checkpoint | |
| Latest state root |
The byte-level specification, the contracts and the verifier are in the repository. See developers.