Bitcoin Series 18: Why Bitcoin miners aren't incented to 51% attack

Background:

Bitcoin miners are not mining to 'discover' bitcoins as in the popular imagination, they are competing to be the bookkeepers of the bitcoin ledger, something for which they are rewarded with bitcoins.

Bitcoin's central technical breakthrough is that these bookkeepers do not need to know or trust each other and, so long as one party does not account for more than 50% of the computing power in the bookkeeping network, the ledger is safe from monkey-business.   Safer, in fact, than any ledger ever previously created by man - it is distributed on hundreds of thousands of computers throughout the world and it is mathematically impossible to reverse it.

As in most human systems, once one party gains more than 50% of the computing power of the network, then the story changes -- they pick up some level of control over the ledger as follows:

Things that they STILL can't do even in a 51%+ scenario:

- Spend money out of any account other than their own 

- Reverse past transactions

Things that they CAN do (not certainly, but probabilistically):

- Block certain transactions from entering the system going forward

- Reverse transactions going forward and use that as an opportunity to try to double spend their own coins.  

In other words, spend them at one merchant, get the goods, reverse the charge and re-spend them somewhere else (before anyone notices because as soon as the attack becomes known bitcoin values will plummet and everyone will stop honoring bitcoin transactions until it shakes out).

To put in in conventional terms, from the time a miner has 51% control of a cryptocurrency, they can:

- Deny transactions from anyone
- Chargeback their own transactions

So the 51% controller becomes something like Visa or Mastercard, but more limited in his or her powers.

Double-spending:

There is no doubt that a 51% scenario in the bitcoin change would be very problematic and hurt trust in the system.   

I am going to argue that it is unlikely for an *economically motivated* (as opposed to a politically motivated) miner to be incented to execute such an attack.   

The logic is as follows:

(1) A miner that is controlling around 50% of the network, is earning about 75 bitcoins an hour or 1,800 bitcoins per day.   At today's prices of about $800 per coin that is $1.44M per day or $525M per year

(2) I don't know exactly what capitalization rate to put on those earnings but it is obviously an immensely valuable franchise and one that would collapse in value if one executed the attack.   Even if you only valued it at 3 months worth of revenue, that is over $100M coming in the door.   If you can maintain that position for a couple of years, it is over $1B.

UPDATE:  What about costs that would reduce the value of this franchise?  Mining hardware, electricity, etc.   From the perspective of executing the attack, hardware is a sunk cost not relevant.  Electricity is fair to be counted against the revenues, but I don't think it changes the analysis at an order-of-magnitude level.  H/T @gendal for raising the question.

(3) In order for a double spend attack to be worth MORE than that franchise, someone has to sketch out a plausible scenario where you could extract more than that in double-spending.   Let's be really conservative and try to double spend $100M in bitcoins (about 3 months of mining revenue).

(a) First condition:  We have to already be holding $100M in bitcoins and have decided that, even though we are bitcoin enthusiasts, that it isn't easier to just hold them and hope for price increases *in addition* to our super mining franchise.

(b) Second condition:  What are we going to spend them on?  Obviously products are out of the questions.   You are not going to double-spend $100M on sheets from Overstock.   Real estate is also out of the question.   Double-spending is still regular old garden-variety fraud so if you execute this scam and end up with a mansion, it will be very easy for the authorities to show up at your door.

UPDATE:  In the future, individual colored coins that represent assets might be individually very valuable and might provide a mechanism to double-spend.   H/T @kentindell for raising the point.   Counter-point:  By then, a 50% position on the blockchain will be even more valuable

(c) Third condition:  You need to be able to do the transaction, particularly the second one, FAST.   People will quickly realize the reversal and start not honoring transactions.   And if you don't do a second transaction, you are not double-spending, you are single-spending (again, bitcoins will collapse in value if an attack like this was actually implemented).

(d) Realistically, the only candidate for this is cash.    But $100M is close to the total daily volume of all exchanges worldwide.   None of them can cash out $100M, let alone $100M x 2, let alone $100M x 2 quickly, let alone $100M x 2 to your bank account without leaving a very clear record that will send you to jail.

Not So Fast

