@jaspervdm
Today I got some time to read your atomic swap thanks for the good writing on medium.
One question here, why the Multi-signature output and Time-locked refund in Grin side are needed?
In my opinion, Bob firstly create that smart contract in Ethereum to send 2 ETH to Alice’s address with q as the secret and 24 hours timeout refund, say this is TX1, then Alice and Bob create a transaction in Grin with Adaptor Signature, say this is TX2, once Bob submits TX2 to the network, Alice gets q and creates a signature and submits it to the Ethereum smart contract and receives that 2 ETH. Swap done!
By the way, in case you are interested, I also did a Grin-BTC atomic swap not so long ago. I didnt make a public blog post about it but it is in my Grincon0 slides. Procedure is similar but instead of a smart contract there is a P2SH address.
Hello, I find this very interesting from a scaling perspective (among others).
Is there something specific in the Grin system that makes it possible? Or could the same be done in principle between BTC and altBTC or between BTC and ETH?
Also, could one do an atomic swap between Grin and another network (altGrin) running the same protocol? We could imagine having a loosely connected network of networks with such a mechanism. Or is it what they call layer-0 scaling? Sorry if this is all obvious…
Is there something specific in the Grin system that makes it possible? Or could the same be done in principle between BTC and altBTC or between BTC and ETH?
Atomic swaps between other coins like BTC and ETH are definitely possible and have been done before. They are based on HTLC’s. See [1][2] and more recently [3][4]. However it is not possible (and unwanted) to use hash pre-images on MW, which is why an additional method had to be used, which was originally proposed by Andrew Poelstra. It uses so called adaptor signatures, which are explained in the blog post.
Also, could one do an atomic swap between Grin and another network (altGrin) running the same protocol?
Thank you very much for the answer and for the links!
The idea of independent networks is quickly dismissed at the top of the Ethereum Sharding FAQs for security reasons. I am not sure I buy that argument. It makes me wonder if for all the talk about scalability there is any real demand…