Basic Atomic Swap Proof of Concept
Find a file
2020-11-28 00:20:35 +02:00
basicswap Move js functions to new file. 2020-11-28 00:20:35 +02:00
bin PART -> XMR tests pass. 2020-11-27 19:52:26 +02:00
doc PART -> XMR tests pass. 2020-11-27 19:52:26 +02:00
docker Add travis build status to readme. 2019-07-26 12:07:25 +02:00
gitianpubkeys Use basicswap-prepare to download releases for the docker image. 2019-07-25 13:53:11 +02:00
tests Move js functions to new file. 2020-11-28 00:20:35 +02:00
.cirrus.yml Added contrib dir. 2020-09-11 18:50:25 +02:00
.dockerignore docker: ignore the "docker" (coindate) folder from being sent to the docker context. (#1) 2019-08-02 11:54:32 +02:00
.gitignore Fix strange int compare bug. 2019-07-20 21:42:04 +02:00
.travis.yml Added contrib dir. 2020-09-11 18:50:25 +02:00
Dockerfile docker: ignore the "docker" (coindate) folder from being sent to the docker context. (#1) 2019-08-02 11:54:32 +02:00
LICENSE LICENSE.txt -> LICENSE 2020-10-30 10:57:26 +02:00
MANIFEST.in LICENSE.txt -> LICENSE 2020-10-30 10:57:26 +02:00
README.md Update install.md 2019-07-27 22:34:40 +02:00
setup.py Fix contract_count not inserted in db 2020-11-07 13:08:07 +02:00

Simple Atomic Swap Network - Proof of Concept

Build Status

Overview

Simple atomic swap experiment, doesn't have many interesting features yet. Not ready for real world use.

Uses Particl secure messaging and Decred style atomic swaps.

The Particl node is used to hold the keys and sign for the swap transactions. Other nodes can be run in pruned mode. A node must be run for each coin type traded. In the future it should be possible to use data from explorers instead of running a node.

Currently a work in progress

Not ready for real-world use.

Features still required (of many):

  • Cached addresses must be regenerated after use.
  • Option to lookup data from public explorers / nodes.
  • Ability to swap coin-types without running nodes for all coin-types
  • More swap protocols
  • Method to load mnemonic into Particl.
    • Load seeds for other wallets from same mnemonic.
  • COIN must be defined per coin.

Seller first protocol:

Seller sends the 1st transaction.

  1. Seller posts offer.

    • smsg from seller to network coin-from coin-to amount-from rate min-amount time-valid
  2. Buyer posts bid:

    • smsg from buyer to seller offerid amount proof-of-funds address_to_buyer time-valid
  3. Seller accepts bid:

    • verifies proof-of-funds
    • generates secret
    • submits initiate tx to coin-from network
    • smsg from seller to buyer txid initiatescript (includes pkhash_to_seller as the pkhash_refund)
  4. Buyer participates:

    • inspects initiate tx in coin-from network
    • submits participate tx in coin-to network
  5. Seller redeems:

    • constructs participatescript
    • inspects participate tx in coin-to network
    • redeems from participate tx revealing secret
  6. Buyer redeems:

    • scans coin-to network for seller-redeem tx
    • redeems from initiate tx with revealed secret