Quantcast
Explaining The Concept of Atomic Swaps and How It's Implemented on Algorand - BlockNewsAfrica
  • About
  • Contact
  • Content Policy
  • Partners
JOIN TELEGRAM
BlockNewsAfrica
Advertisement
  • Home
  • Resources
  • Countries
    • Nigeria
    • South Africa
    • Ghana
    • Kenya
  • Buy Bitcoin
    • Buy Bitcoin in Nigeria
      • Luno
    • Buy Bitcoin in South Africa
      • Luno
    • Buy Bitcoin in Ghana
      • Ebitcoinics
    • Buy Bitcoin in Kenya
    • Buy Bitcoin in Cameroon
    • Buy Bitcoin in Africa
  • DeFi
  • P2P Trading
  • Earn Bitcoin
No Result
View All Result
  • Home
  • Resources
  • Countries
    • Nigeria
    • South Africa
    • Ghana
    • Kenya
  • Buy Bitcoin
    • Buy Bitcoin in Nigeria
      • Luno
    • Buy Bitcoin in South Africa
      • Luno
    • Buy Bitcoin in Ghana
      • Ebitcoinics
    • Buy Bitcoin in Kenya
    • Buy Bitcoin in Cameroon
    • Buy Bitcoin in Africa
  • DeFi
  • P2P Trading
  • Earn Bitcoin
No Result
View All Result
BlockNewsAfrica
No Result
View All Result
Home Featured

Explaining The Concept of Atomic Swaps and How It’s Implemented on Algorand

BlockNewsAfrica by BlockNewsAfrica
October 14, 2020
in Featured, Guest Post
0
Explaining The Concept of Atomic Swaps and How It’s Implemented on Algorand
  • Save
Share on FacebookShare on Twitter

For long has the world’s financial system users been clamoring for a change; one that would see them utilize modern technology for faster and more secure transactions.

Atomic swap is one of those revolutionary technologies of the modern world that is tipped to reform the way money transfer works.

So, what is it all about?

Atomic Swap is a smart contract technology that enables people to trade or transfer coins amongst themselves on-chain or off-chain without the involvement of exchanges or third parties.

Daniel Larimer came up with a trustless swap protocol called P2PTradeX in 2012 but it wasn’t appealing to the world until Tier Nolan perfected the idea in 2013.

The concepts of atomic swap are described like this; assuming Alice has Bitcoins and wishes to exchange them for Litecoins which Bob has, normally they are expected to take their assets to centralized exchanges and make a trade which involves a high level of risks because centralized exchanges face issues like a hack, government regulations, mismanagement of funds, etc.

Atomic swap helps evade the problems of using centralized exchanges for transactions by using Hashed Timelock Contracts (HTLCs). 

Hashed Timelock Contracts

  • Save

Hashed Timelock Contracts (HTLCs) is a smart contract between parties that requires the generation of a cryptographic hash function that must be validated between the parties before the contract is processed.

For instance, Alice decides to trade 1 Bitcoin, she will generate a cryptographic hash function and send it to Bob who also wants to trade his 250 Litecoins for Alice’s Bitcoin. Alice will deposit the 1 Bitcoin into the HTLC contract and refer to Bob as the beneficiary. Bob will deposit his 250 Litecoins into the HTLC contract and tag Alice as the beneficiary. This transaction will be locked with the hash function generated and validated by both parties. Alice possesses the key that was used to generate the hash (termed a pre-image) and uses it to trigger the claim () function of the HTLC contract to claim the transaction and collect Bob’s Litecoins. In doing so, Alice would eventually expose the pre-image in the transaction process which is then visible for Bob to use in claiming his payment.

In the case of fallout in the agreement, HTLC contracts have a time-bound feature that terminates the agreement and return assets to the owners.

On-Chain and Off-Chain Atomic Swaps

I mentioned above that atomic swaps can be done on-chain or off-chain. On-chain Atomic Swaps are performed on the blockchain network while off-chain Atomic Swaps are performed outside the blockchain network.