There was a small sleight of hand in the above.   Most large miners are actually pools which means the mining pool operator is not capturing all the revenue.  So perhaps an individual controlling employee of the mining pool might be incented to try this stunt, even if the pool is not.

Still - even if you cut the target double spend to $30M, it still very hard to imagine that you could pull this off in the real world.   You would still be trying to cash out via exchanges and that is a lot of liquidity to pull out -- close to their daily volumes

Real World and Conclusions:

A few weeks ago, a mining pool reached 41% of the computational power.   As the theory would predict, the miners in the pool started pulling out out of the pool and the pool operators made a statement that they would voluntarily limit their share.   Everyone in the ecosystem has much more to lose by going over 50% than they have to gain.

Now, I am not a pollyanna.  A malicious operator who would want to damage the network could try to execute a 51% attack and not care about the economic rewards.  

At this stage though for bitcoin, that would require spending or giving up hundreds of millions of dollars a year to do so, so that is really in the range of malicious nation-states only.  

The answer, of course, is (a) pulling more mining power to the network to make it even more cost prohibitive for anyone to attack it and (b) building in logic to mining clients to automatically pull away from pools that pass a certain concentration threshold.

Note, fans of alternative cyptocurrencies -- this is one of the strongest cases for consolidation around the bitcoin blockchain.   The small alt-coins are very vulnerable to these attacks -- someone could attack a top 20 coin with far far smaller investment and that will be painful day for alt-coins.    For coins that are moving real economic value, I suspect we will consolidation of mining power on one blockchain or, at most, a small number of blockchains and with additional coin 'features' built on top of those more secure chains. 

For the full bitcoin series: ledracapital.com/bitcoin
Twitter: @polemitis and @ledracapital
Ledra bitcoin digest newsletter: ledracapital.com/subscribe

Posted on January 31, 2014 and filed under Bitcoin.

Bitcoin Series 17: Bitcoin loves our freedoms

Photo Credit: Diesel Demon

Photo Credit: Diesel Demon

TL;DR:  If you hate our "freedoms", you will hate bitcoin.

Adult entertainment has driven early usage of a wide array of technical innovations, from VCRs to online video streaming to online video monetization, but has been surprisingly slow to adopt bitcoin.

This weekend the inevitable happened when Porn.com (obviously very NSFW) announced that bitcoin accounts for 25% of their sales, just a few weeks after they adopted it as a payment mechanism.

An except from a safe for work article from the Guardian:

Porn.com started taking bitcoin for its premium services in December, and the currency rapidly came to account for 10% of its sales. But in early January, a post on Reddit's Bitcoin subforum took the news viral, and after a spike where the currency accounted for 50% of its sales, the bitcoin trade settled down at 25%.

Some of the increase will be bitcoin fans rushing to support a site that takes their preferred form of payment, but David Kay, the marketing director at Porn.com's parent company Sagan Ltd, argues that there are other reasons as well:

"Privacy and confidentiality are paramount when joining an adult service for the majority. In general you can surf porn.com for free, anonymously but if you want to upgrade to the premium services you have to enter a method of payment which historically has been credit card. In order for the transaction to process you have to include your full name and address. This is not necessary with BTC."

I don't want to overplay the adult angle the way the Guardian does because it is definitely not bitcoin's killer application (bitcoin is a foundational technology and this is one of thousands of usage cases), but it is a great case study in how bitcoin helps the internet achieve its potential to fully substitute for and improve on offline options and, quite frankly, increase personal freedom.

Imagine our protagonist Sally Sue is looking for videos of Hunky Hunks and what her options might have been over the years.  (If this example does not resonate with you, substitute "practicing your unapproved religion in a repressive regime" as all the principles and mechanisms are the same.)

Circa 1485:  Obviously a witch; burn at stake.

Circa 1885:  Wanton woman; not to be seen in polite company.

Circa 1995:  Seedy shops in Times Square in semi-dangerous neighborhoods staffed by men with questionable facial hair.   Chance that Sally is going to stop in on the way to Penn Station after work?  0%

So, very little progress for a few hundred years until the internet comes along.

