Bitcoin Forum
May 12, 2024, 05:27:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [solved] Bitcoin WIF misses 7 characters: how to restore checksum offline?  (Read 256 times)
LoyceV (OP)
Legendary
*
Online Online

Activity: 3304
Merit: 16638


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 11, 2018, 01:25:40 PM
Last edit: March 11, 2018, 04:07:48 PM by LoyceV
 #1

I'm trying to help out BitcoinBazaar.net, who sent me his blockchain.info private key. He needs to sign a message to prove ownership of his hacked account.

The WIF private key misses 7 characters. His address is read only, but he can use this private key to make a transaction from blockchain.info. My best guess is that blockchain.info left out the checksum for some reason.
Complication: The address may still receive funds in the future (despite my warning to consider the key compromised).

My question: how can I restore the missing checksum offline? An hour search online didn't produce anything I can use (and understand).

1715491656
Hero Member
*
Offline Offline

Posts: 1715491656

View Profile Personal Message (Offline)

Ignore
1715491656
Reply with quote  #2

1715491656
Report to moderator
1715491656
Hero Member
*
Offline Offline

Posts: 1715491656

View Profile Personal Message (Offline)

Ignore
1715491656
Reply with quote  #2

1715491656
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715491656
Hero Member
*
Offline Offline

Posts: 1715491656

View Profile Personal Message (Offline)

Ignore
1715491656
Reply with quote  #2

1715491656
Report to moderator
SopaXT
Full Member
***
Offline Offline

Activity: 158
Merit: 113


View Profile
March 11, 2018, 03:35:20 PM
Merited by LoyceV (5), achow101 (1)
 #2

Blockchain.info has been known to have this bug for a long time.
It doesn't check the checksums and lengths of the WIF keys entered and that's quite a big problem.

The bug is hard to reproduce outside of BCI, so my suggestion would be creating a new wallet (remember the usual security precautions, and since that key has already seen BCI, it can be considered compromised), importing the troubled WIF key and exporting it back (I've tried that with an intentionally-corrupted key and it appears to work).

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 11, 2018, 03:36:51 PM
 #3

Are you sure it's the entire key he sent you, has he tried to redownload the private key? Can you get him to download the entire wallet data and try to pull the private key from there. (Only if no one else knows how to do the checksum). You might want to contact blockchain they can get the encrypted wallet file to you in its entirety.

Have you tried inputting it into a wallet so see if that'll add the checksum?

We could always try to dig through an old electrum source code to see how the checksum is generated/checked.
LoyceV (OP)
Legendary
*
Online Online

Activity: 3304
Merit: 16638


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
March 11, 2018, 03:56:02 PM
Last edit: March 11, 2018, 04:37:19 PM by LoyceV
 #4

my suggestion would be creating a new wallet (remember the usual security precautions, and since that key has already seen BCI, it can be considered compromised), importing the troubled WIF key and exporting it back (I've tried that with an intentionally-corrupted key and it appears to work).
I'll try this now. Update: it worked, thanks you very much!

Are you sure it's the entire key he sent you, has he tried to redownload the private key?
He sent me the full string:
Code:
{"addr":" .................. created_device_version":"1.0"},
So there's no way he forgot a part.

Quote
Can you get him to download the entire wallet data and try to pull the private key from there. (Only if no one else knows how to do the checksum). You might want to contact blockchain they can get the encrypted wallet file to you in its entirety.
He did contact blockchain.info, but isn't expecting an answer any time soon.

Quote
Have you tried inputting it into a wallet so see if that'll add the checksum?
Electrum doesn't accept it.

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!