Bitcoin–Monero Cross-chain Atomic Swap
Go to file
bors[bot] a54f5d2624
Merge #1015 #1016
1015: Bump actions/checkout from 3.0.0 to 3.0.1 r=delta1 a=dependabot[bot]

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.0.0 to 3.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p>
<blockquote>
<h2>v3.0.1</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/actions/checkout/pull/762">Fixed an issue where checkout failed to run in container jobs due to the new git setting <code>safe.directory</code></a></li>
<li><a href="https://github-redirect.dependabot.com/actions/checkout/pull/744">Bumped various npm package versions</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p>
<blockquote>
<h2>v3.0.1</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/actions/checkout/pull/762">Fixed an issue where checkout failed to run in container jobs due to the new git setting <code>safe.directory</code></a></li>
<li><a href="https://github-redirect.dependabot.com/actions/checkout/pull/744">Bumped various npm package versions</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="dcd71f6466"><code>dcd71f6</code></a> Enforce safe directory (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/762">#762</a>)</li>
<li><a href="add3486cc3"><code>add3486</code></a> Patch to fix the dependbot alert. (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/744">#744</a>)</li>
<li><a href="5126516654"><code>5126516</code></a> Bump minimist from 1.2.5 to 1.2.6 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/741">#741</a>)</li>
<li><a href="d50f8ea767"><code>d50f8ea</code></a> Add v3.0 release information to changelog (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/740">#740</a>)</li>
<li><a href="2d1c1198e7"><code>2d1c119</code></a> update test workflows to checkout v3 (<a href="https://github-redirect.dependabot.com/actions/checkout/issues/709">#709</a>)</li>
<li>See full diff in <a href="https://github.com/actions/checkout/compare/v3.0.0...v3.0.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/checkout&package-manager=github_actions&previous-version=3.0.0&new-version=3.0.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

1016: Bump tracing from 0.1.33 to 0.1.34 r=delta1 a=dependabot[bot]

Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.33 to 0.1.34.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tokio-rs/tracing/releases">tracing's releases</a>.</em></p>
<blockquote>
<h2>tracing 0.1.34</h2>
<p>This release includes bug fixes for the &quot;log&quot; support feature and for the use of
both scoped and global default dispatchers in the same program.</p>
<h3>Fixed</h3>
<ul>
<li>Failure to use the global default dispatcher when a thread sets a local
default dispatcher before the global default is set (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2065">#2065</a>)</li>
<li><strong>log</strong>: Compilation errors due to <code>async</code> block/fn futures becoming <code>!Send</code>
when the &quot;log&quot; feature flag is enabled (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2073">#2073</a>)</li>
<li>Broken links in documentation (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2068">#2068</a>)</li>
</ul>
<p>Thanks to <a href="https://github.com/ben0x539"><code>`@​ben0x539</code></a>` for contributing to this release!</p>
<p><a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2065">#2065</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/pull/2065">tokio-rs/tracing#2065</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2073">#2073</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/pull/2073">tokio-rs/tracing#2073</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2068">#2068</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/pull/2068">tokio-rs/tracing#2068</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4f1e46306d"><code>4f1e463</code></a> tracing: prepare to release v0.1.34 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2076">#2076</a>)</li>
<li><a href="cb294a9958"><code>cb294a9</code></a> core: prepare to release v0.1.26</li>
<li><a href="96347c7b78"><code>96347c7</code></a> core: add <code>Value</code> impl for <code>Box\&lt;T&gt; where T: Value</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2071">#2071</a>)</li>
<li><a href="8c67359846"><code>8c67359</code></a> tracing: fix the &quot;log&quot; feature making async block futures <code>!Send</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2073">#2073</a>)</li>
<li><a href="438b013c01"><code>438b013</code></a> docs: use intra-doc links instead of relative file paths (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2068">#2068</a>)</li>
<li><a href="9d10e2cfe0"><code>9d10e2c</code></a> core: prepare to release v0.1.25 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2070">#2070</a>)</li>
<li><a href="50a726b647"><code>50a726b</code></a> core: impl <code>Value</code> for <code>dyn Error + Send/Sync</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2066">#2066</a>)</li>
<li><a href="fc694a5bcc"><code>fc694a5</code></a> core: fix scoped dispatchers clobbering the global default  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2065">#2065</a>)</li>
<li><a href="3c85d9c85c"><code>3c85d9c</code></a> subscriber: fix doc link for impl Layer for Vec (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2064">#2064</a>)</li>
<li><a href="b9da5441ea"><code>b9da544</code></a> subscriber: prepare to release v0.3.11 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/2062">#2062</a>)</li>
<li>See full diff in <a href="https://github.com/tokio-rs/tracing/compare/tracing-0.1.33...tracing-0.1.34">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tracing&package-manager=cargo&previous-version=0.1.33&new-version=0.1.34)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting ``@dependabot` rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- ``@dependabot` rebase` will rebase this PR
- ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it
- ``@dependabot` merge` will merge this PR after your CI passes on it
- ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it
- ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging
- ``@dependabot` reopen` will reopen this PR if it is closed
- ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-15 13:25:50 +00:00
.cargo .cargo/config.toml for specifying linker 2021-03-15 14:36:05 +11:00
.github Bump actions/checkout from 3.0.0 to 3.0.1 2022-04-15 11:08:12 +00:00
docs Change to rino nodes 2022-03-20 11:31:21 +01:00
monero-harness Merge #975 2022-03-20 11:05:37 +00:00
monero-rpc Update dependencies and rust-toolchain to 1.59 2022-03-12 13:05:36 +02:00
monero-wallet Update dependencies and rust-toolchain to 1.59 2022-03-12 13:05:36 +02:00
swap Merge #919 #977 #978 #998 #999 #1003 #1004 #1005 2022-04-14 13:34:02 +00:00
.gitignore Push cargo lock to git as we are building a binary 2020-12-01 09:31:41 +11:00
bors.toml Remove flaky test 2021-10-07 10:00:17 +11:00
Cargo.lock Merge #1015 #1016 2022-04-15 13:25:50 +00:00
Cargo.toml Update secp256kfun and rand to latest version 2021-05-25 15:35:13 +10:00
CHANGELOG.md Reduce required confirmations for Bitcoin transactions from 2 to 1 2022-04-13 16:16:36 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-06-29 10:58:00 +10:00
dprint.json Update dprint plugins to fix CI error 2022-04-09 19:39:49 +02:00
LICENSE Change license to GPLv3 2020-10-12 17:13:25 +11:00
README.md Update dependencies and rust-toolchain to 1.59 2022-03-12 13:05:36 +02:00
rust-toolchain.toml Update dependencies and rust-toolchain to 1.59 2022-03-12 13:05:36 +02:00

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 are 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.58 should work.

Contact

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