Post
Topic
Board Speculation
Re: Gold collapsing. Bitcoin UP.
by
sickpig
on 11/11/2014, 15:51:30 UTC
Now setting aside time consideration do you confirm that is possible exchanging BTC and scBTC through atomic swaps?
(I'm asking b/c notme says is not possible)

edit: slightly clarify the question.

Side chains may certainly differ from each other, but I don't see any reason that it would not be possible to atomic swap so long as they support the script functions like OP_DUP,  OP_HASH160, hash, OP_EQUALVERIFY, OP_CHECKSIG, SIGHASH_ALL.

good, thanks.

After re-reading Appendix C and other comments from this and other threads, it seems to me that atomic swaps could be executed almost "instantaneously" (1). But maybe I'm wrong. 

(1) if we're considering exchanging BTC with scBTC through atomic swap, the exchange process duration should be a function of the confirmation time in btc blockchain, the sidechain's ledger
     confirmation time and locktime used in the txs involved in the swap.

Quote
I'm curious what limitation notme considered.  Maybe just that there is not much reason to atomic swap since an SPV is pretty much the same thing but without the phase one negotiations.  Since these are already set.
The main difference is that an atomic swap doesn't change the amount of currency in the chain, just changes the ownerships.

Edit:  Appendix C of http://www.blockstream.com/sidechains.pdf makes it pretty clear that this is a thing.

just as reference this what "notme" said about atomic swaps:

Atomic swaps don't involve BTC, they involve scBTC and an altcoin that also exists on the sidechain along with the scBTC.