Circa 2013:  Free porn widely available online.   Paid offerings, however, bring up any of the following risks:  

  1. Husband, boyfriend, parents, roommates see the credit card statement and disapprove
     
  2. HunkyHunks.com sells or leaks data to unsavory characters 
     
  3. Site starts recurring billing (and who really wants to have the discussion with their credit card company that, no, they did not approve the $29.99/month subscription to HunkyHunks.com for the next 3 years?)
     
  4. Even if none of the above happen, it is on your 'permanent record' potentially available to thousands of people over time at the merchant, the credit card company, the NSA and possibly someday your credit scoring firm.

Circa 2014 (post Bitcoin):  Commerce between trust-less parties is enabled:

  1. No name, address, email or phone needs to be shared with the fine men of HunkyHunks.com
     
  2. No pull capabilities on your wealth (recurring billing) given to random strangers (aka the back office of HunkyHunks)
     
  3. Small micro-payments for weekly, daily, hourly passes are possible
     
  4. No permanent record*

And the analogy holds perfectly if you are trying to organize a group to pay donations to support a priest in an oppressive regime.

*Note:  It is true that in most cases bitcoin is pseudononymous and less anonymous than cash (unless you work at it), but it is much more confidential than credit cards. 

I hesitated in writing this article because bitcoin is just starting to shake off its drugs, sex and violence undertones and show its utility in non-anonymous and transparent applications.  

But there are still many times and many reasons why perfectly good people for perfectly good reasons will not want to give VISA/Mastercard/random merchants (and everyone around those parties) total knowledge of their activities and this is too good a case study to pass up.

For the full bitcoin series: ledracapital.com/bitcoin
Twitter: @polemitis and @ledracapital
Ledra bitcoin digest newsletter: ledracapital.com/subscribe

 

Posted on January 20, 2014 and filed under Bitcoin.

Bitcoin Series 16: So you want a bitcoin, eh?

An occupational hazard of our newfound interest in bitcoin is that I am asked weekly "Should I buy a bitcoin?" or "How should I buy a bitcoin?"

On the first question, I take no position - it is between you, your spouse, your accountant and your god.

On the latter question, I made a little infographic below.

Some side notes:

(1) Anyone who has the first clue about capital markets will read this chart and understand immediately why bitcoin is so volatile today.    The whole process of buying and selling bitcoins today is absurd relative to the well-established, very liquid currency markets that bitcoin interacts with.    That will change with time as this process becomes easier and more institutionally friendly.
 

(2) If someone with better graphic design skills wants to clean this up, I would be happy to send you the PPT.   I will have someone make an embeddable version tomorrow in any case;  In the meantime, I think the JPG is downloadable and you can click to enlarge.
 

Very Important Caveats:  (1) We do not care if you buy bitcoins (2) We are not a broker-dealer, broker, financial advisor or licensed in any way to give you financial advice (3) This is most certainly not a recommendation to buy, sell, short, trade bitcoinslitecoinsbbqcoins or StalwartBucks – you could lose all your money in one of many ways including, but not limited to: your incompetence, poor security, poor backups, software bugs, counterparty risk, exchange rate risk, liquidity risk , regulatory risk,  and more! You are 100% buying bitcoins at your own risk and on your own initiative. (4) Bitcoins are not anonymous and exchanges and online wallets even less so.   If you are going to use bitcoins to try to cheat on your taxes / divorce settlement / child support, you are a moron. (5) These are not the only ways to buy bitcoins (just some of the more popular ones) nor are we endorsing these companies – any of them theoretically could be hacked, run away with your money or be shut down by regulators / coopted by the ‘system’. (4) Ledra Capital, our affiliates and our principals might hold any number of old-timey or digital currencies at any time long, short or falling out of our wallet all crumpled up after a long night of drinking.   If we knew how they would trade against each other in the future, we would be having umbrella drinks on our private islands, not tweeting about bitcoin.

For the full bitcoin series: ledracapital.com/bitcoin 
Twitter: @polemitis and @ledracapital
Ledra Bitcoin Digest email newsletter: ledracapital.com/subscribe


 

Posted on January 7, 2014 and filed under Bitcoin.

Bitcoin Series 15 - The discontinuity that is bitcoin

