Bitcoin–Monero Cross-chain Atomic Swap
Go to file
bors[bot] 5505174cb6
Merge #1361
1361: build(deps): bump tracing from 0.1.37 to 0.1.38 r=delta1 a=dependabot[bot]

Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.37 to 0.1.38.
<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.38</h2>
<p>This <code>tracing</code> release changes the <code>Drop</code> implementation for <code>Instrumented</code>
<code>Future</code>s so that the attached <code>Span</code> is entered when dropping the <code>Future</code>. This
means that events emitted by the <code>Future</code>'s <code>Drop</code> implementation will now be
recorded within its <code>Span</code>. It also adds <code>#[inline]</code> hints to methods called in
the <code>event!</code> macro's expansion, for an improvement in both binary size and
performance.</p>
<p>Additionally, this release updates the <code>tracing-attributes</code> dependency to
<a href="https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24">v0.1.24</a>, which updates the <a href="https://crates.io/crates/syn"><code>syn</code></a> dependency to v2.x.x.
<code>tracing-attributes</code> v0.1.24 also includes improvements to the <code>#[instrument]</code>
macro; see <a href="https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24">the <code>tracing-attributes</code> 0.1.24 release notes</a> for
details.</p>
<h3>Added</h3>
<ul>
<li><code>Instrumented</code> futures will now enter the attached <code>Span</code> in their <code>Drop</code>
implementation, allowing events emitted when dropping the future to occur
within the span (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2562">#2562</a>)</li>
<li><code>#[inline]</code> attributes for methods called by the <code>event!</code> macros, making
generated code smaller (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2555">#2555</a>)</li>
<li><strong>attributes</strong>: <code>level</code> argument to <code>#[instrument(err)]</code> and
<code>#[instrument(ret)]</code> to override the level of
the generated return value event (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2335">#2335</a>)</li>
<li><strong>attributes</strong>: Improved compiler error message when <code>#[instrument]</code> is added to a <code>const fn</code>
(<a href="https://redirect.github.com/tokio-rs/tracing/issues/2418">#2418</a>)</li>
</ul>
<h3>Changed</h3>
<ul>
<li><code>tracing-attributes</code>: updated to <a href="https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24">0.1.24</a></li>
<li>Removed unneeded <code>cfg-if</code> dependency (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2553">#2553</a>)</li>
<li><strong>attributes</strong>: Updated <a href="https://crates.io/crates/syn"><code>syn</code></a> dependency to 2.0 (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2516">#2516</a>)</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><strong>attributes</strong>: Fix <code>clippy::unreachable</code> warnings in <code>#[instrument]</code>-generated code (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2356">#2356</a>)</li>
<li><strong>attributes</strong>: Removed unused &quot;visit&quot; feature flag from <code>syn</code> dependency (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2530">#2530</a>)</li>
</ul>
<h3>Documented</h3>
<ul>
<li><strong>attributes</strong>: Documented default level for <code>#[instrument(err)]</code> (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2433">#2433</a>)</li>
<li><strong>attributes</strong>: Improved documentation for levels in <code>#[instrument]</code> (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2350">#2350</a>)</li>
</ul>
<p>Thanks to <a href="https://github.com/nitnelave"><code>`@​nitnelave</code></a>,` <a href="https://github.com/jsgf"><code>`@​jsgf</code></a>,` <a href="https://github.com/Abhicodes-crypto"><code>`@​Abhicodes-crypto</code></a>,` <a href="https://github.com/LukeMathWalker"><code>`@​LukeMathWalker</code></a>,` <a href="https://github.com/andrewpollack"><code>`@​andrewpollack</code></a>,`
<a href="https://github.com/quad"><code>`@​quad</code></a>,` <a href="https://github.com/klensy"><code>`@​klensy</code></a>,` <a href="https://github.com/davidpdrsn"><code>`@​davidpdrsn</code></a>,` <a href="https://github.com/dbidwell94"><code>`@​dbidwell94</code></a>,` <a href="https://github.com/ldm0"><code>`@​ldm0</code></a>,` <a href="https://github.com/NobodyXu"><code>`@​NobodyXu</code></a>,` <a href="https://github.com/ilsv"><code>`@​ilsv</code></a>,` and <a href="https://github.com/daxpedda"><code>`@​daxpedda</code></a>`
for contributing to this release!</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3de7f8c601"><code>3de7f8c</code></a> tracing: prepare to release v0.1.38 (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2575">#2575</a>)</li>
<li><a href="e35265a0a1"><code>e35265a</code></a> attributes: prepare to release v0.1.24 (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2574">#2574</a>)</li>
<li><a href="0114ec1cf5"><code>0114ec1</code></a> subscriber: prepare to release v0.3.17 (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2571">#2571</a>)</li>
<li><a href="53989b422c"><code>53989b4</code></a> chore: fix rustfmt</li>
<li><a href="22355704ea"><code>2235570</code></a> subscriber: add &quot;unicode-case&quot; and &quot;unicode-perl&quot; features to <code>regex</code> depende...</li>
<li><a href="b9becf90fe"><code>b9becf9</code></a> attributes: update UI tests with the latest stable version of Rust (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2568">#2568</a>)</li>
<li><a href="3a65354837"><code>3a65354</code></a> tracing, tracing-futures: instrument <code>Future</code> inside <code>Drop</code> (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2562">#2562</a>)</li>
<li><a href="29d85b1adb"><code>29d85b1</code></a> mock: move layer mock from tracing-subscriber tests (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2369">#2369</a>)</li>
<li><a href="049ad730c1"><code>049ad73</code></a> subscriber: add ability to disable ANSI without crate feature (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2532">#2532</a>)</li>
<li><a href="a066c36729"><code>a066c36</code></a> attributes: update to syn 2.0 (<a href="https://redirect.github.com/tokio-rs/tracing/issues/2516">#2516</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.38">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.37&new-version=0.1.38)](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>
2023-04-27 08:18:48 +00:00
.cargo .cargo/config.toml for specifying linker 2021-03-15 14:36:05 +11:00
.github build(deps): bump actions/checkout from 3.5.0 to 3.5.2 2023-04-14 11:58:03 +00:00
docs Change example rendezvous node to /dns4/discover.unstoppableswap.net/tcp/8888/p2p/12D3Ko... 2022-04-22 14:51:37 +02:00
monero-harness feat: upgrade monero images to v0.18.1.2 2022-11-07 09:53:50 +02:00
monero-rpc build(deps): bump hex-literal from 0.3.4 to 0.4.1 2023-04-18 11:58:22 +00:00
monero-wallet Update dependencies and rust-toolchain to 1.59 2022-03-12 13:05:36 +02:00
swap Merge #1357 #1358 #1359 2023-04-20 12:46:58 +00:00
utils/gpg_keys docs: add gpg key readme and delta1.asc 2022-08-11 13:05:21 +02:00
.gitignore docs: update sqlx script and add ci 2022-11-30 15:30:32 +02:00
bors.toml feat(swap): merge cancel/refund commands into one command 2023-01-08 12:53:56 +02:00
Cargo.lock build(deps): bump tracing from 0.1.37 to 0.1.38 2023-04-26 11:58:04 +00:00
Cargo.toml Update secp256kfun and rand to latest version 2021-05-25 15:35:13 +10:00
CHANGELOG.md ci: update msrv and github actions toolchains 2023-01-10 14:57:09 +02:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-06-29 10:58:00 +10:00
dprint.json chore: fix dprint config and run fmt 2023-03-15 14:19:57 +02:00
LICENSE Change license to GPLv3 2020-10-12 17:13:25 +11:00
README.md readme: fix minor grammar error 2023-02-27 15:13:17 -05:00
rust-toolchain.toml ci: update msrv and github actions toolchains 2023-01-10 14:57:09 +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 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.63 should work.

Contact

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