r/AskComputerScience • • Nov 25 '21

Why don't we use the computer resources for mining cryptocurrencies on useful tasks, instead of hashing

In cryptocurrencies such as Bitcoin a Block is created by "proof of work", meaning millions(perhaps more) of servers are wasting their resources on solving hashes. What if a Block was instead created by utilizing these resources to do tasks, such as Grid jobs in grid computing, or how we use cloud computing. One example is to use these resources to do protein folding for cancer research. Im not sure what metric would decide when a Block has been mined, but I just thought this might be an interesting concept, if at all even possible.

29 Upvotes

21 comments sorted by

3

u/GoodLifeWorkHard Nov 25 '21

There are programs out there already that does this. I remember many years ago downloading some program off an online forum (lol) because it was using my computing power to find the cure for cancer.

I remember once a browser or app was misleading in the sense that it was a "browser" but underneath it, it was using your computing resources to mine crypto or some shit. Someone correct me if I got my facts wrong.

2

u/flamingows Nov 25 '21

I think you are referring to utorrent, which had hid miners in their software.

2

u/_Nexor Nov 25 '21

AutomaCoin is one of these types of cryptos that actually use the computing power for useful ends.

2

u/flamingows Nov 25 '21

That's super cool, and demonstrates that it is possible!

37

u/khedoros Nov 25 '21

One of the key points of a Proof of Work algorithm is that it's fairly difficult to complete, but takes much less work to verify. You'd have to find something useful to calculate that has both of those properties.

1

u/kam1goroshi Nov 25 '21

Yes, and also something of fair difficulty.

24

u/teraflop Nov 25 '21

A proof-of-work system for a cryptocurrency has to satisfy certain special properties. Roughly speaking, it has to be easy for everyone to generate and agree on instances of the problem. It has to be difficult for people to solve the problem, but the difficulty has to be accurately controllable. And most importantly, it has to be much easier to verify a solution than it is to compute it from scratch. Very few real-world problems have these properties.

If you're willing to trust a central system to issue and verify the solutions to your problems, then you're giving that system essentially complete control over the mining process. So you might as well just skip the blockchain entirely and use a centralized database at that point.

9

u/roman_fyseek Nov 25 '21

foldingathome is always looking for more resources.

4

u/to_thy_macintosh Nov 25 '21

3

u/WikiSummarizerBot Nov 25 '21

Primecoin

Primecoin (sign: Ψ; code: XPM) is a cryptocurrency that implements a proof-of-work system that searches for chains of prime numbers. Launched on 7 July 2013 by anonymous hacker and Peercoin founder Sunny King, Primecoin was the first cryptocurrency to have a proof-of-work system with a practical use. Earlier cryptocurrencies, such as Bitcoin, were mined using algorithms that solved arbitrary mathematical problems, the results of which had no value or use outside of mining the cryptocurrency itself.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5

2

u/WikiMobileLinkBot Nov 25 '21

Desktop version of /u/to_thy_macintosh's link: https://en.wikipedia.org/wiki/Primecoin


[opt out] Beep Boop. Downvote to delete

7

u/Kempeth Nov 25 '21

Because greed.

As long as people like to pretend crypto is worth tons of money it'll be worth spending perverse amounts of energy on that gold rush.

2

u/S-S-R Nov 25 '21

This combined with u/teraflop's answer are the real reason. It's really difficult to find a distributed computing problem and cryptocurrency is concerned with producing turnips to speculate on, so why would developers bother with it?

3

u/thewataru Nov 25 '21

In addition to what's said already: The proof of work must be a completely useless computation. It's, after all, a proof that you have spent some resources dedicated to the network. If the computation had some other value, then it would reduce the cost of attack by exactly that value.

1

u/CreativeCarveClimb Aug 13 '26

The thing you're missing is that the people who set up clusters of computers to mine cryptocurrencies would not particularly value any side effects of the computation. For example, if it turned out that SHA256 hashes could predict protein folding with high accuracy, it wouldn't make this proof-of-work method obsolete. Bitcoin mining would continue as normal.

1

u/thewataru Aug 15 '26

But in that case the miners could sell the results they get to big pharma or scientists for example. Presumably they would be interested in protein folding predictions. Even if the results are seld for pennies, it would provide the miners with extra money which would offset the cost of mining and therefore the cost of attack.

Currently, it's less of a concern because bitcoins cost ridiculously huge amount of money due to speculative demand and investing craze. Therefore mining is very expensive and therefore the cost of attack is ridiculously high. But that's a very special case, which wasn't what distributed crypto currencies are designed for and it isn't even guaranteed to continue forever.

If there's any value in the computation that means someone has to hold that value, so there's always someone to sell the result to. If there's no one interested in the results, then they don't have any intrinsic value as designed.

1

u/CreativeCarveClimb Aug 15 '26

I see your point, but I think OP's idea (from 5 years ago 😅) was to have the data of scientific value be in the proof-of-work itself, so miners wouldn't be able to independently sell that valuable data, as it is already public. Though to your point, they could still sell the data in a nicer format than a blockchain, so maybe you are indeed partially correct.

1

u/NTheZone Dec 30 '21

Not true. The total value could include any ancillary benefits it provides, and ideally the market will adjust accordingly. Something that benefits everyone, e.g. protein folding, prime number finding, just increases value to all of humanity, i.e. it's a wash.

-1

u/zombiepirate2020 Nov 25 '21

These hashes ultimately have an intrinsic value. As a society, we will continue to find new uses for blockchain technology.

The market is discovering what that value is. As seen by the volatility in the various blockchain markets, such as Bitcoin.