Elysium Open the app

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.

StateWho actsWhat changes on-chain
AgreedYou and the seederNothing. Terms and the note commitment travel over an end-to-end encrypted channel.
LockedSeederPayout locked, binding hash stored, stipend sent to the fresh wallet.
SettledYour fresh wallet (or anyone)Proof checked against a recent pool root, payout sent to the named address.
RefundedSeeder, after the windowRemaining 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.

  1. Pick an offer. Choose a note size and a seeder quote at or under your max premium. Enter your fresh address.
  2. Receive the commitment. The seeder sends their note commitment and a binding salt. The app checks them against what the seeder will lock.
  3. Wait for the lock. The seeder calls lock(). Your fresh wallet receives a small gas stipend; the app confirms the binding hash matches.
  4. Deposit. From your funding wallet, deposit the seeder's commitment into the pool. You pay the full note size.
  5. Let the crowd grow. Other deposits of the same size make yours harder to pick out. Wait as long as the window allows.
  6. 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.

  1. Post an offer. Set a note size, a premium and a deal window. Offers are signed messages on the offer board, not transactions.
  2. Make a note. For each accepted request, generate a fresh note (k, r) and its commitment C, plus a random salt s. Keep k and r to yourself.
  3. Lock. Call lock() with the requester's fresh address and bind = Poseidon(C, s), sending the payout. Then send C and s to the requester.
  4. Withdraw when you like. After the requester deposits C, the note is yours. Withdraw it from the pool on your own schedule.
  5. 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 k or r, 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-chain bind before 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

  1. The deal is Locked and the window has not ended.
  2. root is one of the pool's recent roots (pool.isKnownRoot).
  3. The Groth16 proof verifies for [root, bind, dealId, recipient].
  4. Then it marks the deal Settled and sends the remaining payout to the recipient.
ContractRoleAddress
LatebraEscrow (1 HYPE pool)Deals for 1 HYPE notesafter deployment
LatebraEscrow (10 HYPE pool)Deals for 10 HYPE notesafter deployment
LatebraEscrow (100 HYPE pool)Deals for 100 HYPE notesafter deployment
LatebraEscrow (1000 HYPE pool)Deals for 1000 HYPE notesafter deployment
SettleVerifierGroth16 verifier from the setup ceremonyafter deployment

Parameters

Target network

Network fieldValue
NetworkElysium Mainnet
Chain ID99901
Native gas assetHYPE
Settlement layerHyperEVM
Latebra contractsNot 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.

ParameterValueNotes
Note sizes1, 10, 100, 1000 HYPEOne escrow per pool size.
Premium0.05% to 10%Set by each seeder, in basis points.
Deal window30 min to 24 hDefault 6 hours. Starts at lock().
Gas stipend0.01 HYPEPart of the payout, sent at lock so the fresh wallet can settle.
Merkle depth20Matches the pool's tree.
Proof systemGroth16, BN254Proof built in the browser.
Protocol feenone in v1Seeders 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.

ObserverSeesCan't see
Anyone on-chainA lock for your fresh wallet, many pool deposits, a settle from your fresh walletWhich deposit backed the deal
Your seederYour deposit transaction and your fresh walletYour name, unless you tell them
Latebra contractsThe proof and its public inputsThe 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

  1. Design now

    Protocol spec, website and the deal simulator.

  2. Testnet next

    Circuit, escrow and verifier in an Elysium-compatible test environment. Browser prover and a first offer board with encrypted messaging.

  3. Audit and ceremony

    External audit of contracts and circuit. Public trusted setup ceremony with open contributions.

  4. Mainnet

    Escrows for the 1, 10, 100 and 1000 HYPE pools. Seeder dashboard for offers, locks and refunds.

  5. 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.