Bitcoin Forum
November 05, 2024, 09:07:29 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Working on atomic swap. Need feedback.  (Read 433 times)
kzv (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
October 19, 2018, 06:25:00 AM
Merited by d5000 (1), ABCbits (1)
 #1

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?



OpenTrade - Open Source Cryptocurrency Exchange
s2
Full Member
***
Offline Offline

Activity: 198
Merit: 123


View Profile
October 31, 2018, 09:32:42 PM
 #2

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)
kzv (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
November 12, 2018, 11:10:18 AM
 #3

The link is working without problems.

If I will see interest then I can make API

OpenTrade - Open Source Cryptocurrency Exchange
kzv (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
December 03, 2018, 06:50:43 AM
 #4

byt0mswap.io

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

OpenTrade - Open Source Cryptocurrency Exchange
d5000
Legendary
*
Offline Offline

Activity: 4088
Merit: 7506


Decentralization Maximalist


View Profile
December 03, 2018, 05:05:55 PM
 #5

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.)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
aliashraf
Legendary
*
Offline Offline

Activity: 1456
Merit: 1175

Always remember the cause!


View Profile WWW
December 03, 2018, 05:14:57 PM
 #6

OP!

The link didn't work for me. Couldn't connect. Sad
kzv (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
December 03, 2018, 07:44:48 PM
 #7

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

OpenTrade - Open Source Cryptocurrency Exchange
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!