Bitcoin–Monero Cross-chain Atomic Swap
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
bors[bot] b371827b86
Merge #1019
1019: Bump uuid from 0.8.2 to 1.0.0 r=delta1 a=dependabot[bot]

Bumps [uuid](https://github.com/uuid-rs/uuid) from 0.8.2 to 1.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/uuid-rs/uuid/releases">uuid's releases</a>.</em></p>
<blockquote>
<h2>1.0.0</h2>
<p>This release includes a <em>huge</em> amount of work from a lot of contributors. These notes are duplicated from <code>1.0.0-alpha.1</code> since they're relevant for anybody moving from <code>0.8.2</code> to <code>1.0.0</code>.</p>
<h1>Changes since the last release</h1>
<p><a href="https://github.com/uuid-rs/uuid/compare/0.8.2...main">https://github.com/uuid-rs/uuid/compare/0.8.2...main</a></p>
<h1>Contributions since the last release</h1>
<ul>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/510">#510</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/482">#482</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/511">#511</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/507">#507</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/518">#518</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/519">#519</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/512">#512</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/520">#520</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/521">#521</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/525">#525</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/526">#526</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/527">#527</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/528">#528</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/535">#535</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/536">#536</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/539">#539</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/538">#538</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/540">#540</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/541">#541</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/542">#542</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/544">#544</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/545">#545</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/546">#546</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/543">#543</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/547">#547</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/548">#548</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/549">#549</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/550">#550</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/552">#552</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/554">#554</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/558">#558</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/560">#560</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/562">#562</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/563">#563</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/564">#564</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/565">#565</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/566">#566</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/579">#579</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/584">#584</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/587">#587</a></li>
<li><a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/595">#595</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="9e0dc29274"><code>9e0dc29</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/596">#596</a> from KodrAus/cargo/1.0.0</li>
<li><a href="286134f1c5"><code>286134f</code></a> prepare for 1.0.0 release</li>
<li><a href="43905eb721"><code>43905eb</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/595">#595</a> from spruceid/remove-and</li>
<li><a href="444ef96484"><code>444ef96</code></a> Remove unnecessary AND</li>
<li><a href="5f649d7601"><code>5f649d7</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/592">#592</a> from uuid-rs/KodrAus-patch-1</li>
<li><a href="92ad25faa8"><code>92ad25f</code></a> update contact details in the CoC</li>
<li><a href="767f5194a4"><code>767f519</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/591">#591</a> from uuid-rs/fix/macro-diagnostics</li>
<li><a href="8b043af60e"><code>8b043af</code></a> use the parsed literal as the span source for errors</li>
<li><a href="f0d5956129"><code>f0d5956</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/uuid-rs/uuid/issues/587">#587</a> from uuid-rs/feat/fast-sha1</li>
<li><a href="165b7eb281"><code>165b7eb</code></a> move to sha1_smol as the new name for the current library</li>
<li>Additional commits viewable in <a href="https://github.com/uuid-rs/uuid/compare/0.8.2...1.0.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=uuid&package-manager=cargo&previous-version=0.8.2&new-version=1.0.0)](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>
2 years ago
.cargo .cargo/config.toml for specifying linker 3 years ago
.github Bump actions/checkout from 3.0.0 to 3.0.1 2 years ago
docs Change to rino nodes 2 years ago
monero-harness Merge #975 2 years ago
monero-rpc Update dependencies and rust-toolchain to 1.59 2 years ago
monero-wallet Update dependencies and rust-toolchain to 1.59 2 years ago
swap Bump uuid from 0.8.2 to 1.0.0 2 years ago
.gitignore Push cargo lock to git as we are building a binary 4 years ago
CHANGELOG.md Implement Identify protocol to make network and version of ASB available to peers 2 years ago
CONTRIBUTING.md Create CONTRIBUTING.md 3 years ago
Cargo.lock Bump uuid from 0.8.2 to 1.0.0 2 years ago
Cargo.toml Update secp256kfun and rand to latest version 3 years ago
LICENSE Change license to GPLv3 4 years ago
README.md Update dependencies and rust-toolchain to 1.59 2 years ago
bors.toml Remove flaky test 3 years ago
dprint.json Update dprint plugins to fix CI error 2 years ago
rust-toolchain.toml Update dependencies and rust-toolchain to 1.59 2 years ago

README.md

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.