On Friday, Nov. 16, the developers behind the full node projects Bcoin and Bcash announced an application that allows users to complete cross-chain atomic swaps between both the BCH and BTC chains. The Bcoin programmers have also released a guide, videos and code for beginners and experts who want to swap BTC for BCH in a decentralized fashion.
“Atomic swaps enable some of the coolest layer-two technology in crypto, like Lightning and DEXs,” the Bcoin team stated. “We put together an illustrated guide to walk you through the process, complete with code and videos.”
Bcoin’s atomic swap guide, written by Matthew Zipkin, gives readers a comprehensive look into the technology under the hood. Similar to other types of second-layer technologies, cross-chain swaps use a protocol called Hash Time Locked-Contract (HTLC). Bcoin’s website explains the process through written descriptions and shows visuals of Alice and Bob performing an atomic swap. The guide also shows how the script is written by creating HTLC scripts with the Bcoin and Bcash libraries. Additionally, the walkthrough details how to fund swaps and redeem them once the funds are sent to the designated addresses. The atomic swap templates are accompanied by a video demonstration of the cross-chain trade.
Centralized Exchanges and Hacks Bolster
the Need for Atomic Swaps
Over the last year concepts such as cross-chain atomic swaps have been growing more popular because of issues with centralized exchanges, which are still being hacked to this day. The decred (DCR) development team was the first to perform a cross-chain atomic swap between DCR and LTC back on Sept. 20, 2017. In the Bcoin and Bcash atomic swap guide, Zipkin cites the decred atomic swap Github repository.
There have also been a few other individuals and teams from various cryptocurrency projects who have been attempting to produce viable and decentralized models. Three months ago, BCH developer Mark Lundeberg published a proof-of-concept of a way to do peer-to-peer atomic swaps without an “obvious on-chain fingerprint.” Lundeberg’s “Swap Channels” essentially hide atomic swaps using ordinary payment channels.
The Bcoin application’s documentation further explains how users can install to Windows, Mac and Linux, with accompanying videos for each operating system. The platform’s developers have also released API documentation for programmers who want to integrate the protocol into websites or other types of applications. In addition, the Bcoin team said users can make requests at the Github repository and contributors can earn bounties.
What do you think about the Bcoin and Bcash cross-chain atomic swaps? Let us know your opinion in the comments section below.
Images via Shutterstock, Twitter, Bcoin, and the Bcoin blog.
Need to calculate your bitcoin holdings? Check our tools section.
Purchase Bitcoin without visiting a cryptocurrency exchange. Buy BTC and BCH here.