Bitcoin-Ethereum Atomic Swap Code Now Open Source

A team of cryptocurrency startup developers is open-sourcing technology that enables trustless trading between the bitcoin and ethereum blockchains.

Now available on GitHub, the code has already been used to execute what startup Altcoin Exchange claims is the first so-called “atomic swap” between the largest cryptocurrencies by market value. As a result of the release, a now larger community of developers can play around with and build on top of the code.

For example, using Altcoin Exchange’s tech, developers can lock ether tokens in an ethereum smart contract that specifies the funds will only be sent if an equal amount of bitcoin is sent to a bitcoin address during a specific time window.


At a high level, that’s how the developer team at Altcoin Exchange executed the trade (the ethereum code for the transfer can be viewed on the ethereum block explorer Etherscan), which shows how 0.12345 ether was traded for 0.12345 bitcoin.

But while that might seem experimental or complex, developers instead see the milestone as another step toward the tangible goal of replacing centralized cryptocurrency exchanges with the ability to swap assets directly between blockchains.

Long theorized, the idea of atomic swaps has been around since at least 2013, but it’s seen a burst of new activity of late, with developers testing the technique to trade bitcoin for litecoin and bitcoin for zcash.

‘Stepping stone’

Still, it’s important to note the technology is in its early stages.

This means there are practical reasons atomic swaps might not be viable today, including the fact that one-to-one bitcoin-to-ether exchanges aren’t exactly fair trades given the price disparity between the assets.

Must READ:   Google Search Volume for Bitcoin Keywords Increased by as Much as 1000% During 2017

To this, Altcoin Exchange CEO Andrew Gazdecki told CoinDesk that the team set up the demonstration this way for “testing purposes,” though the likely next step will be to trade bitcoin to ether for their respective U.S. dollar amounts or another fiat currency equivalent.

Further, though Gazdecki believes this marks a “milestone” for atomic swaps, he admitted developers still have plenty of problems to iron out before this new type of trade sees everyday use.

As such, he framed today’s release as a small step toward a better alternative, adding:

“Decentralized trading is the next step forward in this industry.”

Two-way sign image via Shutterstock

The leader in blockchain news, CoinDesk is an independent media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. Have breaking news or a story tip to send to our journalists? Contact us at news@coindesk.com.

https://www.coindesk.com/bitcoin-ethereum-atomic-swap-code-now-open-source/

5 Replies to “Bitcoin-Ethereum Atomic Swap Code Now Open Source”

  1. Thanks a bunch for this excellent write-up! I truly appreciated learning about.I will make sure to save this site and will often come back very soon. I want to encourage that you continue the excellent posts, possibly think about free movies online too, have a fine evening!

  2. Al Hadi AC Refrigration and Repairing is committed to giving your ACs a new lease of life. We have a team of experienced professionals which has serviced more than a 1000 units, much to the satisfaction of our clients. The effort at Al Hadi has always been to service a call in the shortest span of time and to close it with a happy client. The referrals we get is a testimony to our work. Try our services today!

  3. Hello there could you tell me which blog platform you are making use of? I’m seeking to start out our site on real estate search in the future although I am having a hard time choosing.

Leave a Reply

Your email address will not be published. Required fields are marked *