{"id":24042,"date":"2017-04-12T02:35:34","date_gmt":"2017-04-12T02:35:34","guid":{"rendered":"http:\/\/ci027cfe80400126c3"},"modified":"2017-04-12T02:35:34","modified_gmt":"2017-04-12T02:35:34","slug":"breaking-down-bitcoins-asicboost-scandal","status":"publish","type":"post","link":"https:\/\/bitcoinmagazine.com\/technical\/breaking-down-bitcoins-asicboost-scandal","title":{"rendered":"Breaking Down Bitcoin&#8217;s &#8220;AsicBoost Scandal&#8221;"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><figure><img decoding=\"async\" src=\"https:\/\/bitcoinmagazine.com\/wp-content\/uploads\/2024\/11\/breaking-down-bitcoins-asicboost-scandal.jpg\" title=\"\"><\/figure>\n<p>Through a Bitcoin Improvement Proposal (BIP) draft <a href=\"https:\/\/www.mail-archive.com\/bitcoin-dev@lists.linuxfoundation.org\/msg05055.html\" target=\"_blank\" rel=\"noopener\">sent<\/a> to the Bitcoin development mailing list last week, long-time <a href=\"https:\/\/bitcoincore.org\/\" target=\"_blank\" rel=\"noopener\">Bitcoin Core<\/a> developer and <a href=\"https:\/\/www.blockstream.com\/\" target=\"_blank\" rel=\"noopener\">Blockstream<\/a> co-founder and CTO Gregory Maxwell <a href=\"https:\/\/bitcoinmagazine.com\/articles\/mining-manufacturer-blocking-segwit-benefit-asicboost\">revealed<\/a> that a <a href=\"https:\/\/bitcoinmagazine.com\/bitcoin-mining\/bitcoin-mining-hardware\">Bitcoin mining hardware<\/a> producer implemented the patented \u201cAsicBoost\u201d technology in its chips. While the specific manufacturer was not named in the email, it was easy to surmise that Maxwell was alluding to the Chinese mining giant <a href=\"https:\/\/www.bitmain.com\/\" target=\"_blank\" rel=\"noopener\">Bitmain<\/a> \u2014 a suspicion confirmed through a <a href=\"https:\/\/blog.bitmain.com\/en\/regarding-recent-allegations-smear-campaigns\/\" target=\"_blank\" rel=\"noopener\">press release<\/a> issued by the company the next day.<\/p>\n<p>Rumors, clues and accusations have dominated social media, news sites, and chatrooms ever since, as a new dimension in Bitcoin\u2019s long-lasting scaling debate kicked tensions into high gear. Instead of the reasons given so far, some now believe that Bitmain and its <a href=\"https:\/\/bitcoinmagazine.com\/bitcoin-mining\/what-are-bitcoin-mining-pools\">mining pools<\/a> have rejected 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><a href=\"https:\/\/bitcoinmagazine.com\/articles\/segregated-witness-part-how-a-soft-fork-might-establish-a-block-size-truce-or-not-1451423607\"> soft fork<\/a> (SegWit) because it is incompatible with the covert use of AsicBoost technology embedded in their chips.<\/p>\n<p>For anyone not \u201cin the loop\u201d: here\u2019s an overview of what\u2019s going on\u2026<\/p>\n<p><strong>AsicBoost<\/strong><\/p>\n<p>In short, AsicBoost is a technology invented by former <a href=\"http:\/\/flbktrk.com\/?s=&amp;d=cointerra.com&amp;r=PLE&amp;ref=\" target=\"_blank\" rel=\"noopener\">CoinTerra<\/a> CTO Timo Hanke and <a href=\"https:\/\/www.rsk.co\/\" target=\"_blank\" rel=\"noopener\">RSK<\/a> Chief Scientist Sergio Dami\u00e1n Lerner. When implemented in ASIC chips (chips specialized for Bitcoin mining), AsicBoost can take advantage of a quirk in the implementation of Bitcoin\u2019s proof-of-work mining algorithm. This lets miners take a sort of a \u201cshortcut\u201d to finding a valid block.<\/p>\n<p>This shortcut can give miners up to a 30 percent efficiency advantage \u2014 though some 15 to 20 percent seems more likely. Since miners compete on small margins, even small efficiency gains can result in big profits. Maxwell estimated that a large miner can bank up to $100 million extra per year; a claim backed by <a href=\"https:\/\/www.mail-archive.com\/bitcoin-dev@lists.linuxfoundation.org\/msg05101.html\" target=\"_blank\" rel=\"noopener\">calculations<\/a> by the pseudonymous \u201cpraxeology_guy.\u201d Though others, including the founder of now-defunct ASIC manufacturer KnCMiner <a href=\"https:\/\/hackernoon.com\/asicboost-655a73d48ae4?gi=b442de0f3f0d\" target=\"_blank\" rel=\"noopener\">Sam Cole<\/a>, downplayed this figure. In the scheme of things \u2014 cost of electricity, ASIC design, and more \u2014 the added profit from AsicBoost alone could be much smaller.&nbsp;<\/p>\n<p><em>Update: Former Spoondoolies-Tech CEO Guy Corem also <a href=\"https:\/\/medium.com\/@vcorem\/the-real-savings-from-asicboost-to-bitmaintech-ff265c2d305b\" target=\"_blank\" rel=\"noopener\">estimates<\/a> the added profits from AsicBoost would be significantly smaller; some $2 million extra per year.<\/em><\/p>\n<p>AsicBoost has been subject to some <a href=\"https:\/\/www.mail-archive.com\/bitcoin-dev@lists.linuxfoundation.org\/msg03722.html\" target=\"_blank\" rel=\"noopener\">controversy<\/a> before. Since the technology is patented, and patents are state-enforced, some worry that AsicBoost could skew Bitcoin\u2019s mining competition by non-market factors. This could in a worst-case scenario lead to a centralized and perhaps even regulated mining landscape, providing reason enough for some developers to consider changing the Bitcoin protocol to counter AsicBoost. Others, however, see AsicBoost as an optimization like so many mining optimizations realized over the years, and argue that innovative miners should not be punished by a protocol change.<\/p>\n<p>In light of last week\u2019s events, it is important to note that AsicBoost not only can be utilized overtly, in which case it is obvious that a miner is using it, but it can also be employed covertly, which is much harder to detect. And, as it now turns out, covert use of AsicBoost is largely incompatible with the current soft fork implementation of Segregated Witness, the protocol upgrade as proposed by the Bitcoin Core development team.<\/p>\n<p><strong>The Admission<\/strong><\/p>\n<p>While it was up in the air for a day or so, it is no longer a question whether Bitmain indeed implemented AsicBoost technology in its chips.<\/p>\n<p>In their press release, the company readily admitted that it did, stating:<\/p>\n<p>\u201cOur ASIC chips, like those of some other manufacturers, have a circuit design that supports AsicBoost.\u201d<\/p>\n<p>Additionally, Bitmain said that it \u201chas tested AsicBoost on [Bitcoin\u2019s] Testnet,\u201d while also explaining that the company can legally use the technology:<\/p>\n<p>\u201cBitmain holds the AsicBoost patent in China. We can legally use it in our own mining farms in China to profit from it and sell the cloud mining contracts to the public.\u201d<\/p>\n<p>Furthermore, Bitmain said that AsicBoost wouldn&#8217;t be bad for the company\u2019s business model, writing:<\/p>\n<p>\u201cBitcoin mining equipment depreciates rapidly. Bitmain has constantly been introducing newer more efficient miner models for all. As such the statement that the deployment of AsicBoost, which can lead to a 20% difference in power efficiency, is some kind of negative development for Bitmain\u2019s business model is false.\u201d<\/p>\n<p>And on top of that, the ASIC producer rejects that AsicBoost is something detrimental in itself. Instead, it argues that widespread use of the technology would benefit the Bitcoin network:<\/p>\n<p>\u201cIf all mining equipment could use AsicBoost, it will lower the J\/GH cost and the total network hash rate will increase, making the Bitcoin network even stronger. So, the AsicBoost method is not a \u2018covert attack\u2019 on the Bitcoin [proof of work] function. It is an engineering optimization.\u201d<\/p>\n<p>So, in summary, Bitmain admits it implemented AsicBoost technology in its chips, acknowledges testing it, explains that using it in China is legal, says that it is not a negative for the company, and also says it&#8217;s not a negative (an attack) in itself&nbsp;\u2014&nbsp;but rather something positive: an optimization.<\/p>\n<p>Yet\u2026<\/p>\n<p><strong>The Denial <\/strong><\/p>\n<p>Even though Bitmain argues that AsicBoost is a positive on all fronts, the company maintains that \u201cthe AsicBoost method has not been used by us on the mainnet.\u201d<\/p>\n<p>As well as:<\/p>\n<p>\u201c[Using AsicBoost], however profitable, is not something we would do for the greater good of Bitcoin.\u201d<\/p>\n<p>These claims may be true.<\/p>\n<p>While the denial seems oddly inconsistent with with the statements that there is nothing wrong with AsicBoost, it has so far not been conclusively proven that Bitmain did, in fact, use AsicBoost on Bitcoin\u2019s main net. And this may be hard to prove conclusively, as covert use of AsicBoost can, indeed, be done covertly.<\/p>\n<p>That said, covert use of AsicBoost could in some cases be noticeable after all. Specifically, using AsicBoost could result in odd transaction ordering in blocks, or even in the mining of (near) empty blocks. Efforts to further analyze blocks are ongoing.<\/p>\n<p>So far, it <a href=\"https:\/\/twitter.com\/ElectrumWallet\/status\/849936950320607234\" target=\"_blank\" rel=\"noopener\">does<\/a><a href=\"https:\/\/twitter.com\/LaurentMT\/status\/851173367759728641\" target=\"_blank\" rel=\"noopener\"> appear<\/a> that Bitmain\u2019s main mining pool,<a href=\"https:\/\/www.antpool.com\/\" target=\"_blank\" rel=\"noopener\"> AntPool<\/a>, has both mined blocks with <a href=\"https:\/\/twitter.com\/ElectrumWallet\/status\/849936950320607234\" target=\"_blank\" rel=\"noopener\">odd transaction ordering<\/a>, as well as <a href=\"https:\/\/np.reddit.com\/r\/Bitcoin\/comments\/63yo27\/some_circumstantial_evidence_supporting_the_claim\/dfydbca\/\" target=\"_blank\" rel=\"noopener\">nearly<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/why-do-some-bitcoin-mining-pools-mine-empty-blocks-1468337739\"> empty<\/a><a href=\"https:\/\/bitcoinmagazine.com\/articles\/decline-empty-blocks-has-increased-bitcoins-transaction-capacity\"> blocks<\/a>. And while both of these may be explained by <a href=\"https:\/\/bitcoinmagazine.com\/articles\/why-bitcoin-mining-pools-aren-t-incentivized-to-broadcast-blocks-quickly-1475249510\">spy mining<\/a>, buggy mining pool software, or perhaps other reasons we don\u2019t yet know of, the timing and structure of some of some of the (near) empty blocks is at least suspicious.<\/p>\n<p>Moreover, AntPool\u2019s mining of (near) empty blocks has always been notable, since Bitmain\u2019s co-CEO, Jihan Wu, is one of the most prominent proponents of a block size limit increase: If Bitcoin needs to process more transactions, mining empty blocks doesn\u2019t help.<\/p>\n<p>And when asked about the empty blocks last year, no reason was given by Wu at all. In fact, there is little indication Wu had \u201cthe greater good of Bitcoin\u201d in mind at that time:<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\"><a href=\"https:\/\/twitter.com\/sysmannet?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">@sysmannet<\/a> sorry, we will continue mining empty blocks. This is the freedom given by the Bitcoin protocol.<\/p>\n<p>&mdash; Jihan Wu (@JihanWu) <a href=\"https:\/\/twitter.com\/JihanWu\/status\/704476839566135298?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">March 1, 2016<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>And then, AntPool seems to also have <a href=\"https:\/\/archive.fo\/Ok3SJ\" target=\"_blank\" rel=\"noopener\">stratum<\/a><a href=\"https:\/\/www.reddit.com\/r\/Bitcoin\/comments\/63yo27\/some_circumstantial_evidence_supporting_the_claim\/dfy5o65\/\" target=\"_blank\" rel=\"noopener\"> commands<\/a> for overt use of AsicBoost on their servers. This basically means that all of the infrastructure to utilize AsicBoost is there \u2014 though it\u2019s not clear if this can be used covertly as well. (And Bitmain definitely hasn\u2019t used AsicBoost overtly.)<\/p>\n<p>All in all, there is substantial circumstantial evidence that Bitmain (and AntPool) has been using AsicBoost on Bitcoin\u2019s main net. But as per the nature of covert use of the technology, conclusive evidence is hard to find, and may even be impossible to come by.<\/p>\n<p>On the other side of the debate, there is one main argument for why Bitmain may not have used AsicBoost on Bitcoin\u2019s main net. If, instead of the $100 million figure, the more conservative estimates are correct, and AsicBoost for example \u201conly\u201d adds a couple of million extra profit per year, perhaps it\u2019s not worth the hassle. Setting up an operation of the size of Bitmain to utilize AsicBoost does require a lot of complex work, and from a cost\/benefit-analysis, some suggest it may be better to skip it.<\/p>\n<p><strong>Segregated Witness <\/strong><\/p>\n<p>As mentioned, using AsicBoost is controversial; doing so covertly, even more so. And if Bitmain sold machines to customers without the technology enabled, while itself taking in the extra AsicBoost profit, it would be worse.<\/p>\n<p>But this, in itself, is not really at the heart of the \u201cAsicBoost scandal.\u201d<\/p>\n<p>Rather, the (perceived) scandal is that Bitmain may have been blocking and stalling a widely popular upgrade to the Bitcoin protocol under a false pretence. The incompatibility between (covert use of) AsicBoost and Segregated Witness could explain why Bitmain remains <a href=\"https:\/\/bitcoincore.org\/en\/segwit_adoption\/\" target=\"_blank\" rel=\"noopener\">one of the very few companies<\/a> in the Bitcoin industry to so staunchly oppose the soft fork.<\/p>\n<p>Moreover, it would explain why the Chinese mining giant has been so persistent in its demand for a hard fork. Covert use of AsicBoost would be compatible with <a href=\"https:\/\/www.bitcoinunlimited.info\/\" target=\"_blank\" rel=\"noopener\">Bitcoin Unlimited<\/a>, an alternative protocol implementation supported by Wu. Similarly, a recent Segregated Witness hard fork as proposed by Lerner (the same Lerner that patented AsicBoost) could be made <a href=\"https:\/\/twitter.com\/peterktodd\/status\/849821109776154625\" target=\"_blank\" rel=\"noopener\">compatible<\/a> with covert use of AsicBoost, too.<\/p>\n<p>And, the incompatibility between (covert use of) AsicBoost and Segregated Witness could explain why Wu was <a href=\"https:\/\/twitter.com\/JihanWu\/status\/849130135554973696\" target=\"_blank\" rel=\"noopener\">supportive<\/a> of extension blocks, a <a href=\"https:\/\/www.forbes.com\/home_usa\/?toURL=https:\/\/www.forbes.com\/sites\/laurashin\/2017\/04\/04\/bitcoin-is-mired-in-a-civil-war-can-this-proposal-save-it\/\" target=\"_blank\" rel=\"noopener\">recent proposal<\/a> that appears to have little (if any) benefit over SegWit\u2026 except that extension blocks don\u2019t break covert use of AsicBoost.<\/p>\n<p>Additionally, it could explain why this recent proposal was designed to be incompatible with Segregated Witness. While the two solutions do not need to exclude each other in any way, an unnecessary design choice in extension blocks made sure they are.<\/p>\n<p>And if the reason for Bitmain\u2019s rejection of the Segregated Witness soft fork is not AsicBoost, there seems to be only one alternative explanation left. Miner activation of the protocol upgrade could be used as a sort of bargaining chip, where the mining giant is only willing to activate the soft fork if it\u2019s guaranteed to be followed up by a hard fork.<\/p>\n<p>Indeed, this is what Wu <a href=\"https:\/\/bitcoinmagazine.com\/articles\/antpool-will-not-run-segwit-without-block-size-increase-hard-fork-1464028753\">told<\/a> Bitcoin Magazine last year, and it is what the company maintains in its press release published last week:<\/p>\n<p>\u201cSegWit is not running in production because the conditions made clear in the <a href=\"https:\/\/medium.com\/@bitcoinroundtable\/bitcoin-roundtable-consensus-266d475a61ff\" target=\"_blank\" rel=\"noopener\">Hong Kong agreement<\/a> have not been met, in which we foresee a non-witness block size increase coming together with SegWit.\u201d<\/p>\n<p><em>For more (details) on AsicBoost, see <a href=\"http:\/\/www.mit.edu\/~jlrubin\/\/public\/pdfs\/Asicboost.pdf\" target=\"_blank\" rel=\"noopener\">this explanation<\/a> by Jeremy Rubin, or <a href=\"https:\/\/medium.com\/@jimmysong\/eli5-gregory-maxwells-inhibition-proposal-884f11652b89\" target=\"_blank\" rel=\"noopener\">this ELI5<\/a> (Explain Like I\u2019m Five) by Jimmy Song, or this <a href=\"https:\/\/bitslog.com\/2017\/04\/10\/the-relation-between-segwit-and-asicboost-covert-and-overt\/\" target=\"_blank\" rel=\"noopener\">blog post<\/a> on the relation between SegWit and AsicBoost by Lerner, or the <a href=\"https:\/\/arxiv.org\/ftp\/arxiv\/papers\/1604\/1604.00575.pdf\" target=\"_blank\" rel=\"noopener\">original white paper<\/a> by Hanke. For more on the Bitcoin Roundtable Consensus (\u201cHong Kong agreement\u201d) see \u201c<a href=\"https:\/\/bitcoinmagazine.com\/articles\/the-status-of-the-hong-kong-hard-fork-an-update-1479843521\">The Status of the \u2018Hong Kong Hard Fork\u2019: An Update<\/a>.\u201d<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Through a Bitcoin Improvement Proposal (BIP) draft sent to the Bitcoin development mailing list last week, long-time Bitcoin Core developer and Blockstream co-founder and CTO Gregory Maxwell revealed that a Bitcoin mining hardware producer implemented the patented \u201cAsicBoost\u201d technology in its chips. While the specific manufacturer was not named in the email, it was easy [&hellip;]<\/p>\n","protected":false},"author":2509,"featured_media":24043,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[197,1662],"class_list":{"0":"post-24042","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-technical","8":"tag-bitmain","9":"tag-block-size"},"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\/breaking-down-bitcoins-asicboost-scandal.jpg","_links":{"self":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/24042","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=24042"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/posts\/24042\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media\/24043"}],"wp:attachment":[{"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/media?parent=24042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/categories?post=24042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinmagazine.com\/wp-json\/wp\/v2\/tags?post=24042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}