bodhiproject/qrypto

Accept WIP that corresponds to uncompressed public key

Closed this issue · 1 comments

The length from the WIP string should be either 51 or 52.

if (address.length !== 52) {

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.

@hayeah resolved in PR194, will be part of next release