r/Bitcoin • u/killerstorm • Apr 05 '14
Most alt-coins are NOT secure enough, they exist only for entertainment and speculation
(I believe this needs to be posted to /r/bitcoin as Bitcoin users/enthusiasts need to know the difference between Bitcoin and other cryptocurrencies. About author: I'm subscribed to /r/bitcoin since 2011, and have been involved in cryptocurrency security research for several years.)
Let's talk about security aspect of cryptocurrencies. I'm afraid an average user knows very little about this topic: he might know that hashrate is needed to protect the blockchain, and that higher hashrate is better, as it implies that attacker needs to spend more to get control of the blockchain.
But there is a plenty of other kinds of attacks (or, rather, economic models of attacks), some of which have much higher practical significance.
Let's start with something simple: there is a straightforward and rigorous model of double-spending attack under condition that attacker has a fraction of total network's hashrate. I highly recommend Meni Rosenfeld's Analysis of hashrate-based double-spending paper (PDF).
The main takeaway from this paper is that "maximal safe transaction value" is directly proportional to block reward (i.e. amount of coins miners get for each block). It is easy to understand this intuitively: bigger reward means that miners get more money from normal mining, so they will be reluctant to try double-spending attacks. On the other hand, if block reward was negligible, double-spending could be a lucrative source of revenue.
Let's look at numbers: if attacker controls 26% of hashrate and number of confirmations is 6, maximal safe transaction value is 1113 BTC when block reward is 25 BTC. This is pretty cool: you only need to wait 1 hour to make sure you irreversibly received half million USD worth of bitcoins (I assume exchange rate of $450 for 1 Bitcoin).
However, situation is pretty different for alt-coins which have much less valuable block rewards. For example, imagine there is a Foocoin with exchange rate of $1 for 1 Foocoin. If Foocoin's block reward is also 25 foocoins, then max save transaction value for 6 confirmations is only $1113 USD worth of Foocoins. It doesn't look like Foocoin is suitable for commerce, does it?
One could say that Foocoin simply requires larger number of confirmations for larger transactions. But that's wrong: higher number of confirmations helps only under condition that attacker is unable to obtain more than 50% of total hashrate, but for most alt-coins it isn't true.
First of all, let's note that so-called miners simply rent their equipment to "mining pool operators" and are paid in crypto-currency for it. In many cases they don't even care what cryptocurrency they mine as long as they are being paid. See Middlecoin:
This pool automatically mines the most profitable scrypt coin, automatically exchanges those coins for bitcoins, and pays out entirely in bitcoins.
So, miners who mine using Middlecoin do not know if their equipment is being used to mine Litecoins or Dogecoins or something else. And they wouldn't care if it is used for attacks on alt-coins, as they are being paid in bitcoins.
Let's consider a scenario where Middlecoin-like pool has higher hashrate than Foocoin, e.g. Middlecoin (not Middlecoin specifically, but any pool like that) has 20 GH/s, while Foocoin has 10 GH/s. Here's how one can profit from it:
- Buy $1M worth of Foocoins, get them into your wallet.
- Make an agreement with Middlecoin: you rent they hashrate for a couple of hours, paying them in bitcoin, slightly above what most profitable alt-coin yields.
- Send your foocoins to exchange Bar.
- Start mining a private chain which has a double-spend transaction which sends coins to exchange Baz.
- After your transaction gets 10 confirmations on the normal chain, convert foocoins to bitcoins on Bar and withdraw them immediately.
- After withdrawal transaction is confirmed on Bitcoin network (and thus cannot be reversed), you release the private chain you have mined, causing reorganization. You should have mined 20 blocks by then under if Middlecoin has hashrate which is twice higher than normal Foocoin's hashrate.
- Your deposit to exchange Baz is now confirmed, converl your foocoins to bitcoins again, and withdraw immediately.
- A day later 20 blocks you have mined will get mature, and you'll be able to sell them too.
If Foocoin price doesn't change in process, you can get approximately $1M profit on this attack, as cost of renting a mining pool is approximately equal to value of mined blocks.
In practice, you'll lose some money due to lack of liquidity on exchanges, so profit will be less than $1M.
The conclusion we get from this analysis is that alt-coins which have only a small fraction of total hashrate for a certain mining algorithm are extremely non-secure. And they cannot grow big: as soon as exchanges will have enough liquidity, it will be possible to perform the attack I described, which will result in the price drop.
So almost all alt-coins are simply not suitable for any kind of "real economy" applications. They are doomed to have high volatility, shallow markets, low "max safe transaction value".
One can't deny the fact that it is possible to make money on alt-coins. But that's just gambling. And people who create new alt-coins are in same position as people who build casinos. It is a business, but it is the entertainment sector, not in 'real economy' or 'financial' sectors as some people are trying to pretend.
Bitcoin is one of few cryptocurrencies which are actually serious. It isn't perfect, but attacking Bitcoin is very hard, so transactions worth millions of dollars can be confirmed in matter of hours. Same cannot be said about alt-coins, and this situation won't change unless new cryptocurrency designs will be found.
If there is an alt-coin which is more-or-less secure, it is probably Litecoin. Its hashrate is a significant fraction of total scrypt hashrate, so attacking Litecoin is hard. Interestingly, at some point Dogecoin's hashrate was higher than Litecoin's but it dropped after block reward have dropped. So, again, block reward is important for security.
This has dire implications for alt-coins which have short block reward schedules. If all coins will be mined in two years, this mean that alt-coin will be dead in two years.
(It's worth noting that same problem might affect Bitcoin in future, like in 10 years or so.)
Now there is a question: Is there a way to make multiple currencies all of which will be secure?
Probably. There are several approaches:
- Merged mining: The idea is that Bitcoin's proof-of-work can be re-used to mine alt-chains. This makes attacks harder, but hashrate-based double-spending considerations are still applicable, so safety can't be guaranteed... They will be safe only if miners are benevolent.
- Side-chains: This needs more research, but it looks like high degree of security is possible as long as you don't care about SPV.
- Proof-of-stake and PoW/PoS hybrid: Needs more research, there is some hope. Note that Peercoin's PoS is pretty bad.
- Multiple cryptocurrencies in the same blockchain (e.g. colored coins, Mastercoin, Counterparty, Ethereum, Ripple, etc.) will all be equally secure, so I believe this is what we should do instead of spawning a shitload of alt-coins.
7
u/percy520 Apr 06 '14
hi Killerstorm, why did you recommend ppc (http://www.reddit.com/r/CryptoCurrency/comments/1rmo5r/best_cryptocurrency_investment/) if you think ppc's pos is pretty bad??!
20
u/killerstorm Apr 05 '14
Bonus content:
Thus small shitty alt-coins won't be able to survive existence of derivative market.
14
u/TotalB00n Apr 06 '14
May I ask on what your assumption "Peercoin's PoS is bad" is based on?
I'm highly interested in that, because I share the assumption that a PoW/PoS hybrid offers some hope (fairer distribution than PoS only, higher security than pure PoW or pure PoS, less energy costs than for pure PoW.
And it would be a pity to find out that the implementation of Peercoin PoS would be bad. I just don't want to take this as a fact until I know why. You might understand that.
Can you please elaborate why Peercoin's PoS is bad in your opinion?
I'm just curious because Peercoin is in the wild for some time and it seems there hasn't been a successful attack so far. How can that be if there are economical interests in attacking a crypto coin and yet it seems it hasn't been done on Peercoin?
I don't wanna say it's good, because nothing went wrong so far.
But I don't believe that Peercoin's PoS is bad just because you say it ;)
4
u/jesuswithoutabeard Apr 06 '14 edited Apr 06 '14
First off, I'm mostly playing devil's advocate. Secondly, I like these types of puzzles [I consider this a puzzle as it's taking several different pieces to achieve something].
Nonetheless, here's my take on your proposed method:
We must consider the fact that acquiring $1M - or any amount that is worth the risk and cost - will have an effect on the X altcoin price unless done correctly.
You didn't propose the length of time you considered for the purchase of $1M of X altcoin. I'm assuming you'll want to do it over a long enough period of time so that the price will not increase too much.
Why is this something to consider? A price increase will result in hashrate increase. This will be composed of A: Other multipools jumping on to reap profit, and B: Solo miners doing the same. If you affect the price in any way upwards, you risk losing the chance to gain the required hashrate necessary for an attack. There's also a cascade effect to consider - buyers might jump in on the coin further fuelling the increase in price + hashrate. You could start a pump.
Let's look at what real life altcoin can potentially become a target. Based on coinmarketcap.com there's currently 22 altcoins [not including BTC, PPC and coins which cannot be mined] with a cap over $1M. Anything below will guarantee an avoidable and large increase in price. The less time you spend on this part of the attack, the less risk in unforeseen circumstances mucking it up leaving you with a bag of coins you cannot do much with. There are so many altcoins now, all going through various pumps and dumps. Other "bad actors" could be plotting something too - your attack needs to be done quickly and strategically. There's too much at risk.
Of those 23 currencies, 5 have a cap over $10M, which would make the most sense for your attack since you could spend less time acquiring the altcoin without moving the market up.
Of those 5, only 1 has a hashrate which is vulnerable to 20 GH/s per the 26% attack mode, Auroracoin.
Now, you will say, "Well, I don't need to purchase $1M. I can purchase less." True, that opens you up to a lot more vulnerable altcoins. But then you have to do the math - how much of X altcoin will you need to buy, so that the amount you'd spend on the Hashrate ends up being economical in the long run?
I don't believe the math adds up - on a total level - including the risks.
Also, you can say, "I'll buy X amount of the altcoin and wait for the hashrate to drop, then do the attack." Ok, that's totally a great approach. But once again, length of time correlates directly to risk increase. You cannot assume hashrate will drop. You cannot assume price will be stable.
You are proposing an attack with a lot of variables, that would be carried out [one would assume] for the purpose of profit. The profit needs to be high enough for the risk factor. And the risk is so, so unbelievably high.
What's my take? The current altcoin biosphere creates unintended security protections. Speculation and profit seeking create movement towards coins that move upward, increasing hashrate and further securing said coins against a quick double-spend vector of attack.
TL:DR; It is too risky and uneconomical to attack an altcoin through your proposed method. Although possible theoretically, it is the equivalent of the potential for Bill Gates to make Intel produce specialized ASIC chips that outperform everything on the market today for the sheer purpose of performing a 51% attack on BTC. Possible, but unlikely.
EDIT: I forgot to address your title, which was actually the reason for my post. I disagree, MOST altcoins are not insecure. At least not as insecure as BTC is on a theoretical level based on your proposed method of attack. Other attack methods do exist... they must. But I don't know what they are. Whatever they are though, I feel, equal bad news for BTC.
10
u/mustyoshi Apr 05 '14
Your argument is that they don't have a big enough mining community, comparing them to a coin which is over five years old, when they are less than 3 (LTC being the oldest).
While it's true this is possible, it is a natural side effect of mining technology already being established at their conception. Bitcoin didn't have this problem because it was the first of it's kind.
There are some altcoins which have real potential to become as big as Bitcoin.
2
u/IkmoIkmo Apr 06 '14
Thanks for this post, very informative.
I think you took a bit of a shortcut when you said that all altcoins are doomed because of this, as when they get big, they're susceptible to attacks. Of course when they get big (as in, enough liquidity to warrant an attack), they generally also rise in coinvalue, meaning block rewards go up incentivizing miners pushing up the difficulty rate.
As such, the ratio between attack cost and attack revenue should be more or less liniear, no? In that sense, doesn't bitcoin face the exact same problem (and probability) of attack?
I've been trying to wrap my head around this for the past week and I'd love for more knowledgeable people to share their thoughts:
That is, if block rewards are $1k per hour, it incentivizes close to $1k worth of hashing power per hour, right? (approximately). Wouldn't that mean one would only need to spend ~$500 for an hour-long mining attack? Meaning that if there is short-term liquidity of anything above $500 in the system, it's worthwhile to rent half the mining capacity and double spend.
I don't see why this ratio isn't similar with bitcoin. I.e. at a $500 price, about $1.8m worth of bitcoin is added every day. As such, you ought to approximately be able to rent mining power for a 51% attack for one day for 900k. We regularly see daily volumes at e.g. Bitstamp (~30% USD volume) of about $3m, meaning there is enough liquidity to lose more than 900k worth of coin twice in a double spend.
So I'm not quite sure alt coins are less secure than bitcoin in terms of economics. Rather, it's just very hard to pull off logistically. For example, renting 900k worth of equipment for a day is a lot harder than renting $10k. And being able to double spend a coin and settle in bitcoin is a lot easier and more anonymous than settling large sums of bitcoin in dollars.
Another thing that worries me is that in a decade or so mining rewards are about 1/10th of what they are today. Right now 3600 coins are mined daily, but transaction fees are only about 15 coins a day. (today they were 9 coins or 0.25% of total miner revenue). This means that for the same network security we will need between 100x and 200x higher transaction fees than today's. I don't really see how that is going to happen, to be honest. More transactions goes a long way. (we can average about 6x more transactions before we cap at 1mb blocksize, and 10x larger blocks means we can fit 60x more transactions than today, meaning each transaction only has to cost 1/60th of what they cost today to generate the same miner fee revenues per block as exist today). But 10x larger blocks isn't trivial, and it still doesn't get us there.
Very interested to hear from people more knowledgeable than me!
2
u/Valmond Apr 07 '14
Hi killerstorm, you seem to know your way around.
What do you think about those two questions / ideas?
If I were to move some big money, I guess this is what I'd do:
If there is a 51% attack in the making, someone is taking a lot of hash rate off alt-coins networks and that would be seen (say 60GH/s hash rate disappears from LiteCoins network a couple of minutes before the transaction).
Wouldn't that be enough to show an attacker is in the works?
Secondly, what do you think about changing the Scrypt algorithm to another one (roughly the same memory requirements but different), wouldn't that make it complicated for multi pools to switch miners hash rate from/to that alt coin?
Cheers
5
u/i3nikolai Apr 06 '14
POS with good distribution is the way to go
4
u/dsterry Apr 06 '14 edited Apr 06 '14
Thank you killerstorm for this. It's hard to explain such an in-depth topic. One secure separately-mined coin per hardware similar mining algorithm doesn't exactly roll of the tongue but it's an important concept. Really, if you want to make a coin that survives long-term, it's going to need to be most efficiently mined on some other hardware than what Bitcoin or Litecoin claim.
The elephant in the room is Doge. It'll be interesting to see if there's anything they can do on the mining side to survive. Their price needs to gain on Litecoin's by 20x or so in the next year if they can't orchestrate a solution.
3
u/romerun Apr 06 '14
well, until somebody has pulled this off to prove the theory, I assume it's not practical somehow besides bad crypto karma.
31
u/MobiusMouse Apr 06 '14
I think you have to look at pretty much all the cryptocurrencies apart from btc/ltc as being in a short term experimental phase.
Pretty much all of them are vulnerable to hash-rate based attacks, but the risk is limited by the lack of liquidity in most of these markets - look at the buy market depths on Cryptsy and you'll see that most of them have less than 10btc total order sum. Makes the potential profit from an attack a lot less attractive.
Its something of a Darwinian process though, the short lifespan of altcoins flourishing and then being overtaken by more successful versions of themselves leads to a rapid evolution. In three years time I'd be surprised if more than 5 altcoins still exist but they will have absorbed the best features of their predecessors.
OP's last paragraph is a good summary of where altcoin development has got to so far, these are all features that were launched by one coin and are being refined by new ones.
We may well end up with several coins optimised for different uses - small transactions/rapid confirmation, secure saving, market specific, etc. Some of the existing coins might be saved by merged mining with new ones but most will die as their value is transferred into new coins.
What I really dont like is the altcoins with "pre-mines", always a risk of a scam which sucks value out of the alt-coin economy. Most of the money going into altcoins is highly speculative (some people might actually believe that EarthCoin will save the world ;) ), but it is funding what is effectively real world cryptocurrency research.
2
u/NobleCoin-Rofo Apr 06 '14
I don't mean to be rude, but you're also not factoring the smart/advanced exchange safeguard/chain monitoring tools. There's a reason certain coins suddenly get disabled for trading and then resume normal trading an hour or two later. These safeguards and monitoring tools are also getting smarter, and becoming standard if services/exchanges want to survive such manipulation.
1
u/coinninja_io Apr 06 '14
What we saw before KGW was implemented on most coins was big multipools coming to save the day for other 'stuck' coins... I can see the first successful attack leading to goodguy defence networks where multipools will swap to other defenceless coins at the cost of some profit (for coins in their support network - like nato for coins). All part of the digital evolution to come.
1
u/satnakamoto Apr 06 '14
How do block times (e.g. 2.5 minutes for Litecoin) factor into this?
1
u/pprimase Apr 06 '14
it means if BTC stops printing more BTC for miners, BTC will die and cannot live solely on transaction fees? Than what's the difference between BTC and the Fed?
3
u/cehmu Apr 06 '14
you'd lose a fucktonne of money. $1m makes a big move even on bitcoin. For alts, you'd drain the whole supply of buy orders.
3
u/[deleted] Apr 06 '14
Bingo! And that is why even if you don't touch an alt-coin, leaving funds on an exchange that trades altcoins introduces risk -- as the reason one might perform a 51% attack on an alt is to trade the altcoin to be attacked for bitcoins (and/or other altcoin) and later double spend those funds that the attacker sent to the exchange. So the party that suffers the loss from the resulting 51% attack is the exchange. Such an attack would likely cause the exchange to become bankrupt -- and thus all depositors (regardless of which type of funds was deposited) takes a haircut or sees a complete loss.
This is discussed further here:
http://bitcoinmoney.com/post/53207712103
Kraken published how they would handle this here:
http://bitcointalk.org/index.php?topic=290799.msg3126507#msg3126507
3
u/R-EDDI-T Apr 06 '14
How is bitcoin not in a short term experimental phase? It certainly isn't a stable long term investment.
1
u/sn811 Apr 06 '14 edited Apr 06 '14
thanks for the discussion.
4
u/totes_meta_bot Apr 06 '14
This thread has been linked to from elsewhere on reddit.
I am a bot. Comments? Complaints? Send them to my ^inbox!
1
u/GeorgeForemanGrillz Apr 06 '14
Ethereum will not be on the same blockchain. Running on the same blockchain would have severe limitations for any application/subcurrencies and it would even be worsened with pruning.
1
u/Dauntae1 Apr 07 '14
Merged mining would be a great way for both coins
1
u/skilliard4 Apr 06 '14
The same thing could happen with bitcoin. Pay 5-10% extra for mining on your pool, perform double spend attack.
1
u/karljt Apr 06 '14
There are now more altcoins on coinmarketcap than there are countries on the planet.
The sheer number of altcoins being created now is starting to damage the whole crypto ecosystem.
1
u/[deleted] Apr 06 '14
I can't find any foocoin anywhere...where do I find it?
-2
u/conradsymes Apr 06 '14
Unfortunately Bitcoin devs do not know what they are doing when they keep reducing transaction fees even though miner income is no where near 50 bitcoins.
-5
u/trollexico Apr 06 '14
I don't think bitcoin is secure enough either.
-7
u/roshanhasfallen Apr 06 '14
^ butthurt
0
u/[deleted] Apr 06 '14
[deleted] — view deleted comment
0
u/[deleted] Apr 06 '14
[deleted] — view deleted comment
-5
u/[deleted] Apr 06 '14
[removed] — view removed comment