Skip to content Skip to sidebar Skip to footer

Address Generation For Bitcoin With Python Error

I am trying to understand bitcoin with python and trying to create my own vanity address generator. Below is a snippet of the while loop. I keep getting an error after the loop run

Solution 1:

You have to encode your hex_compressed_public_key to generate the address.

compressed_address_base58check = bitcoin.pubkey_to_address(hex_compressed_public_key.encode('utf-8'))

Post a Comment for "Address Generation For Bitcoin With Python Error"