News for hackers. Stuff that matters.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by JohnJamesRambo on Wednesday November 22, 2017 @02:27PM (#15759687)
Ethereum's Proof of Stake will probably render all this moot eventually. For now, Bitcoin's Proof of Work electricity usage sounds high but how much electricity and resources are used by brick and mortar banks, armored trucks, etc.?
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by Taek on Wednesday November 22, 2017 @03:14PM (#15760160)
There are a lot of unsolved problems with Proof of Stake, despite what it's proponents typically advertise, and many of them are believed by experts to be insurmountable.

For example, one problem with proof of stake is that private keys only have value while you still hold onto them. Once you sell your coins, your private keys are no longer worth anything, which means you could potentially even sell these keys to an attacker with no risk to yourself.

The attacker of course does have value though, if someone can gather enough private keys together for a specific snapshot in time, they can create an alternate history.

Another big issue with proof of stake is that once you have a certain amount of stake, through diligence you are always guaranteed to preserve that amount of stake. And even further, if you are a validator who approves transactions, your permission is required when someone else wants to buy stake. An attacker who is able to gain enough stake to commit an attack for a short period of time can commit that attack forever.

With PoW, hashrate requires heavy ongoing electricity expenses. Getting to 51% does not mean that you will stay at 51%, and there's little you can do to stop someone else from buying more chips to push you back below 51%.

There are a lot of other fundamental issues with Proof of Stake, and a lot of good reason to believe that it will never be viable in the fully decentralized, fully trustless environment that bitcoin thrives in.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by drcode on Wednesday November 22, 2017 @03:41PM (#15760414)
> if someone can gather enough private keys together for a specific snapshot in time, they can create an alternate history.

This only works for histories older than the account deposits for stakers, which will likely be 4-6 months. In other words, a person using ethereum's POS will need to turn on their computer once every 4-6 months to sync to the network, while stakeholders still have their deposits locked, to make this attack impossible- However, I agree this is less optimal than POW in a theoretic sense but the issue is pretty negligible.

(for those interested in learning more about this line of argumentation and who want to understand why regular syncing to the network is needed to counter this attack, look up the term "weak subjectivity" on Google.

> An attacker who is able to gain enough stake to commit an attack for a short period of time can commit that attack forever.

No, an attacker's addresses will be known and the protocol will slash their funds for most types of attack. In the cases for more difficult attacks that the protocol cannot slash for, the community can fork the network an exclude the attacker's accounts (something not possible in POW where a miner staging an attack can switch addresses at will.)

The reverse is actually true: If there was a successful 51% attack against bitcoin, the hashrate would drop precipitously (since the value of the currency and mining profitability would drop) and hence the attacker's 51% would skyrocket to an even higher number immediately.

> a lot of good reason to believe that it will never be viable in the fully decentralized, fully trustless environment that bitcoin thrives in.

I'm pretty confident Bitcoiners will clamor for a POS algorithm in a few years, once it gets marginalized by POS coins. But you Bitcoiners are definitely welcome to hobble along with the status quo approach if you like :-)

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @03:53PM (#15760521)
> In the cases for attacks that the protocol cannot slash for, the community can fork the network an exclude the attacker's accounts […]

Forks are always possible but, they’re not the solution, they’re the problem that a blockchain tries to avoid in the first place, because they lead to the issue: which chain do we follow?

If the community were able to organize itself to reach consensus on a given transaction history, we wouldn't need a blockchain in the first place.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by drcode on Wednesday November 22, 2017 @04:04PM (#15760616)
> Forks are always possible but, they’re not the solution

The argument is not that we would fork away attacks, the argument is that we can threaten forks to remove the incentive to attack in the first place.

> If the community were able to organize itself to reach consensus on a given transaction history, we wouldn't need a blockchain in the first place.

Well, the idea is that the community can't police every transaction, but they WOULD be able to give input once a year in an emergency situation- And we can show that these "emergency situations" would be infrequent (if they happen at all) due to the fact that an attacker will forfeit large amounts of money with every attack.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by Taek on Wednesday November 22, 2017 @04:16PM (#15760732)
> In other words, a person using ethereum's POS will need to turn on their computer once every 4-6 months to sync to the network

That only works if you were already bootstrapped to the network. But if this is your first time joining the network, how can you tell?

Weak subjectivity more or less becomes a proxy for letting the major players decide. If your friend says that they've been on the chain for years and chain 'X' is the true chain, but blockchain.info is saying that chain 'Y' is the true chain, what happens? How can you tell if both seem valid? If a Proof-of-Stake system had an NYA-style agreement to perform a hardfork that benefits major players over individuals, would you be able to fight it?

I think it would be much harder in a Proof-of-Stake system than in a PoW system, because in PoW creating an alternate system costs hundreds of millions of dollars in electricity.

> an attacker's addresses will be known and the protocol will slash their funds for most types of attack

This only works if you can get a transaction through to prove on-chain that the attacker has been double signing. If you can't (which you won't be able to because the attacker has control), you can't slash their funds.

> If there was a successful 51% attack against bitcoin, the hashrate would drop precipitously

The hardware doesn't magically stop existing. It may turn off, but many miners have contracts with electrical companies that require them to use the electricity. But even with that aside, the hardware would merely turn off. Buy some more hardware, and then you can coordinate with the existing honest hardware to resume mining, now outnumbering the 51% attacker.

------------------

Another issue with PoS systems: they traditionally have very low participation rates. A 51% attack in a PoS system is often more like a 10% attack, because only 20% of the people are actually staking their coins anyway.

In a market as volatile as modern cryptocurrency (remains to be seen if volatility would drop), it's very expensive to stake your coins for 6 months in a row because that means you can't be doing any trading on those coins, or deploying them as any other form of capital.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by drcode on Wednesday November 22, 2017 @07:23PM (#15761844)
All good counterpoints- Actually, I mostly agree with all of these points and they portray the issues in a fair way, so I won't comment any more and let readers come to their own conclusions which side has the strongest argument.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by erikpukinskis on Wednesday November 22, 2017 @05:04PM (#15761104)
> If there was a successful 51% attack against bitcoin, the hashrate would drop precipitously

Is this really true? There are a ton of factors that mitigate the value/importance of a 51% attack:

1. You still can't spend other people's money. You spend your money twice. Your damage is limited to people who you've transacted with.

2. You can't arbitrarily rewrite history, you can really only play with very recent history. You have to pick a point that you're going back to, and the further back you go the harder it will be to catch up to the original chain. The smaller your margin over 50% the slower the catch-up will be.

3. You're out in the open. Let's say you have 51% power, you still will need hours or days to catch up to the original chain. In that time, people will be able to very clearly see what you are doing and can decide to blacklist your chain. White hats can also bring more computing resources online to make it even harder for you to catch up.

4. During your catch-up period, you need to be able to get your assets out of the blockchain. That's a very specific constraint. If you are trying to buy two boats with the same money, you need to get the first boat off the lot during the time between your first transaction and the moment your fork catches up to the original chain. If the seller of the first boat is watching the blockchain closely, they might even be alerted right when you fork the chain, before you've even caught up. You also need to prevent the seller of the second boat from figuring out what you're up to before you get the second boat off the lot.

5. You're still subject to all existing law enforcement. You still stole a boat.

So who's really at risk? Basically, people doing huge transactions purely within the crypto realm, where the assets can be cleared instantaneously. That's a fairly narrow segment of the market, and those people can use escrow services and other techniques to mitigate their double-spend risk.

Frankly, I think a 51% attack would increase Bitcoin's value, because everyone would see how little value it really gives the attacker. And we'd see all the mitigation strategies we have, which are many. It'd be like the DAO and Parity attacks on ETC, which only seem to have increased confidence, by showing how firewalled those thefts are, and educating people on the choices available to the network for mitigation.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by zaarn on Thursday November 23, 2017 @03:32AM (#15763721)
>if someone can gather enough private keys together for a specific snapshot in time

IIRC from the CASPER blog posts, the solution is simply to not let the validators reverse history beyond a certain point. I think that was about 2000 blocks or so. After that point a client won't accept an alternate history.

>An attacker who is able to gain enough stake to commit an attack for a short period of time can commit that attack forever.

Not necessarily. Again, CASPER, an attacker who violates some of the consensus rules will loose their entire stake over time (heavy penalties), so behaving is the most profitable option. To misbehave means to burn a lot of cash.

Since CASPER is based on betting, an attacker may be able to temporarily censor a transaction but they can't censor another validator who is honest without loosing money in the process (they have to bet against and burn the money)

>a lot of good reason to believe that it will never be viable in the fully decentralized, fully trustless environment that bitcoin thrives in.

Honestly, it doesn't need to be. It just needs to be decentralized enough, trustless enough while also providing better value than bitcoin.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Thursday November 23, 2017 @07:25AM (#15764577)
> IIRC from the CASPER blog posts, the solution is simply to not let the validators reverse history beyond a certain point. I think that was about 2000 blocks or so. After that point a client won't accept an alternate history.

This doesn’t solve the boostrap problem: how do new clients know which fork to choose? PoS is an algorithm that takes a chain as input, and outputs who gets to build the next block. The problem, however, is deciding which chain to give this function as input in the first place — deciding who gets to mine the next block in a chain is fairly easy, agreeing on which chain to choose in the first place is the hard part.

> Not necessarily. Again, CASPER, an attacker who violates some of the consensus rules will loose their entire stake over time (heavy penalties), so behaving is the most profitable option.

They will only lose their stake on a fork, that includes the proof of their violation (because stakers have no incentive to include the proof in the chain they control). Which, again, brings us back to the initial issue: how do clients, who want to join the network, decide which fork to follow?

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by zaarn on Thursday November 23, 2017 @08:01AM (#15764731)
>This doesn’t solve the boostrap problem: how do new clients know which fork to choose

Google "weak subjectivity". In short; they don't. The user supplies initial consensus. It's also fairly okay if the clients come with a baked in blockhash to start from, you only need to update that once every quarter or so to keep it current.

If an attacker would poison a chain, for example by censoring it, the network can fairly easily slash his stake (this is allowed as part of the protocol) and start a new chain. You only need to point the client at it.

That is, an attacker can only operate while they have both the proof-of-stake consensus and the social consensus. If they loose either, they loose everything.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by 16th_hop on Wednesday November 22, 2017 @03:33PM (#15760352)
The criticism's in this post really make very little sense. What does that mean that "private keys only have value when you hold them." Private keys are worthless, they only give you access to the wallets that they unlock.

Also, no, you are not guaranteed to stay at 51% forever. Vitalik has explicitly said that if a 51% attack happens, the community is expected to fork, and all of your funds will be isolated and slashed in the fork. If you want to attack again, you then need to collect another 51% of funds. This gets exponentially more difficult.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by drcode on Wednesday November 22, 2017 @03:44PM (#15760444)
> What does that mean that "private keys only have value when you hold them."

What he's saying is that people would sell their old private keys and an attacker could then use these to create a fake history of stakers- The existence of this attack is a valid criticism against POS, though one that can be easily prevented by just syncing to the network at regular intervals.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by mikeash on Wednesday November 22, 2017 @02:37PM (#15759801)
When comparing energy usage to other financial systems, don't forget to also look at how many transactions they're able to handle. Bitcoin is tiny in terms of the number of transactions, so while the financial system as a whole no doubt uses more energy, it also facilitates orders of magnitude more activity. In terms of energy per transaction, Bitcoin is thousands of times higher.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by ryanjmo on Thursday November 23, 2017 @04:52AM (#15764024)
Why isn't it then more expensive to hold and transfer then? Seems like those should be correlated.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by mikeash on Thursday November 23, 2017 @10:42AM (#15765676)
Sorry, I don’t understand what you’re asking. What isn’t what more expensive? What should be correlated?
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @02:48PM (#15759918)
Proof-of-stake is not a replacement for proof-of-work, because PoS doesn’t solve the problem of which valid chain is the canonical one. That is, when given 50 different, valid chains, which is the right one?

With PoS, the only way to agree on this is through voting (how many nodes present the various different chains — which is fragile, since bringing up additional nodes is cheap), and through centralization (central coordinator telling you which chain to choose — which adds nothing, since the double spend problem is easily solved using a central party).

Fundamentally, PoS solves the wrong problem: the difficult problem is not who gets to extend the chain, it’s deciding which chain to extend in the first place.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by wcoenen on Wednesday November 22, 2017 @03:06PM (#15760102)
The idea is to vote not by bringing nodes online, but with a stake. Meaning you sign with a private key which is linked to a certain amount of cryptocurrency.

To make sure that something is actually at stake and you don't just vote 50 times on 50 different valid forks, anyone can submit proof to the chain (or rather, any fork of the chain) which shows that a certain stake voted for multiple conflicting forks. In that case the stake is destroyed in all of those forks. Part of the stake may be given to the reporter as incentive for such reporting.

The result is that stakers need to pick one fork, and the one with the most votes (weighted by the amount of currency behind them) wins.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @03:13PM (#15760155)
> Meaning you sign with a private key which is linked to a certain amount of cryptocurrency.

This requires that the 50 different chains each use the same private key for the stake.

What if 50 different chains are presented in which no private keys are the same?

Why would an attacker reuse the same private key for a new, but valid, chain?

> [...] anyone can submit proof to the chain which shows that a certain stake voted for multiple conflicting forks.

How does this solve the problem when the miners (who may have mined on multiple chains) are the ones who need to include this proof-of-fraud in the chain? What will make them include a transaction proving they've committed fraud?

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by wcoenen on Wednesday November 22, 2017 @03:22PM (#15760248)
> What if 50 different chains are presented in which no private keys are the same?

The chains share state right up until the fork point. Each fork gets resolved by the signatures linked to stakes that were already established in the last shared block.

> What will make them include a transaction proving they've committed fraud?

A staker/miner can chose to not include proof of his own wrongdoing, but that will not prevent others from creating an alternative fork which does have that proof.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @03:41PM (#15760408)
> The chains share state right up until the fork point.

I’m not talking about forks. I’m talking about completely different, but valid, chains.

> A staker/miner can chose to not include proof of his own wrongdoing, but that will not prevent others from creating an alternative fork which does have that proof.

This brings us back to the initial problem: how do we agree on which chain is the canonical one?

Also, what’s the timeout on this event happening? Unless there’s a timeout — at which point a fork changing history is ignored — some transactions in the chain remain unsettled because a fork might appear which invalidates them (because they originated from coins that were staked by a now-proven-fraudulent staker).

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by topmonk on Wednesday November 22, 2017 @10:21PM (#15762500)
> I’m not talking about forks. I’m talking about completely different, but valid, chains.

Typically block zero is signed by the developer of the client, so there is no such thing as completely different, but valid, chains, as there is always a fork point.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by Certhas on Wednesday November 22, 2017 @03:05PM (#15760094)
So a central bank approved proof-of-stake chain could displace a major part of the banking sector.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by DennisP on Wednesday November 22, 2017 @03:04PM (#15760079)
Casper does have a fork choice rule. Basically the chosen chain is the one that destroys the least amount of staker ETH.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @03:46PM (#15760470)
So the chosen chain will never include proofs-of-staker-fraud (since these destroy staker ETH)?
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by DennisP on Wednesday November 22, 2017 @04:45PM (#15760974)
It definitely will include fraud proofs. But I'm not up on it well enough to cite the exact rule.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by JohnJamesRambo on Wednesday November 22, 2017 @02:54PM (#15759970)
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by runeks on Wednesday November 22, 2017 @02:58PM (#15760020)
I’m well aware that it’s intended as a replacement for PoW, but I’m pointing out that they have very different security guarantees.

For example: imagine there's a vulnerability in the reference client. With PoS, a payload can compromise nodes and replace their chain with another (valid) chain, leaving everyone wondering which chain is the right one. With PoW, no attacker can alter the chain without invalidating its proof-of-work.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by kevingadd on Wednesday November 22, 2017 @02:35PM (#15759770)
"How much is used by all banks and armored trucks put together" is kind of meaningless unless you factor in the immense transaction volumes those banks handle every day.

Just consider the number of wire transactions that happen every day in a single country, or internationally. The amount of money handled by those transactions might even be smaller than the total BTC transacted daily, but the number of individual wires is enormous, and each one forms the basis of business transactions or charitable donations or government operations.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by PeterisP on Thursday November 23, 2017 @02:55AM (#15763564)
Looking at BTC stats it seems that we're talking about an order of magnitude of 300k transactions per day with a total volume of roughly 2 billion USD per day.

Mastercard transacts roughly 200m transactions per day with a total volume of roughly 10 billion USD per day; so 600 times more deals than bitcoin, but with a lot of quite small transactions.

USA fedwire has about 400k transactions per day (because in USA wire transfers aren't much used by ordinary people) with a total volume of roughly 2 trillion USD per day, so 1000 times more than bitcoin in terms of worth.

EU retail payment systems ("wire transfers" in US terms but for consumers, not the very large settlements) have about 14 million transactions per day with a total volume of 100 billion, so something like 50 times more than bitcoin in both number and volume.

So while Bitcoin is a serious factor, it still comprises a small (<0.1%) amount of the global transaction numbers and amounts; and we'd need at least a thousandfold growth in volume if bitcoin is to replace our current infrastructure.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by visarga on Wednesday November 22, 2017 @03:38PM (#15760389)
> Just consider the number of wire transactions that happen every day in a single country, or internationally.

It's only interesting to compare price per transaction.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by kevingadd on Wednesday November 22, 2017 @04:52PM (#15761028)
If (random made-up numbers here) 90% of bitcoin transactions are BTC being shuffled between exchanges and 'washed' through mixers, but 90% of wire transactions are people paying for rent, food, and hospital expenses, would you really say that the distinction isn't meaningful? The societal implications of those two groups of transactions are very, very different. I would argue that the latter group's importance is much higher than the former's.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by JetSpiegel on Wednesday November 22, 2017 @08:06PM (#15762048)
And yet, much less of 90% of current fiat money transactions are "people paying for rent, food, and hospital expenses". Bitcoin doesn't really solve capitalism.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by RobertoG on Wednesday November 22, 2017 @04:33PM (#15760860)
Not really. What is the point of cheaper price per transaction if, for some reason, nobody it's using it?
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by cel1ne on Wednesday November 22, 2017 @02:34PM (#15759760)
Not an expert, but it seems that proof of stake is just obscured proof of work.

http://www.truthcoin.info/blog/pow-cheapest/

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by DennisP on Wednesday November 22, 2017 @03:01PM (#15760057)
That assumes there's some way to grind through lots of computations to manipulate proof of stake, which isn't the case with the newest designs.

Ethereum's proof of stake FAQ has responses to that article: https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by hudon on Wednesday November 22, 2017 @03:32PM (#15760340)
Not really, it just assumes on the economic principle that your costs and your revenue will converge. In a free market, if you are spending 50$ for a chance of winning 100$, everyone else is incentivized to spend 51$ and more to have a higher probability than you. Eventually the people spending 99$ win every block.

If the costs don’t manifest themselves in the protocol, they will be external costs. Hence, “obscured proof of work”.

In other words, the problem is not that Bitcoin costs us X per unit produced, it is that we value Bitcoin at 8000$ per unit.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by DennisP on Wednesday November 22, 2017 @03:46PM (#15760460)
That only works if there actually is a way to spend $51 and get a higher probability, and that's not necessarily the case. E.g. the Dfinity protocol uses threshold signatures so with any m-of-n stakers submitting, the same random number will be produced.

Besides, in Casper at least there are internal costs: the locking and potential loss of stake.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by randywaterhouse on Wednesday November 22, 2017 @02:34PM (#15759758)
I've heard a number of conflicting arguments about the reliability of Ethereum switching to proof of stake... From "they will" to "this is difficult, why bother". There's also the other side of the equation - what's the value-add, and is it justified by the consumption? (e.g. the banks, trucks, etc. do something for the financial system, which has value. Is value / cost higher for BTC or lower?)

I do not know.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by jacobush on Wednesday November 22, 2017 @05:55PM (#15761407)
I am not holding my breath waiting for Ethereum Proof of Stake. When is the switch? What are the incentives for nodes and miners to switch?
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by AgentME on Wednesday November 22, 2017 @11:15PM (#15762689)
A lot of Ethereum users are excited for a solid proof of stake system. The incentive is visible in this thread: people want to feel they're not contributing to wasting electricity.

And the incentive for miners ... well, Ethereum doesn't need them if it has proof of stake, so that part doesn't matter. They don't dictate the rules of the system.

Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by jacobush on Thursday November 23, 2017 @04:32AM (#15763950)
Within the system, they have not. External to the Ethereum network, I expect people heavily invested in mining infrastructure to fight tooth and nail to protect their investments.
Re:Bitcoin Mining Now Consuming More Electricity Than Many C... by akvadrako on Thursday November 23, 2017 @05:34AM (#15764185)
It won't happen anytime soon because PoS is still theoretical and might even be impossible to do securely.