This past week was a big step forward for the SegWit Ecosystem, i.e., SegWit enabled coins. Within a span of four days, Litecoin has been successfully exchanged through Atomic Swaps with Decred, Vertcoin, and then finally Bitcoin.
On Sep. 19, 2017, Charlie Lee, the creator of Litecoin, and Alexlyp, from the Decred Project, were able to swap 1.337 LTC for 2.4066 DCR. Although they ran into difficulty at first, they were able to complete the swap via on-chain transactions through Decred’s repo wallet. The Lightning Network was not utilized as it still needs to be developed further before Atomic Swaps can be implemented.
Yesterday I did an on-chain atomic swap of 1.337 LTC for 2.4066 DCR w/ @_alyp_ of @decredproject. (See txns: https://t.co/BlxU1QBK2U) ⛓️⚛️💱🚀 https://t.co/wPqzdw40Gp
— Charlie Lee (@SatoshiLite) September 20, 2017
A day after on Sep. 20, 2017, Charlie teamed up with James Love Joy, the lead developer of Vertcoin, to perform another Atomic Swap. James was able to port Decred’s code to VTC and this time the two successfully exchanged 1 LTC for 55 VTC flawlessly. This too was an on-chain transaction and did not utilize the Lightning Network.
It worked flawlessly! Thanks @jamesl22! https://t.co/iMd4n4rBYYhttps://t.co/VZE147Pphzhttps://t.co/5zZyauhZAzhttps://t.co/Agj5Nmyitehttps://t.co/Qh1yanVR8B
— Charlie Lee (@SatoshiLite) September 21, 2017
Finally, on Sep. 22, 2017, Charlie worked with a John S to perform Atomic Swaps between LTC and BTC. The two followed the same processes outlined above and successfully swapped 10 LTC for 0.1137 BTC.
Did a cross-chain atomic swap with LTC/BTC! 😁
10 LTC for 0.1137 BTC with @JStefanop1. ⛓️⚛️💱https://t.co/vXwTNirk0Jhttps://t.co/3NTplBOoW9pic.twitter.com/DRKaHg4Wc7
— Charlie Lee (@SatoshiLite) September 22, 2017
What exactly is Atomic Swaps?
Very briefly, Atomic Swaps is a technology that allows a peer-to-peer exchange of two different coins. This is often called a “cross-chain” transaction and is made possible through the use of Hash-Time Lock Contracts(HTLC) on a multisig wallet.
To accomplish this, you’ll need two 2-2 multisig addresses: one for LTC and one for, let’s say, VTC. First, both parties send their respective coins to the corresponding multisig addresses and immediately lock it up with HTLC for “x” amount of time. In this scenario, let’s say it’s one hour. The HTLC also stipulates that the coins will go back to their owners if one hour passes. This will act as insurance for the owners.
Now one party opens a payment channel of 1 LTC while the other an offer of 55 VTC. If both parties are satisfied, they sign the respective channels to close them. You have now completed your Atomic Swap.
The significance of this technology seems very exciting as it furthers one of the core principles of Blockchain technology: decentralization. Once implemented, Atomic Swaps may allow peers to trade two different coins without a third-party like an exchange.
To be clear, the exchanges Charlie did with DCR, VTC, and BTC did not utilize SegWit. However, this technology will be necessary as a fully functioning and scalable Atomic Swap system will require the Lightning Network.
Ultimately, there are two significant take aways from the swaps between LTC-DCR, LTC-VTC, and LTC-BTC:
- They were done with real cryptocurrencies and not testnet coins
- It represents a significant first step as a proof of concept for future Atomic Swaps within the SegWit Ecosystem.
The article is written by encryptoholder, a Cryptoeducator and Community Organizer for the masses.
*The views expressed here are the author’s own and do not necessarily represent the views of Cointelgraph.com
Let's block ads! (Why?)
Powered by WPeMatico