Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tecnovert
4e5287e1df
|
4 years ago | |
---|---|---|
basicswap | 4 years ago | |
bin | 4 years ago | |
doc | 5 years ago | |
docker | 5 years ago | |
gitianpubkeys | 5 years ago | |
tests | 4 years ago | |
.cirrus.yml | 4 years ago | |
.dockerignore | 5 years ago | |
.gitignore | 6 years ago | |
.travis.yml | 4 years ago | |
Dockerfile | 5 years ago | |
LICENSE.txt | 6 years ago | |
MANIFEST.in | 5 years ago | |
README.md | 5 years ago | |
setup.py | 5 years ago |
README.md
Simple Atomic Swap Network - Proof of Concept
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.
-
Seller posts offer.
- smsg from seller to network coin-from coin-to amount-from rate min-amount time-valid
-
Buyer posts bid:
- smsg from buyer to seller offerid amount proof-of-funds address_to_buyer time-valid
-
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)
-
Buyer participates:
- inspects initiate tx in coin-from network
- submits participate tx in coin-to network
-
Seller redeems:
- constructs participatescript
- inspects participate tx in coin-to network
- redeems from participate tx revealing secret
-
Buyer redeems:
- scans coin-to network for seller-redeem tx
- redeems from initiate tx with revealed secret