There is no reason why the hash function for identifying a block and the hash function used to instantiate Hashcash must be the same; it's only a coincidence that Bitcoin happens to use the same hash for both use cases. Reflecting this fact by adding this abstraction makes the code more flexible. Co-authored-by: Jeremy Rand <jeremyrand@danwin1210.de>
28 KiB
28 KiB