Bitcoin Forum
June 18, 2024, 10:33:33 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bug Report: Private key not Yielding Correct Public Key  (Read 618 times)
SnowDog2003 (OP)
Jr. Member
*
Offline Offline

Activity: 41
Merit: 1


View Profile
September 09, 2013, 05:14:42 AM
 #1

This is a bug in the development version 1.9. It may, or may not be, a problem with the current release version.

Here's a private key that I'll no longer use:

5JN4PgPLhRskjUDhytEJ8tTDsUKJ9bBuEWwhdCSGFGhXbx6ofPt

In every other wallet, it will generate this public key hash:

1BbJHQStkpMcoqJ3ysZRV6HNpe3bGooiUK

In Electrum, it generates this public key hash:

1P2knF5HfFyYcdCrqxd2Ur3Z1UeGTv2dXx

This is not an isolated case. I saw this yesterday with another private key, but I want to keep that private key and do not want to disclose it. I did, however, test a specific case:

1) I ran 'importprivkey('<my key>')' from the command line of the Electrum Wallet.
2) I noticed that the public key hash was incorrect.
3) I sent funds to the incorrect public key.
4) I then tried to use the public key in the Electrum wallet by setting it to 'Prioritize', and then using it to send funds. The transaction failed completely with an error. I am not sure, but I believe the error was 'None Type', or something similar.


ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
September 09, 2013, 12:06:57 PM
 #2

thanks for the report. it looks like a recent regression in git master.
1.8.x versions are not affected.

Electrum: the convenience of a web wallet, without the risks
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
September 09, 2013, 12:15:13 PM
 #3

fixed here:
https://github.com/spesmilo/electrum/commit/5514d3bd74ab079beb0293d527e08dffd3105729

Electrum: the convenience of a web wallet, without the risks
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!