{"id":24668,"date":"2016-10-07T14:20:17","date_gmt":"2016-10-07T14:20:17","guid":{"rendered":"http:\/\/ci027cfe65b01426c3"},"modified":"2025-01-28T19:02:06","modified_gmt":"2025-01-28T19:02:06","slug":"blockstream-completes-its-first-lightning-transaction-on-bitcoin-testnet-1475850017","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/blockstream-completes-its-first-lightning-transaction-on-bitcoin-testnet-1475850017","title":{"rendered":"Blockstream Completes Its First Lightning Transaction on Bitcoin Testnet"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/blockstream-completes-its-first-lightning-transaction-on-bitcoin-testnet.jpg\" title=\"\"><\/figure>\n<p><a href=\"https:\/\/www.blockstream.com\/\" target=\"_blank\" rel=\"noopener\">Blockstream<\/a> engineers Paul \u201cRusty\u201d Russell and Dr. Christian Decker <a href=\"https:\/\/lists.linuxfoundation.org\/pipermail\/lightning-dev\/2016-October\/000627.html\" target=\"_blank\" rel=\"noopener\">completed<\/a> their first lightning transaction on Bitcoin\u2019s testnet this week. The test transaction was made using the latest version of the Blockstream\u2019s lightning prototype software, <a href=\"https:\/\/github.com\/ElementsProject\/lightning\" target=\"_blank\" rel=\"noopener\">lightningd<\/a> 0.5 and consisted of a digital purchase from a web-store.<\/p>\n<p>Speaking to <em>Bitcoin Magazine<\/em> Decker said:<\/p>\n<p>\u201cThis is a big milestone for us. It&#8217;s the first time we have a channel setup on a real blockchain, with real latencies and block rates, and it&#8217;s the first multi-hop transaction, where a payment for a digital good routes from one node to another through a third node.\u201d<\/p>\n<p><strong>Making the Transaction<\/strong><\/p>\n<p>The highly anticipated lightning network is a proposed second-layer protocol to be rolled out on top of Bitcoin\u2019s blockchain. Cleverly utilizing Bitcoin\u2019s programmable elements (e.g., multi-signature and timelock) lightning users should be able to make a virtually unlimited number of off-chain transactions at low cost, potentially boosting Bitcoin\u2019s micropayment-ability and overall scalability.<\/p>\n<p>Several teams are currently working on different implementations of lightning software. Only last week, <a href=\"https:\/\/bitfury.com\/\" target=\"_blank\" rel=\"noopener\">BitFury<\/a>, <a href=\"http:\/\/lightning.network\/\" target=\"_blank\" rel=\"noopener\">Lightning Labs<\/a> and <a href=\"https:\/\/acinq.co\/\" target=\"_blank\" rel=\"noopener\">ACINQ<\/a><a href=\"https:\/\/medium.com\/@BitFuryGroup\/bitfury-lightning-network-algorithm-successfully-tested-935efd43e92b#.5bn9qwmwf\" target=\"_blank\" rel=\"noopener\">announced<\/a> a successful test of proposed lightning routing system <a href=\"https:\/\/bitfury.com\/content\/downloads\/whitepaper_flare_an_approach_to_routing_in_lightning_network_7_7_2016.pdf\" target=\"_blank\" rel=\"noopener\">Flare<\/a>, whereas a Lightning Labs developer had previously completed lightning transactions to himself. <a href=\"https:\/\/www.blockchain.com\/\" target=\"_blank\" rel=\"noopener\">Blockchain<\/a>, meanwhile, made lightning-style transactions on the alpha version of their <a href=\"https:\/\/www.blockchain.com\/thunder\/\" target=\"_blank\" rel=\"noopener\">Thunder<\/a> network \u2014 though these are not yet trustless or secure.<\/p>\n<p>Blockstream\u2019s team is now the first to have conducted a successful and trustless transaction between two developers on Bitcoin\u2019s testnet, which served as a \u201creal\u201d payment.<\/p>\n<p>\u201cWe&#8217;ve spent over a year working on different parts of the protocol, and from a technical perspective, simply sewing them together isn&#8217;t challenging,\u201d Russell explained. \u201cBut it&#8217;s easy for us geeks to miss the forest for the trees. For this transaction, I acted as an actual vendor, and Christian made an actual purchase. It involved infrastructure for creating invoices, giving them to the user, and checking if the user paid. We\u2019re not just sending money point-to-point.\u201d<\/p>\n<p><strong>Use of Testnet<\/strong><\/p>\n<p>Blockstream\u2019s first transaction was done over testnet, a network specifically designed for testing new Bitcoin features. Testnet also has <a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-how-a-clever-hack-could-significantly-increase-bitcoin-s-potential-1450553618\">Segregated<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-why-you-should-care-about-a-nitty-gritty-technical-trick-1450827675\">Witness<\/a> deployed, which is required for the lightning network to function in a trustless and secure manner.<\/p>\n<p>\u201cThis roll-out on testnet gives people who want to build on Lightning, like wallet developers, a chance to try it out and provide feedback on APIs, find bugs and more,\u201d Russell said. \u201cThe change from testnet to the actual Bitcoin network is actually trivial in the code. The difference is that mistakes on the actual Bitcoin network cost real money.\u201d<\/p>\n<p>Creating a transaction with lightning is currently still very much a manual process. Most importantly, users need to open connections to other nodes\u2019 IP addresses themselves. Decker did note, however, that he already wrote a patch to make peers announce their contact information, which will make this process easier.<\/p>\n<p>\u201cOur routing implementation relies on knowing every connection. That works for now, but obviously something more ambitious is being worked on, like BitFury\u2019s Flare,\u201d Russell said.<\/p>\n<p>Additionally, onion routing for increased privacy is also in the works, and might even make it into the upcoming lightningd 0.5 release.<\/p>\n<p><strong>Scaling Implications<\/strong><\/p>\n<p>Lightning is often heralded as an important step for Bitcoin scalability, a topic that will be discussed at length during the upcoming <a href=\"https:\/\/scalingbitcoin.org\/\" target=\"_blank\" rel=\"noopener\">Scaling Bitcoin<\/a> workshop in Milan this weekend. In the days after the workshop, the different teams working on lightning will also come together to discuss compatibility of the different implementations.<\/p>\n<p>\u201cUnfortunately Mats Jerratsch of Blockchain\u2019s Thunder Network won&#8217;t be there, but it seems like every other implementer will,&#8221; said&nbsp;Russell.&nbsp;&#8220;We\u2019ll go through the components of lightning and find the protocol we&#8217;d like to standardize on. Afterwards, we&#8217;ll have to rework some of our own protocol, based on group decisions by the other lightning teams trying to arrive at an interoperable spec.\u201d<\/p>\n<p>Despite the successful test, Russell and Decker explained it will still take some time before lightning transactions will happen on top of the main Bitcoin network. Before lightning can be rolled out, Segregated Witness must first be activated, bugs in lightningd must be found and fixed, and it must be made more robust against misconfiguration. Then, the Blockstream team wants to create libraries to allow web developers to play with constructing their use-cases.<\/p>\n<p>\u201cWe would like to build a small ecosystem on testnet and give people some hands-on experience before moving to mainnet,\u201d said Decker.<\/p>\n<p><em>For more information on the lightning network, read Bitcoin Magazine\u2019s <\/em><a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791\"><em>three<\/em><\/a><em>&#8211;<\/em><a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-creating-the-network-1465326903\"><em>part<\/em><\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980\"><em>series<\/em><\/a><em> on the technology.<\/em><\/p>\n<p><em>Russell and Decker made a short video-demo of the first transaction, which can be viewed&nbsp;<a href=\"https:\/\/asciinema.org\/a\/ergldrzd43j08klix08hf9yl3\" target=\"_blank\" rel=\"noopener\">here<\/a><\/em><em>.<\/em><\/p>\n<figure><script async=\"\" src=\"https:\/\/asciinema.org\/a\/87580.js\"><\/script><\/figure>\n<figure><script async=\"\" src=\"https:\/\/asciinema.org\/a\/87580.js\"><\/script><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2025\/01\/459_image-placeholder-title.png\" title=\"\"><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Blockstream engineers Paul \u201cRusty\u201d Russell and Dr. Christian Decker completed their first lightning transaction on Bitcoin\u2019s testnet this week. The test transaction was made using the latest version of the Blockstream\u2019s lightning prototype software, lightningd 0.5 and consisted of a digital purchase from a web-store. Speaking to Bitcoin Magazine Decker said: \u201cThis is a big [&hellip;]<\/p>\n","protected":false},"author":2509,"featured_media":24669,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[287,245,708],"class_list":{"0":"post-24668","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-blockstream","9":"tag-developers","10":"tag-transactions"},"author_data":{"id":2509,"name":"Aaron van Wirdum","nicename":"aaron-van-wirdum","avatar_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/12\/aaron-van-wirdum-96x96.jpg"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/blockstream-completes-its-first-lightning-transaction-on-bitcoin-testnet.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/24668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/users\/2509"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=24668"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/24668\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/24669"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=24668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=24668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=24668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}