{"id":23305,"date":"2017-08-24T07:01:50","date_gmt":"2017-08-24T07:01:50","guid":{"rendered":"http:\/\/ci027cfe6de00026c3"},"modified":"2017-08-24T07:01:50","modified_gmt":"2017-08-24T07:01:50","slug":"segregated-witness-activates-bitcoin-what-expect","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/segregated-witness-activates-bitcoin-what-expect","title":{"rendered":"Segregated Witness Activates on Bitcoin: This is What to Expect"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/segregated-witness-activates-on-bitcoin-this-is-what-to-expect.jpg\" title=\"\"><\/figure>\n<p>The <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> (SegWit) soft fork has activated on the Bitcoin network.<\/p>\n<p>As of block height 481,824, found at 1:57 UTC&nbsp;by BTCC, all SegWit ready nodes started enforcing the new SegWit consensus rules. As Bitcoin\u2019s biggest protocol upgrade to date, this introduces a whole new data structure, which changes the appearance of Bitcoin blocks for upgraded nodes \u2014 while non-upgraded nodes should continue to function as normal.<\/p>\n<p>More concretely, SegWit activation means that Bitcoin\u2019s block size limit is replaced by a block \u201cweight\u201d limit, which allows for blocks up to 4 megabytes in size. Additionally, and perhaps more importantly, SegWit transactions won\u2019t suffer from the \u201c<a href=\"https:\/\/bitcoinmagazine.com\/articles\/the-who-what-why-and-how-of-the-ongoing-transaction-malleability-attack-1444253640\">malleability bug<\/a>,\u201d which in turn enables advanced second-layer protocols like the Lightning Network, atomic swaps, MAST, and more.<\/p>\n<p>Here\u2019s what to expect for the next couple of hours, days, weeks, months and beyond\u2026<\/p>\n<h3>The Block Size Limit Becomes a Block Weight Limit<\/h3>\n<p>Bitcoin blocks now have a weight limit instead of a size limit.&nbsp;Depending on the types of transactions included, this means that blocks can get up to 4 megabytes big \u2014 though some 2 megabytes is a more realistic maximum. This should decrease network fees for users, and speed up transaction confirmation times.<\/p>\n<p>However, this doesn\u2019t mean that all blocks will immediately bump to 2 megabytes in size today. For a transaction to utilize the added space, it must be sent <em>from<\/em> a SegWit address (or more accurately, a Segwit \u201coutput\u201d) \u2014 not just <em>to<\/em> a SegWit address.<\/p>\n<p>At the time of activation, of course, no bitcoins were locked up in SegWit addresses whatsoever. That wasn\u2019t possible up till now. So at the very least, bitcoins must be spent once to a SegWit address once first. Only when they\u2019re spent again will they benefit from the extra space.<\/p>\n<p>Additionally, wallets and other applications need to be ready to accept SegWit transactions. Some wallets, like GreenAddress, may offer this option on day one, or shortly thereafter. \u201cWe had this in testnet on by default for a very long time now,\u201d <a href=\"https:\/\/greenaddress.it\/en\/\" target=\"_blank\" rel=\"noopener\">GreenAddress<\/a> developer Lawrence Nahum told <em>Bitcoin Magazine<\/em>. \u201cWe\u2019ll make it&#8217;s available almost immediately after activation; we just want to make sure activation is smooth before we enable it.\u201d<\/p>\n<p>Similarly, large Bitcoin service providers could start accepting SegWit transactions right away, though some may need more time to prepare. <a href=\"https:\/\/www.bitgo.com\/\" target=\"_blank\" rel=\"noopener\">BitGo<\/a>, a Bitcoin infrastructure provider for major exchanges like <a href=\"https:\/\/www.bitstamp.net\/\" target=\"_blank\" rel=\"noopener\">Bitstamp<\/a>, <a href=\"https:\/\/www.kraken.com\/\" target=\"_blank\" rel=\"noopener\">Kraken<\/a> and <a href=\"https:\/\/www.okcoin.com\/\" target=\"_blank\" rel=\"noopener\">OKCoin<\/a>, <a href=\"https:\/\/blog.bitgo.com\/bitgo-segwit-launch-4732163d2c7f?gi=e22c167c319e\" target=\"_blank\" rel=\"noopener\">expects<\/a> to be SegWit-ready relatively soon as well.<\/p>\n<p>BitGo engineer Jameson Lopp told <em>Bitcoin Magazine<\/em>:<\/p>\n<p>\u201cWe\u2019ve not set an actual date, though we certainly want to deploy it as soon as possible. I expect general availability sometime next week.\u201d<\/p>\n<p>Some other wallets and services, however, may take a little longer; how long will differ from wallet to wallet.<\/p>\n<h3>Lightning and More<\/h3>\n<p>Arguably even more highly anticipated than an increased block size, second-layer technologies like <a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-building-a-bidirectional-payment-channel-1464710791\">the<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-creating-the-network-1465326903\">Lightning<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/understanding-the-lightning-network-part-completing-the-puzzle-and-closing-the-channel-1466178980\">Network<\/a>&nbsp;and, further out, Merkelized Abstract Syntax Trees (<a href=\"https:\/\/bitcoinmagazine.com\/articles\/the-next-step-to-improve-bitcoin-s-flexibility-scalability-and-privacy-is-called-mast-1476388597\">MAST<\/a>), will be more easily built on top of Bitcoin, thanks to Segregated Witness.<\/p>\n<p>Most of this technology is still a work in progress, and it could take several more months before regular users are expected to use it. That said, it is likely that there will be experimentation on Bitcoin\u2019s mainnet rather soon, according to <a href=\"https:\/\/lightning.network\/\" target=\"_blank\" rel=\"noopener\">Lightning Labs<\/a> CEO and cofounder, Elizabeth Stark.<\/p>\n<p>\u201cToday we released version 0.3 alpha of our Lightning Network Daemon software, which is the last major release before our mainnet beta release,\u201d said Stark to <em>Bitcoin Magazine<\/em>. \u201cWe&#8217;re not giving any exact predictions, but our goal is to get it up and running as soon as it&#8217;s thoroughly tested and stable. We may also see some test mainnet transactions by developers once SegWit activates.\u201d<\/p>\n<p>And even when the Lightning Network is functional and in use, it will take a little longer to roll out more advanced features that utilize the Lightning Network or similar protocols. These include <a href=\"https:\/\/bitcoinmagazine.com\/articles\/atomic-swaps-how-the-lightning-network-extends-to-altcoins-1484157052\">atomic swaps<\/a>, which allows for the instant and (near) costless exchange of cryptocurrencies over different blockchains, like bitcoin and litecoin. And Stark said a larger development ecosystem is growing around the technology as well.<\/p>\n<p>\u201cWe&#8217;re seeing app development on the Lightning Network taking off, which we&#8217;re very excited about. Once the mainnet releases are out, we expect there to be a bunch of apps working on the Lightning Network out of the box,\u201d she added.<\/p>\n<p>Further, more nuanced benefits of SegWit, such as <a href=\"https:\/\/bitcoinmagazine.com\/articles\/how-segregated-witness-is-about-to-fix-hardware-wallets-1478110057\">faster transaction signing<\/a> by hardware wallets, will be available within a <a href=\"https:\/\/twitter.com\/LedgerHQ\/status\/900415315829555200\" target=\"_blank\" rel=\"noopener\">matter of days<\/a>. The more efficient <a href=\"https:\/\/bitcoinmagazine.com\/articles\/the-power-of-schnorr-the-signature-algorithm-to-increase-bitcoin-s-scale-and-privacy-1460642496\">Schnorr signature algorithm<\/a> is also expected to be implemented and rolled out on Bitcoin at some point, but this will take at least several more months to be production ready&nbsp;\u2014&nbsp;or longer.<\/p>\n<h3>The Risks<\/h3>\n<p>At this point in time, SegWit activation does still present some risks for users.<\/p>\n<p>The first risk applies to all soft forks, and depends on miners actually enforcing the new rules. If some don\u2019t, non-upgraded nodes as well as many light clients in particular could accept invalid transactions and blocks, at least until the network corrects that through a blockchain reorganization (\u201creorg\u201d). <a href=\"https:\/\/en.bitcoin.it\/wiki\/Softfork#2015_BIP66_Blockchain_Fork\" target=\"_blank\" rel=\"noopener\">In the past<\/a>, soft forks<a href=\"https:\/\/en.bitcoin.it\/wiki\/Softfork#2015_BIP66_Blockchain_Fork\" target=\"_blank\" rel=\"noopener\"><\/a>caused some (minimal) network disruption, but the risks do seem limited this time around.<\/p>\n<p>\u201cI suspect that the reorg risk is relatively low for full nodes with SegWit. The only prior case like this was that validationless mining chain-split two years ago, but that didn&#8217;t affect full nodes,\u201d Blockchain consultant Peter Todd told <em>Bitcoin Magzine<\/em>. \u201cAnd fortunately Bitcoin Core includes a lot of improvements to speed that older and alternative implementations don&#8217;t have, so there&#8217;s a good chance basically all miners are running Bitcoin Core with only small modifications to non-consensus code, if any.\u201d<\/p>\n<p>Additionally, the first couple of hours after activation do open a small window for advanced types of miner attacks, which resemble (or are) 51% attacks. If large amounts of bitcoin are sent to SegWit addresses after activation, miners could theoretically still \u201croll back\u201d the blockchain to a point in time before activation to re-build it from there. Since SegWit outputs are not secure before activation, such a rollback could allow miners to steal these funds.<\/p>\n<p>Like any other 51% attack, the costs to perform this attack does increase for every block that is found after activation, to the point where it becomes infeasible quite fast. That said, it is probably wise not to send huge amounts of bitcoin to SegWit addresses straight away, and instead wait at least a couple of hours or maybe days to do so.<\/p>\n<p>Lastly, Todd pointed out that some (untested) services may fail shortly after SegWit activation, as they have likely only integrated SegWit support partially. \u201cFor example, remote procedure calls could request SegWit transactions, while at the same time rejecting these transactions because they didn\u2019t expect to get them.\u201d These kinds of issues should be easy to fix, however.<\/p>\n<p><em>Also read Bitcoin Magazine\u2019s cover story for the month: The Long Road to SegWit: How Bitcoin\u2019s Biggest Protocol Upgrade Became Reality.<\/em><\/p>\n<p><em>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Segregated Witness (SegWit) soft fork has activated on the Bitcoin network. As of block height 481,824, found at 1:57 UTC&nbsp;by BTCC, all SegWit ready nodes started enforcing the new SegWit consensus rules. As Bitcoin\u2019s biggest protocol upgrade to date, this introduces a whole new data structure, which changes the appearance of Bitcoin blocks for [&hellip;]<\/p>\n","protected":false},"author":2509,"featured_media":23306,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[1662,1079],"class_list":{"0":"post-23305","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-block-size","9":"tag-segwit"},"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-activates-on-bitcoin-this-is-what-to-expect.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/23305","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=23305"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/23305\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/23306"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=23305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=23305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=23305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}