haobtc / richwallet

A universal wallet that accept different encryptcoins, such as bitcoin, litecoin, ...
GNU Affero General Public License v3.0
21 stars 25 forks source link

Import a key leads to wrong addresses #64

Open superisaac opened 9 years ago

superisaac commented 9 years ago

When Import a key into the wallet, the generated address is different from that of other bitcoin client.

superisaac commented 9 years ago

It's a bug from bitcoinjs , if the WIF of key is compressed, then the secreat is 33 bytes long instead of 32 bytes, the trailing byte 1 is attached.