342 points · by scalableUnicon · 6y ago · 187 comments
Lots of cyptocurrencies use the same mining algorithm, i.e. they require the same type of puzzle to be solved to make money creating blocks. In recent years, lots of online services have sprung up to offer cloud mining, which people usually use to mine blocks on the bigger cryptocurrencies, like Bitcoin Core or Bitcoin Cash.
However, since the smaller cryptocurrencies, like Bitcoin Gold, have less users/miners, they also require easier "puzzles" to be solved, which opens an opportunity for any random person to pay some $$$ to hire a bunch of these cloud servers for a limited time and point them at these easier puzzles, which can cause such a smaller blockchain to get confused about account balances. The attacker can then re-spend the same currency multiple times to make a profit.
AFAIK there aren't really any good solutions to prevent this problem- For complex game-theoretic reasons, simply changing the mining algorithm to something different doesn't really offer much protection. (Some folks believe if these smaller currencies were to move to "proof of stake" it could help solve this problem, but this is an extremely contentious topic.)
For the curious a simple breakdown Ethereum 2.0's Proof of Stake (PoS) plan is:
-Minimum 32 ETH to stake
-Staking locks the currency in the staking pool
-Your node votes on the validity of the transactions (this is super light weight and fast, can run on a rPi instead of huge mining nodes).
-If the network agrees you was acting maliciously your locked stake begins to be slashed/burnt.
-Voting with the majority gives you a % of the block reward.
This means a 51% attack on the chain requires 51% of the currency staked which would be extremely hard to get without skyrocking the price (making 51% exponentially harder to achieve). They've also done some spooky proofs I don't understand that make the actual number to take over the network >51% (70% or so IIRC).
So it's green, fast, and harder to attack successfully. And unlike PoW, if you fail your "attack money" gets nuked.
Does each block need a strict majority of outstanding currency to pass muster? It seems like it would be super risky to align yourself with any stake unless you were sure that it was going to be the majority, lest you inadvertently follow a post-facto "malicious" branch.
Therefore it seems like it might require less than 51% of outstanding currency, depending on the level of risk you're willing to take on, and how much active stake is willing to commit itself to proving maliciousness -- if you're leading the "that was malicious" faction but your faction fails to assemble more stake than the attacker did, then instead you get burned, so there's no guarantee that evildoers will be brought to justice; and aligning with a reorganization in ETH is dicier in many ways (because of the per-address nonce's) than it is in a UTXO coin.
Attack vectors are never within the bounds of tidy proofs of complex ideas; Bitcoin's brute-force solution is very simple to verify the correctness of, and the effective cost of pulling off a double spend is fairly easy to compute from first principles with some very weak assumptions about the quality of the hash function used.
I'll give more credit to proof of stake when Ethereum makes the transition; at least then there's some skin in the game.
And the Eth2 genesis won't occur until a sufficiently large amount of validators are active on the beacon chain, so you can't hijack it by investing large early.
Is wrong by years. See Blackcoin (2014) for just the tip of the iceberg.
Step 1. Acquire crypto currency. Step 2. Stake. Step 3. unstake and sell cryptocurrency. Step 4. use older keys to produce an alternative history.
Or, to simplify things, let other people do 1/2/3. Then purchase or hack their now-worthless old used keys to use in your attack... keys which they have no reason to protect and/or not sell. At most, all slashing does is makes Step 3 take more time.
I say "at most" because it doesn't necessarily do that much: if the funds you can earn from the attack (from double-spends and/or shorts) are large compared to the staked amounts, then step 3 isn't even required.
POS is fundamentally circular: you use ownership to determine ownership.
The only solution to this is to introduce another consensus mechanism like POW or, more commonly in POS proposals, a centralized authority. Some just assume the users are communicating over a synchronous lossless global totally ordered reliable broadcast-- which, again, is equivalent to running on top of another consensus system.
There is a reason you see people promoting POS that have an established history of committing fraud: the idea is most convincing if you obfscuate the details so much that no one is going to be willing to waste their time reviewing it. This is one of the classic moves used to convince someone to agree to a fradulent deal-- baffle 'em with bullshit.
Sure, if you get a majority of stake in the network, you can create alternative histories. But, as others have pointed out, this is much more difficult than a 51% attack in PoW.
To be fair, in PoW your "attack energy" (and thus money) gets nuked too.
Forking bitcoin requires deciding which fork to spend your mining processing time on. Forking a PoS coin does not, since you can use the same coins for stake on as many different chains as you want.
Edit: it seems like it makes it more robust, basing ur interest in a fork not in your involvment in it but in its merit (e.g. you are incentivized to support them all)
I know people love proof of stake as a "solution" but you give up decentralization for "security". If that is what you want, use a bank.
[0] Lots of millionaires came out of the cryptocurrency era. Sock puppets are cheap in comparison.
Cryptocurrencies and their associated boom-bust market cycles are here to stay.
95% of blockchain development happens on Ethereum, and Ethereum is growing well, https://medium.com/@jjmstark/the-year-in-ethereum-2019-24201..., so the idea that there was a cryptocurrency era that's ended is not true.
https://blog.coinbase.com/how-coinbase-views-proof-of-work-s...
> Coins at the greatest risk of 51% attack are the ones where there exists large amounts of hashpower not actively mining the coin that could begin mining and disrupt the coin’s blockchain.
Also, Ethereum's upcoming transition to Proof of Stake is not contentious, it's a large-scale project years in the planning and execution.
There's no silver bullet for 51% attacks, and proof of work uses unconscionable amounts of electricity, which is why Ethereum is transitioning to proof of stake.
Thus, there is a limit to the amount of economic activity that can be "safely" transacted by a proof of work chain per unit time, based on the amount of inflation/fees of that particular network. The more fees and inflation, the higher the economic value that can be transacted safely.
The actual real-world limit will be somewhat less than 2x because of options trading and other off-blockchain transactions.
Yes, this poses problems for smaller currencies where the average amount transacted per block is quite small. Bitcoin has not just a "network effect" of adoption resulting in places to spend it, but also a network security effect, where the vast amount of spending makes it much more economically difficult to justify a 51% attack.
(That or you need to wait increasingly long periods on these shitcoin chains before accepting them as "final" and transferring goods. Eventually all chains should reach consensus, as long as you wait long enough that it would be economically unviable to
And note that this is actually a parameter that cryptocurrencies can set themselves. When (eg) Ethereum cuts the block rewards, that results in network hashpower going down, and thus reduces the economic throughput that is possible before nakamoto consensus falls apart. Same for Bitcoin's block halvening.
Decred's mixed PoW/PoS would be extremely expensive to 51% attack, and would require a large amount of funds to be locked up in voting tickets for random amounts of time ranging from a few days to several months - so if you successfully attacked it, you'd presumably reduce the value of Decred and the many millions of dollars worth of Decred you had frozen in tickets.
And he's behind the crypto of GNU Taler and Polkadot
Bitcoin Gold is the least relevant of the forks (worth ~$12 per coin while the main chain BTC is worth ~8750 and the two major forks BCH/BSV are worth around 300, and only 7 of the 20 largest exchanges (by liquidity, according to coinmarketcap) list it - even though most of them list plenty of altcoins/shitcoins. For comparison, Bitcoin Cash is listed on all of them, Bitcoin SV on 14 of them. Additional stats here: https://news.ycombinator.com/item?id=22160458
The journalist has missed an important part of the github gist that their story bases on:
> Based on Nicehash market price data for Zhash we estimate the cost of generating each reorg at around 0.2 BTC (~$1,700) and the attacker would have recouped around the same value in block rewards. Therefore, it is possible that the attacks were profitable if the double-spends succeeded at defrauding the attacker's counterparty, or break-even if the double-spends were unsuccessful. This suggests that a confirmation requirement on the order of tens of blocks for BTG is still far too few to make the budget constraint to launch an attack significant.
The real profit will come from shorting the currency and capitalizing on the subsequent crash due to the crisis in confidence.
I guess raising the amount of required confirmations helps but even then it's just a matter of time.
Proof of stake is more secure than proof of work because an attacker must acquire a large amount of ETH each time they attempt an attack. Attacks against proof of stake are incredibly capital-inefficient.
If your goal is a decentralized system POS is just a fundamentally broken idea, as was known years ago (and long before ethereum existed https://download.wpsoftware.net/bitcoin/pos.pdf ). Ethereum isn't a decentralized system-- as demonstrated by them editing balances to recover coins the ETH administrators personally lost by gambling on an ill-advised contract-- but they have to keep up the pretext.
The issue with proof-of-stake: How do you define consensus on what ETH is? Without PoW, an attacker can cheaply generate an alternate history in which they control a large amount of ETH. If the alternate history is accepted, they benefit, and if not, they risked nothing.
Heck proof of stake is significantly less secure because you can have stakes working together to game the system.
Bitmain does.
Doubtful.
This vulnerability was baked into Bitcoin from day one. There is no outcome under which Bitcoin is not 51% attacked. it is an inevitability as sure as the heat-death of the universe.
Also in 2018: https://news.ycombinator.com/item?id=17173051
https://www.coingecko.com/en/coins/bitcoin-gold
The market may not even understand what 51% is about
Perhaps they should require some multiple of (amount of the transfer / cost of the hashpower needed to mine one block)?
This is also true for blockchain browsers(and their api), which apps use to confirm the transaction(most of users don't run full node). The only way how 51% attack can be successful in the long term is that honest nodes(and blockchain browsers api) are re-configure to ignore double-spent(at least for a particular time period).
This might help general awareness that minor coins without a differentiating technology are simply highly vulnerable uninteresting clones, not worth any attention and thus, value. Perhaps some would just disappear, in a spiral of lower value, lower hash rate, more vulnerability, till all miners leave towards other, stronger coins?
This might sanitize the whole cryptocurrency domain a little.
Or not?
As for 'resilient', try telling that to the people who were robbed of their coins because of this attack!
This kinda confirms that BTG being not just susceptible to 51% attacks but also getting hit by them isn't a surprise to anyone.
Edit to add: For anyone not familiar with the space, Bitcoin Gold is one of the many forks of the main Bitcoin blockchain, and one of the least meaningful among the ones commonly known. Here's the map of the main forks: https://i.redd.it/1pvmr98w5x041.png -- the main chain is by far the most known/popular/valuable, followed by Cash and SV in this order, followed by Gold far behind the rest.
Useful metrics are value/market cap, number/size of exchanges supporting it, or hash power. Hash power roughly correlates with value.
A main-chain Bitcoin (BTC) is worth about $8750 and basically the reserve currency of the crypto world (roughly all exchanges will have it), Bitcoin Cash (BCH) about $370 and has 400+ markets (that's as much as Coinmarketcap will show), Bitcoin SV (BSV) about $300 and 154 markets, Bitcoin Gold about $12 and 74 markets. Too lazy to count unique exchanges (an exchange can have multiple markets per coin).
Edit: Exchange listing counts here https://news.ycombinator.com/item?id=22161472
It’s a kind of de-risking—not in the sense that the particular blockchain, or blockchains in general, are now any less vulnerable to the attack (Sybil attacks generally are like the Halting Problem of open consensus systems—no real way around them) but rather that these attacks, for some investors, go from scary “unknown unknowns” to “known unknowns” that can be quantified in their impact, and thus ROI models can be clarified, making cryptocurrency’s value as an asset class more legible. Legible assets always have a place in a hybrid-strategy portfolio; while illegible assets (like illiquid real estate from the housing crash) almost never do.
> basically the reserve currency of the crypto world (roughly all exchanges will have it)
I would say that that’s more like either Monero or USDC right now: these are the cryptocurrencies people ask for when they just want cash but want to let you pay them in crypto, because you can cash out of crypto entirely in a non-value-losing way pretty well from either (with Monero, because it has low TX fees and fast processing times, so you can get rid of it in seconds; with USDC, because it’s stable-ish for now, so you don’t need to worry on a scale of minutes whether it’ll keep its value.)
Which is similar to what “reserve currency” means in practice for most people (other than banks): it’s the currency they’d prefer to be paid in, and the currency you’ll see them trading in their own currency for in the event that their own currency experiences high volatility.
At the same time as Bitcoin core won (by market share), now Bitcoin is a state where everybody accepts that Bitcoin won't have any hard forks in the future (even if it would be technically warranted).
For many things change is a good thing, but for creating a new monetary system it's only good if it fixes a huge flaw in the previous one (unlimited money supply and limited international money flow in the case of the current financial system).
This might be because the "halvening" is this year.
Also all stocks are down due to the corona virus. which is allegedly a reason bitcoin is high.
Rationally, bitcoin should be worth close to nothing.
Edit: I was wrong about BTG sharing the same algorithm.
This is also not the first time this coin has been targeted.
Oops: I see what you mean though. Because there's so many BTC miners, they can easily swap over to BTG to overwhelm the much smaller network.
Not everyone here is a cryptocurrency enthusiast. The fact that this is even possible is interesting by itself; an instance of it happening even more so. What's not news to you is indeed interesting to someone else. Alas, this isn't Reddit, so the usual "OMG Don't spread FUD!" response doesn't apply here.
You'd do well to frame your discussions about cryptocurrency from the HN perspective, not that of a BTC-enthusiast or -maximist. Using derisive terms like "Bitcoin Crash" really doesn't add to the conversation. Like I said in another comment, this isn't Reddit.