Closed peerchemist closed 6 years ago
That's a very good idea! However, I would like to add the notion of compressed/uncompressed pubkeys inside PrivateKey
, to be used in case of pub()
, so I am already in the process of refactoring that part.
WIFs usually use compressed pubkey by default.
@SimoneBronzini I think we should add to_wif
method on PrivateKey class, to allow for exporting to WIF format. from_wif
can be made to save wif prefix by setattr to PrivateKey - which can then be used to assemble it back to WIF.
I completely agree, will work on this as soon as possible.
Simplification of WIF decoding code.