I had known about bitcoin for years.    Along with many other 'sophisticated' people in tech and finance, I dismissed it as a tulip-bulb-libertarian-gold-bug-survivalist-geek fad of no importance.   Like you, my savvy [banker / economist / journalist / person-who-does-not-like-their-cheese-moved], I had seen this movie before.   I knew the generally sordid history of e-gold, Liberty Reserve and other private digital currencies and was certain that bitcoin would not be long for this world.   So I spent some time on Wikipedia and Reddit, snorted at the lunacy of the true believers, and years passed.   

In the summer of 2013, I was quizzed about bitcoin by a colleague at the University of Nicosia who had developed an interest.    I gave him the by-the-books answer of how it works and asked him if he had developed a drug habit that I was unaware of.  He persisted.   So  I spent a couple of afternoons playing with the bitcoin client, buying a bitcoin, reading up on bitcoin and generally finding it technically cool.   But I was still a virgin  - sending bitcoins to yourself does not exactly set the pulse racing.  

One Saturday afternoon here in New York, after making a bowl of cheese fondue with my wife, I called my colleague in Cyprus and we decided to play around a bit with bitcoin.   It was 2pm New York time and 9pm Cyprus time.   I was (impressively) still in my pajamas and I am sure my friend was watching soccer on TV.  

In any case,  I asked for one of his public addresses and sent him 0.1 bitcoins, which at the time was about $20, using the reference bitcoin-qt client .   5 seconds later, he said 'yup, I have it'.    If I am not mistaken, the transaction fee was $0.20 (0.001 bitcoins).

There have been a handful of times in my life when I have felt a discontinuity in the tech universe.    In the 1980s, when my mother, an executive at Bell Atlantic, brought home the 1st car phone (the size of a backpack).  In 1993, when I went to college and discovered gopher and email in the school's computer lab.   In 2007, when I grabbed a friend's new iPhone in a bar and started streaming full-screen video.

That afternoon with bitcoin easily makes my top five - the world moved discontinuously and my brain struggled to re-adjust. 

Imagine what just happened.    I transferred $20 to an individual 7,000 miles away at 9pm on a Saturday night in a matter of seconds,  at a trivial transaction fee, without any intermediary to approve, block or reverse the transaction.   And that transaction would have taken the same amount of time and cost the same amount of money if my friend was in Manhattan, Illinois, Cyprus, Moscow, Tokyo, Nigeria, Bangladesh or Patagonia or if I were sending $2, $20, $200, $2,000 or $2M.     The only thing required was an internet connection.

Now we can argue all day long about if bitcoin is a currency, if its volatility matters, if it is a good store of value, if you should use it as a national currency, if it has network effects and 100 other nuances.  While these are important topics, they are ultimately irrelevant to the big picture.  

Seeing bitcoin in action is like seeing email for the first time.  It has been a long road from my first email in college to Gmail. It has been 34 years since the SMTP protocol was published and there is still no universal email equivalent to certified mail and when Amazon sends me a package, it comes with UPS or USPS, not through email.  Having said that, I knew from my very first email that I would send a lot more emails in my life and write a lot fewer letters and postcards. 

Bitcoin is like that.    It won't replace the financial system, the Fed or the nation-state.    It will supplement the financial system in a big and important way, push it to be more innovative and efficient and, finally, will merge with it, in the same way that IP delivery has crept into telephony and video infrastructure over time.   To start, we will use it internationally, we will use it for micro-payments, we will use it for new types of contracts, we will use it in dangerous parts of the world and our machines will use it, first to help us, and then to coordinate when they rise up against us.

But if you think that this idea can be 'unthought', that somehow I can erase from my memory how I dropped $20 in my friend's pocket in Nicosia in a few seconds, without $30 of fees for each of us, plus 2%-3% of currency spreads in each direction plus 2-3 days waiting for the weekend to end and the bankers to get back to work plus forms and approvals, well, I just don't see how that happens.   Bitcoin might be worth $10, $100, $1,000, $10,000 or $100,000; it might be bitcoin or some other coin that ultimately 'wins'; but this idea is here to stay...
 

For the full bitcoin series: ledracapital.com/bitcoin
Twitter: @polemitis and @ledracapital
Ledra Bitcoin Digest email newsletter: ledracapital.com/subscribe

Posted on January 7, 2014 and filed under Bitcoin.