crypto.bi
Ad
Get paid for social media engagement!
Join Arena App NOW

ELI5 Atomic Swaps

Atomic swaps provide a way for two cryptocurrencies to be exchanged using a single blockchain and without a trusted third party involved.

In computer lingo, “atomic” means something that either happens fully, or does not happen at all.

An “atomic swap”, is a cryptocurrency swap operation that either completes successfully, or everything is rolled back and funds are returned to both parties.

Implementation

An atomic swap can be implemented using a smart contract.

This contract would be activated by either participating party in the swap. This user would deposit their part of the deal and the smart contract will start a countdown clock.

If the other party does not deposit their part of the deal within a predetermined period, the deal is cancelled and the initially deposited funds are returned.

On the other hand, if the counterpart does deposit their share, the contract executes the swap and both parties receive their funds.

All of this happens without the intervention of a trusted 3rd party – which is what makes the system different from a typical brokered transaction.

Example

Atomic swaps are normally implemented on top of preexisting blockchains. In Ethereum, swaps can be implemented using smart contracts.

About the Author
Published by Crypto Bill - Bill is a writer, geek, crypto-curious polyheurist, a dog's best friend and coffee addict. Information security expert, encryption software with interests in P2P networking, decentralized applications (dApps), smart contracts and crypto based payment solutions. Learn More About Us