Bitcoin Forum
May 21, 2024, 08:02:20 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to retrieve uncompressed public key?  (Read 142 times)
fammari (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 14


View Profile
March 17, 2021, 06:54:24 AM
 #1

Hello Everyone,
I am trying to recover my old wallet from my desktop (wallet.dat), i will be trying few tools (keyhunt and Kangaraoo), such tools require uncompressed public key. i can retrieve mkey and other ckeys but not Uncompuressed Public key? is there a way or tool to do it?

Thanks.
fxsniper
Member
**
Offline Offline

Activity: 406
Merit: 45


View Profile
March 17, 2021, 07:41:08 AM
 #2

Hello Everyone,
I am trying to recover my old wallet from my desktop (wallet.dat), i will be trying few tools (keyhunt and Kangaraoo), such tools require uncompressed public key. i can retrieve mkey and other ckeys but not Uncompuressed Public key? is there a way or tool to do it?

Thanks.

if you have wallet.dat

use pywallet

https://bitcointalk.org/index.php?topic=34028.0

https://github.com/jackjack-jj/pywallet
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6753


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 17, 2021, 09:58:31 AM
Merited by ABCbits (1), Heisenberg_Hunter (1)
 #3

Did you forget the password of your wallet.dat or do you remember it?

If you remember, then you can skip the process of getting public keys entirely, and open Bitcoin Core andsend the wallet's balance to another wallet.

If you don't remember the password, then you need to understand that wallet.dat files have several hundred private keys inside it and that each one has a corresponding public key and address. You only need the public keys for addresses that have a non-zero balance in them.

You sound like you know how to use tools, so you should run Pywallet with the --dumpwallet switch to get a list of addresses inside. The private keys might be encrypted but that is not a problem for now.

Then, use block explorer like Blockchair to check if 1) the address is in their records - in other words, there is a transaction associated with it - and 2) if any bitcoins have been sent from those addresses. This'll give a compressed public key, but if a tool only accepts uncompressed keys there is a method to convert between the two.

The latter part is important because the public key is only exposed for outgoing transactions. If an address has only received incoming transactions then its public key has not been revealed and you only have a hash160.

P.S. it is far more likely you can recover the wallet if you brute force the password instead of each public key because you might have a faint remembering of the password while you have to search the entire 256-but range for each public key, and it will be almost impossible even for one public key.

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

Activity: 9
Merit: 14


View Profile
March 17, 2021, 11:16:17 AM
 #4

Thank you guys for your responses. i will try with pywallet and see how things will go following your instructions.
fammari (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 14


View Profile
March 17, 2021, 12:52:07 PM
 #5

Did you forget the password of your wallet.dat or do you remember it?

If you remember, then you can skip the process of getting public keys entirely, and open Bitcoin Core andsend the wallet's balance to another wallet.

If you don't remember the password, then you need to understand that wallet.dat files have several hundred private keys inside it and that each one has a corresponding public key and address. You only need the public keys for addresses that have a non-zero balance in them.

You sound like you know how to use tools, so you should run Pywallet with the --dumpwallet switch to get a list of addresses inside. The private keys might be encrypted but that is not a problem for now.

Then, use block explorer like Blockchair to check if 1) the address is in their records - in other words, there is a transaction associated with it - and 2) if any bitcoins have been sent from those addresses. This'll give a compressed public key, but if a tool only accepts uncompressed keys there is a method to convert between the two.

The latter part is important because the public key is only exposed for outgoing transactions. If an address has only received incoming transactions then its public key has not been revealed and you only have a hash160.

P.S. it is far more likely you can recover the wallet if you brute force the password instead of each public key because you might have a faint remembering of the password while you have to search the entire 256-but range for each public key, and it will be almost impossible even for one public key.

Thank you so much, what is the best tool to use brute force? i heard btcrecover and hashcat will do the job, which is the fastest method? i have solid server with 32GB RAM and Xeon processor, i also can rent 8x RTX 2080ti GPU Servers? appreciate your response.

P.S i dont remember the password but i have handful of suggestions that i can start with.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18565


View Profile
March 24, 2021, 07:56:52 PM
 #6

i heard btcrecover and hashcat will do the job, which is the fastest method?
Either will work. Are you already familiar with either of them? I've not seen any real benchmarks, but based on personal experience hashcat seems to be faster. However, I would also say it is more complicated to set up the necessary hashcat masks file than it is to setup the necessary btcrecover tokens file.

How sure are you of the suggestions you have? Are they just wild guesses, or do you think the password is based on one of these words with additional characters, swapped characters, etc? Can you remember anything definite about your password at all?
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!