{"id":25985,"date":"2015-09-01T20:33:21","date_gmt":"2015-09-01T20:33:21","guid":{"rendered":"http:\/\/ci027cfe70d00726c3"},"modified":"2015-09-01T20:33:21","modified_gmt":"2015-09-01T20:33:21","slug":"preliminary-simplified-implementation-bitcoin-lightning-network-released-1441139601","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/preliminary-simplified-implementation-bitcoin-lightning-network-released-1441139601","title":{"rendered":"Preliminary, Simplified Implementation of Bitcoin Lightning Network Released"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/preliminary.jpg\" title=\"\"><\/figure>\n<p>Lightning networks are considered a promising innovation in the Bitcoin space, which would make the Bitcoin system much more scalable and able to process transactions at a high rate and low cost, and are suitable as an alternative to existing payment networks.<\/p>\n<p>In February, developers Joseph Poon and Thaddeus Dryja proposed a decentralized&nbsp;<a href=\"http:\/\/lightning.network\/\" target=\"_blank\" rel=\"noopener\">Bitcoin Lightning Network<\/a>&nbsp;where related transactions can take place instantly on \u201cmicropayment channels\u201d off-chain, and only the final settlement is processed by the blockchain. According to the authors, lightning networks would enable Bitcoin scalability, efficient micropayments, and near-instant transactions. The Lightning Network white paper, a work in progress, has recently been&nbsp;<a href=\"http:\/\/lightning.network\/lightning-network-paper.pdf\" target=\"_blank\" rel=\"noopener\">updated<\/a>.<\/p>\n<p>\u201cThe payment network Visa has achieved 47,000 peak transactions per second on its network during the 2013 holidays, and averages hundreds of millions per day,\u201d note the developers in the white paper. \u201cCurrently, Bitcoin supports less than 7 transactions per second with a 1 megabyte block limit.\u201d<\/p>\n<p>It seems evident that as long as the transaction rate supported by the Bitcoin network remains that low Bitcoin won\u2019t be able to achieve the global reach of existing payment networks like Visa. That\u2019s the main reason for the current \u2013 and heated \u2013 discussions about raising the block size. In a recent interview with&nbsp;<em>MIT Technology Review<\/em>, Bitcoin Core developer Gavin Andresen&nbsp;<a href=\"https:\/\/www.technologyreview.com\/2015\/08\/28\/166393\/the-looming-problem-that-could-kill-bitcoin\/\" target=\"_blank\" rel=\"noopener\">warned<\/a>&nbsp;that the Bitcoin network might soon become oversaturated, and people might just stop using Bitcoin because transactions would become either unreliable or expensive.<\/p>\n<p>\u201cLooking at the transaction volume on the Bitcoin network, we need to address it within the next four or five months,\u201d said Andresen. \u201cAs we get closer and closer to the limit, bad things start to happen. Networks close to capacity get congested and unreliable. If you want reliability, you\u2019ll have to start paying higher and higher fees on transactions, and there will be a point where fees get high enough that people stop using Bitcoin.\u201d<\/p>\n<p>That\u2019s what prompted Andresen to launch the&nbsp;<a href=\"https:\/\/bitcoinxt.software\/\" target=\"_blank\" rel=\"noopener\">Bitcoin XT<\/a>&nbsp;alternative to Bitcoin Core, with 8 megabyte blocks, which is polarizing the Bitcoin community and could result in a \u201c<a href=\"https:\/\/www.theguardian.com\/technology\/2015\/aug\/17\/bitcoin-xt-alternative-cryptocurrency-chief-scientist\" target=\"_blank\" rel=\"noopener\">BItcoin civil war<\/a>.\u201d But lightning networks could achieve the same scalability and sustainability without requiring dramatic modifications to Bitcoin Core.<\/p>\n<p>\u201cWith a network of instantly confirmed micropayment channels whose payments are encumbered by timelocks and hashlock outputs, Bitcoin can scale to billions of users,\u201d note the developers in the white paper. In&nbsp;<a href=\"https:\/\/www.meetup.com\/SF-Bitcoin-Devs\/events\/220243890\/?_cookie-check=WueOWLg6virZRGnO\" target=\"_blank\" rel=\"noopener\">a presentation at the SF Bitcoin Devs Seminar<\/a>, Poon and Dryja&nbsp;<a href=\"https:\/\/www.youtube.com\/watch?v=8zVzw912wPo\" target=\"_blank\" rel=\"noopener\">argued<\/a>&nbsp;that lightning networks could make Bitcoin capable of processing billions of transactions per day and handling the volume of all global electronic payments on a single blockchain without custodial risk of theft.<\/p>\n<p>The implementation of lightning networks would require appropriate tweaks to Bitcoin core. A soft fork, described in Appendix A of the white paper, has been proposed to enable near-infinite scalability. \u201cTo mitigate malleability, it is necessary to make a soft-fork change to bitcoin,\u201d note Poon and Dryja. \u201cOlder clients would still work, but miners would need to update. Bitcoin has had several soft forks in the past, including pay-to-script-hash (P2SH).\u201d<\/p>\n<p>Implementing the malleability soft fork will take time, but in the meantime developers are beginning to build stand-alone implementations of lightning networks for development and testing. In May, Blockstream&nbsp;<a href=\"https:\/\/bitcoinmagazine.com\/articles\/blockstream-starts-development-lightning-network-1432931728\">hired<\/a>&nbsp;developer&nbsp;Rusty Russell&nbsp;to work on lightning networks.<\/p>\n<p>\u201c[W]e can have a network of arbitrarily complicated transactions, such that they aren\u2019t on the blockchain (and thus are fast, cheap and extremely scalable), but at every point are ready to be dropped onto the blockchain for resolution if there\u2019s a problem,\u201d said Russell. \u201cThis is genuinely revolutionary.\u201d<\/p>\n<p>In August, developer Mats Jerratsch launched a preliminary, simplified lightning network implementation dubbed \u201c<a href=\"https:\/\/github.com\/blockchain\/thunder\" target=\"_blank\" rel=\"noopener\">Thunder Network<\/a>.\u201d Jerratsch\u2019s implementation, written in Java and available as open source code&nbsp;<a href=\"https:\/\/github.com\/matsjj\/thundernetwork\" target=\"_blank\" rel=\"noopener\">on Github<\/a>, is less watertight than the full Lightning Network proposal, but doesn\u2019t require a fork and can be used now as it is.<\/p>\n<p>\u201cThe initial proposal of the lightning network required some new features, that required at least a [soft fork], pushing any real implementation many months or even years into the future,\u201d notes Jerratsch. \u201cI, therefore, changed the channel design of the initial paper such that it can be implemented with the tools currently available in bitcoin. While such a channel does no longer work in a completely trustless manner, it is a good trade-off to start implementing LN. Most importantly, it allows deployment of software using something similar to the future LN implementations for now.\u201d<\/p>\n<p>\u201cI think there is a lot to be done, before LN (or similar) is even remotely useful,\u201d said Jerratsch in a Reddit discussion. \u201cMy main goal is to start the process of implementing these changes, such that we may experience LN anywhere soon.\u201d Jerratsch added that lightning networks won\u2019t arrive in time to make any difference in the block size debate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lightning networks are considered a promising innovation in the Bitcoin space, which would make the Bitcoin system much more scalable and able to process transactions at a high rate and low cost, and are suitable as an alternative to existing payment networks. In February, developers Joseph Poon and Thaddeus Dryja proposed a decentralized&nbsp;Bitcoin Lightning Network&nbsp;where [&hellip;]<\/p>\n","protected":false},"author":3509,"featured_media":27024,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[3583,1038,245,3587,3543,130,909,2018,3244,705,3315,708],"class_list":{"0":"post-25985","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-bitcoin-xt","9":"tag-core","10":"tag-developers","11":"tag-gavin-andersen","12":"tag-joseph-poon","13":"tag-lightning","14":"tag-network","15":"tag-networks","16":"tag-rusty-russell","17":"tag-scaling","18":"tag-tadge-dryja","19":"tag-transactions"},"author_data":{"id":3509,"name":"Giulio Prisco","nicename":"giulio-prisco","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/2d091b908741b627d89036dd43748bb5c5edcfe9f805501703e2c3af34dadfca?s=96&d=robohash&r=g"},"featured_image_url":"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/preliminary.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/25985","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\/3509"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/comments?post=25985"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/25985\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/27024"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=25985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=25985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=25985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}