Bitcoin Forum
April 28, 2024, 08:17:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Recovering 33 character private key from legacy blockchain.info wallet  (Read 418 times)
operator55 (OP)
Member
**
Offline Offline

Activity: 75
Merit: 24


View Profile
November 23, 2019, 06:46:00 AM
Last edit: November 23, 2019, 07:14:26 AM by operator55
Merited by hugeblack (1)
 #1

Hi guys

I'm totally stuck trying to recover very old wallet from blockchain.info (likely V1). I've searched entire web using keywords coming from json file but no luck.
Perhaps some expert developer who is aware of security algos can advise me on this case.

- I got password to the wallet but no email access, therefore this file is all what i have.
- If "priv" field is encoded, i can try to decode it with the password - but i need to be aware of tech specification for this "priv" field.
- Wallet is from 2013.
- My note on the backup says "wallet for bitcoin-qt client", not sure if this is true. It doesnt look fit for bitcoin-qt at all.

Problem is that i cannot restore or extract the private key from this file.. it's very weird, i heard it's base58 + some custom implementation.
This is the wallet file and i have no total clue how to decode this. The private key is very weird, it's just 33 characters. Is it even valid?
The "addr" points to correct BTC address, therefore is fully valid.


Code:
{
"guid" : "020XXXX-XXX-8fXX-bc6c-XXXXX17XX",
"sharedKey" : "XXXXXX-69XX2-157f-XXX4-XXXXXX083",
"options" :
{
"pbkdf2_iterations":10,
"fee_policy":0,
"html5_notifications":false,
"logout_time":600000,
"tx_display":0,
"always_keep_local_backup":false,
"transactions_per_page":30,
"additional_seeds":[]
},
"keys" :
[
{"addr":"1MHJxxxxxxxxxxxxxxYMwR","priv":"uNKxxxxxxxxxxxxxxxxxxxxxxxxxxxBfM"} (33 characters private key)

]
}

{"addr":"1MHJxxxxxxxxxxxxxxYMwR", (34 characters valid address) "priv":"uNKxxxxxxxxxxxxxxxxxxxxxxxxxxxBfM"} (33 characters private key)

Is anyone aware what is "priv" key format for this wallet?
1714292253
Hero Member
*
Offline Offline

Posts: 1714292253

View Profile Personal Message (Offline)

Ignore
1714292253
Reply with quote  #2

1714292253
Report to moderator
1714292253
Hero Member
*
Offline Offline

Posts: 1714292253

View Profile Personal Message (Offline)

Ignore
1714292253
Reply with quote  #2

1714292253
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714292253
Hero Member
*
Offline Offline

Posts: 1714292253

View Profile Personal Message (Offline)

Ignore
1714292253
Reply with quote  #2

1714292253
Report to moderator
1714292253
Hero Member
*
Offline Offline

Posts: 1714292253

View Profile Personal Message (Offline)

Ignore
1714292253
Reply with quote  #2

1714292253
Report to moderator
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
November 23, 2019, 07:46:54 AM
 #2

- My note on the backup says "wallet for bitcoin-qt client", not sure if this is true. It doesnt look fit for bitcoin-qt at all.
Yes, that looks like a wallet.aes.json file from blockchain.info.

This thread have the info of old and new private key types: [overview] Recover Bitcoin from any old storage format]
But there's nothing about a 33-character prv key.

Have you tried to drag-n-drop it to their import wallet page (https://login.blockchain.com/wallet/import-wallet)?
Said, it supports blockchain.info wallet files.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
operator55 (OP)
Member
**
Offline Offline

Activity: 75
Merit: 24


View Profile
November 23, 2019, 12:22:25 PM
 #3

Yes, i have tried doing using blockchain import tool.

Doesn't recognise the file.

Although the last transaction i remember on the wallet is from 2013, it could have been created even earlier. (2011-2013)
Therefore some legacy privkey format could have been used.



- My note on the backup says "wallet for bitcoin-qt client", not sure if this is true. It doesnt look fit for bitcoin-qt at all.
Yes, that looks like a wallet.aes.json file from blockchain.info.

This thread have the info of old and new private key types: [overview] Recover Bitcoin from any old storage format]
But there's nothing about a 33-character prv key.

