After the multimillion dollar Bitcoin Gold 51% attack a few weeks ago, I was curious what an attack like this costs against other currencies. I calculated the cost of renting hashing power from NiceHash to complete an attack.
I found it surprising that it is possible to rent enough hashing power for many of the smaller currencies, which makes me question the use of PoW for smaller coins. Please note that the attack costs do not include the money you earn in the form of block rewards, so in many cases the costs will actually be substantially lower.
Yes, that is correct. If it is > 100%, there is enough hashing power available to complete the attack, but you could be outbid during the attack. NiceHash has the concept of fixed contracts that allow you to lock in a price for up to 24 hours and no one can outbid you. Typically ~30% of the hashing power is available this way.
This is very interesting - I was wondering about this too. Assumed it was too high to be reasonable but guess I'm wrong. The question is: what's the cost vs acquiring the same qty of $ by being a good citizen. I suppose first you need to have a lot of crypto to double spend it.
you can't easily make a million from a single dollar that you can double spend. having lots of crypto surely helps reduce the time it takes to satisfy your greed.
Nice work. Its really important to consider this for those buying/holding crypto currency. Consider all coins using the same function to be the same family and the one with the most work and power to be the most valid. So there are sha256 coins, scrypt coins, equihash coins, etc. In the case of sha256 the most immune to attack is bitcoin. Everything else is massively vulnerable. In the case of scrypt, it’s litecoin. Everything else you should not hold because it can be swamped by the hashing power mining litecoin atm. So on.
This is a little different from how people have been told to think about it before which is just focusing on the blockchain itself rather than the mining power behind any given variation/fork/whatever of block chain. Ps. And that probably should be taken a step further. If you have families of coins that are all GPU mined, then you need to consider the tota GPUs mining them and the hashing power of those GPUs and the ability for them to switch functions. Now GPUs are a blip on ASICs so for the predominantly asic mined coins this doesn’t matter.
> Consider all coins using the same function to be the same family and the one with the most work and power to be the most valid. So there are sha256 coins, scrypt coins, equihash coins, etc. In the case of sha256 the most immune to attack is bitcoin. Everything else is massively vulnerable.
This is a really good point, and part of what I am hoping people come to understand from this website. Ignoring the risk of renting power from NiceHash to launch an attack, large existing miners could easily switch to a smaller coin for a few hours to attack it, and typically it would be very profitable.
I wonder whether the indirect benefits of discouraging competing coins would outweigh the costs of loss of confidence in crypto currency is in general (and the computer cost).
Exactly. This is also why I think the trend to be "ASIC-resistant" is misguided and should be considered harmful.
All GPU-mined coins (except the hashrate-dominant one: Ethereum) are massively vulnerable to majority attacks because of the huge pre-existing installed based of GPU miners. As I said in https://news.ycombinator.com/item?id=17173774 the only solid defense is for each coin to implement an ASIC-friendly algorithm that is unique to this coin, so there is no risk of 51% attacks from a pre-existing installed based of miners.
Just want to note that there’s no risk in holding a token due to 51% attacks (except for the external issues such as loss of value and hard fork proposals). No one can spend your assets, it’s just another transaction may double spend (so you could lose incoming tokens).
> In some cases this can be quite significant, and reduce the attack cost by up to 80%. I get how block rewards bring the net cost down, but where does the 80% number come from?
> I get how block rewards bring the net cost down, but where does the 80% number come from?
It's a rough number - In the case of Bitcoin, the miner receives 12.5 BTC (+ transaction fees that I will ignore for now) per block, with a block time of 10 minutes, so they will receive 75BTC per hour, or $544,275. In this case it wouldn't be possible to actually rent anywhere near this much hash power at this price, but for smaller coins it would be possible to do so.
One of the questions I've been chewing on is whether the supply of *coins is effectively infinite. (If it is, that means substantial downward pressure on prices, as available speculative capital gets smeared out over the various options.) This seems like a pretty clear limitation: if a bad actor can crush a small currency, then we should see a lot fewer small currencies. Do you (or others) have a sense of where the equilibrium might be? Clearly if an attack can be mounted for a few hundred bucks, jerks will do it just for the lulz, which suggests that there won't be a long tail of cryptocurrencies. But is it also plausible that a major Bitcoin player might try to smash something like Bitcoin Cash just to drive activity back to a more major currency, thereby benefiting their holdings?
Supply in token count is effectively infinite, yes. But what's the supply in VALUABLE tokens?
The availability of gold in the galaxy Andromeda doesn't affect gold prices on earth. Not equivalent analogy, but related - your market will only be hurt if there's economically accessible supply of equivalent or competing assets that fulfills the same need. Valueless tokens don't fulfill the same need.
The page mentioned lists 79 tokens with a nominal value, 65 of them over $1m. All of these tokens were valueless at one point. Another site lists 862 coins with nominal values of over $1m: https://coinmarketcap.com/
This suggests there's no obvious limitation on the creation of economically unproductive speculative instruments. Even though they all start at $0, any new token has an unknown upside, as the price can only go up. For some that's apparently a compelling bet. Will this process only stop when people stop looking for the next Bitcoin? Because for them, a valueless token definitely fills a "get in on the ground floor" need. And there are a lot of people doing that right now: https://www.google.com/search?q="the+next+bitcoin"
Who are you defrauding? Under what jurisdiction? The ability to be 51% attacked is a feature of the design. You expect all the actors to commit enough computing capacity to prevent such an attack as it’s in their own best interest.
You can't directly steal or create coins. Except for the coins you get for your branch of the blockchain if it becomes accepted. The trick is that you can double-spend.
The downsides? You need capital to spend and double-spending is fraud.
The elephant in the room is that with the exception of Ethereum, all GPU-mined coins can relatively easily be "51%-attacked" by a small fraction of GPU miners.
There are ~10 million GPUs mining cryptocurrencies in the world today. Because the majority of them mine Ethereum (5-10 million are needed to generate 250 TH/s), it means the other coins can easily be overpowered and attacked if a small fraction of GPU miners decided to do so. For example look at Monero: 400 MH/s of CryptoNightV7 hashrate means there are 400k-800k GPUs behind it, therefore only 4-8% of the pre-existing worldwide GPU mining capacity is needed to attack it. In a way we could say Monero is vulnerable to a "4-8% attack!" The best way to defend a coin from this scenario is for it to implement a unique PoW algorithm that is very ASIC-friendly so that GPU miners couldn't overpower it. Of course the same attack scenario would exist if there is a large pre-existing installed based of this ASIC, so the PoW algorithm must be unique. For example Bitcoin Cash could currently be attacked by 10% of Bitcoin miners as they are both mined by the same SHA-256 ASICs. The irony is that the misguided trend to try to be "ASIC-resistant" is actually worsening the value proposition of all these GPU-mined coins as it makes them more vulnerable to the very real possibility of 51% attacks...
Having a unique ASIC algo would raise the problem of the traditional 51% attack though.
Whichever fab produced it would have a huge hardware advantage in mining. They would mine themselves and just use 51% of their physical units (versus renting on a time-slot market) to do the attack.
...which kills the whole point of the attack. you already poured hundreds of thousands of dollars into fabbing those ASICs, which only work for that specific cryptocurrency. why would you do a 50% attack and tank its price? the only reason 50% attacks like on BTG is viable is that you can rent hashpower (no investment!).
Price crashes do seem to be a disincentive for a 51% attack for owned miners. How much would the price tank versus the gain possible with an attack? The two don't seem interlinked strongly.
The price-tank disincentive is multiplied by the block reward size -- the lower the reward, the the less the miner would care. The price-tank disincentive also is attenuated by future equilibrium mining. If you make the first ASIC and don't attack, future manufacturers will pop up as mining becomes more profitable. If you tank the price, mining profits may become low, but you thwart competition. Attack gains are not connected strongly to the above disincentives. Attack gains are higher the more often you can cycle the coin -- you can actually steal way more than the market cap of the coin theoretically by cycling exchanges / other mechanisms of payment. Then you start running your 51% attack and reverse hours, days, weeks of transactions. I see your point that there is some disincentive for a 51% attack, but I'm not sure that's enough.
This point doesn't seem to make sense. If you have 25 potential attackers, then for there to be an actual 51% attack, more than half of them (13/25) would have to band together to actually reach 51%. Unless the assumption is that the 25 parties buy chips and sit on them indefinitely without contributing to the network hash rate.
This is a totally misleading calculation for the largest currencies. It's literally quoting the spot price for what's available on NiceHash and then dividing by the fraction you'd have of the total hash rate.
In reality, as you continued buying up hashing power, the price of the remaining hashing power would go up precipitously. This is basic supply and demand.
That is why I included the NiceHash % for each coin. NiceHash offers fixed price contracts, typically for ~30% of their supply that you can lock in for up to 24 hours.
It's definitely a lot less do-able for the larger currencies - I still think PoW is a good option for them honestly. This was more to show that 51% attack risk is problematic for smaller coins, and I'd love to hear a discussion on the best way to fix this.
I wonder if we could see a spiral that effectively kills off smaller coins?
> Exchanges respond to these `weak` coins by increasing their confirmation requirements. Some of the really small coins would probably need huge numbers of confirmations.
> Lots of confirmations, which would likely damage the value of the coin.
> Lower price would reduce the miner hashrate
> Lower hashrate would further lower cost of 51% attack.
> Exchanges increase confirmations further -REPEAT-
> I'd love to hear a discussion on the best way to fix this.
Proof of stake (still problematic for very small cap) or proof of ID (my favorite) using something like the e-estonia crypto ID system. You can prove every miner is a unique person, award them coins on a deterministic pseudo-random order.
Something like proof of ID would be amazing, but like you said it requires a secure digital id system to exist first, which few countries have. Is there anyone building something like this?
If you're going to use proof of ID, doesn't that kind of remove any need for a blockchain?
How do you suppose you can have a censorship resistant currency if all a bad state actor has to do is punish anyone who mines a transaction they don't like.
I like crypto, but the greatest danger of it seems to be the potential for economic enslavement(we don't like you, therefore you can't buy bread anymore) through censorship and oppression.
Doing a 51% attack on a major coin, and actually profiting from it, is much more complicated than this chart implies. Here are some of the problems you'll run into:
1. NiceHash doesn't have anything like the hashpower you need to attack a major coin such as BTC or ETH. The chart admits that NiceHash has only 2% of the capacity you need to accomplish this on Bitcoin. You'll need to start buying ASIC hardware or graphics cards to cover the other 98%. Both of those are hard to obtain in very large quantities quickly. 2. Since you have to buy the hardware, you can expect to pay much more than the NiceHash prices imply. Bitmain is one of the major suppliers of such hardware, so let's use their prices as an example. One of their top Bitcoin ASICs is a 14 TH/s unit that costs about $1,000 [1]. So you need about 2.5 million of these units at a cost of 2.5 billion dollars. Not that Bitmain has the capacity to fill such an order. 3. The cost of those ASICs is just the beginning. Have you seen photos of those Chinese data centers that have racks of mining ASICs on shelves? Each of those data centers has maybe a few percent of Bitcoin's hash rate, so you'll need to build something at least 30x larger. Your electric bill alone will exceed the GDP of some small countries. Since you've already spent billions of dollars on ASICs, hopefully you have some money left to pay it and hire a data center ops team. 4. How fast can you build all this out? Bitcoin's hash rate has grown 30% over the last month[2]. You might sink billions of dollars into this project only to discover that you've come up short. 5. Congratulations, you can now make a few million dollars by 51% attacking the blockchain. You would, for example, deposit some bitcoins with a bunch of exchanges, sell them, withdraw dollars, and then use your hashpower to unwind those deposits and put the bitcoins back into your own wallet. It'll take a few hours (or less) for every exchange to notice what you're doing and freeze withdrawals. The bitcoin price will free-fall as everyone wonders about how to prevent this next time. You may or may not be arrested and charged with wire fraud. You're done! [1] https://shop.bitmain.com/product/detail?pid=0002018052320100...
[2] https://blockchain.info/charts/hash-rate
Comments (218) 44 threads
I found it surprising that it is possible to rent enough hashing power for many of the smaller currencies, which makes me question the use of PoW for smaller coins.
Please note that the attack costs do not include the money you earn in the form of block rewards, so in many cases the costs will actually be substantially lower.
This is a little different from how people have been told to think about it before which is just focusing on the blockchain itself rather than the mining power behind any given variation/fork/whatever of block chain.
Ps. And that probably should be taken a step further. If you have families of coins that are all GPU mined, then you need to consider the tota GPUs mining them and the hashing power of those GPUs and the ability for them to switch functions. Now GPUs are a blip on ASICs so for the predominantly asic mined coins this doesn’t matter.
This is a really good point, and part of what I am hoping people come to understand from this website. Ignoring the risk of renting power from NiceHash to launch an attack, large existing miners could easily switch to a smaller coin for a few hours to attack it, and typically it would be very profitable.
All GPU-mined coins (except the hashrate-dominant one: Ethereum) are massively vulnerable to majority attacks because of the huge pre-existing installed based of GPU miners.
As I said in https://news.ycombinator.com/item?id=17173774 the only solid defense is for each coin to implement an ASIC-friendly algorithm that is unique to this coin, so there is no risk of 51% attacks from a pre-existing installed based of miners.
Continue this thread — 3 replies
Continue this thread — 4 replies
> In some cases this can be quite significant, and reduce the attack cost by up to 80%.
I get how block rewards bring the net cost down, but where does the 80% number come from?
It's a rough number - In the case of Bitcoin, the miner receives 12.5 BTC (+ transaction fees that I will ignore for now) per block, with a block time of 10 minutes, so they will receive 75BTC per hour, or $544,275. In this case it wouldn't be possible to actually rent anywhere near this much hash power at this price, but for smaller coins it would be possible to do so.
One of the questions I've been chewing on is whether the supply of *coins is effectively infinite. (If it is, that means substantial downward pressure on prices, as available speculative capital gets smeared out over the various options.) This seems like a pretty clear limitation: if a bad actor can crush a small currency, then we should see a lot fewer small currencies.
Do you (or others) have a sense of where the equilibrium might be? Clearly if an attack can be mounted for a few hundred bucks, jerks will do it just for the lulz, which suggests that there won't be a long tail of cryptocurrencies. But is it also plausible that a major Bitcoin player might try to smash something like Bitcoin Cash just to drive activity back to a more major currency, thereby benefiting their holdings?
The availability of gold in the galaxy Andromeda doesn't affect gold prices on earth. Not equivalent analogy, but related - your market will only be hurt if there's economically accessible supply of equivalent or competing assets that fulfills the same need.
Valueless tokens don't fulfill the same need.
This suggests there's no obvious limitation on the creation of economically unproductive speculative instruments. Even though they all start at $0, any new token has an unknown upside, as the price can only go up. For some that's apparently a compelling bet.
Will this process only stop when people stop looking for the next Bitcoin? Because for them, a valueless token definitely fills a "get in on the ground floor" need. And there are a lot of people doing that right now: https://www.google.com/search?q="the+next+bitcoin"
What are the downsides? Is this illegal?
Continue this thread — 5 replies
Continue this thread — 2 replies
The downsides? You need capital to spend and double-spending is fraud.
Continue this thread — 6 replies
Continue this thread — 8 more replies
There are ~10 million GPUs mining cryptocurrencies in the world today. Because the majority of them mine Ethereum (5-10 million are needed to generate 250 TH/s), it means the other coins can easily be overpowered and attacked if a small fraction of GPU miners decided to do so. For example look at Monero: 400 MH/s of CryptoNightV7 hashrate means there are 400k-800k GPUs behind it, therefore only 4-8% of the pre-existing worldwide GPU mining capacity is needed to attack it.
In a way we could say Monero is vulnerable to a "4-8% attack!"
The best way to defend a coin from this scenario is for it to implement a unique PoW algorithm that is very ASIC-friendly so that GPU miners couldn't overpower it. Of course the same attack scenario would exist if there is a large pre-existing installed based of this ASIC, so the PoW algorithm must be unique. For example Bitcoin Cash could currently be attacked by 10% of Bitcoin miners as they are both mined by the same SHA-256 ASICs.
The irony is that the misguided trend to try to be "ASIC-resistant" is actually worsening the value proposition of all these GPU-mined coins as it makes them more vulnerable to the very real possibility of 51% attacks...
Whichever fab produced it would have a huge hardware advantage in mining. They would mine themselves and just use 51% of their physical units (versus renting on a time-slot market) to do the attack.
The price-tank disincentive is multiplied by the block reward size -- the lower the reward, the the less the miner would care. The price-tank disincentive also is attenuated by future equilibrium mining. If you make the first ASIC and don't attack, future manufacturers will pop up as mining becomes more profitable. If you tank the price, mining profits may become low, but you thwart competition.
Attack gains are not connected strongly to the above disincentives. Attack gains are higher the more often you can cycle the coin -- you can actually steal way more than the market cap of the coin theoretically by cycling exchanges / other mechanisms of payment. Then you start running your 51% attack and reverse hours, days, weeks of transactions.
I see your point that there is some disincentive for a 51% attack, but I'm not sure that's enough.
Continue this thread — 2 replies
In reality, as you continued buying up hashing power, the price of the remaining hashing power would go up precipitously. This is basic supply and demand.
It's definitely a lot less do-able for the larger currencies - I still think PoW is a good option for them honestly. This was more to show that 51% attack risk is problematic for smaller coins, and I'd love to hear a discussion on the best way to fix this.
It would've made more sense to me to show the required capacity / available NiceHash capacity.
> Exchanges respond to these `weak` coins by increasing their confirmation requirements. Some of the really small coins would probably need huge numbers of confirmations. > Lots of confirmations, which would likely damage the value of the coin. > Lower price would reduce the miner hashrate > Lower hashrate would further lower cost of 51% attack. > Exchanges increase confirmations further
-REPEAT-
Proof of stake (still problematic for very small cap) or proof of ID (my favorite) using something like the e-estonia crypto ID system. You can prove every miner is a unique person, award them coins on a deterministic pseudo-random order.
Continue this thread — 4 replies
I like crypto, but the greatest danger of it seems to be the potential for economic enslavement(we don't like you, therefore you can't buy bread anymore) through censorship and oppression.
Continue this thread — 1 reply
Continue this thread — 3 more replies
1. NiceHash doesn't have anything like the hashpower you need to attack a major coin such as BTC or ETH. The chart admits that NiceHash has only 2% of the capacity you need to accomplish this on Bitcoin. You'll need to start buying ASIC hardware or graphics cards to cover the other 98%. Both of those are hard to obtain in very large quantities quickly.
2. Since you have to buy the hardware, you can expect to pay much more than the NiceHash prices imply. Bitmain is one of the major suppliers of such hardware, so let's use their prices as an example. One of their top Bitcoin ASICs is a 14 TH/s unit that costs about $1,000 [1]. So you need about 2.5 million of these units at a cost of 2.5 billion dollars. Not that Bitmain has the capacity to fill such an order.
3. The cost of those ASICs is just the beginning. Have you seen photos of those Chinese data centers that have racks of mining ASICs on shelves? Each of those data centers has maybe a few percent of Bitcoin's hash rate, so you'll need to build something at least 30x larger. Your electric bill alone will exceed the GDP of some small countries. Since you've already spent billions of dollars on ASICs, hopefully you have some money left to pay it and hire a data center ops team.
4. How fast can you build all this out? Bitcoin's hash rate has grown 30% over the last month[2]. You might sink billions of dollars into this project only to discover that you've come up short.
5. Congratulations, you can now make a few million dollars by 51% attacking the blockchain. You would, for example, deposit some bitcoins with a bunch of exchanges, sell them, withdraw dollars, and then use your hashpower to unwind those deposits and put the bitcoins back into your own wallet. It'll take a few hours (or less) for every exchange to notice what you're doing and freeze withdrawals. The bitcoin price will free-fall as everyone wonders about how to prevent this next time. You may or may not be arrested and charged with wire fraud. You're done!
[1] https://shop.bitmain.com/product/detail?pid=0002018052320100... [2] https://blockchain.info/charts/hash-rate
Continue this thread — 22 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.