shuijian-xu / bitcoin

0 stars 0 forks source link

Where to get exponent value for target? #216

Open shuijian-xu opened 4 years ago

shuijian-xu commented 4 years ago

Is the value of last bytes in bits the same as the value of len(raw_bytes)?

raw_bytes = target.to_bytes(32, 'big') raw_bytes = raw_bytes.lstrip(b'\x00')