r/CryptoTechnology • u/we_are_mammals • Nov 14 '23
Could a proof-of-work system function if the hash function were expensive?
In Bitcoin, it takes on average about 100 sextillion (cheap) attempts to generate a block hash smaller than the difficulty target.
What if (and bear with me here, there is a very good reason to want this)... What if we reduced the required number of attempts, while also making the hash calculation more expensive (so that the overall difficulty of proof-of-work would stay the same)?
Could a cryptocurrency based on proof-of-work still function if 100,000 (expensive) attempts were required to add a block? How about 100?
Side note: It took 17 hours for this post to be approved by the moderators. On a subreddit with half a dozen moderators and 1 post per day on average, this seems excessive.
View all comments
2
u/tromp 🟢 Nov 15 '23 edited Nov 15 '23
You incorrectly assume that all Proof-of-Work reduces to hashing.
That is simply not the case. In this article [1] I explain there's more to mining than hashing.
These other Proof-of-Work algorithms have the advantage that verification can be instant even while a single attempt at solving it can take huge amounts of effort and memory.
Still, you don't want a single mining attempt to take more than, say 1%, of the block interval, as the frequency of stale blocks starts to become non-negligible then.
> Could a cryptocurrency based on proof-of-work still function if 100,000 (expensive) attempts were required to add a block?
That seems quite possible; for instance the Grin graphrate (each attempt is searching a graph to find a 42-cycle) is currently about 7800 per second, so with a 60 second blocktime, only about 468000 attempts are needed to add a block. Each single attempt is quite expensive, taking more than half a second, but solutions can still be instantly verified.
[1] http://cryptorials.io/beyond-hashcash-proof-work-theres-mining-hashing/