Atomic Swap And Its Wonder!

Source : https://coinscapture.com/blog/atomic-swap-and-its-wonder


Exchanging crypto coins can be complex for many users, also various cryptocurrency exchanges do not support all the coins and it can lead to a time-consuming process of migrating accounts, conversion of the coins or even can have counterparty risk.
An atomic swap is a technology consisting of a smart contract that allows the exchange of cryptocurrencies with each other without the need of any central intermediaries such as the exchange itself. It is a peer-to-peer exchange of cryptocurrencies amongst the users without the need for third party services. It occurs directly amongst the cryptocurrencies of its blockchains, on-chain or with off-chain and it solves the time-bound problems with the utilization of HTLC - Hash Timelock Contracts.
In simple terms, it is like money transfer, wherein atomic swaps help its users to trade directly with one another or can be said wallet-to-wallet.
Atomic Swaps are also known as Cross-chain trading.
The first successful atomic swap was between Litecoin and Decred in the year of September 2017.
On-Chain and Off-Chain Atomic Swaps
On-chain Off-Chain
Takes place on any of the cryptocurrency’s blockchainTakes place by enabling the swap off the blockchain 
Supports HTLC and has the same hashing algorithmOccurs on a second layer
How does it work
Atomic swaps required both the users in a timeframe to acknowledge the receipt of funds with the use of a cryptographic hash function. And if the process as required is not confirmed as per the method laid out, the entire transaction is hence voided.
Example
For instance, Chandler and Joey use the atomic swap method.
Chandler is a trader who wants to convert his 20 Bitcoins to Ethereum on an equivalent rate with Joey. 
  • Chandler Submits His Transaction With The Blockchain Of Bitcoin, Also To Encrypt The Transaction, He Generates A Number Of The Cryptographic Hash Functions. 
  • Chandler Then Deposits His BTC Along With The Value And Shares The Information With Joey.
  • While Joey Being The End-User Conducts The Same Procedural Method By Submitting Its Transaction To The Blockchain Of Ethereum.
  • Chandler And Joey By Utilizing Their Respective Numbers, Unlock Their Own Funds In A Specific Timeframe (As A Stated Method Of The Process). 
  • Hence The Transaction Is Processed. 
This will not happen or will be canceled if either of them misses out on the steps that are required for the completion of the transaction and the funds are returned back to its users.
Pros and Cons of Atomic Swap
Pros-
  1. Atomic Swap Helps To Avoid The Feature Of Interoperability That The Assets Of Cryptocurrencies Face.
  2. People Can Use And Hold Diversified Crypto Coins.
  3. It Can Enable A Decentralized Exchange That Would Be Fee-Less.
  4. An Atomic Swap Is Decentralized And Hence Removes The Hurdles Of Utilizing 3rd Party Services.
  5. You Will Have Complete Control Over Your Money.
  6. The Chances Of Fraudulent Activities Are Very Less With The Atomic Swap.
  7. With Atomic Swap, You Need Not Use The Intermediary Tokens
  8. One Saves Time And Money With The Help Of An Atomic Swap.
  9. The Transaction Process Of The Atomic Process Is Secured
Cons-
  1. The Need For Initiating The Hashed Timelock Contracts For Both The Users.
  2. The Need For The Facilities Of Specialized Programming.
  3. The Compatibility With Wallets And Exchanges Needs To Increase For The Adoption Of The Atomic Swap.
The companies that use Atomic Swap
  1. Lightning Labs Utilizes The Bitcoin’s Lightning Network For Its Transactions And Has Done Through Off-Chain Swaps Utilizing The Technology.
  2. Komodo Is A Decentralized Exchange And Supports Trades Of Over 95% Of All The Existential Tokens And Coins.
  3. Blockchain.Io Utilizes The Combination Of Centralized And Decentralized Companies For The Implementation Of Atomic Swaps.
Atomic Swap has a great potentiality to be influential for the growth in the world of Cryptocurrency.

Comments