Bitcoin–Monero Cross-chain Atomic Swap
Go to file
bors[bot] 7de3e23bb0
Merge #802 #803
802: Bump tracing-subscriber from 0.2.20 to 0.2.25 r=rishflab a=dependabot[bot]

Bumps [tracing-subscriber](https://github.com/tokio-rs/tracing) from 0.2.20 to 0.2.25.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tokio-rs/tracing/releases">tracing-subscriber's releases</a>.</em></p>
<blockquote>
<h2>tracing-subscriber 0.2.23</h2>
<p>This release fixes a few bugs in the per-layer filtering API added in
v0.2.21.</p>
<h3>Fixed</h3>
<ul>
<li><strong>env-filter</strong>: Fixed excessive <code>EnvFilter</code> memory use (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1568">#1568</a>)</li>
<li><strong>filter</strong>: Fixed a panic that may occur in debug mode when using
per-layer filters together with global filters (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1569">#1569</a>)</li>
<li>Fixed incorrect documentation formatting (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1572">#1572</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1568">#1568</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1568">#1568</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1569">#1569</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1569">#1569</a>
<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1572">#1572</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1572">#1572</a></p>
<h2>tracing-subscriber 0.2.22</h2>
<p>This fixes a regression where the <code>filter::ParseError</code> type was
accidentally renamed.</p>
<h3>Fixed</h3>
<ul>
<li><strong>filter</strong>: Fix <code>filter::ParseError</code> accidentally being renamed to
<code>filter::DirectiveParseError</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1558">#1558</a>)</li>
</ul>
<p><a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1558">#1558</a>: <a href="https://github-redirect.dependabot.com/tokio-rs/tracing/pull/1558">tokio-rs/tracing#1558</a></p>
<h2>tracing-subscriber 0.2.21</h2>
<p>This release introduces the [<code>Filter</code>] trait, a new API for [per-layer
filtering][plf]. This allows controlling which spans and events are
recorded by various layers individually, rather than globally.</p>
<p>In addition, it adds a new [<code>Targets</code>] filter, which provides a
lighter-weight version of the filtering provided by [<code>EnvFilter</code>], as
well as other smaller API improvements and fixes.</p>
<h3>Deprecated</h3>
<ul>
<li><strong>registry</strong>: <code>SpanRef::parent_id</code>, which cannot properly support
per-layer filtering. Use <code>.parent().map(SpanRef::id)</code> instead.
(<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1523">#1523</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><strong>layer</strong> <code>Context</code> methods that are provided when the <code>Subscriber</code>
implements <code>LookupSpan</code> no longer require the &quot;registry&quot; feature flag
(<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1525">#1525</a>)</li>
<li><strong>layer</strong> <code>fmt::Debug</code> implementation for <code>Layered</code> no longer requires
the <code>S</code> type parameter to implement <code>Debug</code> (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1528">#1528</a>)</li>
</ul>
<h3>Added</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="6692aaf738"><code>6692aaf</code></a> subscriber: prepare to release 0.2.25 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1622">#1622</a>)</li>
<li><a href="29ffdbc2b2"><code>29ffdbc</code></a> subscriber: forward <code>Filtered::downcast_raw</code> to wrapped Layer (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1619">#1619</a>)</li>
<li><a href="645f282eee"><code>645f282</code></a> attributes: prepare to release 0.1.18 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1621">#1621</a>)</li>
<li><a href="7dda7f5e90"><code>7dda7f5</code></a> attributes: remove unnecessary quote_spanned!  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1617">#1617</a>)</li>
<li><a href="243a3e2d2f"><code>243a3e2</code></a> attributes: fix compile error with instrumented async functions  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1616">#1616</a>)</li>
<li><a href="ac74ba0ca5"><code>ac74ba0</code></a> attributes: suppress <code>clippy::suspicious_else</code> without nop let (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1614">#1614</a>)</li>
<li><a href="66cd79f72a"><code>66cd79f</code></a> attributes: prepare to release v0.1.17 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1611">#1611</a>)</li>
<li><a href="3ee87f3cb9"><code>3ee87f3</code></a> core: prepare to release 0.1.21 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1610">#1610</a>)</li>
<li><a href="84c1c264ad"><code>84c1c26</code></a> chore: fix CI tracing-core nostd testing tracing</li>
<li><a href="c9db496a95"><code>c9db496</code></a> attributes: skip <code>async</code> spans if level disabled (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1607">#1607</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.20...tracing-subscriber-0.2.25">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tracing-subscriber&package-manager=cargo&previous-version=0.2.20&new-version=0.2.25)](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>

803: Bump tracing from 0.1.27 to 0.1.29 r=rishflab a=dependabot[bot]

Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.27 to 0.1.29.
<details>
<summary>Commits</summary>
<ul>
<li><a href="d0ef14d3f5"><code>d0ef14d</code></a> tracing: prepare to release v0.1.29  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1623">#1623</a>)</li>
<li><a href="6692aaf738"><code>6692aaf</code></a> subscriber: prepare to release 0.2.25 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1622">#1622</a>)</li>
<li><a href="29ffdbc2b2"><code>29ffdbc</code></a> subscriber: forward <code>Filtered::downcast_raw</code> to wrapped Layer (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1619">#1619</a>)</li>
<li><a href="645f282eee"><code>645f282</code></a> attributes: prepare to release 0.1.18 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1621">#1621</a>)</li>
<li><a href="7dda7f5e90"><code>7dda7f5</code></a> attributes: remove unnecessary quote_spanned!  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1617">#1617</a>)</li>
<li><a href="243a3e2d2f"><code>243a3e2</code></a> attributes: fix compile error with instrumented async functions  (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1616">#1616</a>)</li>
<li><a href="ac74ba0ca5"><code>ac74ba0</code></a> attributes: suppress <code>clippy::suspicious_else</code> without nop let (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1614">#1614</a>)</li>
<li><a href="66cd79f72a"><code>66cd79f</code></a> attributes: prepare to release v0.1.17 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1611">#1611</a>)</li>
<li><a href="3ee87f3cb9"><code>3ee87f3</code></a> core: prepare to release 0.1.21 (<a href="https://github-redirect.dependabot.com/tokio-rs/tracing/issues/1610">#1610</a>)</li>
<li><a href="84c1c264ad"><code>84c1c26</code></a> chore: fix CI tracing-core nostd testing tracing</li>
<li>Additional commits viewable in <a href="https://github.com/tokio-rs/tracing/compare/tracing-0.1.27...tracing-0.1.29">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.27&new-version=0.1.29)](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>
2021-10-07 04:12:11 +00:00
.cargo .cargo/config.toml for specifying linker 2021-03-15 14:36:05 +11:00
.github Remove flaky test 2021-10-07 10:00:17 +11:00
docs Add note to readme that --testnet swaps on monero stagenet 2021-09-02 13:47:29 +10:00
monero-harness Drop monero-wallet-rpc test container if errors 2021-06-23 15:07:36 +10:00
monero-rpc Load wallet in monero-wallet-rpc on demand if necessary 2021-08-27 09:39:29 +10:00
monero-wallet Introduce monero-wallet crate 2021-04-30 10:28:46 +10:00
swap Merge #806 2021-10-07 02:13:13 +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 #802 #803 2021-10-07 04:12:11 +00:00
Cargo.toml Update secp256kfun and rand to latest version 2021-05-25 15:35:13 +10:00
CHANGELOG.md Add subcommand to print internal bitcoin wallet descriptor 2021-10-07 11:22:04 +11:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-06-29 10:58:00 +10:00
dprint.json Replace cargo-fmt with dprint 2021-05-25 16:11:48 +10:00
LICENSE Change license to GPLv3 2020-10-12 17:13:25 +11:00
README.md Improve discoverability of contribution guidelines 2021-09-02 10:48:04 +10:00
rust-toolchain.toml Upgrade to Rust 1.53 2021-06-21 11:56:04 +10: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.

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.

Contact

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