Latebra docs
How Latebra turns a privacy-pool deposit into HYPE in a wallet that has never touched the pool: the deal, the proof, the escrow contract, and what it does not hide.
Status: protocol design. Nothing described here is deployed or audited yet. Parameters are proposals for v1 and may change before testnet.
Overview
A new wallet needs HYPE before it can do anything, and the usual ways to get it there leave a trail. Withdrawing from a privacy pool through a relayer shows the relayer your request and IP. Withdrawing yourself means the new wallet calls the pool and needs gas from somewhere. An exchange withdrawal ties the wallet to your account.
Latebra replaces that first step with a two-sided deal:
- You deposit a pool note that belongs to a seeder.
- The seeder pays you HYPE in your fresh wallet, minus a premium.
- The escrow contract releases the payout only when a zero-knowledge proof shows the seeder's note is in the pool, without saying which deposit it is.
Your fresh wallet only ever talks to the Latebra escrow. It never calls the pool, and no relayer sits in the path.
Latebra targets Elysium, an L2 that settles to HyperEVM and uses native HYPE for gas. The proposed protocol uses HYPE for deposits, escrow payouts and gas stipends, with fixed-size privacy pools inspired by the Tornado Cash design. The idea builds on Ouragan, a LambdaZKWeek design for a permissionless Tornado Cash offramp.
Deal lifecycle
Every deal moves through the same states. Only the first happens off-chain.
| State | Who acts | What changes on-chain |
|---|---|---|
| Agreed | You and the seeder | Nothing. Terms and the note commitment travel over an end-to-end encrypted channel. |
| Locked | Seeder | Payout locked, binding hash stored, stipend sent to the fresh wallet. |
| Settled | Your fresh wallet (or anyone) | Proof checked against a recent pool root, payout sent to the named address. |
| Refunded | Seeder, after the window | Remaining lock returned to the seeder. |
Fund a fresh wallet
What you need: a wallet with enough HYPE for the note size plus gas (this one makes the deposit), and the address of a brand-new wallet you control.
- Pick an offer. Choose a note size and a seeder quote at or under your max premium. Enter your fresh address.
- Receive the commitment. The seeder sends their note commitment and a binding salt. The app checks them against what the seeder will lock.
- Wait for the lock. The seeder calls
lock(). Your fresh wallet receives a small gas stipend; the app confirms the binding hash matches. - Deposit. From your funding wallet, deposit the seeder's commitment into the pool. You pay the full note size.
- Let the crowd grow. Other deposits of the same size make yours harder to pick out. Wait as long as the window allows.
- Settle. Your browser builds the proof and your fresh wallet calls
settle(). The payout lands in the same transaction.
Settle before the window closes. Once your deposit lands, the note belongs to the seeder. If the window ends before you settle, the seeder can refund the lock and still keep the note.
For seeders
Seeders provide the HYPE and earn the premium. Each filled deal ends with a pool note you created, worth the full size, which you can withdraw whenever you like.
- Post an offer. Set a note size, a premium and a deal window. Offers are signed messages on the offer board, not transactions.
- Make a note. For each accepted request, generate a fresh note
(k, r)and its commitmentC, plus a random salts. Keepkandrto yourself. - Lock. Call
lock()with the requester's fresh address andbind = Poseidon(C, s), sending the payout. Then sendCandsto the requester. - Withdraw when you like. After the requester deposits
C, the note is yours. Withdraw it from the pool on your own schedule. - Refund if needed. If the window ends without a proof, call
refund()to take back what is left of the lock.
Your premium covers the capital you lock, the time it waits, and the gas stipend you lose if a requester never deposits.
The proof
The requester never learns the note's secrets, so they can't withdraw it themselves. What they prove is narrower: the commitment they were given is somewhere in the pool's Merkle tree.
// LatebraSettle circuit (Groth16, BN254) private C // seeder's note commitment private s // binding salt private pathElements[20], pathIndices[20] public root // a recent pool root public bind // stored by lock() public dealId public recipient // fresh wallet address assert Poseidon(C, s) == bind assert MerkleRoot(C, pathElements, pathIndices) == root // MiMC-Sponge, like the pool bind dealId, recipient // stops the proof being reused or redirected
Why neither side can cheat
- The requester can't double-dip. They never see
korr, so the note they deposit can only be withdrawn by the seeder. - The seeder can't skip payment. The payout is locked before the requester deposits, and only the proof releases it.
- A fake commitment only hurts the seeder. The app checks
Poseidon(C, s)against the on-chainbindbefore you deposit. If a seeder hands over a commitment they can't open, they lose the note value. - The proof can't be stolen. It is bound to the deal and the recipient, so anyone who copies it can only pay you.
Contracts
One escrow contract per pool. The interface below is the v1 proposal; addresses will be published here after deployment.
interface ILatebraEscrow { enum State { None, Locked, Settled, Refunded } // Seeder locks size * (1 - premium) and names the fresh wallet. // STIPEND is forwarded to the recipient immediately. function lock(address recipient, uint16 premiumBps, uint64 window, bytes32 bind) external payable returns (bytes32 dealId); // Anyone may submit; the payout always goes to the recipient. function settle(bytes32 dealId, uint256 root, uint256[8] calldata proof) external; // Seeder reclaims the lock after the window, if unsettled. function refund(bytes32 dealId) external; event Locked(bytes32 indexed dealId, address indexed seeder, address recipient, uint16 premiumBps, uint64 expiry); event Settled(bytes32 indexed dealId); event Refunded(bytes32 indexed dealId); error WrongValue(); error NotLocked(); error Expired(); error NotExpired(); error UnknownRoot(); error BadProof(); }
What settle() checks
- The deal is
Lockedand the window has not ended. rootis one of the pool's recent roots (pool.isKnownRoot).- The Groth16 proof verifies for
[root, bind, dealId, recipient]. - Then it marks the deal
Settledand sends the remaining payout to the recipient.
| Contract | Role | Address |
|---|---|---|
| LatebraEscrow (1 HYPE pool) | Deals for 1 HYPE notes | after deployment |
| LatebraEscrow (10 HYPE pool) | Deals for 10 HYPE notes | after deployment |
| LatebraEscrow (100 HYPE pool) | Deals for 100 HYPE notes | after deployment |
| LatebraEscrow (1000 HYPE pool) | Deals for 1000 HYPE notes | after deployment |
| SettleVerifier | Groth16 verifier from the setup ceremony | after deployment |
Parameters
Target network
| Network field | Value |
|---|---|
| Network | Elysium Mainnet |
| Chain ID | 99901 |
| Native gas asset | HYPE |
| Settlement layer | HyperEVM |
| Latebra contracts | Not deployed |
Network reference: Elysium and HYPE documentation. The website is a demonstration, not a live settlement interface.
Proposed for v1. Anything a seeder sets is checked against these bounds on-chain.
| Parameter | Value | Notes |
|---|---|---|
| Note sizes | 1, 10, 100, 1000 HYPE | One escrow per pool size. |
| Premium | 0.05% to 10% | Set by each seeder, in basis points. |
| Deal window | 30 min to 24 h | Default 6 hours. Starts at lock(). |
| Gas stipend | 0.01 HYPE | Part of the payout, sent at lock so the fresh wallet can settle. |
| Merkle depth | 20 | Matches the pool's tree. |
| Proof system | Groth16, BN254 | Proof built in the browser. |
| Protocol fee | none in v1 | Seeders keep the whole premium. |
Security model
Latebra hides one link, between your pool deposit and your fresh wallet, from everyone except your seeder. Here is who sees what.
| Observer | Sees | Can't see |
|---|---|---|
| Anyone on-chain | A lock for your fresh wallet, many pool deposits, a settle from your fresh wallet | Which deposit backed the deal |
| Your seeder | Your deposit transaction and your fresh wallet | Your name, unless you tell them |
| Latebra contracts | The proof and its public inputs | The commitment or the deposit |
Known risks
- Your seeder can link you. They made the commitment, so they can find your deposit. Pick a seeder you have no other ties to.
- Timing narrows the crowd. Observers know your deposit landed between the lock and the settle. More same-size deposits in that window mean more cover.
- The window is a deadline. Settle before it ends. After that, a refund leaves the seeder with both the lock and the note.
- Stipend farming. A requester who never deposits keeps the stipend. Seeders price this in and can limit open deals per channel.
- Trusted setup. The verifier comes from a ceremony. A compromised setup could allow false proofs, so the ceremony will be public.
- Pool dependency. Latebra inherits the pool's contracts and its anonymity set. A bug or an empty pool weakens every deal.
- Unaudited. The contracts and circuit have not been audited. Don't use mainnet funds before an audit is published.
Check your local rules. Laws on privacy pools differ by country. Make sure yours allow it before you use Latebra.
Roadmap
- Design now
Protocol spec, website and the deal simulator.
- Testnet next
Circuit, escrow and verifier in an Elysium-compatible test environment. Browser prover and a first offer board with encrypted messaging.
- Audit and ceremony
External audit of contracts and circuit. Public trusted setup ceremony with open contributions.
- Mainnet
Escrows for the 1, 10, 100 and 1000 HYPE pools. Seeder dashboard for offers, locks and refunds.
- Later
One deposit seeding several wallets through recursive proofs, and a seeder SDK for automated quoting.
Glossary
- Note
- The secret pair
(k, r)that lets its owner withdraw from a privacy pool. - Commitment
- The public hash of a note, stored in the pool's Merkle tree when someone deposits.
- Seeder
- The party who locks HYPE for your fresh wallet and ends up owning the note you deposit.
- Bind
Poseidon(C, s), stored at lock. It ties the deal to one commitment without revealing it.- Stipend
- A small slice of the payout sent at lock, so the fresh wallet can pay gas to settle.
- Root
- A snapshot of the pool's Merkle tree. Proofs use a recent one.
- Anonymity set
- The same-size deposits your deposit could be mistaken for.
- Deal window
- How long the requester has to settle after the lock.
Brand kit
Use these when you write about Latebra or build on it.
Mint #97FCE4
Deep teal #071C19
Mint white #E8FFF9
Ink #04201B
- Type: Archivo, wide and heavy for headings; IBM Plex Mono for numbers, addresses and code.
- Mark: the arch, a niche to hide in. Keep it mint on teal or ink on mint, with clear space of at least half its width.
- Name: Latebra, Latin for a hiding place. Write it with a capital L; the site is latebra.cash.