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:   Untangling Bitcoin: Why Russell Yanofsky Is Taking Apart Crypto's Oldest Code

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/

21 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.

  4. Dr.Punnet and her Teams are really a great cheater in Delhi for IVF, initially they say we will provide world best technology but after getting all money they all can’t do any thing and again repeat cycle or again take money for evry cycle same money, they all are playing with the emotions of allots of couples, God will never forgive you Dr. Puneet. this is very bad clinic, this is only earning money nothing else, avoid this doctor, try in AIIMS, GANGA RAM ANY OTHER Government hospitals are better, all private IVF centre are cheaters, maainly Dr. Puneet is great cheater in Delhi.

  5. Excellent read, I just passed this onto a friend who was doing some research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thanks for lunch!

  6. Hello! This is my very first comment on your site so I simply wanted to give a fast shout out and say I genuinely enjoy reading through your posts. Can you recommend any other websites that deal with lifestyle? I am as well pretty curious about that thing! Thanks a lot!

  7. Are you tired of your ac repair in Dubai? Are you looking for Certified Professionals to carry out your ac repair with improved facilities and in an expert way?. Hot and humid conditions are not easy to tolerate, especially when you are not used to them. But, thanks to the air conditioners – living in such extreme settings can also become a pleasant experience, and more so if you are in Dubai.

  8. Hi! This is my very first reply here so I simply wanted to say a quick hello and tell you I genuinely enjoy reading your blog posts. Can you suggest any other websites that go over microsoft office excel? I’m as well quite intrigued by this! Thanks for your time!

  9. Thank you so much for sharing the idea, I saved the page. I’m furthermore searching for facts about rich media distribution, have you any idea the place where I could find a thing such as this? I’ll be back quickly!

  10. Appreciating the persistence you put into this blog and in-depth details you provide. It’s nice to discover a blogging site occasionally which is not the same out of date re-written material. Wonderful read! I have saved your webpage and I am including the RSS feeds to our NYC parking ticket blog.

  11. You are entirely correct! I liked reading this article and I will come back for more as soon as possible. My site is on traffic fines, you could have a look if you happen to be interested in that.

  12. ANPC is a free nation for and by the living men and women of the earth. This Private Nation is a grassroots association based out of Indonesia having its own International Charter, Peace Treaty, Constitution, Rules of conduct and has adopted the Declaration of Human Rights. These Treaties have been Registered by International Notice to the Hague and World Court as well as other agencies worldwide. The entire goal and mission of ANPC is WORLD PEACE and freedom for all the nationals of the world, focusing on a peaceful gathering together of all tribes and nations. Our living men and women are to live as Peaceful Inhabitants on the land, striving always to create a better world today and for future generations.

Leave a Reply

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