I am wondering if there would be any security deficiencies if cryptocurrencies such as Bitcoin were to change their proof-of-work problems to optimization contests. For example, suppose Bitcoin were to change its proof-of-work problem to an optimization problem. In this scenario, the goal each instance of the proof-of-work problem would be to minimize the output of the hash function, and the winner of each block is the entity who finds the input with the lowest hash after 10 minutes. Would an optimization proof-of-work problem cause any security weaknesses, other deficiencies, or complications for the cryptocurrency? Are there any cryptocurrencies which use an optimization proof-of-work problem instead of a search problem as a proof-of-work?

  • It would not work, because it causes weaknesses. See bitcoin.stackexchange.com/questions/53654/… – abelenky May 26 '17 at 21:50
  • It seems like this would be a major problem if there were entities who control much of the mining network. On the other hand, if each entity only controlled a very small portion of the network, then I do not see how this problem would be fatal. For example, if Alice only controlled 10% of all the mining power, and Alice gets a 5 minute head start, then Alice would only have a 15% chance of mining the next block, so Alice will have a hard time of producing a 51% attack. I therefore wonder if there are any other weaknesses than a "work-ahead" attack. – Joseph Van Name May 26 '17 at 22:42
  • There is also a question how you'd achieve such a feat. You basically need to collect all solutions for the optimization problem which would mean unnecessary flooding of the network. And an unfair advantage since all solutions are not able to arrive at exactly the same moment. – fiction Jul 3 '17 at 20:45
  • fiction. As for collecting all solutions, one can instill a protocol stating that only hashes below a certain threshold are acceptable so that one only collects a handful of solutions. – Joseph Van Name Jul 3 '17 at 22:50

Generally, one could predict the "average" hash that is successful.

When a miner is lucky enough to find a hash that is unusually better than normal, it could keep that block to itself, and get a headstart mining the next block, and the next block.

When a competing block is released by a competing miner, the original miner can release its previously secret block with an exceptionally low hash, which is known to be a guaranteed "winner".

This would invalid the work of other miners, and enforce the miner's headstart on future work, giving it an unfair advantage and greater control over the blockchain.

  • 1
    Is that especially different than selfish mining in Bitcoin-style POW? What's the expected value of each strategy? – Nick ODell May 26 '17 at 21:57

You're not thinking like an attacker yet. ;)

Beside this incentivizing selfish mining, a miner can do the following attack: Mallory sends all her funds to herself every block. As soon as she finds a block with a very low hash, she can execute the following attack: Make a payment to someone that accepts first confirmation with a substantial fee ensuring it will be in the next block. Wait for the next block. Receive the counterside of the deal (e.g. coins on another chain). Publish their block and laugh.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.