Have you tried to drag-n-drop it to their import wallet page (https://login.blockchain.com/wallet/import-wallet)?
Said, it supports blockchain.info wallet files.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3374
Merit: 4610



View Profile
November 24, 2019, 02:48:39 AM
 #4

It's been a long time since I've looked at a wallet.aes.json file, but 33 characters doesn't seem long enough to me.  Hopefully, I'm wrong.  Have you tried this yet?

https://github.com/blockchain/my-wallet-backup-decryption-tool
keychainX
Member
**
Offline Offline

Activity: 374
Merit: 53

Telegram @keychainX


View Profile WWW
November 28, 2019, 04:40:31 PM
Merited by hugeblack (1), nc50lc (1)
 #5

Yes, i have tried doing using blockchain import tool.

Doesn't recognise the file.

Although the last transaction i remember on the wallet is from 2013, it could have been created even earlier. (2011-2013)

What file name did you use when dropping the file? I know blockchain can behave weird if you dont name the textfile exactly wallet.aes.json

/KX

operator55 (OP)
Member
**
Offline Offline

Activity: 75
Merit: 24


View Profile
February 11, 2020, 06:52:41 AM
Last edit: February 11, 2020, 07:08:07 AM by operator55
 #6

Yes, i have tried doing using blockchain import tool.

Doesn't recognise the file.

Although the last transaction i remember on the wallet is from 2013, it could have been created even earlier. (2011-2013)

What file name did you use when dropping the file? I know blockchain can behave weird if you dont name the textfile exactly wallet.aes.json

/KX

I made multiple tries. wallet.aes.json and so on.
I also managed to access mine blockchain.info wallet just now and download it + decrypt it. The private keys matches. So the key that is problematic was somehow imported into blockchain.info and it was considered it valid at some point. Same private key is present in JSON unencrypted blob in 2020. Some sort of hint is, that the wallet was used around 2013.



It's been a long time since I've looked at a wallet.aes.json file, but 33 characters doesn't seem long enough to me.  Hopefully, I'm wrong.  Have you tried this yet?

https://github.com/blockchain/my-wallet-backup-decryption-tool

Yes i have tried it after downloading encrypted wallet from blockchain.info and using this tool, to see what blockchain.info stores in it's JSON blob.
Such test, completely overrules scenario where backup file was somehow modified/had its integrity violated. The exact same private is being returned by blockchain now in JSON, after downloading wallet using btcrecovery python tools in 2020. This results in exactly same weird 33 characters private key.


When interacting with BC.info user interface - the key shows up in "Imported Addresses" and while clicking on "Show private key" on blockchain.info it displays "Unsupported Private Key".

So TLDR: I managed to access blockchain wallet using web interface and their "GUID" login, but i cannot make any transactions or export private key - as it shows up as invalid/unsupported one. The 33 character private key from 2013 backup is the same as from 2020 backup.   Scenario where backup is corrupted is excluded i think. Therefore the key at some point was considered valid by blockchain if it end up being in wallet backup.

If someone manages to provide a good hint, i'll make sure you get paid.  Smiley
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10505



View Profile
February 12, 2020, 06:00:04 AM
 #7

When interacting with BC.info user interface - the key shows up in "Imported Addresses" and while clicking on "Show private key" on blockchain.info it displays "Unsupported Private Key".
The 33 character private key from 2013 backup is the same as from 2020 backup.

it may not even be a private key. just because the JSON file says "priv" in front of it doesn't make it so.
since it seems like this address is an imported one maybe you imported a bitcoin address and that key (uNKxxxxxxxxxxxxxxxxxxxxxxxxxxxBfM) is some data that corresponds with the address like its 20 byte hash160.

try decoding it with base58check (base-58 encoding with a checksum) and see if it is a valid encoding and what the result is.
don not post the result anywhere just tell us the length of the byte result, the first byte and the last.
if it is indeed a valid base-58 string with 4 byte checksum and gave you 21 bytes after decoding (1 byte may be the type) then you just have a hash not a private key. and you should be able to see the same 20 bytes if you perform the same decoding on your address (1MHJxxxxxxxxxxxxxxYMwR)

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
operator55 (OP)
Member
**
Offline Offline

Activity: 75
Merit: 24


View Profile
February 13, 2020, 02:42:32 PM
 #8

When interacting with BC.info user interface - the key shows up in "Imported Addresses" and while clicking on "Show private key" on blockchain.info it displays "Unsupported Private Key".
The 33 character private key from 2013 backup is the same as from 2020 backup.
try decoding it with base58check (base-58 encoding with a checksum) and see if it is a valid encoding and what the result is.


Thanks @pooya87, i will try it in next week when i have some more free time Smiley Finally a hint that makes some sense.

Not deseperate to recover but just very interested to see what is it and how it ended up in blockchain.info.
travelvc
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 10, 2020, 05:25:31 AM
 #9

Hey @operator55

I wrote some standalone code that can convert the old blockchain.info wallet (priv:) key base58 format, in to WIF.

You'll need Python 3. Here's the link to the Gist.

https://gist.github.com/Jun-Wang-2018/3105e29e0d61ecf88530c092199371a7#gistcomment-3522248

Hope you find it helpful.
ymgve2
Full Member
***
Offline Offline

Activity: 161
Merit: 230


View Profile
November 22, 2020, 03:51:18 AM
 #10

I made a script that will dump your blockchain.info wallet data:

https://gist.github.com/ymgve/f66fb29f32380f79e68bbed997bac60f

I wonder if the "priv" key this script shows matches the one in your backup, or if it's longer.
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!