Leyora
A private L2 on Hyperliquid's Elysium where every block is one auction.
Abstract
Leyora is a second layer on Elysium, Kinetiq's Hyperliquid chain, built so that balances, payments, trades and launches are nobody's business but the people in them. The sequencer signs a block every second, and every header carries a Merkle root of the whole state. A contract on Elysium keeps a receipt chain of those blocks. HYPE comes in through a door contract on Elysium and goes back out the same way, so there is nothing new to hold and no new key to keep.
Trading on Leyora is a sealed auction. All buys and sells of a coin that arrive in the same block clear together at one price, and every launch opens with a thirty second sealed window where the creator and every first buyer pay the same opening price. There is no first fill to snipe and no order to sandwich, as a property of the chain rather than a promise.
The problem
On a public chain a wallet address is a diary anyone can read: what it holds, who it paid, what it bought, what it launched. Copy traders follow the good ones, bots step in front of the slow ones, and a creator is watched from the first buy. Worse, every launch curve fills orders in the order they arrive, which hands the first blocks of every launch to whoever runs the fastest bot.
Leyora answers both: the amounts stay with their owners, the proofs stay public, and inside a block the order of arrival is worth nothing.
Design overview
Three parts make the system.
- The chain. Where accounts, transactions and state live. Nothing changes unless a signed transaction in a block changes it, and trades clear once per block.
- The settlement contract. A contract on Elysium holding a forward only chain of receipts, with a seven day timelock before the posting key can change.
- The door. A contract on Elysium that takes HYPE deposits and pays withdrawals, and refuses to pay any withdrawal twice.
Accounts and transactions
Your EVM address is your Leyora account, so the wallet you already have is enough. A transaction is a small JSON message holding the sender, a nonce, a type and a body, serialized with sorted keys. Each account counts its own nonces upward, which rules out replays. The hash of a transaction is the SHA256 of those bytes, no matter which way it was signed.
Two signing paths exist.
- A wallet signature. The wallet signs the message itself with personal_sign, the same readable prompt every EVM wallet shows. The message starts with "LEYORA tx v1", so it can never be mistaken for an Elysium transaction, and the chain recovers the signing address from it.
- A session key. With one signature the wallet approves a key the browser generated, giving it a spend cap, a list of permitted types and an expiry of at most 24 hours. From then on that key signs payments, trades and launches with no prompt at all. Withdrawals and any change to the session still need the wallet. An agent uses the same path with a key of its own.
Transfers, pay links, launches, buys, sells, graduation claims, withdrawals, sessions and perps are all transaction types. Deposits, refunds and oracle prices arrive as system transactions, so no value moves without a block recording it.
Blocks
A block is an ordered list of transactions under a header with:
- height and parentHash, which tie each block to its predecessor
- timestamp and txCount
- txRoot, a Merkle root over the hashes of the transactions inside
- stateRoot, a Merkle root over the entire state once the block is applied
- producer, the key that signs the block
Hashing the canonical header with SHA256 gives the block hash, which the producer key signs. Merkle leaves are SHA256(0x00 || data), parents are SHA256(0x01 || left || right), and an odd node is carried up unchanged. For the state root the leaves are SHA256(key || 0x00 || value) over the sorted state, so touching a single balance moves the root. A block arrives every second, and an empty one at least every minute, so the chain is never idle.
The sealed auction
Every block, every buy and sell of a coin that arrived in that block is cleared together. Sellers are matched against buyers first, and only the net flow moves the bonding curve. Every buyer in the block pays the same price and every seller receives the same price. Allocation is pro rata by size. A slippage limit is checked against the real clearing price, and an order outside it is refunded in the same block.
A launch opens sealed. For thirty seconds buys queue, the creator's own first buy among them. Then every queued buy clears at one opening price. Until the window closes the coin shows 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 clears. Individual order sizes stay private. Nobody sees an order before it clears, because the chain itself is private, which is why this belongs on a private chain and nowhere else.
Settlement on Elysium
The settlement contract is deployed once per chain with its chain id, an admin and a chain authority. Posting receipts is reserved for the chain authority. Swapping the chain authority takes a proposal, a seven day wait inside the contract, and an execute step, and the proposal can be withdrawn. The admin can pause at once but can never post.
Each receipt names a block range and brings a Merkle root of those block hashes, the state root at the end of the range, the hash of the last block and how many transactions the range held. The contract accepts a receipt only if it starts right after the previous one ended, so nothing can be skipped or posted twice. Every accepted receipt extends a hash chain:
checkpoint_hash = SHA256(prev_checkpoint_hash || from || to || blocks_root || state_root || last_block_hash || tx_count)Every field is emitted as an event, so a receipt can be rebuilt from the Elysium logs alone and compared with the blocks in the explorer. The verifier that ships with the chain performs that comparison end to end.
The door
To deposit, call the door contract from any EVM wallet with some HYPE and the Leyora account to credit. Plain transfers are refused, so every deposit names its account. Once the deposit has its confirmations a system transaction credits that account. Deposits into the door are visible on Elysium like any transfer, and 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 Leyora withdrawal hash and the contract marks it paid, so a second payout for the same withdrawal is impossible on chain, whatever the door service does. A payout that can never land is refunded to your balance.
Privacy model
What the chain needs to prove itself is public. What belongs to a person is not.
- Block headers, hashes and state roots
- The hash, type and status of each transaction
- Coin prices, curves, candles and clearing prices
- Perps markets, prices and the vault size
- Receipts and their Elysium transactions
- The sender of a transaction
- The receiver
- Amounts, balances and order sizes
- The creator of a coin
- Positions and vault shares
The owner alone 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.
Applications
Payments. HYPE moves between Leyora accounts and nobody outside the two of them learns who or how much.
Pay links. Put an amount behind a link and hand it over. The person who opens the link takes the funds into their own account. A link lasts up to 90 days and its creator can pull it back any time.
Markets. Each coin has a bonding curve on the chain that clears once per block. Price, market cap and volume are shown in USD.
Launchpad. A launch costs a 2 HYPE bond, returned at graduation, and pays the creator 0.5% of every trade. Once the curve is sold out, the coin becomes an ERC20 on Elysium, paired with the HYPE from its curve in a Uniswap pool whose liquidity is locked for good, and holders claim their tokens to whichever EVM address they like.
Perps. Long or short HYPE, BTC, ETH and SOL at up to 10x with HYPE as margin, with a vault anyone can fund as the other side. Prices come from Hyperliquid and are posted as transactions, so the price behind every fill and liquidation sits 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% |
| Creator's cut | 0.5% of every trade |
| 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 |
| Graduation | an ERC20 with a Uniswap pool on Elysium, liquidity locked |
| Claim after graduation | holders take the ERC20 to an EVM address of their choice |
| Perps leverage | up to 10x, HYPE margin |
| Pay link expiry | up to 90 days |
| 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 and signature below is public. Follow the links, or run the verifier against 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 settlement interface and the verifier are in the repository. See developers.