• Stars
    star
    646
  • Rank 69,672 (Top 2 %)
  • Language
    Rust
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bitcoin–Monero Cross-chain Atomic Swap

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

  1. Download the latest swap binary release for your operating system.
  2. Find a seller to swap with:
./swap --testnet list-sellers
  1. 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.67 should work.

Contact

Feel free to reach out to us in the COMIT-Monero Matrix channel.

More Repositories

1

comit-rs

Reference implementation of COMIT, an open protocol facilitating trustless cross-blockchain applications.
Rust
191
star
2

a2l-poc

Proof of concept for the A2L protocol on top of Bitcoin.
Rust
17
star
3

grin-btc-poc

A proof-of-concept implementation of a Grin-Bitcoin atomic swap
Rust
17
star
4

rendezvous-server

Standalone rendezvous server: https://github.com/libp2p/specs/blob/master/rendezvous/README.md
Rust
16
star
5

waves

Workspace for project waves - bringing DeFi to Liquid.
Rust
15
star
6

rust-secp256k1-zkp

C
10
star
7

rust-libp2p-tokio-socks5

Libp2p transport for sending TCP traffic via a SOCKS5 proxy e.g., over Tor network.
Rust
10
star
8

RFCs

Request for Comments (RFCs) for the COMIT network
9
star
9

create-comit-app

Set up a local development environment for COMIT apps with one command.
Rust
9
star
10

thor

Proof of concept of the Generalized Bitcoin-compatible Channel paper on top of Bitcoin
Rust
7
star
11

ping-pong

POC demonstrating rust-libp2p connectivity over the Tor network
Rust
5
star
12

maia

A library for CFDs on Bitcoin which uses DLCs
Rust
4
star
13

baru

Rust
4
star
14

ambrosia

UI for trading in the COMIT network
TypeScript
4
star
15

comit-i

A general-purpose web interface for comit-rs
TypeScript
3
star
16

comit-js-sdk

JavaScript SDK for cnd's HTTP API written in TypeScript
TypeScript
2
star
17

spikes

COMIT research outcomes
2
star
18

rust-libp2p-xtra

An `xtra` Actor for network communication building on top of libp2p-core.
Rust
1
star
19

cross-curve-dleq

Proof of concept implementation of a cross-group DLEQ proof for secp256k1 and ed25519
Rust
1
star
20

rust-libp2p-async-await

Rust
1
star
21

app

Moved to
TypeScript
1
star
22

blockchain-contracts

Host the assembly/script code of blockchain contracts used in the COMIT protocol
Rust
1
star
23

rust-elements-consensus

C++
1
star