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.
1.0 KiB
1.0 KiB
Seller first protocol
Seller sends the first transaction. Both coin types must support scripts.
-
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