{"id":3268,"date":"2017-12-11T16:12:48","date_gmt":"2017-12-11T21:12:48","guid":{"rendered":"http:\/\/blogs.ams.org\/blogonmathblogs\/?p=3268"},"modified":"2017-12-11T16:12:48","modified_gmt":"2017-12-11T21:12:48","slug":"the-blockchain-party","status":"publish","type":"post","link":"https:\/\/blogs.ams.org\/blogonmathblogs\/2017\/12\/11\/the-blockchain-party\/","title":{"rendered":"The Blockchain Party"},"content":{"rendered":"<div id=\"attachment_3291\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3291\" src=\"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2017\/12\/708642955_081be9c70a_z.jpg?resize=500%2C332\" alt=\"\" width=\"500\" height=\"332\" class=\"size-full wp-image-3291\" srcset=\"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2017\/12\/708642955_081be9c70a_z.jpg?w=500&amp;ssl=1 500w, https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2017\/12\/708642955_081be9c70a_z.jpg?resize=300%2C199&amp;ssl=1 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><p id=\"caption-attachment-3291\" class=\"wp-caption-text\">Image via Flicker CC, Peter Shanks.<\/p><\/div>\n<p>Maybe you think bitcoin is silly, maybe you think it&#8217;s dangerous and socially irresponsible, maybe you&#8217;re a bitcoin millionaire (in which case, hi), or maybe you are desperate to join the blockchain party.  Whatever your stance, it seems that you can&#8217;t escape bitcoin and the blockchain these days.  And yet it feels like every time I try to understand it, I&#8217;m treated to some <a href=\"https:\/\/blockchain.info\/charts\/hash-rate\">mumbly semi-confused version of the truth<\/a>.  <\/p>\n<p>So in case you&#8217;re confused, here&#8217;s a little bit about the math behind bitcoin.  Transactions in the bitcoin (or generally the cryptocurrency) marketplace are made very secure by a public ledger system called the blockchain.  This works by using something called the elliptic curve digital signature algorithm.  The blog <a href=\"http:\/\/www.financial-math.org\/blog\/2016\/10\/the-mathematics-behind-blockchain\/\"><em>The Mathematical Investor<\/em> gives a really thorough rundown of the algorithm<\/a>, but for anyone with a passing knowledge of elliptic curves, I&#8217;ll just mention that it&#8217;s related to the the modular arithmetic on the group structure of points on an elliptic curve. The point of the blockchain is that it acts as a <a href=\"https:\/\/blockgeeks.com\/guides\/what-is-blockchain-technology\/\">decentralized digital public record<\/a> of all bitcoin transactions and since its continually updated and there&#8217;s no master version, it&#8217;s thought to be unhackable. In theory this means it should be impossible for people to steal bitcoins, spend the same bitcoin twice, or just invent bitcoins out of thin air. <\/p>\n<p>New blocks in the chain are created when miners solve certain computationally laborious but not particularly difficult <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hash_function\">hash functions<\/a>. The <a href=\"http:\/\/blog.programster.org\/bitcoins-mathematical-problem\"><em>Programster&#8217;s Blog<\/em> gives an easy to digest explainer<\/a> on hash functions and bitcoins.  Essentially, the bounty for solving one of the hash functions is 25 bitcoins and a new block in the chain with your name on it.  To solve the function you can&#8217;t do too much better than random guessing, so solving any particular one might take <a href=\"https:\/\/blockchain.info\/charts\/hash-rate\">millions or billions<\/a> of tries.  This is why miners set up giant farms of CPUs cranking away at these problems all day until they hit a solution.   <\/p>\n<p>So basically there are two ways to get bitcoins and get yourself onto the blockchain ledger: you can mine them, or you can buy them.  And mining them, in principle, is not illegal or bad any more than mining for gold or diamonds is illegal or bad. But <a href=\"https:\/\/www.brilliantearth.com\/blood-diamond-environmental-impact\/\">much like diamond mining<\/a>, it&#8217;s not without deeply troubling consequences.   <\/p>\n<p>The big problem that&#8217;s been hot in the news in the past week is the tremendous environmental cost of mining bitcoins.  Mining for bitcoins uses tons of electricity &#8211; by some estimates <a href=\"https:\/\/powercompare.co.uk\/bitcoin\/\">more energy than the entire country of Ireland annually<\/a> &#8211; and that is having a big global effect.  Countries with cheap (or government subsidized) energy are sucking up electricity to the <a href=\"http:\/\/www.businessinsider.com\/venezuela-bitcoin-use-popularity-restrictions-and-crackdown-2017-3\">point of causing rolling blackouts<\/a>. Some suggest that at the current rate bitcoin mining is <a href=\"https:\/\/grist.org\/article\/bitcoin-could-cost-us-our-clean-energy-future\/\">poised to eat up more electricity than is available on planet earth by the year 2020<\/a>. This is bad news for anyone interested in quitting fossil fuels and advocating for responsible energy usage. <\/p>\n<p>It seems pretty clear that for any individual trying to mine bitcoins at home, there is no way you can make more money that you&#8217;re spending on electricity. This inspired one enterprising miner to rig up a <a href=\"https:\/\/electrek.co\/2017\/11\/29\/tesla-mining-bitcoin-model-s-supercharger-power\/\">mining operation in his Tesla<\/a> with the goal of stealing free electricity from Tesla charging stations. One charity organization trying to raise money to help people pay bail  &#8211; on its face a worthwhile charity &#8211; is advocating <a href=\"https:\/\/davidgerard.co.uk\/blockchain\/2017\/11\/15\/bail-bloc-mine-monero-generate-co2-send-less-money-than-you-spent-to-charity\/\">mining cryptocurrencies on the servers at your corporate day job<\/a> to donate.  You know, really stick it to the man.  And the same charity recently doubled down and suggest that you use the electricity and networks at your local <a href=\"https:\/\/archive.is\/diStE\">evil gentrifying coffee shop<\/a> to mine for charitable cryptocurrency. <\/p>\n<p>There has even been speculation about rich regime type <a href=\"https:\/\/qz.com\/1087193\/north-korea-may-be-mining-bitcoin-at-home-and-hacking-it-abroad\/\">North Koreans burning coal to mine bitcoins<\/a> that they use to buy expensive sneakers. Truly the stuff of dystopian science fiction! <\/p>\n<p>It&#8217;s crazy. I&#8217;m totally into it. And I just know there&#8217;s got to be a better way. <\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>Maybe you think bitcoin is silly, maybe you think it&#8217;s dangerous and socially irresponsible, maybe you&#8217;re a bitcoin millionaire (in which case, hi), or maybe you are desperate to join the blockchain party. Whatever your stance, it seems that you &hellip; <a href=\"https:\/\/blogs.ams.org\/blogonmathblogs\/2017\/12\/11\/the-blockchain-party\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" data-url=https:\/\/blogs.ams.org\/blogonmathblogs\/2017\/12\/11\/the-blockchain-party\/><\/div>\n","protected":false},"author":69,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[688,58],"tags":[750,752,751,754,753],"class_list":["post-3268","post","type-post","status-publish","format-standard","hentry","category-current-events","category-mathematics-and-computing","tag-bitcoin","tag-blockchain","tag-cryptocurrency","tag-programsters-blog","tag-the-mathematical-investor"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3tW3N-QI","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/3268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/users\/69"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/comments?post=3268"}],"version-history":[{"count":23,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/3268\/revisions"}],"predecessor-version":[{"id":3292,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/3268\/revisions\/3292"}],"wp:attachment":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/media?parent=3268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/categories?post=3268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/tags?post=3268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}