monero ⇄ ethereum · peer to peer · no accounts

alpha 0.1.3 · linux x86-64

monero tunexmr.fan ↗

documentation

Technical documentation

The details behind the front page: how a swap settles, what the escrow does, what is public on each chain, how the offer book works, and how to build the client.

Canonical source documents live in the Git repository: CONTRACT.md, OPERATIONS.md and PACKAGING.md. This page is the readable overview.

Swap protocol

moos is a maker/taker protocol. A maker publishes signed offers to a shared, Tor-native offer book; a taker selects an offer from its own machine. Offers are self-contained and signed, so the direction, rate, limits, fee and exact amounts can be checked before either side funds.

Each swap locks one leg on each chain. The Monero leg goes to a per-swap address built from both sides' keys; the protocol shares only the view keys needed to watch that address. The Ethereum leg goes to a public escrow contract. No custodian holds either side.

Claiming or refunding the Ethereum leg reveals the swap secret, which makes the Monero leg spendable. A swap therefore either completes both legs or refunds the ETH leg. The ETH leg is locked first, so the XMR side always has a claim path back to it: if neither side ever claims or refunds, the XMR stays at the swap address until one does.

The client resumes a swap automatically after a crash or a failed RPC call: it re-reads the escrow, claims or refunds inside the contract windows, and sweeps the Monero leg as soon as a Claimed/Refunded log reveals the missing key. This is client behaviour, not a new timelock, and there is no bond to punish abandonment, which is why the client keeps working the claim and refund windows while its daemon runs.

Settlement publishes the Monero spend scalar on-chain, so the two legs can be linked; timing and amounts add correlation.

Ethereum escrow

The client needs a SwapCreator v3 address: mainnet bakes 0xb39074e5f5bb5fd3a5fd48df867115d5c8b97e71 and refuses to trade unless the code there matches the pinned runtime hash; --contract-address or MOOS_CONTRACT_ADDRESS overrides it, and stagenet has no default.

The contract is immutable and has no admin, upgrade or owner-withdrawal function: funds move only through a swap's own claim or refund. Before a swap, the client checks that the bytecode at that address matches the pinned v3 build. The old v1 deployment is retired and must not be used: it allowed a claim before the ETH owner attested the XMR lock. Earlier v3 builds, from before the settlement rings, are refused by the same bytecode check.

Fees and limits

Privacy and network

Ethereum is transparent: the escrow address, the ETH amount, the timelocks and the swap hashes are public. Monero hides amounts and addresses by default. The two ledgers are not equally private: settlement publishes the Monero spend scalar on-chain, so the legs can be linked; timing and amounts add correlation.

Mainnet chain traffic is Tor-only: non-loopback endpoints are tunnelled through Tor, including the clearnet default Ethereum RPC, and the default Monero peers are onion services. Mainnet refuses to start without tor, whichever process launches the daemon, so there is no direct-dial mode: only a loopback chain endpoint is reached without a tunnel. One deliberate exception: the make-offer market ticker is a display-only one-shot HTTPS request to api.kraken.com that carries no chain or wallet data and is not tunnelled, so a ticker failure never depends on the tor path.

Keys and recovery

The first run creates the identity on your machine: an Ethereum key and a Monero wallet, stored in the client's data directory, under <state>/identity; --check-runtime prints the resolved state directory. A source checkout that already has a rundir-mainnet/identity keeps using it. Back it up; nobody else can recover it. The protocol shares only the per-swap view key a swap needs to watch its Monero address.

Build and run

The source is published at git.moos.st/moos/moos and on the Radicle network. This is the canonical build guide; the other pages link here.

git clone https://git.moos.st/moos/moos.git
cd moos
./moos

On a Radicle node, clone the canonical copy instead: rad clone rad:z3vS8s9mTztnMwo1gK6pmatiFeBBc moos, then run ./moos.

Requirements: Linux x86-64, Rust (rustup) and a C compiler (build-essential). The build is offline from vendored crates; the first run downloads the pinned Monero CLI once. You can check the pinned escrow bytecode yourself with the steps on /verify.html.

./moos builds the client and its maker daemon, then opens the desktop GUI. The GUI window needs python3, PyGObject, GTK3 and WebKit2 at runtime; without them the client keeps serving the UI at a local address any browser can open. ./moos-tui opens the terminal UI instead. Both entry points run mainnet only: the launchers pass --mainnet, and --env knows only mainnet and stagenet. A stagenet run needs an explicit --contract-address, because only mainnet has a baked SwapCreator default.

Installing a release does not require a build: moos-0.1.3-linux-x86_64.tar.gz is a 38 MB tarball with tor, monerod and the wallet RPC bundled. install.sh verifies its SHA256SUMS and RSA signature, unpacks it under ~/.local/share/moos, and links moos / moos-tui into ~/.local/bin. The release needs glibc 2.34 or newer; the GUI additionally needs GTK 3 and WebKit2GTK 4.1 (Debian 12+, Ubuntu 24.04+), while the terminal UI does not.

To build a package from a checkout: packaging/fetch.sh downloads the sidecars pinned in packaging/assets.lock and verifies their sha256, packaging/build.sh builds and assembles, and packaging/verify.sh exercises the artifact, including the glibc 2.34 baseline. Every published release is signed with the offline release key; the public key is embedded in install.sh. The mainnet SwapCreator address and its runtime code hash are baked into the binaries, and the launcher refuses a start whose contract does not match that pinned hash, so the escrow you interact with is the one the pinned source produces. That source and bytecode have not been independently audited.

Source and license

Software: git.moos.st/moos/moos / rad:z3vS8s9mTztnMwo1gK6pmatiFeBBc. Website: rad:z3GuExZAM5oYAG7Kxxbvxx2sAdgVm. Both are GPL-3.0; the client is Rust and the website is plain HTML/CSS.

Engine lineage: moos is a Rust reimplementation of AthanorLabs/atomic-swap, the successor to the ETH–XMR atomic swap project funded by Monero CCS proposal #277. The protocol, wire messages and SwapCreator escrow interface remain byte-compatible with that upstream.