{"id":9373,"date":"2023-08-19T12:37:34","date_gmt":"2023-08-19T12:37:34","guid":{"rendered":"https:\/\/www.bitnovo.com\/blog\/?p=9373"},"modified":"2025-09-10T15:24:25","modified_gmt":"2025-09-10T15:24:25","slug":"what-is-an-atomic-swap","status":"publish","type":"post","link":"https:\/\/www.bitnovo.com\/blog\/en\/what-is-an-atomic-swap","title":{"rendered":"What is an Atomic Swap?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Alternar tabla de contenidos\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ffffff;color:#ffffff\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ffffff;color:#ffffff\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.bitnovo.com\/blog\/en\/what-is-an-atomic-swap\/#advantages\" >Advantages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.bitnovo.com\/blog\/en\/what-is-an-atomic-swap\/#disadvantages\" >Disadvantages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.bitnovo.com\/blog\/en\/what-is-an-atomic-swap\/#how_an_atomic_swap_works\" >How an Atomic Swap works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.bitnovo.com\/blog\/en\/what-is-an-atomic-swap\/#example_of_what_an_atomic_swap_feature_looks_like\" >Example of what an atomic swap feature looks like<\/a><\/li><\/ul><\/nav><\/div>\n<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Tiempo de lectura:<\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutos<\/span><\/span><p><strong>It is an intelligent contract that agrees between the interested parties an exchange of one crypto for another,<\/strong>\u00a0this does not require the use of third parties as cryptocurrency exchange platforms.<\/p>\n<p>Such contracts\u00a0<strong>take place in the middle of two blockchains of different crypto.<\/strong>\u00a0The first recorded exchange was in September 2017, when an Atomic Swap was carried out between Decred and Litecoin.<\/p>\n<p>Since that time some platforms make it easier for their users to run atomic swaps, crypto and platforms, such as 0x and Altcoin.io, have also incorporated this technology.<\/p>\n<p><strong>As we know, the cryptocurrency exchange process takes time<\/strong>\u00a0and it\u2019s complex, we can say that this is due to the way cryptocurrencies are built, which leaves a complex process to run when you exchange them for another user.<\/p>\n<p><strong>Currently there are cryptocurrency trading platforms that do not handle all crypto<\/strong>. This makes someone who wants to change their cryptocurrency to one not supported by that platform require a migration of the account to another platform that has the desired cryptocurrency.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"advantages\"><\/span><strong>Advantages<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Security:<\/strong>\u00a0the\u00a0<strong>HashLock<\/strong>\u00a0and\u00a0<strong>TimeLock<\/strong>\u00a0technology in HTCL contracts that are used in Atomic Swaps,\u00a0<strong>are those that offer security to both merchants and buyers,<\/strong>\u00a0this security is due to the fact that the participants in the transaction have recovered their crypto, in case of irregularities.<\/p>\n<p><strong>Decentralisation:<\/strong>\u00a0The ideal of cryptocurrencies is to be totally decentralized, but even so, to exchange cryptocurrencies we need a centralized platform, because Atomic swap does not need a platform to carry out the exchange because it works between blockchains\u00a0<strong>can transfer funds from one portfolio to another without the need for third-party intervention.<\/strong><\/p>\n<p><strong>Ease in trading altcoin:<\/strong>\u00a0Atomic Swaps do not have the disadvantages of some cryptocurrency trading platforms that, like when you buy an altcoin like Monero or Dash, some platforms first require the exchange of Dash for Bitcoin and then the purchase with Bitcoin Monero, Atomic Swap does not have this problem since\u00a0<strong>you can exchange Dash directly with Monero without restrictions.<\/strong><\/p>\n<p><strong>Lower costs<\/strong>: trading between users with an Atomic Swap reduces the cost of commissions charged by the platforms, when a change is made from Dash to Bitcoin or when an exchange is made, a charge is generated, when an Atomic Swap is made, these commissions are reduced since the extra that the platforms take does not exist.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"disadvantages\"><\/span><strong>Disadvantages<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Complexity:<\/strong>\u00a0because of its high level of safety,\u00a0<strong>the rules imposed by the smart contract are stricter than those available to crypto trading platforms<\/strong>, even an Atomic Swap does not have the ease in which users interact on a platform, as an Atomic Swap requires data exchange with the hash.<\/p>\n<p><strong>Privacy:\u00a0<\/strong>a curious detail of Atomic Swap, is the time when the exchange is delayed, but since this would affect privacy, then\u00a0<strong>delaying more time in processing offers a wider port to hackers<\/strong>\u00a0so that they can enter and collect private transaction information.<\/p>\n<p><strong>Centralization:\u00a0<\/strong>Although centralizing a process in anti crypto, cryptocurrency trading platforms are necessary and provide certain comfort to their users, Atomic Swaps do not have these comforts, a missing and important comfort would be the exchange of a cryptocurrency with a currency fiat.<\/p>\n<div id=\"image_575087529\" class=\"img has-hover x md-x lg-x y md-y lg-y\">\n<div class=\"img-inner dark\"><img fetchpriority=\"high\" decoding=\"async\" class=\"attachment-large size-large lazyloaded\" src=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1024x701.jpg\" sizes=\"(max-width: 1020px) 100vw, 1020px\" srcset=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1024x701.jpg 1024w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-300x206.jpg 300w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-768x526.jpg 768w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1536x1052.jpg 1536w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2048x1403.jpg 2048w\" alt=\"Que es un Atomic Swap Bitnovo\" width=\"1020\" height=\"698\" data-srcset=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1024x701.jpg 1024w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-300x206.jpg 300w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-768x526.jpg 768w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1536x1052.jpg 1536w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2048x1403.jpg 2048w\" data-src=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-1024x701.jpg\" data-sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/div>\n<\/div>\n<div class=\"is-divider divider clearfix\"><\/div>\n<h2><span class=\"ez-toc-section\" id=\"how_an_atomic_swap_works\"><\/span><strong>How an Atomic Swap works<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As it happens today, the process of exchange of cryptocurrencies is long and complex. This is due to several reasons. For example, the fragmented nature of the current cryptocurrency ecosystem presents several challenges for medium traders.<\/p>\n<p>Not all cryptocurrency exchanges support all coins. For this, a\u00a0<strong>merchant who wants to change his currency with another that is not supported in the current exchange rate may have to migrate accounts<\/strong>\u00a0or make several conversions between intermediate currencies to achieve its goal. There is also an associated counterparty risk if the trader wishes to exchange his currencies with another merchant.<\/p>\n<p>Atomic exchanges solve this problem by using<strong>\u00a0Hash Timelock contracts<\/strong>\u00a0(HTLC). As the name suggests, the HTLC is\u00a0<strong>an intelligent fixed-term contract<\/strong>\u00a0between the parties that involves the generation of a cryptographic hash function, which can be verified between them.<\/p>\n<p><strong>Nuclear exchanges require both parties to certify receipt of funds,<\/strong>\u00a0within a set deadline using a cryptographic hash function. If one of the parties concerned does not confirm the transaction within the deadline, the entire transaction shall be cancelled and funds are not exchanged. The latter action helps to eliminate counterparty risk.<\/p>\n<p>The main features of a smart atomic swap contract are:<\/p>\n<p><strong>HashLock<\/strong>: This is the technology that allows to close the contract with a key that can only be accessed by the user who deposits the crypto, this crypto can only be unlocked with a unique key that is a unique data chain.<\/p>\n<p><strong>TimeLock<\/strong>: This is\u00a0<strong>the time locking mechanism<\/strong>\u00a0which ensures that a transaction takes place within a certain period of time and returns funds to users if it is not completed. This assures users that through a time limit you get to deposit and the transaction is not completed immediately,<strong>\u00a0we are certain that the funds are safe and will be returned<\/strong><\/p>\n<div id=\"image_1546045905\" class=\"img has-hover x md-x lg-x y md-y lg-y\">\n<div class=\"img-inner dark\"><img decoding=\"async\" class=\"attachment-large size-large lazyloaded\" src=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1024x701.jpg\" sizes=\"(max-width: 1020px) 100vw, 1020px\" srcset=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1024x701.jpg 1024w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-300x206.jpg 300w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-768x526.jpg 768w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1536x1052.jpg 1536w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-2048x1403.jpg 2048w\" alt=\"Que es un Atomic Swap Bitnovo\" width=\"1020\" height=\"698\" data-srcset=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1024x701.jpg 1024w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-300x206.jpg 300w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-768x526.jpg 768w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1536x1052.jpg 1536w, https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-2048x1403.jpg 2048w\" data-src=\"https:\/\/www.bitnovo.com\/blog\/wp-content\/uploads\/2020\/12\/Que-es-un-Atomic-Swap-2-1024x701.jpg\" data-sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"example_of_what_an_atomic_swap_feature_looks_like\"><\/span><strong>Example of what an atomic swap feature looks like<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Suppose a\u00a0<strong>User (1)<\/strong>\u00a0and\u00a0<strong>User (2)<\/strong>\u00a0wish to exchange crypto through an atomic exchange.<\/p>\n<p><strong>User (1)<\/strong>\u00a0deposits its encryption in an HTCL address, which serves as a virtual safe and can only be opened with a special key to which it can access.<\/p>\n<p><strong>User (1)<\/strong>\u00a0shares a special key cryptographic hash with\u00a0<strong>User (2)<\/strong>, that deposits its own cryptos on an address created using the same cryptographic hash.<\/p>\n<p>Once\u00a0<strong>User (2)<\/strong>\u00a0deposited the cryptocurrency,\u00a0<strong>User (1)<\/strong>\u00a0can use the currency \u201cunlocking\u201d the transaction with the appropriate key obtained from its initial deposit.<\/p>\n<p>After\u00a0<strong>User (1)<\/strong>\u00a0uses the key to \u201cunlock\u201d the transaction,\u00a0<strong>User (2)<\/strong>\u00a0can access its share of the exchange.<\/p>\n<p><strong>Once both parties have access to their respective funds, the atomic exchange is completed.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Tiempo de lectura:<\/span> <span class=\"rt-time\"> 4<\/span> <span class=\"rt-label rt-postfix\">minutos<\/span><\/span>It is an intelligent contract that agrees between the interested parties an exchange of one crypto for another,\u00a0this does not require the use of third parties as cryptocurrency exchange platforms. Such contracts\u00a0take place in the middle of two blockchains of different crypto.\u00a0The first recorded exchange was in September 2017, when an Atomic Swap was carried [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":9374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185],"tags":[],"class_list":["post-9373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain-en"],"_links":{"self":[{"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/posts\/9373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/comments?post=9373"}],"version-history":[{"count":2,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/posts\/9373\/revisions"}],"predecessor-version":[{"id":24742,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/posts\/9373\/revisions\/24742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/media\/9374"}],"wp:attachment":[{"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/media?parent=9373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/categories?post=9373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bitnovo.com\/blog\/wp-json\/wp\/v2\/tags?post=9373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}