For On-chain Atomic Swap, the blockchain network must support HTLC, and the assets involved must have the same hash algorithm.  While off-chain Atomic Swaps are carried out with layer 2, which is the term for an off-chain open channel between parties. The first atomic exchange between Litecoin and Bitcoin, which used the Bitcoin Lightning Network rather than the blockchain, is one of such off-chain Atomic Swap examples.

Advantages of Atomic Swap

  • Atomic Swap enables diversification of investments as a result of improved communication between crypto investors.
  • Atomic Swap provides an efficient solution to the issue of interoperability between digital assets and different currencies. It is the first step in linking and allowing multiple coins and cryptocurrencies to trade separately.
  • Atomic Swap helps save funds by eliminating the need to pay transaction fees like when using an exchange. The dubious nature of some exchanges makes them go to the extent of charging users invisible fees while they withdraw assets to their wallets. You also stand a chance to be scammed by fake exchanges.
  • With Atomic Swap, you can get any token of your choice at one go, unlike searching for trading pairs on exchanges.
  • Atomic Swaps speed up trades and transfers, bypassing any steps, the procedure of registration, and validations mandatory on centralized exchanges. Trade with Atomic Swap is completed swiftly.
  • With Atomic Swap, you do not need to submit your personal data neither do you need to perform an authentication procedure as it’s done in the case of centralized exchanges. Your identity is kept private at your own choosing.

How Atomic Swap is Implemented on Algorand

Algorand, one of the top blockchain networks is focused on providing solutions to the problems facing economic trade now and in the future. One of those solutions is Atomic Swap.

To implement an Atomic swap, all transactions involving the transfer are generated and then grouped together. The effect of the grouping is that each transaction is allocated to the same group ID. After every transaction is contained in this group ID, the transactions may well be divided and sent to their appropriate senders for authorization. A party can then gather all authorized transactions and send them to the network.

The Atomic Swap feature of Algorand makes transactions faster and more secure. Atomic swaps on the Algorand blockchain are carried out as irreducible batch operations, whereby a batch of transactions is submitted as a unit and every transaction in the batch either passes or fails.

– This provides room for seamless execution rather than time-dependent Atomic Swaps.

– It also eliminates the necessity for more advanced implementations like hashed timelock contracts introduced on other blockchains.

– Similarly, Atomic Swap on Algorand takes not more than 5 seconds and parties are rest assured of zero transaction fees and safety of their assets.

Steps to Creating Atomic Swap on Algorand

  1. Create unsigned transactions and save to a file
  2. Combine all transactions in a single file

iii. Sign and submit grouped transactions with all related keys

Atomic Swap Use Cases on Algorand

Atomic transfers make use of cases like:

Circular Trades – For instance, Alice will pay Bob only if Bob pays Claire and only if Claire pays Alice.

Group Payments – With this, everyone pays or nobody pays.

Decentralized Exchanges – Anyone can exchange assets with another without the need for a centralized exchange.

Distributed Payments – Payments can be made to numerous beneficiaries.

In conclusion, scalability and interoperability are two of the most significant issues that we face in the crypto space. Atomic Swap provides a solution to these problems and is expected to transform the manner in which trades are carried out now on the internet and in the coming years.

Get connected:

Official Website: https://www.algorand.com/wallet

Telegram: https://t.me/algorand

Twitter: https://twitter.com/Algorand

LinkedIn: https://www.linkedin.com/company/algorand/

Guest post contributed by Helen IMAH – Algorand Ambassador


This is a guest featured post by a third party. BlockNewsAfrica urges users to do their own research before investing in projects or using products or services.

  • Save
Tags: AlgorandAtomic swapBlockchain
Lofi DeFi Lofi DeFi Lofi DeFi
Previous Post

Nigerian Protesters Turn To Bitcoin As Bank Accounts Get Suspended

Next Post

P2P Crypto Exchange Remitano Launches ZAR Wallet Support for South Africa

BlockNewsAfrica

BlockNewsAfrica

BlockNewsAfrica is a Ghanaian based media company that will provide information and data on the developments in the cryptocurrency and blockchain technology industry on the African Continent.

Related Posts

Cartesi As A Leading Layer-2 Platform For The Development Of Smart Contracts
  • Save
Featured

Cartesi As A Leading Layer-2 Platform For The Development Of Smart Contracts

