Hey folks, I noticed there's not much info here that breaks down what Atomic swaps actually are for newbies. So, I figured I’d start a thread to clarify things a bit.
What are Atomic Swaps
Atomic swaps allow you to trade cryptocurrencies between different blockchains without needing any centralized exchanges. It's a cool way to make trading between various cryptocurrencies more decentralized and efficient.
How Atomic Swaps Work
These swaps rely on smart contracts and a special contract type called Hash-Time Locked Contracts (HTLCs).
So, to make it clear, let’s say we have Kim and Tunde. Kim wants to swap his Bitcoin for Tunde's Monero. They both agree to kick off the atomic swap.
Hash Creation After agreeing, Kim generates a hash from a secret and shares that hash with Tunde.
HTLC Creation Kim then sets up the first HTLC on the Bitcoin blockchain. He locks his coins there and ties them to the hash he made. Tunde does the same on his end, creating an HTLC on the Monero blockchain, locking up his coins and linking them to Kim’s hash.
Funds Claiming Kim now uses the secret tied to the hash to grab Tunde’s coins and shares the secret with Tunde, who then uses it to claim Kim’s coins.
Refund system if one of the parties didn’t complete the transaction, there’s a clause to refund the coins.
Atomic Swaps 101: A Beginner's Guide
0 replies 234 views
?Reply
Sign in to reply to this topic