Closed alexanderkent closed 9 years ago
I think there's a fudged example in src/Chain/Difficulty. Haven't gotten to dealing with scenario where a compact num can be negative.
There is a Difficulty::getdifficulty() that takes a buffer::hex('hex for your nbits, ie, 1d00ffff')
Woops, thought you had posted on another repo. See Bit-Wasp/bitcoin-php.
This is cool, any decent way to go from bits to difficulty in PHP?