by BlockNewsAfrica
March 31, 2021
Compensation on the Algorand Governance: Using a Decentralized System to Guarantee Rewards
  • Save
Featured

Compensation on the Algorand Governance: Using a Decentralized System to Guarantee Rewards

by BlockNewsAfrica
December 30, 2020
How VeriTX Plans to Build a Digital Supply Chain for Aircraft Parts Using Algorand
  • Save
Featured

How VeriTX Plans to Build a Digital Supply Chain for Aircraft Parts Using Algorand

by BlockNewsAfrica
December 22, 2020
How Algorand is Promoting Decentralized and Transparent Gaming: An Analysis of World Chess
  • Save
Featured

How Algorand is Promoting Decentralized and Transparent Gaming: An Analysis of World Chess

by BlockNewsAfrica
November 30, 2020
Everything you need to know about Bitcoin – 2020 and Beyond
  • Save
Featured

Everything you need to know about Bitcoin – 2020 and Beyond

by BlockNewsAfrica
November 14, 2020
Next Post
remitano-launches-in-south-africa
  • Save

P2P Crypto Exchange Remitano Launches ZAR Wallet Support for South Africa

Things You Should Read

A Dive Into DeFi – Is It Worth the Hype? Is DeFi the Future of Finance?
  • Save

A Dive Into DeFi – Is It Worth the Hype? Is DeFi the Future of Finance?

September 14, 2020
CryptoLocally Releases 2nd Version of DeFi Finance Wallet
  • Save

CryptoLocally Releases 2nd Version of DeFi Finance Wallet

November 1, 2020
Is Bitcoin Legal or Illegal in Ghana? Answered in 2020
  • Save

Is Bitcoin Legal or Illegal in Ghana? Answered in 2020

July 27, 2020
Bitcoin Explained To Newbies
  • Save

Bitcoin Explained To Newbies

January 11, 2020
Facebook Twitter Instagram Youtube
BlockNewsAfrica

Cryptocurrency and blockchain news by Africa for Africans: We provide the latest news, updates, and developments from the African continent.

Find Tags

Algorand Binance Binance Coin (BNB) Binance P2P Binance USD Bitcoin (BTC) Bitcoin ATMs bitfxt Blockchain Blockchain and AI Africa Conference Bundle Buycoins Africa CryptoLocally DASH Earn Crypto eBitcoinics ERC 20 Ethereum Exchanges Fiat-On-Ramps FLASH FlashCoins Ghana Cedi ICE3X Jobs Litecoin LocalBitcoins LocalCryptos Luno Mobile Money NaijaCrypto Naira (NGN) P2P Exchange P2P Trading Paxful Privacy Quidax Remitano Ripple Tether USD Trading Tron (TRX) Twitter VALR YellowCard

Disclaimer: Information like articles, reviews, and tutorials found on BlockNewsAfrica is not investment advice. You are encouraged to do your own research (DYOR) before making any important decisions. You can always refer to our content policy.

© 2020 BlockNewsAfrica - Your ultimate African cryptocurrency companion.

No Result
View All Result
  • Home
  • Resources
  • Countries
    • Nigeria
    • South Africa
    • Ghana
    • Kenya
  • Buy Bitcoin
    • Buy Bitcoin in Nigeria
      • Luno
    • Buy Bitcoin in South Africa
      • Luno
    • Buy Bitcoin in Ghana
      • Ebitcoinics
    • Buy Bitcoin in Kenya
    • Buy Bitcoin in Cameroon
    • Buy Bitcoin in Africa
  • DeFi
  • P2P Trading
  • Earn Bitcoin

© 2020 BlockNewsAfrica - Your ultimate African cryptocurrency companion.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
Share via
Facebook
Twitter
LinkedIn
Mix
Pinterest
Tumblr
Skype
Buffer
Pocket
VKontakte
Xing
Reddit
Flipboard
MySpace
Delicious
Amazon
Digg
Evernote
Blogger
LiveJournal
Baidu
NewsVine
Yummly
Yahoo
WhatsApp
Viber
SMS
Telegram
Facebook Messenger
Like
Email
Print
Copy Link
Powered by Social Snap
Copy link
CopyCopied
Powered by Social Snap