New answers tagged

2

You are trying to hash a hex string not binary data. Working example: import pyrx import binascii import struct def pack_nonce(blob, nonce): b = binascii.unhexlify(blob) bin = struct.pack('39B', *bytearray(b[:39])) bin += struct.pack('I', nonce) bin += struct.pack('{}B'.format(len(b)-43), *bytearray(b[43:])) return bin seed = binascii....


2

How to get a decimal value of difficulty (480045) by a hexadecimal value of a given target in hex (f3220000) ? Swap endian f3220000 and remove padding gets 22f3, then 0x100000001 / 0x22f3 yields: 480045. How to get a hexadecimal value of target (f3220000) by a decimal value of a given difficulty (480045)? ((2^256-1) / 480045) >> 224 is ...


Top 50 recent answers are included