Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kzv on October 19, 2018, 06:25:00 AM



Title: Working on atomic swap. Need feedback.
Post by: kzv on October 19, 2018, 06:25:00 AM
Hi
I try to develop P2P exchange based on atomic swaps.
Here is working prototype for Bitcoin testnet only: https://trade.multicoins.org:50543/

Can anybody test it and give me feedback.
Does anyone need a service like this?




Title: Re: Working on atomic swap. Need feedback.
Post by: s2 on October 31, 2018, 09:32:42 PM
Looks a good start however I would be interested in using this if you could offer an API.

Also if you offer making a bespoke API in docker form I might even be able to license it from you as I would like to explore this too... (PM me if interested)


Title: Re: Working on atomic swap. Need feedback.
Post by: kzv on November 12, 2018, 11:10:18 AM
The link is working without problems.

If I will see interest then I can make API


Title: Re: Working on atomic swap. Need feedback.
Post by: kzv on December 03, 2018, 06:50:43 AM
byt0mswap.io

I do not see an atomic swap technoligy on your site.


Title: Re: Working on atomic swap. Need feedback.
Post by: d5000 on December 03, 2018, 05:05:55 PM
I guess it's a JavaScript app for your browser where you can publish atomic swap transactions, see other orders and trade coins if there's an interesting offer for you. That would be a nice tool, as most atomic swap DEX (e.g. BarterDEX) require installations.

It seems the main code for the exchange is inside the file https://trade.multicoins.org:50543/js/index.js ?

I haven't analyzed that file in depth (my JavaScript skills are limited) but I would like to know if the app is purely P2P (JavaScript clients connect to each other and discover orders) or if there is also a server-side component, for example, to search for and "collect" orders? (I don't consider that as negative - if it's open sourced it could even be run on multiple servers.)


Title: Re: Working on atomic swap. Need feedback.
Post by: aliashraf on December 03, 2018, 05:14:57 PM
OP!

The link didn't work for me. Couldn't connect. :(


Title: Re: Working on atomic swap. Need feedback.
Post by: kzv on December 03, 2018, 07:44:48 PM
If you could share guide for configuration/atomic-swap process, i might be interested to try since i run tBTC nodes.


I will try but sorry for my English )

Alice has a 1 BTC and a cat. Only Alice knows her cat's name.
Alice has a 100 LTC and a dog. Only Bob knows his dog's name.

Alice write the contract: "I will pay my bitcoin to the one who will tell to bitcoin blockchain, what is the name of my cat and what is the name of the dog. If no one says, in 48 hours Bitcoin will return to me"
Bob write the contract: "I will pay my litecoins to the one who will tell to litecoin blockchain, what is the name of Alice's cat. If no one says, in 24 hours Litecoins will return to me"

This is all about atomic swap technology!

Further options are possible:
1.
If Alice needs LTC, she will write down the name of her cat in the litecoin blockchain and take LTC according to the Bob contract.
If Bob needs Bitcoin, he will read in the litecoin blockchain: what's the name of the Alice cat. Then Bob will write cat and dog names to the Bitcoin blokchain and take Bitcoin in accordance with the Alice contract.

2. If Alice changed her mind about changing, then the deal will not take place and after 48 hours the bitcoins can be refunded to Alice, and the litecoins can be refunded to Bob