News for hackers. Stuff that matters.
Re:Bitcoin From Scratch – Part 1 by runeks on Saturday July 04, 2020 @08:45AM (#23731877)
It’s not a myth. It’s a useful simplification.
Re:Bitcoin From Scratch – Part 1 by tromp on Saturday July 04, 2020 @10:47AM (#23732573)
It's also accurate if you say that hash value H has

-log_2 (H / 2^256) = 256 - log_2 H leading 0s

and allow for fractional number of leading 0s.

The nBits header field closely resembles a 32-bit floating point representation of this number (I say resembles because it's really a floating point representation of the threshold H value).