fortesp / bitcoinaddress

Bitcoin Wallet Address Generator
https://pypi.org/project/bitcoinaddress/
MIT License
144 stars 51 forks source link

Need explanation on Wallet() #7

Closed parabinho closed 3 years ago

parabinho commented 3 years ago

Hi, first of all, thank you very much for your job, It's fantastic.

Is it possible to use Wallet() with a defined private key in string format? Can you provide a quickly example for this?

Thank you in advance.

fortesp commented 3 years ago

Hi,

Not using the Wallet class, but you can call the Key separately and provide your Hex private key such as:

key = Key() key.generate_from_hex('some private hex key'); address = Address(key) address.generate() Cheers