549 points · by doener · 7y ago · 274 comments
That means: For SHA256^2-specific hardware, Bitcoin (the real one, not Cash, Gold, or SV), for scrypt, Litecoin, and for anything mined on GPUs, Ethereum (not Classic).
[1] or migrate from to another coin, such as the coin that the attackers left to fill their void?
Basically, you spend your coins today, while controlling a 51% share. When everyone else's 49% hash-power creates 98 blocks, your 51% share will create 102 blocks.
But secretly. That's the key. Now that your chain is +4 ahead (or wait even longer and become +10 ahead), you can spend your coins on the public chain. Then, you publish your 102 alternative blocks (which barely adds any hash power to the chain), and spend your coins again on the 2nd chain.
A 51% is the end-all-be-all for a cryptocoin. If you're vulnerable to the 51% attack, the coin is effectively worthless.
-----
The only way to beat a 51% attack is to build more hash power than the attackers. IE: Prevent the attackers from getting to 51%.
Only at the expense of leaving their coin more vulnerable to a similar attack.
Now imagine Dinkycoin comes along and releases their cryptocurrency that uses the same hashing mechanism for the block reward. Initially they have the block difficulty level pretty low as there aren't that many people participating in it yet.
Dinkycoin hopes that eventually enough people will join the network so that the total hashing power will be something approaching Bitcoin's. Great. But atm their total hashing power is a very small fraction of Bitcoin's total hashing power. I don't care enough to go find out how infinitesimal it would be-- enough to say very small.
Now suppose one of the Bitcoin ASIC miners gets bored one day and decides they don't like Dinkycoin. If they devote their ASIC to mining Dinkycoin they will immediately have more hashing power that the rest of the Dinkycoin network. That would virtually guarantee they solve every block of Dinkycoin and reap every reward. They'd easily have 100% control of the network at that point.
For example-- suppose Dinkycoin says you need 20 confirmations before accepting that a transaction "went through." Well, the Bitcoin miner can use their enormous hashing power to go back 20/30/whatever blocks and build a competing branch from that historical point. And since the miner has 1000% more hashing power (or whatever the number is) than the entire Dinkycoin network, they can build a competing branch from that historical point that will eventually have solved more/more difficult block rewards than the branch the rest of the network builds off the current branch. Once the Bitcoin miner has a competing branch with greater total difficulty than the rest of the network, the network must accept that branch as the winner. Well, the devs can decide to do otherwise for whatever professed reason and roll back/hard fork/whatever. But that kind of "do over" would degrade trust in the cryptocurrency itself. Users would be afraid of another future attack. After all, they were initially told 20 confirmations was enough. How do they know 40 confirmations is any safer? (And again, if the attacker has superior hashing power to the rest of the network it isn't meaningfully safer.)
Of course such a miner would be wasting all of their hashing power to screw with Dinkycoin's network. But to screw up most PoW cryptocurrencies you only really need 51% of the total hashing power. Even with that the attacker will eventually always beat the rest of the network to produce the "longest" chain. (Also, I think you can still cause problems for many cryptocurrencies with even less than 51% control.) Anyhow, do the math with the real numbers and you'll see that a real Bitcoin miner could devote a tiny percentage of their mining power and still own fledgling cryptocurrencies like the Dinkycoin example.
Moreover, they can trivially collude with the other 99 Bitcoin miners to devote an even smaller part of their hashing power to owning Dinkycoin, or even automate the process of smashing any coin that uses their same hashing scheme, based on any criteria whatsoever.
And it gets worse because in the 51% percent attacks I've read about in the real world, it isn't a big time miner with a grudge. Rather, it's someone who saw a weak point in a combination of a dinkycoin, an exchange, and several other moving parts and just rented a hashing rig to pull off an attack. Most PoW cryptocurrencies naively assume miners will choose greed over destructive tendencies without ever investigating whether those two paths are really mutually exclusive.
Edit: clarification
Edit: what happened to the web site that compares hashing power of the various SHA256-based coins, scrypt, etc.? Those orders-of-magnitude differences are quite instructive. But I can't find a site that lays it out nicely.
I disagree that market cap is the primary indicator. Note that market cap (or really, price of ETC on major exchanges) has dropped dramatically in the past 3 to 6 months. So Market Cap / Price of ETC is a minor factor.
In contrast: the ABSOLUTE COST of a 51% attack drops each time the difficulty drops. That's what I personally think is the main contributor here, because the market-caps of all coins have dropped dramatically the past few months.
In effect: its not so much that the potential profit out of a hypothetical 51% has gone up (it hasn't: Ethereum Classic is way cheaper than it used to be). Its that the DIFFICULTY of ETC has dropped dramatically, finally making the 51% profitable.
The actual cost to take over a cryptocurrency tells you more valuable information than the naively calculated market map. If a cryptocurrency only costs $3/hr to take over then it's truly a shitcoin.
Yes. But it's the same for the market cap of company stocks. So saying that "the market cap isn't truly $5M" is missing the point a bit. The market cap can truly be $5M without $5M having been invested. That's just not what market cap means.
You can't focus on sellers and ignore buyers when discussing the valuation of something. If many people want to sell and few people want to buy the price will of course go down. But if many people want to buy and few people want to sell then the price will go up. This isn't a particularly interesting observation.
To put it another way: you are right that if everyone who held a portion of this asset tried to sell right now they would not cumulatively get $5 million, BUT ALSO, if someone wanted to buy all of this asset they would pay significantly more than $5 million. It goes both ways. Changing the balance of supply and demand necessarily changes value.
I do agree that naively using the price of a single trade can be misleading and prone to manipulation.
https://signalvnoise.com/posts/1941-press-release-37signals-...
Isn't that literally the definition of market capitalisation?
You might get rich on paper, but good luck getting anyone to help you convert your riches into spendable currency.
Add in the opportunity cost of exercising such an attack and it's not clear that you could turn a profit.
You know, in case turning a profit is not the only possible motivation for anybody to do anything. Many acts of war and violence are not profitable, certainly not directly profitable, and yet history shows people will attack each other anyhow.
'Bit' worrisome if your whole concept of finance depends on altruistically greedy actors who can never act out of spite or malice. That would be creepy but nice compared to the real world as it has always existed.
You also have to actually do the double spend transactions, and hope that the person that you are stealing money from doesn't do anything about it.
It is that step 2 that is actually much harder than a nieve attack might suggest.
Is this number for real? I can think of many actors for whom this is just small change, and who might have incentive to break trust in the Bitcoin network by successfully performing such an attack.
Sorry if this is confusing - the attack cost is calculated based on the cost of hashing power from NiceHash * the global hash rate. If the 'NiceHash-able' column is <100%, NiceHash doesn't have enough hashing power to complete an attack (and thus the price is greyed out).
This page [0] has more details.
> Using the prices NiceHash lists for different algorithms we are able to calculate how much it would cost to rent enough hashing power to match the current network hashing power for an hour. Nicehash does not have enough hashing power for most larger coins, so we also calculated what percentage of the needed hashing power is available from Nicehash.
Note that this ignores the fact that large mining operations could easily switch coins to carry out attacks.
50% chance spend 1.1 million get 1.1 million back minus substantial overhead. Say 10% overhead although I have no idea what the actual overhead would be. So negative 100k.
50% chance spend 1.1 million + 100k overhead get 1.6 million back. Net gain of 400k
So average gain of 200k assuming you can find a market to move that much bitcoin that quickly and always assuming your creativity isn't rewarded with jail time.
People with substantial resources can find way to make money that are repeatable and don't involve finding new and exciting ways to go to jail.
To actually steal money you need to falsify at least six blocks, which in turn means you need to mine six blocks in a row (roughly speaking). The probability of this being successful is (1.0-0.51)^6 - ie. about 1.5% chance of being successful. You can increase your chances by increasing your mining percentage. Make it a 75% attack and you have an 18% chance of success. To have a 50/50 chance of success you really need to mount about a 90% attack which is pretty ambitious.
I'm not sure this is accurate. You don't need to mine 6 blocks in a row on the existing chain. Clients are programmed to recognize the longest chain, so you just need to silently mine new blocks (and not share them with anyone) until you have more blocks than the main chain. Then publish these new blocks, and existing clients will recognize your chain of blocks as being the correct ones.
You can double spend by making a transaction on the public chain while you quietly mine your own blocks on your private chain. Send the coins to an exchange on the public chain, but send them to your own address on your unpublished chain. After you steal funds from the exchange, publish your privately mined blocks.
It's tricky to directly apply these to cryptocurrency adopters' risk, although they apply more directly to "transaction size" than to "wallet size". You can probably apply some of Budish's calculations to transaction size unless you anticipate there's a way that your transaction counterparty could be defrauding you and other people in roughly the same way at roughly the same time. (For transaction size, the main risk is that you give someone something else of value in exchange for a transaction that's subsequently removed from the consensus history.) But for wallet size, the risk is not that someone steals your cryptocurrency from your wallet, but that your cryptocurrency becomes less valuable because other people recognize risks more immediately as a result of discovering and publicizing a successful attack. But that has most to do with how other people respond to the news of the successful attack, which is harder to predict.
And that's going to be governed by irrationality, especially given the irrationally exuberant bubble effects of the cryptocurrency market in the first place. But once that wears off...I don't know. If you somehow managed to make a cryptocurrency that couldn't be profitably attacked, and made the base minimum cost of such an attack high enough, you'd still be vulnerable to a state-level adversary, but every system is vulnerable to a state-level adversary.
[0] https://coinmarketcap.com/currencies/bitcoin-private/#market...
New technologies are always shitshows when they get started. I remember DoubleClick ads hanging every copy of Netscape they ran on, ActiveX controls that could pwn your computer just by viewing a webpage, and unusable college Internet because the SQL Slammer worm had infected 50% of computers on campus and would reinfect anything as soon as it was plugged back in. The last was in 2003, 14 years after the Internet was introduced - put on the Bitcoin timeline, that's 4 years in the future, assuming cryptocurrency is adopted as fast as the Internet (and there're good reasons to believe it won't be).
The thing about disruptive technologies is that people continue to use them despite how shitty the technology is - they're so desperate for a solution that they put up with a solution that basically doesn't work.
This is a common comparison but it’s based on a very dubious equation of the history. By 2003, the internet had transformed many industries — e-commerce was in the billions of dollar range (Amazon’s earliest business lines had been profitable for the better part of a decade by then); millions of people used it daily for tasks like research or customer service, software or media downloads, etc. Mainstream media and ads were full of URLs not just for internet companies but for existing companies which were increasingly focused on the internet.
In contrast, Bitcoin has almost no reason for anyone to care about it other than speculation and the few people who do use it regularly for anything else are largely using it as a replacement for PayPal with worse customer protections.
A key difference is most of the new techs like Internet, email, Paypal, and so on improved on what people already had in a way that delivered obvious value. They also came with problems. Whereas, nobody I know in real life wants the drawbacks of these cryptocurrencies that come with giving up the benefits of their current, centralized offerings. The only folks I know out here doing crypto are speculators (esp day traders). That's the difference.
Now, if they wanted to solve those problems, they'd start with whatever tech/law/orgs already worked, identify their problems, and then mitigate them using proven methods. So, we're looking at credit unions, non-profits, or public-benefit companies chartered to make sure they do specific good things and don't do specific bad things. The most important stuff at least. These can be in the licenses and contracts, too, for re-enforcement. Then, centralized systems with decentralized checking of what's exchanged a la SWIFT all using existing high-performance tech we know how to secure. Open protocols and agreements for how disputes will be resolved in situations using decentralized mode with experts from both centralized and decentralized models weighing in on that. I've been talking about that in Gerard's threads on Lobsters:
https://lobste.rs/s/wxqkyj/bitcoin_s_stupendous_power_waste_...
https://lobste.rs/s/opge2r/electricity_consumed_by_bitcoin#c...
I can't find the other ones sense the search feature is limited.
"they're so desperate for a solution that they put up with a solution that basically doesn't work. "
That's true when there's a need. This is part of a hype cycle pushing stuff people don't need to replace stuff that would meet their needs fine. Accelerated by massive amounts of money being thrown all over this area. Totally different kind of thing. The stuff that bubbles, bankruptcies, and broken dreams are made of.
I'd argue that for most people the value was only obvious afterwards.
To put email in perspective, early adopters had to choose between what they already knew and all the hurdles involved in connecting to the internet and using the new technology. There was also a good chance the people they were trying to communicate with didn't even have email. Outside of a few niche areas, email provided no obvious value to the vast majority of people for decades.
Bitcoin is an entirely different project. Although it is also a blockchain, it's like a calculator while the former is a fully programmable computer. These two projects are very different, two different groups of developers. I encourage you read into them more to educate yourself.
Pretty sure the joke is still on you when comparing to someone that told you about it in 2015.
The highest price for ETH in 2015 was $2.19, lowest in 2018 was $85. So even with the worst possible entry/exit in those years we're still talking about a 3881% ROI in 3 years. Again, that's the WORST possible ROI for entering in 2015 and leaving in 2018.
Those involved have been warning of the insecurity of smaller chains for a long time now, and they aren't representative of the entire ecosystem.
No it's not. Programming is a tool to create programs with. Block chain is a technological buzzword being used (and implemented) wildly inappropriately.
51% attacks are a fundamental vulnerability in decentralization. It would be like inventing programming when everyone pretends bugs don't exist at all. Bugs are inherent to the task, just like blockchains have a very narrow set of use cases, but everyone's too busy flying too close to the sun.
The extreme vast majority is trash, manipulative, and awful in most every way. Not to mention the charlatans and fanboys that hype it as able to do everything and anything perfectly.
But the few that use it well are doing fairly well, and innovation is happening. You shouldn't loop the entire ecosystem as one big unit making terrible choices together.
But honestly I missed the crypto currency expansion completely. Bitcoin when I noticed it at $50, bah.... It hasn't lived up to its promise of an alternative form of payment, but it certainly increased in value rapidly. But I wouldn't count it out completely, there may be a use case that in hindsight is obvious, that we aren't seeing yet. I doubt it but it is possible (my track record is good but mixed. I was the proud owner of buy.com stock.. that didn't work out so well.. )
Plus the algorithms are kind of interesting, and the fact it works at all is kind of miraculous.
The above part pretty much applies to humanity as a whole, going back at least 200k years.
Blockchain stands apart as repeating every single problem the financial system solved over the last 300 years, while being driven by a community best defined by their arrogant dismissal of that very financial system they are reinventing, piece-by-piece.
Turns out civil society (i. e. laws, courts, institutions, economics, shared fictions of value, and trust) cannot actually be replaced by an algorithm quiet as easily.
Blockchain stands apart as repeating every single problem the financial system solved over the last 300 years
Forgetting then repeating the mistakes of the past is yet another long standing hallmark of human beings. In every age, in every place, the deeds of people remain the same.
Turns out civil society (i. e. laws, courts, institutions, economics, shared fictions of value, and trust) cannot actually be replaced by an...
An algorithm. A new religion. A new social theory. A new lifestyle. A new understanding...
Regarding the recent mining events. We may have an idea of where the hashrate came from. ASIC manufacturer Linzhi confirmed testing of new 1,400/Mh ethash machines #projectLavaSnow
- Most likely selfish mining (Not 51% attack)
- Double spends not detected (Miner dumped bocks)
(Not all of us know a whole lot about how crypto works or why this is good or bad and what it means for our investments)
Privately, you are building a chain where said transaction did _not_ occur. Because your hash rate is high enough, you are generating blocks at at least the pace of the public chain. You keep mining your chain (without your transaction) privately until the bank transfer from the exchange goes through, or you are sure whatever you bought is on its way. Then you broadcast your private chain as soon as it has at least one block more than the public chain and voila, you have your ETC back and the USD/EUR/crypto you sold it for (or the product you bought). You can have your cake and eat it too. This is because the rule of most cryptocurrencies is that the longest chain is the truth, and everyone mines on top of the longest chain. If a longer chain appears out of nowhere, all miners will jump on top of this one. There is no such thing as "finality" in most cryptocurrencies, where something becomes actually (read: much more) irreversible.
Of course, doing this only makes sense if what you gain outweighs the costs of performing such an attack.
Note that you typically _cannot_ steal coins from specific wallets, as you do not have the keys to those coins. You can however censor transactions that you may not want, but the above is a common way to benefit from a 51% attack.
If the hardware to accomplish the attack is available for your use, the cost of the mining should net out at zero-ish, because you're also getting the rewards for doing the mining. So the net cost of the attack is just the overhead for the mining hardware.
Coincidentally, economist Alex Tabarrok just wrote about this today: https://marginalrevolution.com/marginalrevolution/2019/01/bi...
I would say that most (other) fringe coins are not as easily attacked as ETC was. They have very illiquid markets, and you cannot really sell a significant amount of them before you basically just deplete the order books. And merchants are typically not accepting anything other than the major coins either. I guess ETC was still riding along on its partially shared name/history with its bigger brother.
Eventually, some more details on the double spend transactions might shed some light on who suffered a loss in this case. It might be an exchange, but most of them require KYC nowadays (so it becomes hard to get away with).
I guess you could buy a hundred gadgets at $100 each from a hundred places in one day and then produce a fork censoring your whole $10k shopping spree?
Another mitigation is to shut down trading until the attack is over. Maintaining a 51% attack is expensive (assuming there is at least SOME usage of the coin), and if you just say "we won't be doing business for the next 24 hours", the attacker now has to maintain that attack for the next 24 hours, and if the company wants, they can just extend the time. Eventually (hopefully!) the attacker will run out of money, and the "correct" chain will take it over again.
Philosophically, what the distributed blockchain is, is an agreement for adjudicating whose record (eg list of transactions) should be agreed on as "the valid one". If you already have a different, reliable external way of deciding this question, that is (arguably) conceding that you didn't need a distributed blockchain in the first place.
EDIT: I've realised my comment could be misinterpreted as endorsing the blockchain 'movement'. I am among those who are quite skeptical of these many blockchain projects.
It is a pretty interesting solution, that seems to work out OK.
For example, most Bitcoin cash clients don't accept reorgs longer than 10 blocks, as such a reorg is 100% an attack. This protects the network against large reorgs.
I can't comment on investment. Note Ethereum has always been over-hyped which (imvho) makes it useless for any serious engineering. see https://news.ycombinator.com/item?id=18780489
[1] The idea is that the miner just pick the last block and select a bunch of the current transactions and a random number and makes a hash of all of them. If the hash has enough zeros at the beginning then it is a new block and it is distributed to all the network. The other nodes of the network validate all the transactions and also that this bunch of transactions with this random number produce a hash that has enough zeros at the beginning. Any invalid transaction of a wrong random number make all the other nodes of the network ignore the fake block.
Once the last block and the bunch of transactions are picked, the difficult part is selecting a random number that with them produces a has that has enough zeros at the beginning. So the mines must try, try, and retry with different random numbers until they are lucky (or someone else is lucky). They must try millions of millions of millions (gillons?) of times, because it's difficult to pick the correct one. This uses a lot of electricity to power the computer. The other people just validate with the lucky number, so it's much cheaper.
Mining is basically the way that everyone agrees a transaction is valid - you have a bunch of unrelated entities saying, "Yes, according to my copy of the ledger, the sending party has X dollars and wants to send Y dollars, and the two parties agreed." (It's much more nuanced, but this is the easiest way to summarize it.)
If someone said, "I'm going to send AccountB 100ETC from AccountA," but AccountA only had 50ETC then a miner would see that and deny the transaction (wouldn't add it as a valid block to the blockchain). In reality, there are several places that the transaction should be thrown out, but there are obvious ways around those, and every transaction incurs a fee, so trying to just flood the network is costly. More importantly, several miners have to agree that the transaction is valid. When sending bitcoin, you'll see a number of "confirmations," which is the number of miners that marked the transaction as valid. You can see this when sending coins between two exchanges, you'll see that the receiving exchange won't allow you to use the coins for trading until you hit, say, 30 confirmations.
The problem with this model for smaller projects is that those "confirmations" by unrelated miners can't be trusted if one person/group owns more than half the miners. I left out the idea of wallets/nodes to bring this up here. Every "full" wallet (or node) has a copy of the blockchain and does some cursory checks on transactions before broadcasting them to the network. Miners then package a bunch of transactions in a block and send this to the network - "Here is my version of block X. It should be added to the blockchain as block X for everyone." The miners then have to expend some effort to verify that the block is actually the block they think it is and contains valid transactions. When the miners confirm a block, it eventually propagates to all the miners and nodes, and competing blocks by other miners, which might have contained some of the same transactions are discarded. It doesn't mean the other blocks were fake, just that the chosen block reached "consensus" of the miners and can be trusted to be valid. (I realize this leaves lots of open questions, but I'm limiting the scope to OP's question.)
Consensus is the big problem in 51% attacks. If someone controls more than half the mining power, they can reach consensus on blocks faster than legit miners and add whatever they want to the blockchain that is distributed to all the other miners and nodes. That means they can add/delete transactions or manipulate existing ones to, say, change the receiving address to their own, and everyone that receives those blocks will accept the outcome.
This is why decentralization is so important to cryptocurrency. There's a level of necessary chaos that keeps the network honest. It is possible to roll back the blockchain to a previous version, but that also means that transactions in all blocks that followed must be rolled back as well. If the rogue party simply accumulated currency, that's not a big deal, since all other transactions would still be valid. But, if they immediately turned around and traded them for other coins, you start to see the problem. On top of that, if ETC was more "robust", the news would (and currently is) send the price into a nosedive, which creates an opportunity to legitimately buy it very low and profit from the recovery. That's not going to be the case here.
All this being said, Ethereum Classic was kinda declared dead a month ago when the development group halted operations, so anyone with any significant amount of ETC should have sold off by now. This attack will probably be the final nail in the coffin.
TL;DR - In the end, the state of the blockchain comes down to a simple majority of miners agreeing that a block (a group of transactions) is valid. At 51%, you can force everyone to see invalid transactions as valid. ETC development ceased around a month ago, so no one that follows it should be holding any now, but people blindly trading for profit will get a nasty surprise.
In many of these blockchain systems, the 51% attacks only applies to money in motion. I can't move all of your funds out of 'your account' unless I have stolen your wallet, and if I have stolen your wallet I don't need to change anything else about the network. I can just spend on your behalf.
Lacking that, I can convince you you got paid for services and then claw them back by making the network change their mind after the fact. I can repudiate all payments to you with a 51% attack, by voting again on what transactions just finished.
Congress has rules about votes. If you have a quorum, everybody sticks with the outcome. If you don't show up, you don't get a vote. To make that work, you have rules. A quorum is defined and static. Obstruction is not allowed - no secret votes, no locking the doors.
It may be as simple as this: When my transaction is settled I need to know the health of the system. If some definition of quorum is met I know my transaction can't be hijacked. If the network was degraded a revote is possible. I need to wait for more confirmation before rendering services.
That's kinda the essential problem. If you can trigger a revote, then the attacker will stuff the ballot to make their's the winner.
If I understand correctly this attack managed to reorganize hundreds of blocks. That's a lot of time to wait for confirmations.
Of course if you're in the other 49% you might feel attacked, but ultimately this is working as intended.
>exchange has since uncovered another 12 attacks that “included double spends, [now] totaling 219,500 ETC ($1.1 million) https://thenextweb.com/hardfork/2019/01/08/ehtereum-classic-...
Cost of attack according to https://www.crypto51.app/ about $5k
Ethereum Classic came into existence when some members of the Ethereum community rejected the hard fork on the grounds of "immutability", the principle that the blockchain cannot be changed, and decided to keep using the unforked version of Ethereum."
-- Wikipedia
> If I held assets on either, it'd be on the chain that didn't hard-fork to reverse a single user's transaction.
Enjoy using Ethereum Classic then.
dPoW explained here. https://blog.komodoplatform.com/delayed-proof-of-work-explai...