🔍
What Are Atomic Swaps? Explained in Plain English - YouTube
Channel: 99Bitcoins
[0]
What are atomic swaps?
[2]
Can I really exchange my Bitcoins
to any other cryptocurrency out there,
[6]
instantly and for free?
[7]
Why is this even important?
[9]
Well stick around,
[10]
in this episode
of Crypto whiteboard Tuesday
[13]
we’ll answer these questions and more.
[21]
Hi, I’m Nate Martin from 99Bitcoins.com
[24]
and welcome
to Crypto Whiteboard Tuesday
[26]
where we take complex
cryptocurrency topics,
[29]
break them down
[30]
and translate them into plain English.
[32]
Before we begin,
[33]
don’t forget to subscribe to the channel
[35]
and click the bell
so you’ll immediately get notified
[38]
when a new video comes out.
[41]
Today’s topic Atomic Swaps,
[43]
and if this term
doesn’t really mean much to you
[45]
well then you’re in the right place.
[47]
If you've ever tried changing between
two different cryptocurrencies,
[51]
you’ve probably noticed
the high switching costs it involves.
[55]
You might be thinking it’s not that hard,
[56]
but let’s think about it for a moment.
[59]
If, for example,
you want to trade Bitcoins for Litecoins
[62]
you’ll need to do several things.
[65]
First you’ll need to find an exchange
that supplies this currency pair.
[69]
Once you've found such an exchange,
[71]
you’ll need to sign up to it
[72]
and go through its KYC process
to verify your identity.
[76]
Assuming you passed
the KYC process,
[79]
you can then deposit your Bitcoins
into the exchange,
[82]
basically forcing you to give up control
over your coins.
[86]
Once the Bitcoins are on the exchange,
[88]
you can then trade the coins -
[90]
for a transaction fee.
[91]
Finally, once the trade is complete
[93]
you can withdraw the Litecoins
from the exchange
[96]
which will include additional fees
and waiting time
[99]
until the coins arrive in your wallet.
[101]
As you can imagine
this situation is less than optimal.
[105]
In a truly decentralized world,
[107]
users will be able to switch
crypto to crypto directly
[111]
without any third party,
[112]
instantly and feeless.
[114]
That’s exactly where
Atomic Swaps come in.
[117]
An Atomic Swap allows users to trade
two cryptocurrencies directly,
[121]
without the need
for an intermediary or trust.
[124]
In my particular case,
[126]
it will allow me to exchange Bitcoins
for Litecoins with complete strangers
[129]
directly from my wallet.
[131]
The term Atomic
comes from computer science.
[135]
It means that either the operation
is conducted as planned
[138]
or it isn’t conducted at all.
[140]
With an Atomic Swap
[142]
I will either exchange my coins
with the other party
[144]
exactly as we agreed,
[146]
or it won’t happen at all.
[148]
Let me explain.
[149]
A non Atomic swap would be
me sending Bitcoins to a stranger,
[153]
and then hoping the stranger
will send me back Litecoins.
[157]
This leaves the door open
for fraud or theft
[159]
since my counterparty
can just walk away with my money.
[163]
In an Atomic swap on the other hand,
[165]
either both of us get the money
or neither of us do.
[168]
There’s no room for human error
or manipulation.
[171]
It’s important to note that Atomic Swaps
don’t work with fiat currencies,
[176]
only with cryptocurrencies.
[179]
Now that you know
what Atomic Swaps are,
[181]
let’s move on to how they work.
[183]
Since this is a non technical video,
[185]
I’m going to use a simple analogy
to explain the process.
[189]
Let’s say I want to participate
in an Atomic Swap
[192]
of Bitcoins to Litecoins.
[194]
As the initiator of this swap,
[195]
I will take my Bitcoins,
represented by this baseball,
[199]
put them in a see through box
and lock it with a lock
[202]
that can only be opened
with a long secret combination
[205]
that I have written down
and kept hidden in my pocket.
[208]
I then send this box over
[212]
so he can inspect and see
that it has the right amount of Bitcoins
[216]
for the swap.
[217]
Once I verify the amount is correct,
[219]
I'll take my Litecoins and put them
in my own see through box.
[223]
However, my box will have
the same exact lock on it
[227]
as his box has.
[228]
So, I don’t know the combination
to open this box.
[232]
So at the moment
[233]
only I hold the combination
that opens the two boxes,
[237]
and that combination
is hidden inside my pocket.
[240]
So I'm going to send my box of Litecoins
over to him
[244]
so that he can verify the amount as well.
[247]
Once I see that everything is in order,
[249]
I pull out the secret combination
out of my pocket
[253]
to open the box of Litecoins.
[255]
As soon as he does that,
[256]
I'm able to see the combination as well
[258]
and can now use it to open
the box of Bitcoins
[261]
that he sent to me.
[262]
We then each get our funds
and the Atomic Swap is complete.
[266]
Thanks Nate.
[267]
Anytime.
[270]
This was a very simplified
non technical explanation of the process.
[274]
In real life,
[275]
the boxes are actually a smart contract
[278]
which states that if the transaction
doesn’t occur as expected
[281]
within a specific time frame,
[282]
each party will get their money back.
[284]
To get a bit more technical,
[286]
these smart contracts are called
Hashed Time Lock Contracts
[290]
or HTLC.
[292]
The lock on the box is called a hash
[294]
and the combination to open the lock
is called a preimage.
[298]
Putting this all together,
[299]
in an Atomic Swap,
[301]
funds are locked inside smart contracts
[303]
that can be publicly inspected
on the blockchain.
[306]
The funds can only be released
with a preimage,
[308]
a private key of sorts,
[310]
that matches the hash of these contracts.
[312]
If at any point either party
wants to cancel the swap
[315]
they can just walk away
[316]
and the funds will be automatically
returned to the original owners.
[320]
Atomic Swap technology
is just starting out
[323]
and it still has several limitations.
[325]
For example,
[326]
both currencies that are being exchanged
must have the same hash algorithm
[330]
and both currencies should support
specific types of smart contracts.
[335]
At the moment
[336]
you will also need
certain programming skills
[338]
to use atomic swaps.
[340]
However, in the future
[341]
it’s highly probable
that cryptocurrency wallets
[344]
will offer this technology
built in to their software.
[348]
By now I bet you already understand
the impact this might have
[351]
on cryptocurrency users.
[353]
Just imagine the opportunities
this can open up
[356]
once you have the ability
to morph currencies instantly.
[360]
Merchants can accept any cryptocurrency
that supports this technology
[363]
since they can just instantly exchange it
to any cryptocurrency they like.
[368]
We can set up trustless exchanges
[370]
where you don’t have to give away
control of your funds
[372]
in order to trade with other people.
[375]
Add the Lightning network
on top of this
[377]
and you basically get
[378]
the ability to move any type
and any amount of cryptocurrency
[382]
with zero fees, instantly.
[384]
Pretty neat, right?
[386]
So, how far are we
from being able to do all that?
[389]
Well up until today
[391]
only a few successful tests
have been done with this technology.
[395]
But as cryptocurrencies
become more mainstream,
[398]
and market competition
between wallet providers
[400]
and cryptocurrencies increase,
[402]
new solutions like Atomic Swaps
will come to fruition.
[406]
That’s it for today’s episode of
Crypto Whiteboard Tuesday.
[409]
Hopefully by now you understand
what Atomic Swaps are -
[413]
A way for individuals to exchange
different cryptocurrencies directly
[417]
without the need for trust or a third party.
[420]
You may still have some questions.
[422]
If so, just leave them
in the comment section below.
[425]
And if you’re watching this video
on YouTube,
[427]
and enjoy what you’ve seen,
[428]
don’t forget to hit the like button.
[430]
Then make sure to subscribe
to the channel
[432]
and click that bell so you’ll be notified
as soon as we post new episodes.
[437]
Thanks for joining me
here at the Whiteboard.
[439]
For 99bitcoins.com,
[440]
I’m Nate Martin,
[441]
and I’ll see you… in a bit.
Most Recent Videos:
You can go back to the homepage right here: Homepage





