I am trying to generate random bitcoin Private_Keys in HEX format (32bit) but I want the randomness to have a value within a specific HEX range, say between
The following piece of code in
Python 3 is a start but it simply generates random keys for the curve's entire field which is up to
This is the code:
generate_private_key(): return binascii.hexlify(os.urandom(32)).decode('utf-8').upper()
How to specify the desired search range expanding on the above code?