airdrop band appstore-mobile appstore arrow-dropdown atom awc-bnb awc-erc20 xlm knowledge explorer academy blog membership assets btc debian doge download_apk_android eth facebook-header facebook fedora footer-logo-atomic github-footer google-play--mobile linkedin-blue ltc bch trx dot macos msite playstore rating referral telegram-header telegramm trust-pilot trx dot twitter-blue twitter-footer twitter-header ubuntu wiki-blue win xrp aave nem xtz youtube

Sep 09, 2019

5 min




5 min

Atomic Swap Process


A cross-chain swap is a traded between two users of different cryptocurrencies.

The first party sends coin (A) to a second party’s (A) address, while the second party would send (B) coin to the first party’s (B) address. There is a problem that occurs here. The issue is that there is no protection if one of the parties goes against the agreement. That was the past. Now, the future is a mutually-trusted third party for escrow is to solve the problem. An atomic cross-chain swap is the answer the community was waiting for.

Atomic swaps acts as a binding contract between both parties. Within the contracted transaction, there is one contract for each blockchain. A key element in this process is that the contracts contain an output that is spendable by either party, but the rules required for redemption are different for each party involved.

Party (A), will pay for the intended trade amount provided and will generate a secret. Keeping it a secret is a main component in this process. As long as the secret is known, the contract output can be redeemed by party (B). If the time period expires after the contract transaction has been mined, but one party has not redeemed, a refund can be placed back in the initiators wallet.

  1. Party A and B agree about terms of exchange
  2. Party A publish a contract in Blockchain A
  3. Party A send a Secret Hash and contract transaction to Part B
  4. Party B audit contract transaction
  5. Party B create a contract in Blockchain B with A secret hash
  6. Party B send the contract transaction to Party A
  7. Party A audit contract transaction from Party B
  8. Party A withdrawal from B contract with publishing secret
  9. B extract secret from withdrawal transaction
  10. B withdrawal from A contract

Decentralized order book (DOB)

Atomic swap is only a fraction of it’s exclusivity. Along with the swap function, it also connects two users together. The Atomic Wallet uses a decentralized orderbook based on the BitTorrent protocol. Atomic’s orders differ from the centralized exchange order:

  1. Don’t lock user fund.
  2. It is a proposal to a trade, not obligation.
  3. User can set a range available for swap (fox example from 10 to 100 BTC).
  4. Orders show in orderbook if user Atomic wallet online.
  5. Order transmit via p2p network between users.
  1. User creates an order for the trade and signs it with the private key.
  2. Order is being sent to all Atomic Wallet users as the update proposal to the file distributed and synced among all users.
  3. One of the verification nodes checks the order for legitimacy in terms of Atomic Wallet environment. Verification node creates an updated version of the DOB file wiping off the closed orders and adding new orders created.
  4. New version of the DOB file is synchronized along the network once in a minute.

If an user exits from the wallet or wallet loses connection, the user’s order will stay automatically unavailable. After the users connection is restored, their order will stay visible for other users.

Atomic wallet connects Order book and Atomic swap technologies in a friendly interface.

Atomic Swaps Place Order

The Atomic Wallet Atomic Swap Exchange process:

  1. Create a wallet — registration is not required.
  2. Top up the wallet.
  3. Party A select an order from the BitTorrent order book.
  4. Party A enter an amount of coin to swap or coin to receive.
  5. Party A confirm the swap.
  6. Party B receives notification.
  7. Party B confirms the swap.
  8. First party and Second party’s Atomic Wallet checks the contracts.
  9. Both receive their coins.
  • No registration, verification.
  • Custody free solution.
  • Unlimited amount of exchange.
  • Fixed exchange rate.
  • Guaranteed by blockchains exchange or refund time.
  • Direct exchanges of one coin for another without intermediary pairs.
  • User to user exchange.
  • User friendly interface.
  • Anonymity.
  • Decentralized order book.
  • Serverless solution.

Do you like the article?

Thank you for your opinion. You can leave your feedback or share this article.

leave a comment
Write a Comment
Even more features are coming

Thank you for downloading Atomic!

Your support helps us build a stronger and convenient platform. A lot of interesting features are coming soon!