HALFKEY
Mainnet · capped beta

Trust center

The trust model, live.

What the program enforces on chain, what still rests on the refund towers and watchtowers, and the live state of each.

The mechanism

How the atomic swap works

The long version
A swap in four moves: you lock SOL in the program; the maker sends XMR to an address that needs both halves of the key; the maker claims the SOL by publishing its half; your browser joins the halves and the XMR is yours. If the maker never sends, the swap is cancelled and the SOL refunds to you. Youbrowser + walletHALFKEY programSolanaMakerbonded, on chainMonerothe XMR chain 1 · LockSOL waits in the program,never with the maker 2 · SendXMR to an address thatneeds both halves 3 · Claimto take the SOL, the makerpublishes its half 4 · Completeyour browser joins thehalves: the XMR is yours
  1. 1 · LockYou → HALFKEY programSOL waits in the program, never with the maker
  2. 2 · SendMaker → MoneroXMR to an address that needs both halves
  3. 3 · ClaimMaker → HALFKEY programto take the SOL, the maker publishes its half
  4. 4 · CompleteHALFKEY program → youyour browser joins the halves: the XMR is yours

Same curve, two chains

Solana and Monero both sign on ed25519, so the program checks the maker's half of the Monero key directly. One curve operation, about 2,800 compute units, no oracle.

Your half never leaves you

It comes from one wallet signature (no transaction). The same wallet rebuilds it on any device; nothing is stored, there is no recovery file.

If the maker never sends

The swap is cancelled before the deadline and your SOL refunds with one signature. Cancelling reveals nothing. The worst case is your coins back.

Honest split

Proven on chain, and what still rests on people

Enforced by the program

Funds leave only by claim or refundA claim needs the maker's valid half of the key and pays the claimer; a refund pays the wallet that locked. Nothing else moves the money.
Claim and refund exclude each otherEach has its own time window. Once one happens the other never can.
The maker signed the exact termsNo lock without the maker's signature over amount, price, deadlines and keys.
No claim without a go-aheadThe go-ahead is a signed "ready". SOL → XMR: yours, once your browser has checked the maker's Monero lock. XMR → SOL: the maker's, once your deposit is 10 confirmations deep. An unpaid lock can never take SOL.
Fees, split and caps0.5% at settlement, half to stakers and half to the burn auction; per-swap and open-value caps; nothing created or lost.
A pause never blocks an exitThe admin can pause new swaps. Claims, refunds and cancels keep working.

Rests on people today

The maker says ready in XMR → SOLIt confirms your deposit after 10 confirmations. If it vanishes after you paid, the refund towers hand your XMR back, not SOL.
The refund towers stay honest and aliveAt launch all three run on one server we operate, so that server is the trust point until they move to separate operators. Two of the three colluding with a user could take one swap's SOL from the maker, capped by the per-swap limit. If fewer than two survive and the maker is gone too, a paying user waits.
Someone submits the transactionsCancels before a deadline, fee-covered claims and pre-signed ZEC spends need someone online: your open tab, a watchtower, or anyone.
The maker sees part of the pictureIt knows the shared view key, so it sees the XMR output exist (not where you move it next), and it sees your Solana wallet and IP when your browser asks for a quote.
The page you loadThis site also builds as a static site with a published file hash; you can run it from IPFS with your own Solana RPC and Monero node.

In one sentence: SOL leaves on a claim only after a signed go-ahead, yours in SOL → XMR and the maker's in XMR → SOL. A refund tower can't move funds on its own, and never holds a whole key half.

Refund towers

Paid, and the maker vanished? Your XMR comes back.

In XMR → SOL, right after the maker locks SOL it splits its half of the Monero key into 3 pieces, any 2 of which rebuild it, and gives one to each of three refund towers, with public commitments. At launch the three towers run on one server we operate; they move to separate operators next. Each tower checks its piece against them and signs a receipt. Your browser reads the receipts from the towers themselves, and shows a deposit address only once they are in.

