Every ten minutes or so, somewhere on Earth, a machine wins Bitcoin's lottery and adds a block to the chain. From the outside it looks like raw waste: warehouses of chips computing trillions of hashes per second, most of them thrown away.
Underneath, though, is one elegant idea. A hash function takes any data and scrambles it into a fixed string of digits. Change the input by one character and the output looks completely different — there is no way to steer it. So miners add a nonce, a throwaway counter, and ask a simple question: does the block's hash start with enough zeros?
Almost always the answer is no, so they bump the nonce and try again. Proof of work is nothing more than this: keep guessing until you stumble onto a hash that clears the bar. Hard to find, trivial to check — and that gap is the whole point.
Comments
Loading comments...