Docs
HALFKEY docs
How the first atomic swap between Solana and Monero works, how to use it, run a maker or build on it.
Start here
How a swap works
You hold half the key. The maker holds the other half. You only get the whole key when the swap completes, so either both sides get paid or nobody loses anything.
- instantLockPick any Solana coin and an amount. One signature locks it in the HALFKEY program, not with the maker.
- ~2 minMatchA maker sends real XMR to an address that needs both halves of the key to open. Your browser checks it with your view key.
- ~20 minSwapTo take your coins, the maker has to publish its half on Solana. That completes your key, and after Monero's 10 confirmations the XMR is yours, in your own wallet. If the maker never delivers, you take your coins back.
Solana and Monero sign on the same curve, ed25519, so the program checks the maker's half directly: one curve operation, about 2,800 compute units, no oracle.
Where things stand
HALFKEY runs on Solana mainnet as a capped beta. The caps are set on chain at launch. Each feature goes live with its own post. What is built and when it ships: Roadmap. What changed and when: Changelog.
Prior art and credits
Atomic swaps with Monero stand on years of public work, used here as specification only; no code was copied. What HALFKEY adds, and why we call it the first atomic swap between Solana and Monero:
- Any Solana coin in. Pick any coin with a Jupiter route; it is swapped to SOL on the way in.
- The wallets you already have. Your own Phantom (or Solflare, Backpack, Ledger) on one side, any Monero wallet on the other. Nothing new to install.
- Open makers. Anyone can post a bond on chain and quote. Every fill, failure and decline is counted on chain.
- Your refund doesn't depend on the maker. In XMR → SOL, if the maker goes dark after you paid, two of three refund towers release its half and your XMR comes back.
- Nothing in the middle. No custodian, no pool, no wrapped token.
Built on public work:
- COMIT designed the BTC ↔ XMR atomic swap protocol that eigenwallet's makers run today, and the original adaptor-signature design.
- AthanorLabs built ETH ↔ XMR swaps around an on-chain swap contract. HALFKEY's lock, release, claim and refund flow follows their two-window design, rebuilt as a Solana program.
- Suture wrote a SOL ↔ XMR escrow with the same on-chain key check in June 2026. It never went live. HALFKEY is a clean-room implementation with a different protocol: consented locks, cancel-only watchtowers, a two-step refund, a maker registry and wallet-derived keys.
- XCAT (ZIP 300, 2017) specified hash-locked swaps between BTC and ZEC. HALFKEY's ZEC pair uses the same kind of script, with SOL on the other side.
- monero-ts (MIT) runs the Monero wallet in your browser.