Bitcoin Forum
April 26, 2019, 05:10:23 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bug Report: Private key not Yielding Correct Public Key  (Read 540 times)
SnowDog2003
Newbie
*
Offline Offline

Activity: 41
Merit: 0


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.


1556298623
Hero Member
*
Offline Offline

Posts: 1556298623

View Profile Personal Message (Offline)

Ignore
1556298623
Reply with quote  #2

1556298623
Report to moderator
1556298623
Hero Member
*
Offline Offline

Posts: 1556298623

View Profile Personal Message (Offline)

Ignore
1556298623
Reply with quote  #2

1556298623
Report to moderator
1556298623
Hero Member
*
Offline Offline

Posts: 1556298623

View Profile Personal Message (Offline)

Ignore
1556298623
Reply with quote  #2

1556298623
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1899
Merit: 1022



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: 1899
Merit: 1022



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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!