The Lightning Network's First ERC-20 to Bitcoin Atomic Swap Has Taken Place

The Lightning Network's First ERC-20 to Bitcoin Atomic Swap Has Taken Place
фото показано с : bitcoinmagazine.com

2018-12-13 21:50


At the December 7, 2018, TenX Summit, a group of developers showcased an industry first: an atomic swap on the Lightning Network between a non-native asset, TenX’s PAY token, and a native asset, bitcoin.

By non-native, the team is referring to an asset/coin that is not the base currency for the network. For Ethereum, for example, the native asset is ether, while any token that is built on the protocol is considered a non-native asset.

CoBloX, a TenX research and development lab, is responsible for the achievement. Demonstrating their work to a tightly packed audience of summit goers, the team used the Lightning Network and their open-source software COMIT to swap 10 PAY for 71,240 satoshis. The team published a blog post on December 12, 2018, to confirm the news and satify what it calls “the gossip factory” of he-said-she-said following the summit.

In the post, the team delves into their process, explaining outright that this swap was not as simple as the first-ever ether and bitcoin atomic swap on the Lightning Network, which they tested nearly six months ago. Whereas this swap’s hashed time lock contract (HTLC) only required a single use smart contract, the PAY to bitcoin swap took an extra step.

Reason being, the PAY token itself is managed with an additional smart contract known as the transfer ownership function. Because of this, the HTLC had to be separated into two transactions: one to deploy the swap contract and another as a transfer call for the PAY tokens.

“Unfortunately, we couldn’t figure out how to combine these two steps. 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 blog post reads.

Having used the Lightning Network Daemon (LND) implementation for the swap, the team continues to explain in the blog post that the swap is a one-way ticket. They could only execute the trade by starting with the ERC-20 token and going through Lightning — not the other way around.

“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 technical milestone is the latest in CoBloX’s technical successes. As mentioned previously, the team also completed the world’s first ether and bitcoin swap. The young lab’s GitHub also features a couple of Rust clients for a Bitcoin Core interface and a JsonRPC API plug-in, as well as a tool for testing blockchain applications.

COMIT, the software used in the ERC-20 swap, is also open-source. With a focus on blockchain interoperability, COMIT is meant to act as a bridge between networks to facilitate cross-chain asset swaps. In addition to the work that has been done with Ethereum and its ERC-20 tokens, the team plans to expand its use with additional features and currencies down the road.

An earlier version of this article misrepresented the swap as the first of its kind, failing to specify that it was the first on the Lightning Network. The Komodo platform performed the industry's first successful ether to bitcoin and ERC-20 to bitcoin atomic swaps earlier in 2018.


This article originally appeared on Bitcoin Magazine.

Similar to Notcoin - TapSwap on Solana Airdrops In 2024

origin »

Santiment Network Token (SAN) на Currencies.ru

$ 0.0865709 (-0.22%)
Объем 24H $210
Изменеия 24h: 9.95 %, 7d: 19.49 %
Cегодня L: $0.0865709 - H: $0.0865709
Капитализация $0 Rank 5672
Цена в час новости $ 0.1912 (-54.72%)

swap bitcoin lightning network team asset contract

swap bitcoin → Результатов: 74


OKEx Launches New Bitcoin Derivative: Cryptocurrency Perpetual Swaps

Malta-based cryptocurrency exchange OKEx launched a cryptocurrency-focused Bitcoin Perpetual Swap product on December 3, 2018, during a press conference attended by CryptoSlate. The virtual derivative product is a peer-to-peer offering that aims to empower traders with the ability to speculate the price direction of digital assets like Bitcoin and Ether to ensure exposure to the risky, yet […] The post OKEx Launches New Bitcoin Derivative: Cryptocurrency Perpetual Swaps appeared first on CryptoSlate.

2018-12-4 14:30


Фото:

Cryptocurrency Exchange OKEx Launches Perpetual Swap Product to Expand Trading Suite

South Korean cryptocurrency exchange OKEx launched its perpetual swap trading product in Seoul on December 3, 2018, during a press conference attended by BTCManager. Burgeoning Crypto-Finance Domiciled in Malta, OKEx described the product as a significant addition to its growing list of crypto-centric trading products and financial tools.

2018-12-3 21:30


Новый кошелёк с открытым исходным кодом

Новый кошелек с открытым исходным кодом от Altcoin. io поможет разработчикам Открыв исходный кошелек Atomic Swap Wallet, компания стремится помочь разработчикам Сообщение Новый кошелёк с открытым исходным кодом появились сначала на Freedman.

2018-10-30 06:00


Фото:

Oklahoma Officials Arrest 2 Men Suspected of Masterminding a $14-Million SIM Swap Cryptocurrency Heist

Cryptocurrency-related crimes are closely resembling those drawn out of a James Bond movie script. In late September, Oklahoma officials arrested two men, 21-year-old Joseph Harris and 23-year-old Fletcher Robert Childers, for allegedly stealing around $14 million using SIM-swapping methods from Crowd Machine, a blockchain firm.

2018-10-15 17:59


Blockchain-Based P2P Global Marketplace Era Swap to Establish a Valuable Ecosystem for the Digital Sharing Economy

Bitcoin Press Release – Blockchain startup Era Swap introduces a robust peer-to-peer (p2p) marketplace to revitalize the freelancer sharing economy. October 10th, 2018, Malta – Era Swap is a social community platform that intends to be a valuable market for Time of services, Education and Crypto Assets.

2018-10-10 14:54


Кроссчейновый кошелек Swap.Online реализовал атомарные свопы между сетями биткоина и EOS

Проект Swap. Online, разрабатывающий кроссчейновый «горячий кошелек», объявил о запуске основной сети. Стартап также провел первый атомарный обмен между блокчейнами EOS и Bitcoin. Об этом сообщается в официальном пресс-релизе проекта.

2018-9-25 12:00


Morgan Stanley to Offer Bitcoin Trading, Following Citigroup and Goldman

$83 billion investment bank Morgan Stanley is following the footsteps of Citigroup and Goldman Sachs, and will soon offer Bitcoin swap trading to its clients. As reported by Alastair Marsh at Bloomberg, the US banking giant has already developed the infrastructure required to offer complex derivatives tied to Bitcoin and will launch Bitcoin swap trading.

2018-9-14 19:03


Фото:

Morgan Stanley To Give Clients Bitcoin Trading Options

US multinational investment bank Morgan Stanley is preparing to offer Bitcoin swap trading for its clients, unconfirmed sources report on September 13. Sources Say Morgan Stanley Preparing Swap Trades Citing “people familiar with the matter” in an article from Bloomberg reporter Alistair Marsh, Business Insider’s Frank Chaparro revealed the giant “plans to offer trading in complex derivatives” linked to Bitcoin .

2018-9-13 15:00