Accept WIP that corresponds to uncompressed public key
Closed this issue · 1 comments
hayeah commented
The length from the WIP string should be either 51 or 52.
Line 52 in 433f246
A public key can be uncompressed or compressed:
https://bitcoin.stackexchange.com/questions/3059/what-is-a-compressed-bitcoin-key
The corresponding private key in WIP format may be 51 (uncompressed) or 52 bytes (compressed), according to:
https://en.bitcoin.it/wiki/Wallet_import_format
The underlying validatePrivateKey
function should handle either cases.
soshochang commented
@hayeah resolved in PR194, will be part of next release