{"id":25261,"date":"2016-03-30T17:00:31","date_gmt":"2016-03-30T17:00:31","guid":{"rendered":"http:\/\/ci027cfe6620042697"},"modified":"2016-03-30T17:00:31","modified_gmt":"2016-03-30T17:00:31","slug":"segregated-witness-enters-final-testnet-stage-includes-lightning-network-support-1459357231","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/segregated-witness-enters-final-testnet-stage-includes-lightning-network-support-1459357231","title":{"rendered":"Segregated Witness Enters Final Testnet Stage, Includes Lightning Network Support"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/segregated-witness-enters-final-testnet-stage.jpg\" title=\"\"><\/figure>\n<p><a href=\"https:\/\/bitcoincore.org\/\" target=\"_blank\" rel=\"noopener\">Bitcoin Core<\/a> developers Dr. Pieter Wuille, Eric Lombrozo and Johnson Lau <a href=\"https:\/\/lists.linuxfoundation.org\/pipermail\/lightning-dev\/2016-March\/000505.html\" target=\"_blank\" rel=\"noopener\">launched<\/a> a fourth \u2013 and probably final \u2013 iteration of the Segregated Witness testnet today. Perhaps most importantly compared to&nbsp;<a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-deployed-on-new-bitcoin-testnet-segnet-1452277172\">previous<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/amid-bitcoin-scaling-debate-segregated-witness-testnet-enters-public-stage\">versions<\/a>, \u201cSegNet 4\u201d includes support for another upcoming Bitcoin protocol improvement,&nbsp;<a href=\"https:\/\/github.com\/bitcoin\/bips\/blob\/master\/bip-0112.mediawiki\" target=\"_blank\" rel=\"noopener\">CheckSequenceVerify<\/a> (CSV). This allows for experimentation with routable bidirectional payment channels, better known as lightning networks.<\/p>\n<p>Segregated Witness is the nifty technical innovation that allows senders of Bitcoin transactions to move cryptographic signatures from typical blocks to separate structures. This is set to improve the Bitcoin protocol in several ways, including a long-awaited fix of&nbsp;<a href=\"https:\/\/bitcoinmagazine.com\/articles\/the-who-what-why-and-how-of-the-ongoing-transaction-malleability-attack-1444253640\">transaction malleability<\/a>. And, very relevant in light of the ongoing scaling debate, Segregated Witness will offer up to 1 megabyte of additional block space, depending on the types of transactions.<\/p>\n<p>Compared to earlier SegNets, SegNet 4 includes CSV support. CSV allows users to make bitcoins unspendable for a period of time, much like&nbsp;<a href=\"https:\/\/bitcoinmagazine.com\/articles\/checklocktimeverify-or-how-a-time-lock-patch-will-boost-bitcoin-s-potential-1446658530\">CheckLockTimeVerify<\/a> (CLTV), but with a relative timelock. Whereas CLTV locks bitcoins up until a <em>specific<\/em> time in the future, CSV locks bitcoins up for a specific amount of time <em>after<\/em> a CSV transaction is included in a block. This enables more sophisticated smart contracts, as it allows for greater flexibility.<\/p>\n<p>Speaking to <em>Bitcoin Magazine<\/em>, Bitcoin Core developer and&nbsp;<a href=\"https:\/\/ciphrex.com\/\" target=\"_blank\" rel=\"noopener\">Ciphrex<\/a> CEO Eric Lombrozo explained that the combination of Segregated Witness and CSV particularly benefits added scaling layers on top of the Bitcoin blockchain.<\/p>\n<p>\u201cSegNet 4 offers a testing environment for routable bidirectional payment channels such as the&nbsp;<a href=\"https:\/\/lightning.network\/\" target=\"_blank\" rel=\"noopener\">Lightning Network<\/a> or&nbsp;<a href=\"https:\/\/github.com\/cornwarecjp\/amiko-pay\" target=\"_blank\" rel=\"noopener\">Amikopay<\/a>,\u201d Lombrozo said. \u201cThese projects could drastically increase Bitcoin&#8217;s scalability, and allow for instant secure and cheap payments. With SegNet 4, we&#8217;re providing a common network on which different projects can collaborate and test their ideas. It is open for anyone, and we&#8217;re encouraging wallet developers to play around with it.\u201d<\/p>\n<p>Since Segregated Witness offers both effective added block space, and enables improved added layers like the Lightning Network, the innovation represents an important early step in Bitcoin Core&#8217;s <a href=\"https:\/\/lists.linuxfoundation.org\/pipermail\/bitcoin-dev\/2015-December\/011865.html\" target=\"_blank\" rel=\"noopener\">scalability road map<\/a>. But while the innovation is typically expected to be rolled out within the next month, Lombrozo did temper expectations a bit.<\/p>\n<p>\u201cThe original roadmap doesn&#8217;t include specific dates, but the <a href=\"https:\/\/bitcoincore.org\/en\/2015\/12\/23\/capacity-increases-faq\/\" target=\"_blank\" rel=\"noopener\">FAQ page<\/a> on the Bitcoin Core website notes an April deployment of Segregated Witness,\u201d Lombrozo explained. \u201cWe&#8217;re making a lot of progress, but we have a very rigorous testing and code review process which is necessary to ensure the Bitcoin network continues to operate safely and reliably. We plan to propose a feature-complete pull request in the coming month, but it might take a little longer before Segregated Witness is actually accepted and merged into Bitcoin Core. It\u2019s a top priority, however, and we hope to be able to safely deploy Segregated Witness very soon.\u201d<\/p>\n<p>A main benefit of the current Segregated Witness design is that it can be deployed as a soft fork. Once the code is accepted and merged, only miners will need to upgrade; all other users can change their software if and whenever they want to, with no risk of being thrown off the network. Moreover, a recent improvement to the Bitcoin protocol allows soft forks to be rolled out more easily and faster than before, which should benefit Segregated Witness activation as well.<\/p>\n<p>Lombrozo said:<\/p>\n<blockquote>\n<p> \u201cWe&#8217;re using <a href=\"https:\/\/github.com\/bitcoin\/bips\/blob\/master\/bip-0009.mediawiki\" target=\"_blank\" rel=\"noopener\">BIP9<\/a> for activation, which means we can deploy CSV and Segregated Witness in parallel; Segregated Witness won\u2019t have to wait for CSV activation nor vice versa. We will most likely merge CSV into Bitcoin Core in the next couple weeks, as it&#8217;s been more thoroughly tested and is in the final stages of review. A Segregated Witness pull request will hopefully follow shortly after.\u201d <\/p>\n<\/blockquote>\n<p>The proposed Segregated Witness concept for Bitcoin was first introduced by Bitcoin Core developer and Blockstream co-founder Dr. Pieter Wuille at the second&nbsp;<a href=\"https:\/\/hongkong2015.scalingbitcoin.org\" target=\"_blank\" rel=\"noopener\">Scaling Bitcoin<\/a> workshop in Hong Kong last December. The idea is widely embraced by Bitcoin&#8217;s development community \u2013 though it has also received some&nbsp;<a href=\"https:\/\/bitcoinmagazine.com\/articles\/on-the-detriments-of-segregated-witness-for-bitcoin-1454948591\">critique<\/a> since. If a problem is found in SegNet 4, there might be a fifth iteration of the testnet, but the design is not expected to undergo further changes.<\/p>\n<p><em>For more information on Segregated Witness, see Bitcoin Magazine\u2019s&nbsp;<\/em><a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-how-a-clever-hack-could-significantly-increase-bitcoin-s-potential-1450553618\"><em>three<\/em><\/a><em>&#8211;<\/em><em><a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-why-you-should-care-about-a-nitty-gritty-technical-trick-1450827675\">part<\/a><\/em><em><a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-how-a-soft-fork-might-establish-a-block-size-truce-or-not-1451423607\">series<\/a><\/em><em>on the proposal.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bitcoin Core developers Dr. Pieter Wuille, Eric Lombrozo and Johnson Lau launched a fourth \u2013 and probably final \u2013 iteration of the Segregated Witness testnet today. Perhaps most importantly compared to&nbsp;previousversions, \u201cSegNet 4\u201d includes support for another upcoming Bitcoin protocol improvement,&nbsp;CheckSequenceVerify (CSV). This allows for experimentation with routable bidirectional payment channels, better known as lightning [&hellip;]<\/p>\n","protected":false},"author":2509,"featured_media":25262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[91,1038,130,3313,1079,708],"class_list":{"0":"post-25261","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-bitcoin-magazine","9":"tag-core","10":"tag-lightning","11":"tag-pieter-wuille","12":"tag-segwit","13":"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\/segregated-witness-enters-final-testnet-stage.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/25261","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=25261"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/25261\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/25262"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=25261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=25261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=25261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}