Trading one cryptocurrency for another can be difficult. Depending on the obscurity of the coin, it can often mean a process of using several different exchanges to trade different cryptocurrencies before getting the one you want.
Multiple transactions also incur many fees which add up quickly, and considering the difficulty and time involved, it may not be worth the trouble. There is a real risk that by the time you buy the cryptocurrency you’re after, the market’s volatility has caused the price to increase significantly.
So what stops us from trading one cryptocurrency directly for another? To put it simply, the problem is that because each type of cryptocurrency exists on its own blockchain, coins simply can’t move between chains as they’re incompatible. This is a fundamental hurdle of blockchain software that hasn’t been solved yet, although there are several proposed solutions in the works.
Atomic swaps are one possible solution to this problem. If they become a success, soon anyone will be able to trade a range of cryptocurrencies directly with another user.
Read on to learn more about atomic swaps and their potential to change the way we think about cryptocurrency trading.
This information should not be interpreted as an endorsement of cryptocurrency or any specific provider,
service or offering. It is not a recommendation to trade. Cryptocurrencies are speculative, complex and
involve significant risks – they are highly volatile and sensitive to secondary activity. Performance
is unpredictable and past performance is no guarantee of future performance. Consider your own
circumstances, and obtain your own advice, before relying on this information. You should also verify
the nature of any product or service (including its legal status and relevant regulatory requirements)
and consult the relevant Regulators' websites before making any decision. Finder, or the author, may
have holdings in the cryptocurrencies discussed.
What are atomic swaps?
An atomic swap, or more precisely, an atomic cross-chain swap, is a flashy way of saying the trade of one cryptocurrency for another. The difference is that atomic swaps eliminate some of the risks associated with performing that same trade on an exchange.
For example, trading from bitcoin (BTC) to Ether (ETH) on traditional cryptocurrency exchanges involves two separate transactions. Essentially, the trader sells the BTC, and the exchange buys it. At the same time, the exchange sells ETH, and the trader buys it.
For performing this service, the exchange takes a fee. As a third party, the exchange is in control of the traders’ funds at all times and may act dishonestly, be hacked or otherwise pose a potential risk.
But, atomic swaps don’t need a third party. Atomic swaps are done on a peer-to-peer (P2P) basis. Just like I’m writing to you and you’re reading this (thank you), we’re working on a P2P basis. Atomic swaps begin like this, between two people. The two people agree on the exchange rate of the two cryptocurrencies and confirm it to complete the trade.
The technical term for this type of trade is Hashed Timelock Contract (HTLC). There are three conditions that need to be met for the HTLC to succeed. If a cryptocurrency doesn’t meet them, it can’t support atomic swaps.
Both blockchains need to have the same type of hashing algorithm. The type of hashing algorithm can vary between blockchains, but some share the same, such as bitcoin and Litecoin.
Both blockchains need to have time locked contracts. This is a common security feature to prevent double spending.
Specialized programming functions. This is where atomic swaps become more complex.
There are two specialized programming functions for the bitcoin blockchain called layered solutions. Both layers address the problem of scaling, among others. The first layer solution is called SegWit. The second layer solution is called the Lightning Network.
Can every cryptocurrency do atomic swaps?
Not all cryptocurrencies will be able to do atomic swaps. But, many that can’t do it right now will be able to do it in the future. Many cryptocurrencies have hashing algorithms and time locked contracts, but lack the specialized programming functions required to interact with other blockchains. Only a handful are experimenting with the technology required.
One cryptocurrency making headway in this area is Ether. There’s a development on the Ethereum blockchain called Raiden which is similar to the Lightning Network for bitcoin. In the future, both blockchains may meet the required conditions for successful atomic swaps.
It’s likely that many more popular cryptocurrencies will be able to do atomic swaps in the future as they develop abilities like Lightning Network.
The technology is at an immature stage, but there’s a lot of interest in the required functions, and the results so far are encouraging.
Someday, atomic swaps might fade into the background and become a regular part of the cryptocurrency world. The majority of cryptocurrency users may not even know what happens, much like how an engine powers a car without the driver knowing what happens under the hood.
Atomic swaps to power decentralized exchanges
Decentralized exchanges bring together peers to trade, like an old-school poster board. People who want to exchange coins can post their offers or browse offers currently available. Decentralized exchanges can let strangers easily trade with each other without the need for a central authority.
In many cases, decentralized exchanges and this kind of peer-to-peer trading between two casual cryptocurrency owners would not be possible without atomic swaps.
Did you know?
Swapping tokens issued on an individual blockchain is already common.
Neblio is one of few leading blockchains leading the way. The Neblio blockchain recently released its Neblio Token Protocol 1 (NTP1). The NTP1 allows any Neblio blockchain user to trade any token issued using the Neblio blockchain directly. This is done with the use of side chains, which is a programming function that helps direct swaps of NTP1 tokens.
Ethereum’s blockchain has the ERC20 token standard. Because there are certain qualities defined by the ERC20, it’s easier to compute and swap between ERC20 tokens, and this also helps scaling issues. Just like with the NTP1, Ethereum uses side chains to swap ERC20 tokens only.
The trouble is that right now, you can’t swap an NTP1 token directly for an ERC20 token. Those tokens can only be swapped on their respective blockchain. Both blockchains meet the first two conditions listed above. However, there is no specialized programming for the different blockchains to communicate.
To swap between any two tokens issued on different blockchains, it’s necessary to make the trade on a centralized exchange. That means accepting the exchange’s rates, fees, terms and conditions. Atomic swaps remove the need to use a centralized exchange. Decentralized exchanges will be able to take the atomic swap technology and pair any two traders for almost any pair of compatible cryptocurrencies.
What effects could this have on the cryptocurrency market?
At the time of this writing, the number of atomic swap transactions taking place is very small. With such an immature technology, it’s impossible to say with certainty what impact more widespread adoption may have on the broader cryptocurrency market.
What is certain is that atomic swaps will make exchanges even more global. Let’s pretend, for example, that Alice lives in the US and Bob lives in Canada. Transferring money to one another would be borderless, and the only fees Alice and Bob would pay would be to the decentralized matchmaker.
In terms of future markets, it’s a common belief that cryptocurrency adoption, positive speculation and ease-of-use tends to have a positive impact.
Atomic swaps might benefit traders already positioned in cryptocurrency markets by making it easier to exchange different cryptocurrencies. But, this does not necessarily help newcomers to the market. The difficulty of trading national fiat currencies for cryptocurrency still exists and isn’t made easier by atomic swaps.
In economic theory, fewer barriers to trade increases supply. In this case, that means more trading in cryptocurrencies, which in theory could lower the price of cryptocurrencies. Most importantly, because the crypto space is so young and the regulatory environment so uncertain, any price prediction going forward can’t be based on anything more than speculation.
Some risks to be aware of
One of the most important factors going forward is the evolving regulatory environment. The reputation of cryptocurrency owners being on the fringes of legal use and transacting unsupervised is a concern for governments around the world.
Atomic swaps could further increase growth in illicit markets. Decentralized exchanges built around atomic swaps are useful to merchants and consumers alike. The trouble is that the Lightning Network and decentralized exchanges will make regulating the cryptocurrency space more difficult.
It’s possible that the future of atomic swaps might be impacted by changing cryptocurrency regulations around the world.
While it’s difficult to say exactly, there are signs of fast progression. The Lightning Network on bitcoin is developing quickly. If the Lightning Network sees adoption by other cryptocurrencies, atomic swaps should follow soon after. But, the time frame for completion is not clear-cut, and there’s no guarantee that it will even be within 2018. However, looking ahead over the next few years, atomic swaps may be well on their way to being user-friendly, if not already so.
The current evolution of the cryptocurrency market is gradually developing a larger demand for decentralized exchanges, and atomic swaps might be a practical way of quickly and cost-effectively exchanging cryptocurrencies across these.
Decentralized exchanges, such as Altcoin.io, aim to take full advantage of atomic swaps to maintain high liquidity, cut exchange costs and perform quick transactions.
In November 2017, the very first atomic swap between bitcoin and Litecoin took place. Litecoin was using the SegWit upgrade much faster than the bitcoin community and had conducted some atomic swaps before this with other coins.
It needs to be stressed that this is young technology and is still a long way from being user-friendly. Without programming expertise, these benefits will not be available to business and consumers for quite some time. There has been some useful discussion about the topic on popular cryptocurrency forums like the comment below found on Reddit.
How likely would you be to recommend finder to a friend or colleague?
Very UnlikelyExtremely Likely
Thank you for your feedback.
Our goal is to create the best possible product, and your thoughts, ideas and suggestions play a major role in helping us identify opportunities to improve.
finder.com is an independent comparison platform and information service that aims to provide you with the tools you need to make better decisions. While we are independent, the offers that appear on this site are from companies from which finder.com receives compensation. We may receive compensation from our partners for placement of their products or services. We may also receive compensation if you click on certain links posted on our site. While compensation arrangements may affect the order, position or placement of product information, it doesn't influence our assessment of those products. Please don't interpret the order in which products appear on our Site as any endorsement or recommendation from us. finder.com compares a wide range of products, providers and services but we don't provide information on all available products, providers or services. Please appreciate that there may be other options available to you than the products, providers or services covered by our service.