The block target in Bitcoin is encoded in block headers as a 24 bit integer raised to an 8 bit exponent:

int(nBits[1:4]) * 2 ** (8 * (int(nBits[0]) - 3))

Are there multiple nBits representations of the same target value? Are they interchangeable? That is, could a miner choose any of them?

  • Yes there would be multiple representations but I don't know if they are valid or not. I don't know if the target is binary matched in the core client or if it is just compared to be of at least n difficulty. – Anonymous Apr 12 '15 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.