How To Create Bitcoin Private Key Compress and UnCompressed Address HEX WIF

On This Code Can Generated Bitcoin Compressed Address And UnCompressed Address From Bytes Key with os package .

first Generate Bytes Random With os.urandom(32)  after generated create hex() in ended code private key hex founded now  use bit package and use bytes_to_wif generate WIF key after generated with wif can generated compressed address and uncompressed address  with Key(wif) . full code example :