* feat: use contrib/depends to build dependencies * fix: bump min iOS sdk to 13 * fix: macos targets * fix: show make output during build fix: mingw linking issues * chore: address AI review * check target only once, stream make output to stdout, init ios project * check whether patch is already applied before trying again * copy contrib/depends to target dir and build dependencies there * fix: use proper triplet for ios-sim * fix(dprint): ignore monero_c, monero and monero-seed folders * fix(swap): Missing import * fix(ci): Add gperf as a required dependency for Linux * add notes for unsafe usage to CLAUDE.md * add clean command to justfile * fix: minimumSystemVersion to 11.0 because tauri doesn't default behavior is wild * update crunchy dependency to fix linux->windows cross compilation issue * fix last commit * link c++ std lib and libgcc statically on windows * embed WebView2 Bootstrapper * disable ccache on ios, update tauri deps, set minimumSystemVersion to 13.0 * fix * fix: build env leaking into contrib/depends * fix: version '-sim' in target triple 'arm64-apple-ios13.0-simulator-sim' is invalid * get it working on ios * Upgrade to nightly Rust toolchain for unstable features - Change from Rust 1.85 to nightly to support yamux unstable features - This resolves the unsigned_is_multiple_of compilation error * fix * WINDOWS WORKS * Cargo.lock update * android progress * progress on gcc build script * remove windows binary dependencies from git, running just prepare-windows-build will re-create them * check for .dll's in src-tauri/build.rs and give hint how to build them * document new build requirement * add verification to gcc build script and error message when building windows from os other than linux * fix windows build * add just command for building windows ss * fix script: remove sudo, copy dlls when finished * move path setup to its own function * fix * try and fix ci * extract setup to single action * clean up ci * add actions/checkout everywhere * fix missing input prefix * fix missing autoconf * fix add build deps to env * fix add build deps to env * add deps for cross building windows * fix action call * only bundle dll's on windows * use ubuntu-latest, install yarn, don't use swap * add build dependencies, remove no longer existing docker test * add aclocal to macos setup * include macos build depends * change platform -> host for setup-build-environment, use matrix for building binaries for all platforms * fix: prepare build env for docker for ubuntu, don't get host value from matrix * manually install rust target * include openssl on ubuntu for sqlx * build cargo cache once before building individual tests * only manually install target if provided * fix: don't need special syntax for variables in if condition * fix libssl problem by upgrading sqlx cli * fix: specify host for prepare_docker_tests * a lot of fixes --------- Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net> Co-authored-by: einliterflasche <einliterflasche@pm.me> Co-authored-by: binarybaron <you@example.com> Co-authored-by: Raphael <81313171+Einliterflasche@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| proptest-regressions/bitcoin | ||
| src | ||
| tests | ||
| .gitignore | ||
| build.rs | ||
| Cargo.toml | ||
| README.md | ||
| sqlx-data.json | ||
XMR to BTC Atomic Swap
This repository hosts an MVP for atomically swapping BTC to XMR. It implements the protocol described in section 3 of this paper.
More information about the protocol in this presentation and this blog post.
Currently, swaps are only offered in one direction with the swap CLI on the buying side (send BTC, receive XMR).
We are working on implementing a protocol where XMR moves first, but are currently blocked by advances on Monero itself.
You can read this blogpost for more information.
Quick Start
- Download the latest
swapbinary release for your operating system. - Find a seller to swap with:
./swap --testnet list-sellers
- Swap with a seller:
./swap --testnet buy-xmr --receive-address <YOUR MONERO ADDRESS> --change-address <YOUR BITCOIN CHANGE ADDRESS> --seller <SELLER MULTIADDRESS>
For more detailed documentation on the CLI, see this README.
Becoming a market maker
Swapping of course needs two parties - and the CLI is only one of them: The taker that occasionally starts a swap with a market maker.
If you are interested in becoming a market maker you will want to run the second binary provided in this repository: asb - the Automated Swap Backend.
Detailed documentation for the asb can be found in this README.
Safety
This software is using cryptography that has not been formally audited. While we do our best to make it safe, it is up to the user to evaluate whether or not it is safe to use for their purposes. Please also see section 15 and 16 of the license.
Keep in mind that swaps are complex protocols, it is recommended to not do anything fancy when moving coins in and out. It is not recommended to bump fees when swapping because it can have unpredictable side effects.
Contributing
We encourage community contributions whether it be a bug fix or an improvement to the documentation. Please have a look at the contribution guidelines.
Rust Version Support
Please note that only the latest stable Rust toolchain is supported. All stable toolchains since 1.74 should work.
Contact
Feel free to reach out to us in the COMIT-Monero Matrix channel.