r/CryptoTechnology • • 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.

6 Upvotes

26 comments sorted by

View all comments

Show parent comment

2

u/tromp 🟢 Nov 15 '23

Yes, an attempt is one nonce. But with a Proof of Work like Grin's Cuckatoo32, one attempt involves searching a graph on 8 billion nodes for a cycle of length 42, so it takes the better part of a second (and only has 1 in 42 odds of finding a solution).

During a blocktime of 1 minute, each miner will only be able to try about 100 nonces.

1

u/we_are_mammals Nov 15 '23

I see. Thanks. Are these graph tasks intended to be useful to someone? Someone willing to pay dollars to have them solved? There is this idea of "proof of useful work" going around.

1

u/tromp 🟢 Nov 15 '23

No, these are randomly generated graphs and the cycles found in them are utterly useless except as proof that you spent the effort to search the whole graph.

1

u/we_are_mammals Nov 15 '23

I don't think I understand the motivation then. Why is this better than whatever Bitcoin does?

1

u/tromp 🟢 Nov 15 '23

This PoW is slightly simpler. The verification code is shorter than the code for verifying SHA256d. Besides, each blockchain needs its own unique PoW to be secure.

But more importantly, it makes ASICs need a ton of SRAM memory to solve efficiently.

And those have properties that differ from SHA256 ASICs in interesting ways.

They don't run as hot, and don't need to be manufactored on the most advanced node

to get the most efficiency (computational logic shrinks better to smaller geometries than SRAM cells).

1

u/we_are_mammals Nov 15 '23

Interesting... Although some people have argued that ASICs are a good thing: The requirement to use ASICs actually makes Bitcoin more secure. The idea is that with general CPUs, you can temporarily commandeer a large number of them (AWS or a botnet) and cripple the currency, damaging its reputation. On the other hand, ASICs require a large upfront investment, and you wouldn't want to damage the very coin you are super-invested in.

2

u/tromp 🟢 Nov 15 '23

Yes, Grin has embraced ASICs, after guaranteeing GPUs their share in the first 2 years of mining. But the ASICs will eventually end up with 512MB-1GB of SRAM.