create account

ATOMIC SWAPS IN A NUTSHELL by geniusvic

View this thread on: hive.blogpeakd.comecency.com
· @geniusvic · (edited)
$21.02
ATOMIC SWAPS IN A NUTSHELL
**You might have heard of this term in regards to cryptocurrencies but still don't really understand what it's about.   In this post I'll go over the basics of what an atomic swap is and how it works.**


![atom-nuclear-e1494526137525.jpg](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515492728/iqt9d3utbpippkdda3zo.jpg)
[Credit](https://coinvedi.com/wp-content/uploads/2017/05/atom-nuclear-e1494526137525.jpg)


The idea behind an atomic swap is to exchange cryptocurrencies directly without going through a third-party. For instance, if Bob wanted to exchange  59 Litecoin for 1 bitcoin with Jane, what it would involve is a contract which would handle taking both sides of the exchange and once both sides have put in the agreed amounts, it releases the cryptocurrencies to their appropriate wallets. If Bob sends the agreed amount and  Jane grows cold feet, there'll be a mechanism where the contract will time-out after a while and Bob will get his Litecoin back. So it's either both sides put in the agreed amounts or the transaction doesn't happen.  
This can be done with contracts and certain blockchains have interoperability in regards to that. Interoperability enables coins/tokens built on this blockchain perform what's called "on-chain atomic swaps" ( i.e the chains have the ability to interact with each other). 
The other way to do it would  be off-chain which involves the lighning network. The lightning network would be like a side-chain or side-channel where the transactions could happen. 

The main advantage of atomic swaps is that you don't have to worry about  third-party exchanges. The downside to exchanges is that you have to deposit your coins and at that point you're technically no longer in control of their keys. You have the right to the coin, to move it around and withdraw it but you technically don't posses it as long as it's on the exchange. Atomic swaps on the other hand provide a trustless means of exchange that doesn't require you to give up the control of the keys of your cryptocurrencies. 

We could see atomic swaps become more mainstream as things progress and decentralized setups for exchanges become more prominent in the future. 

_If this post was helpful please resteem, upvote and comment._

# Thanks for reading..
👍  , , , , , , , ,
properties (23)
authorgeniusvic
permlinkatomic-swaps-in-a-nutshell
categoryatomicswaps
json_metadata{"community":"busy","app":"steemit/0.1","format":"markdown","links":["https://coinvedi.com/wp-content/uploads/2017/05/atom-nuclear-e1494526137525.jpg"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1515492728/iqt9d3utbpippkdda3zo.jpg"],"tags":["blockchain","atomicswaps","genesisproject","nigeria","busy"]}
created2018-01-09 10:15:39
last_update2018-01-09 10:33:45
depth0
children0
last_payout2018-01-16 10:15:39
cashout_time1969-12-31 23:59:59
total_payout_value16.010 HBD
curator_payout_value5.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,280
author_reputation1,777,305,473,377
root_title"ATOMIC SWAPS IN A NUTSHELL"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id28,217,618
net_rshares1,925,876,145,433
author_curate_reward""
vote details (9)