5 ms·
Proof-of-Work only makes sense if there is an opportunity cost for mining an invalid chain. If mining an invalid chain is "useful" in some way, the security gu
by VMG 6y ago
Proof-of-Work only makes sense if there is an opportunity cost for mining an invalid chain.
If mining an invalid chain is "useful" in some way, the security guarantee disappears.
- algo646464 6y agoCan you explain why the security guarantee disappears in more detail? I thought that the security of a block-chain comes primarily from the difficulty of rewriting the chain of blocks. To do that you will have to fork and recompute the chain from some point back in history (say 5 blocks ago). This puts at a disadvantage since the rest of the network is ahead of you by 5 blocks and will continue adding new blocks. So you will need a lot of computational power to rewrite history and also overtake the rest of the network. Why would some additional reward for mining (by solving a useful problem) break this?
- VMG 6y agoYou don't actually need 51% of the mining power to perform a double-spend attack. Just by pure chance, even with 10% of the mining power, you will find 5 blocks in a row sometimes. With a "wasteful" PoW, miners would not attempt this as they would hemorrhage money doing that. Withe a "useful" PoW, miners could have an outside funding source like some institute that pays for protein folding. The would not lose money in their attempt to produce a minority chain (in proportion to the "usefulness" of their PoW)
- algo646464 6y agoThe external reward in "useful" PoW is given to all miners, good and bad. So everyone is equally incentivized. In fact it should actually increase the participation in the network, e.g. those who don't care about cryptocurrency but are interested in the "useful" problem being solved. The external reward by itself provides no competitive advantage. It reduces everyone's costs by the same amount. Rewriting history still remains difficult. So what am I missing here?
- VMG 6y agoRewriting history needs to be expensive, not just difficult. If you decrease the cost of writing history, you decrease the penalty of participating in a minority chain.
- algo646464 6y agoI always understood the security of block-chains as a race between the good and the bad agents. Both are extending their respective chains as fast as they can. A bad-agent, who wishes to double-spend has to rewrite history, and therefore has to start a few step behind the good agent. To succeed, the bad agent has to overtake the good agent. Even if both have the same speed (i.e. 50% computational power each), the good agent will sill be a few steps ahead of the bad agent, and the system is secure. If the bad agent is faster(51%), then eventually it will overtake the good agent breaking security. This is true even if the cost of computation is zero (e.g. the Govt. pays for all your computation cost). As long as the bad agent doesn't have 51% or more of the computational power, the system is secure.
- VMG 6y agoAn attacker does not have to wait in order to produce a parallel chain. He can mine his separate chain immediately after submitting the transaction. Even with less than 50% hashrate, he is bound to find a few blocks in a row from time to time. Keep in mind that he can run the attack as often as he wants. This is why the recommendation is to wait for 6 blocks - it is very unlikely (not impossible) that somebody with a 20% hashrate ever finds 6 blocks in a row. When an attack is successful, everybody will mine on the attackers chain - including the honest miners. The attackers chain is valid after all, it just has a different valid transaction set. The significance of the 51% hashpower is that the attacker is guaranteed to succeed over a long-enough time horizon. Reducing or removing the costs of mining a parallel chain (even for miners with 20% hashpower) reduces their cost to mine a parallel chain and weakens the security guarantee. If a miner can work on a side chain and get paid for protein folding at the same time, he can keep doing it without losing money on electricity. When he finally succeeds, he will also cash in the mining reward.
- fallingknife 6y agoIf you had 10% of the network the odds of that would be only 1/100K right? Or is that not how this works?
- fogof 6y agoIt seems to me that even in the PoW is useful, then both the honest and the dishonest miners will be able to get outside funding (from the perspective of the research institute after all, they are doing the same task). So the opportunity cost for dishonest mining is exactly the same - you miss out on the block reward more often.
- deleted 6y ago[deleted]