If the maker goes dark after you paid and never says ready, the swap can no longer be claimed once the claim deadline passes, about 7 hours after the lock. Then the towers release their pieces, rebuild the maker's half and submit the refund: the maker's SOL goes back to it, and you sweep your XMR back on the same page, with or without the maker. A claimed swap's pieces are destroyed.

A tower holds one piece, never a whole half, and can't move funds. It reads Solana at finalized from two independent providers, and releases nothing unless they agree.

Asking the refund towersEach tower answers for itself: online or not, and how many swaps it has on record.

Liveness, not custody

Watchtowers: what they can and cannot do

Live watchtowers
JobWho can do itCan it move funds to itself?
Cancel a swap the maker didn't fund before its deadlinea listed watchtower, or your open tabNo. Cancelling only enables the refund to your wallet.
Send a fee-covered claim for XMR → SOL at a fresh addressa watchtower (so your fresh address stays unlinked)No. The claim pays only the address bound in the escrow.
Broadcast your pre-signed ZEC claim or refunda watchtower, or your open tabNo. It is signed to pay only you.
Refund after the claim window closesanyoneNo. It pays only the wallet that locked.

Formal verification

Machine-checked, with the gaps written down

The escrow's decision and accounting logic is model-checked with Kani for every input and every reachable escrow state: funds leave only to the claimer (with the secret) or to the locker, never both, only inside their time windows, with nothing created or lost; locks need the maker's signed consent; a pause never blocks an exit; scalar aliases are rejected. The counts below are from the v1.5 source; the suite is re-run on the launch build before launch.

43Core and platform43 of 43, v1.5 source
13Claim rule, burn, staking13 of 13, v1.5 source
10ZEC hash lock10 of 10, v1.5 source

Not covered by the proofs

  • Curve-point checks are tested, not proven. That testing found one low-severity bug (non-canonical identity encodings); the fix is in this build.
  • Account handling (owners, writable checks, token transfers, the maker registry) is covered by the end-to-end suite, not by Kani.
  • Four slow harnesses (staking credits among them) run only on request; their properties are covered by property tests.
  • Off-chain parts: the SDK, maker, watchtowers, refund towers and this site.
  • The Solana runtime, its syscalls and the toolchain are assumed correct.

The admin key

No switch can stop a claim or a refund

During the beta a config admin exists. It can pause new swaps, change caps and windows, and change fees up to a hard 1% ceiling. It cannot touch an open swap: claims, refunds and cancels never check the pause. It stays through the beta because Monero's next network upgrade will need a program update; this panel reads the live state.

Program—
Upgrade authorityreading
Config adminreading
New swapsreading
Per-swap cap—
Open value cap—
Protocol fee—

Status, plainly

Source, build and audit

Source codePublished (BSL 1.1)github.com/halfkey-labs/halfkey, verified build below
Build hash904c57ec3e6660bba2b00758c5458d9687c6186a01e15be0fe2330d71c2a47c8compare with the program on chain
Third-party auditNone yetswap sizes stay capped on chain
This siteStatic buildruns from IPFS with your own nodes
Executable hash904c57ec3e6660bba2b00758c5458d9687c6186a01e15be0fe2330d71c2a47c8

Check it yourself: the hash it prints must match.

solana-verify get-program-hash -u https://api.mainnet-beta.solana.com FeRHfMtGSzUKZc7LX5TvRWjkq91aBJrD1LYf6fi3Jg47

Public addresses, read from this site's config

Contracts and wallets

NameAddressRoleLinks
Reading the network config

Residual risk

What could still go wrong

Caps keep every one of these small during the beta. Found something? Tell us.

  • Signing the key message elsewhere. A site that tricks you into signing the HALFKEY key message could sweep XMR you haven't collected. Only sign it here, and collect soon after a swap.
  • A deep Monero reorg could in theory undo a lock that counted after 10 confirmations.
  • A program bug. The code is model-checked and tested; no third-party audit yet. The caps bound the damage.
  • Your IP and wallet are visible to the maker your browser talks to. Use a VPN or Tor if that matters.
SOL $— XMR $— 1 SOL = — XMR Monero block — · — Watchtowers — Solana mainnet · Monero mainnet