novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

wallet-tool derives bad address from private key #390

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I create a key with wallet tool, the wrong public Bitcoin address is 
calculated:

./wallet-tool --net=TEST --wallet=blawallet --chain=testnet.chain 
--action=ADD_KEY --privkey=92W1VKypz5oUNkqwjunu8GW7k9g5jZxgRG1A1PPBWf3Mru6y2S7

output:

addr:muC2jYXnBdt1CDThXTuGCnuXnEisPCFxT9 
pub:04f31e7d1d6cb4362c4becbfdbd3c01bd0a13c4d67efa1b56a1ee42e041050cc30f40edf7d69
4bbe4f42effda5c6352029763c5b395f6f900c04e543f45b97263b

A dump yields the same bad address. The correct address would be

mjXM7Q4eZ6GkDDEhWQU3SbqMs2awaxu4gc

Original issue reported on code.google.com by andreas....@gmail.com on 14 Apr 2013 at 9:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 95fc6d7245e4.

Original comment by hearn@google.com on 24 Nov 2013 at 6:11