5 ms·
The hash function is completely arbitrary. An infinitesimal amount of the work that goes into a block is actually processing the transactions. After that it's
by Dylan16807 14y ago
The hash function is completely arbitrary. An infinitesimal amount of the work that goes into a block is actually processing the transactions. After that it's all proof of work, and you can slot in any proof of work.
The problem is that 'useful' calculations aren't suited for extremely fast verification.
- DennisP 14y agoI guess that depends how you define it. The only thing it's doing is taking transactions as input, along with a random number, and hashing them. It's just that the result is required to have a certain number of zeros to be considered valid, so you have to do it over and over again with different random numbers. If you didn't require a difficult computation, anyone could compute a different order of transactions and it would look just as valid. Easier hashing would not accomplish the goal of making a universally-agreed-upon transaction order.
- Dylan16807 14y agoThat's why I said you can slot in any proof of work. Anything slow to do but quick to verify will suffice.
- DennisP 14y agoAny proof of work with bitcoin transactions as the input will suffice. Generating similar hashes of, say, public astronomical data, wouldn't do the job at all.
- Dylan16807 14y agoYou only need to feed in a handful of bytes of bitcoin data. One fake star, or slight perturbations of water molecules in frame 0 of a simulation, would be enough. The problem is that it's difficult to make an algorithm that is both proof of work and actually useful for something.