{"id":2893,"date":"2014-02-28T10:00:34","date_gmt":"2014-02-28T15:00:34","guid":{"rendered":"http:\/\/www.goodmath.org\/blog\/?p=2893"},"modified":"2016-12-28T06:53:59","modified_gmt":"2016-12-28T11:53:59","slug":"bitcoin-mtgox-and-deflation","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2014\/02\/28\/bitcoin-mtgox-and-deflation\/","title":{"rendered":"Bitcoin, MtGox, and Deflation"},"content":{"rendered":"<p>This is the last bitcoin post. Here I&#8217;ll try to answer the questions that led me to start writing about it.<\/p>\n<h2>What is MtGox? What happened there?<\/h2>\n<p>MtGox was a company that maintained bitcoin <em>wallets<\/em>. The basic idea is that they acted like a bank\/broker for bitcoins. If you want to get bitcoins, you can go to someone like MtGox, and give them some money. They create a public\/private keypair for you, and use it to create a transaction giving you the bitcoins. When you want to make a purchase, you&#8217;d go to your MtGox account, and tell them to transfer the bitcoins, and they use your key to sign the transaction, and then broadcast it to the bitcoin network. It is through processes like this one that you can <a style=\"text-decoration: none;\" href=\"https:\/\/www.mamooti.com\/exchange\/buy-bitcoin-with-paypal\/\"> <span style=\"text-decoration: none; color: #333333;\">buy Bitcoin with PayPal<\/span><\/a>.<\/p>\n<p>By using MtGox, you don&#8217;t need to have a program that participates in the bitcoin network to do transactions. You don&#8217;t need to worry about keeping your keys safe. You don&#8217;t need to have software capable of generating and signing transactions. All you need is your web-browser, to log in to MtGox.<\/p>\n<p>Here&#8217;s where the problems start: MtGox didn&#8217;t start off as a bitcoin bank. In fact, they started off about as far from banking as you can imagine. From the name, you might think that MtGox is named after a mountain. Nope! It&#8217;s an acronym, for &#8220;Magic: the Gathering Online Exchange&#8221;. MtGox started off as a trading card exchange market.<\/p>\n<p>This continues to boggle my mind. I just can&#8217;t quite wrap my head around it. A hacked together trading card exchange site decides to start acting as a sort of electronic bank\/currency broker. And people trusted them with <em>hundreds of millions of dollars!<\/em>.<\/p>\n<p>What happened is completely predictable.<\/p>\n<p>You have an online site that manages massive quantities of money. Criminals are going to try to steal from it. Hell, when I was administrating Scientopia, at least once a week, I&#8217;d get email from someone with some kind of scam to try to manipulate google ads with fake clickthroughs, offering to split the profit. Scientopia&#8217;s revenue was only in the hundred dollar a month range &#8211; but it was still enough to attract crooks and scammers. Imagine what happens when it&#8217;s not $10 to be made, but $100,000,000?!<\/p>\n<p>Crooks tried to steal money from MtGox. From what we know (there&#8217;s still a lot about this that&#8217;s still being figured out), they succeeded. They found a weakness in the MtGox implementation of the bitcoin protocol, and they exploited it to steal a massive number of bitcoins.<\/p>\n<p>The ridiculous thing about all of this is, as I said above, it was totally predictable. You should <em>never<\/em> just hack together cryptosystems. You should <em>never<\/em> just hack together anything that handles money. When you hack together a crpytosystem that handles money, it&#8217;s pretty much a given that money is going to get lost.<\/p>\n<p>If you want to deal with money, you need to be really, <em>really<\/em> serious about security. That doesn&#8217;t just mean making sure you write code. It means having an entire staff of people who&#8217;s job it is to make sure that you don&#8217;t fuck up. It means having people working full time, trying to break your system &#8211; because if they can break it, so can someone else! It means having a strongly adverserial setup, where the people trying to break it really want to break it &#8211; they can&#8217;t be the same people who want it to <em>not<\/em> get broken. It means having a <em>different<\/em> team of people who&#8217;s full time job is auditing &#8211; constantly watching the system, checking transactions, verifying them, making sure that everything is working correctly, catching any potential problems the moment they start, instead of letting them continue until they become disasters.<\/p>\n<p>MtGox had none of that. It was a hacked together site. To get a sense of the way it was built, just look at the <a href=\"http:\/\/blog.magicaltux.net\/2010\/06\/27\/php-can-do-anything-what-about-some-ssh\/\">CEO&#8217;s blog<\/a>, where he talks about implementing SSH in PHP. I&#8217;m not saying that he used this SSH code in MtGox &#8211; but read it, and read the comments, and you&#8217;ll get a sense of how poorly he understands security issues.<\/p>\n<h2>What does it mean when people say that Bitcoin is deflationary?<\/h2>\n<p>When you read the hype around bitcoin, you also see a lot of criticisms from the skeptics. I am one of the skeptics, but I&#8217;m trying to be as fair as I can in these posts. One of the criticisms that you constantly see is that Bitcoin is <em>deflationary<\/em>.<\/p>\n<p>As I mentioned in yesterdays post, the only source of new bitcoins is mining. Each time the ledger gets updated with a new block in the blockchain, the person who generated the solution for that block gets a bounty, in the form of newly created bitcoins. Today, the bounty for a block is 25 bitcoins. But the bitcoin protocol specifies that that bounty will gradually decline and eventually disappear. When that happens, the miners will receive a commision, in the form of a transaction fee for transactions in the new block, but they won&#8217;t get new bitcoins. When the system gets to that point, the supply of bitcoins will be fixed: no new bitcoins, ever.<\/p>\n<p>Lots of people think that that&#8217;s a good thing. After all, inflation sucks, right? This will be a fixed supply of money, whose value can&#8217;t be manipulated by politicians.<\/p>\n<p>The catch is that nothing is ever that simple.<\/p>\n<p>First: the fact that new bitcoins will not be issued means that the total supply of bitcoins will <em>decline<\/em>. People die without giving their passwords to their heirs. Passwords get lost. People forget about bank accounts. All of those things are more mean that bitcoins fall out of circulation. So not only is the supply of bitcoins going to stop increasing, it&#8217;s going to start <em>decreasing<\/em>. In fact, the bitcoin folks are <a href=\"https:\/\/en.bitcoin.it\/wiki\/FAQ#But_if_no_more_coins_are_generated.2C_what_happens_when_Bitcoins_are_lost.3F_Won.27t_that_be_a_problem.3F\">completely open about this<\/a>:<\/p>\n<blockquote><p>Because of the law of supply and demand, when fewer bitcoins are available the ones that are left will be in higher demand, and therefore will have a higher value. So, as Bitcoins are lost, the remaining bitcoins will eventually increase in value to compensate. As the value of a bitcoin increases, the number of bitcoins required to purchase an item decreases. This is a deflationary economic model. As the average transaction size reduces, transactions will probably be denominated in sub-units of a bitcoin such as millibitcoins (&#8220;Millies&#8221;) or microbitcoins (&#8220;Mikes&#8221;).<\/p><\/blockquote>\n<p>Is it really a problem? Maybe. I don&#8217;t know enough about economics to have a strong opinion, but it&#8217;s certainly enough to be worrying. The argument runs as follows:<\/p>\n<p>When the supply of money is decreasing, it means that there&#8217;s less money available for making purchases &#8211; which means that the value of the money needs to increase. A bitcoin will need to be able to purchase <em>more<\/em> today than it did yesterday. And that is a serious problem.<\/p>\n<p>Economies work best when money is kept moving. In an ideal world, money isn&#8217;t an asset at all: it&#8217;s just a medium. You want people to make products, sell them to other people, and then <em>use<\/em> the money that they made. If they take their money and hide it in a mattress, there&#8217;s going to be less activity in the economy than if they used it. The whole idea of money is just to make it easier to match up producers and consumers; when money is taken out of the system, it means that there&#8217;s potential economic activity that can&#8217;t happen, because the money to make it happen has been withdrawn from the system.<\/p>\n<p>This is why most governments try to run their economies so that there is a moderate amount of inflation. Inflation means that if you take your money and hide it in your mattress, its value will slowly decrease. It means that withdrawing your money from the system is a losing proposition! So a bit of inflation acts as a motivation to put your money to work producing something.<\/p>\n<p>Deflation, on the other hand, does the opposite. Suppose that today, I&#8217;ve got 10 bitcoins and 100 dollars, and they&#8217;re worth the same amount of money. I&#8217;m going to go buy some bacon. I can spend $10 buying bacon, and keep $90 and 10 bitcoins; or I can spend 1 bitcoin, and key 9 bitcoins and $100. So overall, I&#8217;ve got the equivalent of $190 and some bacon.<\/p>\n<p>Next week, the value of bitcoins has risen to $15\/bitcoin. If I spent my dollars to buy bacon, then now I&#8217;ve got $150 worth of bitcoins, $90 worth of dollars, and some bacon &#8211; my total asserts are equal to $240 and some bacon. If I spent my bitcoin, then I&#8217;d have $135 worth of bitcoins, $100 worth of dollars, and some bacon &#8211; $235. If I used my bitcoin to buy stuff, I lost $5.<\/p>\n<p>That means that I&#8217;m strongly motivated to <em>not<\/em> use my bitcoins. And that&#8217;s not a good thing. That kind of deflation is very harmful to an economy &#8211; for example, look at Japan during the 1990s and 2000s, and to some extent still today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the last bitcoin post. Here I&#8217;ll try to answer the questions that led me to start writing about it. What is MtGox? What happened there? MtGox was a company that maintained bitcoin wallets. The basic idea is that they acted like a bank\/broker for bitcoins. If you want to get bitcoins, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[270,269],"tags":[],"class_list":["post-2893","post","type-post","status-publish","format-standard","hentry","category-bitcoin","category-economics-good-math"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-KF","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=2893"}],"version-history":[{"count":5,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2893\/revisions"}],"predecessor-version":[{"id":3376,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/2893\/revisions\/3376"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=2893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=2893"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=2893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}