Developers Test Cross-Blockchain Protocol for One-Way ERC20-Bitcoin LN Atomic Swaps

Published at: Dec. 12, 2018

An R&D lab at crypto startup TenX has tested the use of its cross-blockchain interoperability protocol to transfer ERC20 tokens for Bitcoin (BTC) using the Lightning Network (LN). The news was reported on R&D lab CoBlox’s blog today, Dec. 12, in reference to the demo on Dec. 7.

As the blog post outlines, the technical challenge was to exchange ERC-20 tokens — which run on the Ethereum (ETH) platform but are not strictly “native” since they rely on invoking a smart contract to transfer ownership — for Bitcoin’s smallest transactable unit, known as “Satoshi,” using the second-layer scalability LN protocol.

Lightning Network is a second-layer solution to Bitcoin’s scalability issue, which uses Hashed Timelock Contracts (HTLCs) to open payment channels between users that keep the majority of transactions off-chain, turning to the underlying blockchain only to record the net results.

CoBlox’s previous Ethereum HTLC, as today’s post explains, was significantly simpler as it involved native assets. CoBlox has outlined their approach to find a solution for an ERC20 case, stating that the developers decided to “split the HTLC setup into two transactions” — “contract deployment” and “ERC20 transfer call” — but that they could not combine the two steps.

The post writes:

“The ERC20 transfer function uses msg.sender for authentication. However, calling transfer from a contract deployment sets msg.sender to the address of the yet to be deployed contract which obviously has no tokens!”

The post goes on to note that using “the Lightning Network for an atomic swap also has its quirks,” given that the solution relies on users creating invoices and paying them without necessarily “knowing about the underlying HTLCs.” However:

“An atomic swap cannot always be expressed through this model of invoices and payments. In LND, which is what we used for our PoC, receiving a payment requires an invoice which requires knowledge of the secret. As a result, we were only able to do ERC20 to Lightning and not the other way around. The invoice used in the swap can be found below.”

CoBlox states it is still “looking at ways” to resolve the limited directionality issue, and has therefore not included the results of its proof-of-concept (PoC) for ERC20 tokens as part of the open-source release of its COMIT network.

This summer, a study conducted by weekly crypto outlet Diar suggested that the Lightning Network may not be as effective at routing payments as believed, in particular when it comes to larger amounts. The report was rebuffed by the LN development team as being “poorly-researched and written,” with the full details of their criticisms outlined in a Cointelegraph analysis piece.

Tags
Related Posts
Proof-of-Work vs. Proof-of-Stake for Scaling Blockchains
Most people in the cryptocurrency world are aware that network validation often comes in one of two forms: proof-of-work or proof-of-stake. There are others, but these systems are common and power many of the most popular blockchains. They take the same basic problem — verifying transactions — and solve it in unique ways. However, both offer different solutions to the ongoing debate over scaling. Does one have a true advantage over the other, or are they just different philosophies? We’ll take a look at both. Proof-of-work, explained Most people have heard of Bitcoin (BTC) “miners,” but just what do they …
Blockchain / June 23, 2020
The Future of Crypto: The Latest Cryptography Advances Set to Change Blockchain
Cryptocurrencies could not exist without cryptography. Advances in this field can have far-reaching impacts on blockchain technology and its potential. We will examine the opinions of industry experts on the latest cryptographic advances and their potential for cryptocurrencies. Zero knowledge proofs: more than just privacy Director of research at blockchain firm Blockstream and mathematician Andrew Poelstra told Cointelegraph that zero-knowledge proof (ZK-Proof) systems are “one of the most exciting areas of development” in the cryptography space. This kind of cryptography is known and appreciated for being the basis of privacy-preserving solutions. ZK-Proofs are the basis of the privacy-preserving technology included …
Blockchain / Feb. 20, 2020
Buterin Supports BTC-ETH Mix, as Future of Crypto Is ‘Pluralist’
Ethereum co-founder said that the future of crypto is pluralist in response to a recent proposal of mixing the Bitcoin Lightning Network (LN) with Ethereum. Blockade Games using Bitcoin LN as an interface for Ethereum contracts On July 31, blockchain-focused game developer Blockade Games posted an article on implementation of Bitcoin LN as an interface for Ethereum contracts in order to enable instant payments in Bitcoin, while simultaneously triggering a series of events on Ethereum, or any other chain. Ethereum co-founder Vitalik Buterin tweeted on the news on Aug. 2, drawing attention to the fact that a blockchain developer used …
Blockchain / Aug. 2, 2019
RIF Labs Launches 3rd-Layer Scalability Solution Capable of Processing Up to 5K TPS
RIF Labs — owner of bitcoin-based smart contract sidechain Rootstock (RSK) developer RSK Labs — has launched a third-layer scalability solution capable of processing up to 5,000 transactions per second. The news was revealed in a press release from RIF News on May 14. As reported, RSK Labs and its decentralized app (DApp) infrastructure protocols RIF OS began as a spin-off from Rootstock, having been initially launched by several senior executives from the latter’s creator — the startup RSK Labs. The two structures became fully integrated when RIF Labs acquired RSK Labs in November 2018. Originally conceived by Bitcoin Core …
Blockchain / May 15, 2019
How the NFT market leveraged blockchain tech for explosive growth
It’s fun to talk about nonfungible tokens, or NFTs, because they are the perfect example of how the impact of blockchain technology in people’s lives goes way beyond the financial market. As we could see in hundreds of headlines in the past few months, they have gripped the world’s attention because they are a new manner of interacting with culture, music, sports and the media. This article will clarify what NFTs are, how they work, how the NFT boom started, and why blockchain technology has made it possible for NFTs to create a new economy. Related: A cure for copyright …
Music / June 13, 2021