Bitcoin Forum
May 29, 2024, 03:13:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: private keys in hexadecimal help  (Read 842 times)
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 29, 2017, 10:59:30 AM
Last edit: April 30, 2021, 07:50:56 PM by morbius55
 #1

Is it true that private keys in a wallet are always preceded by the sequence 0420, or isn't that always the case. I don't want to follow the advice of others that say that the keys always follow that sequence if it doesn't. I would keep searching the wallet if in most cases the keys would follow this sequence. It is a lot of time consuming work, but for possibly btc it is worth it, I just don't want to be on a wild goose chase. cheers. Smiley
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
August 29, 2017, 02:00:29 PM
 #2

The private key is just a 256-bit number. How wallets store them is up to the wallet implementation. You should not be expecting all wallets to use the same implementation for storing private keys.

DannyHamilton
Legendary
*
Offline Offline

Activity: 3402
Merit: 4657



View Profile
August 29, 2017, 03:05:14 PM
 #3

Is it likely that the wallet had a password on it?  If so, you're going to need the password and the master key.  Otherwise the private keys will be useless to you.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
August 29, 2017, 03:17:44 PM
 #4

The wallet is bitcoin core from around 2013 and I am only scanning the wallet.dat on a usb stick. Could you offer any pointers for finding what I need?. If I search for text with the editor I do get the words pkey appearing, would the hex strings around their occurrence be of use to me?. Thanks again.
What is preventing you from just loading it in Bitcoin Core or using a tool like pywallet? Unless your wallet is horribly corrupt, you shouldn't need to dig around in the wallet file manually.

morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 29, 2017, 03:22:27 PM
 #5

The wallet is corrupted and I don't know how to get pywallet up and running unfortunately. I know it's a long shot and not being very computer savvy doesn't help, but I am not ready to give up yet when this amount is at stake. Cheers.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


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


View Profile
August 29, 2017, 11:07:51 PM
 #6

The wallet is corrupted and I don't know how to get pywallet up and running unfortunately. I know it's a long shot and not being very computer savvy doesn't help, but I am not ready to give up yet when this amount is at stake. Cheers.

Try using the -salvagewallet command (look at the help screen for the implementation of this on the newest version of core). You may also have to use -updatewallet.

If not, if you can tell me the operating system you're using, I'll try to see if I can build a script that will install pywallet for you (with the dependencies) and then you just have to look at how to run commands from that.

You could also look at contacting the user jackjack who is the developer of pywallet, he might be able to try to get your private keys for you.
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 30, 2017, 05:10:01 PM
 #7

The wallet is corrupted and I don't know how to get pywallet up and running unfortunately. I know it's a long shot and not being very computer savvy doesn't help, but I am not ready to give up yet when this amount is at stake. Cheers.

Try using the -salvagewallet command (look at the help screen for the implementation of this on the newest version of core). You may also have to use -updatewallet.

If not, if you can tell me the operating system you're using, I'll try to see if I can build a script that will install pywallet for you (with the dependencies) and then you just have to look at how to run commands from that.

You could also look at contacting the user jackjack who is the developer of pywallet, he might be able to try to get your private keys for you.
Hi, that would be great if you could do that i'm running Windows 10. I asked jackjack if he was going to release an updated version with a gui like he said that he was going to but didn't hear anything from him. I guess he is very busy  which is fair enough, and I think he figures that nobody needs pywallet anymore, but I certainly do and probably others too.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


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


View Profile
August 30, 2017, 08:57:32 PM
 #8

The wallet is corrupted and I don't know how to get pywallet up and running unfortunately. I know it's a long shot and not being very computer savvy doesn't help, but I am not ready to give up yet when this amount is at stake. Cheers.

Try using the -salvagewallet command (look at the help screen for the implementation of this on the newest version of core). You may also have to use -updatewallet.

If not, if you can tell me the operating system you're using, I'll try to see if I can build a script that will install pywallet for you (with the dependencies) and then you just have to look at how to run commands from that.

You could also look at contacting the user jackjack who is the developer of pywallet, he might be able to try to get your private keys for you.
Hi, that would be great if you could do that i'm running Windows 10. I asked jackjack if he was going to release an updated version with a gui like he said that he was going to but didn't hear anything from him. I guess he is very busy  which is fair enough, and I think he figures that nobody needs pywallet anymore, but I certainly do and probably others too.

I'll try to build you a .bat that will install everything for it you need. Linux is slightly more difficult CLI-wise than Linux but I'll take a look (Windows will already have a lot of the requirements software-wise as well).
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


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


View Profile
August 30, 2017, 11:00:01 PM
 #9

Code:
C:\python27\python -m pip install -U pip setuptools
C:\python27\python -m pip install twisted
C:\python27\Scripts easy_install.exe Zope.Interface-3.6.4-py2.7-win-amd64.egg

Can you run these commands individually and see if there is any issues.
To test python is in the right folder, try the command "cd C:\pthon27\python" and it should open a command line of python.



If you don't know how to run this, press "start+r" and type "cmd.exe" → Then paste the commands in there - I couldn't test the code on my own computer (due to not having an updated version of C++) and I also couldn't find the location of another module that is required - I'll try to look at it but I want to know if the first two commands at least do work correctly.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 31, 2017, 01:45:34 AM
 #10

How old is the wallet.dat? Was it from a recent version of Bitcoin Core or an older version? If it is from a new version... you may find that pywallet doesn't handle it very well... it would appear that the devs added a number of new data fields into wallet.dat and pywallet will likely complain loudly about unknown records.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 31, 2017, 06:22:40 AM
 #11

How old is the wallet.dat? Was it from a recent version of Bitcoin Core or an older version? If it is from a new version... you may find that pywallet doesn't handle it very well... it would appear that the devs added a number of new data fields into wallet.dat and pywallet will likely complain loudly about unknown records.

It's from about 2013.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
August 31, 2017, 01:57:26 PM
 #12

Have you tried using Bitcoin Core's -salvagewallet option yet? Although -salvagewallet has a few issues, it should help if your wallet is corrupted. But before you do that, always make sure that you have a backup of your wallet somewhere.

morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 31, 2017, 05:10:45 PM
 #13

Have you tried using Bitcoin Core's -salvagewallet option yet? Although -salvagewallet has a few issues, it should help if your wallet is corrupted. But before you do that, always make sure that you have a backup of your wallet somewhere.

Already tried that, it said wallet.dat corrupt salvage failed. How can I tell if the wallet was locked the last time it was used?.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6659


Just writing some code


View Profile WWW
August 31, 2017, 05:31:27 PM
 #14

How can I tell if the wallet was locked the last time it was used?.
If your wallet has a password on it, then it is always locked. There is never a time where the wallet is unlocked on disk.

morbius55 (OP)
Full Member
***
Offline Offline

Activity: 217
Merit: 109


View Profile
August 31, 2017, 06:02:31 PM
 #15

How can I tell if the wallet was locked the last time it was used?.
If your wallet has a password on it, then it is always locked. There is never a time where the wallet is unlocked on disk.

Got you, that's why when you unlock it is for a finite time.
suppersz
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250

There is a day to be born, and another to die


View Profile
August 31, 2017, 09:12:56 PM
 #16

You will probably have to get pywallet and dump the wallet, and see how much information you can extract. It should  have all the addresses listed in there, with the privkey below (I think). Check all the addresses in there and see if one of them is the one you are looking for. And if the privkey is encrypted, you will have to guess what is was.

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!