Author

Topic: wallet.dat and co (Read 1264 times)

newbie
Activity: 20
Merit: 0
September 29, 2020, 08:10:47 AM
#73
Hello mocacinno and HCP.

Yes, I have a few wallets => 2014, which means absolutely nothing and the reverse may also be true. I don't remember for my part

The problem I have at the moment on the ten wallets and my few wallets
(6 wallet, 0 encrypted key, 0 decrypted key) found using the "--recover" option ...,
is that on my command line:

C: \ Python27> python pywallet.py --dumpwallet --wallet = C: \ python27 \ wallet222.dat,
(Or another (wallet6.dat?)

Some wallets go in the text file
But it is written:

Wallet data not recognized: {'__ type__': 'keymeta', '__value__': "0xc \ x00 \ xea8 .... numbers letters and" \ "...}
"On several lines"
No "hexsec" nor "sec"

And others just don't work

There should be a search time then possibly: "Warning: root: pycrypto or libssl bit found, decryption may be slow"
Then return to the master command (=> C: \ python27)
OK

But not :
"traceback (most recent call last):
File "pywallet.py", line 2111, in parse_wallet
d.update (parse_Blocklocator (vds))
TypeError: NoneType object I not iterable "


Or:
"Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."

I don't understand why it's so complicated. I understand why there are so many different topics here



What must be in my opinion is that the pywallet app is too old for what we ask.
option: I am ready to find someone I trust to whom I will priest my wallet and others, you never know.

Private message me so that I can see how we do it ...
newbie
Activity: 20
Merit: 0
September 27, 2020, 06:50:56 AM
#69
Okay so I tried it like this seems to work:
C: \ Python27> python pywallet.py --dumpwallet --wallet = C: \ Python27 \ wallet.dat> wallet.txt.

Then is marked: WARNING: root: pycrypto or libssl bit found, decryption may be slow.

And then :
C: \ Python27>

It must have worked because my wallet.txt file is full.

So I'll enter the private keys, I'll tell you. Thank you Grin
newbie
Activity: 20
Merit: 0
September 27, 2020, 05:36:54 AM
#68
Spaces put themselves on bitcointalk by themselves
newbie
Activity: 20
Merit: 0
September 27, 2020, 04:21:16 AM
#67
basically it is I write the sentence in front of C:\ python27. nothing is happening .
it is rewritten there: C:\python27
and even in front of C:\
newbie
Activity: 20
Merit: 0
September 27, 2020, 04:11:55 AM
#66
It doesn't work. I'm on C: \ python27.
I copy and paste.
I press enter nothing happens.
I am redirected to C: \ python27
newbie
Activity: 20
Merit: 0
September 26, 2020, 06:34:32 AM
#64
it is marked after the correct order:

C: \ Python27> python pywallet.py --dumpwallet --datadir = C: \ Python27 \ wsallet.dat>
wallet.txt
WARNING: root: pycrypto or libssl not found, decryption may be slow
Traceback (most recent call last):
   File "pywallet.py", line 5004, in
     db_env = create_env (db_dir)
   File "pywallet.py", line 1269, in create_env
     r = db_env.open (db_dir, (DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB
_INIT_TXN | DB_THREAD | DB_RECOVER))
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory - C: \\ Python27 \\ wsal
let.dat \\ __ db.001: No such file or directory ')

 Huh Huh
newbie
Activity: 20
Merit: 0
September 26, 2020, 01:30:22 AM
#63
Yes, voici ce que vous m'avez demandé :
1) C:\python27\python
2) C:\python27\pywallet.py
3) C:\python27\wallet222.dat
4) wallet222.dat

Et le wallet.dat utilisé est dans "C:\Users\user\AppData\Roaming\Bitcoin\wallets
newbie
Activity: 20
Merit: 0
September 25, 2020, 06:01:26 AM
#59
Hello HCP.
I encounter a new problem.
I was kind enough to put to the game ...
Without result, I am not very good at this game ...
Here's the problem :
I correctly enter the command line "--dumpwallet --wallet = pathToTheWallet> outputfile
And so in the output file and more recently in the command prompt,
And I'm told that the "ecdsa" package is not installed ("'edcsa' package is not installed, pywallet won't be able To sign / verify messages") = only output message
I downloaded python38 ar it said it already had the package.
I downloaded "python-ecdsa-master"
And said ecdsa with.

No result...
I'm starting to get a bit long in this topic.
But do you have any idea please mister HCP. I will appreciate it.
In addition we are not very far from the goal "I think"
How to install this ecdsa please sir HCP ?? Huh
newbie
Activity: 20
Merit: 0
September 24, 2020, 09:31:19 AM
#57
Well say so it's well explained you took the time ...
If I have anything you will be the first to be notified and paid.
We're going to try that.
I do not guarantee that it will work.
If that doesn't work I'll send you a small paysafecard ...
thanks thanks thanks !!!
newbie
Activity: 20
Merit: 0
September 24, 2020, 04:43:22 AM
#55
By that I mean that I don't have any key found in the wallet. But just one or more "wallets" found in the wallet.dat file.
So, would there be the possibility that there are funds in the wallet.dat file,
where is marked, after the command line
(--recover recov_size 8gio - 'recov_device F: --recov_outputdir outwallet)
that' there should be
wallets, encrypted or decrypted private keys. And that there is "spotted" only "wallet" ...

(6 wallet
0 keys encrypted
0 keys decrypted)
 Huh
newbie
Activity: 20
Merit: 0
September 24, 2020, 02:35:06 AM
#53
Okay.
Thank you for your explanations I already have the hexadecimal software and found the following 32 bytes.
The same goes for the walletdump.
There is a lot of key to import in both cases.
I will do it...
But if I want to import everything with bitcoin core the whole thing, there must be wallets, encrypted keys or decrypted keys?
In this case in with --recover I have numbers in wallet.
newbie
Activity: 20
Merit: 0
September 23, 2020, 10:49:13 AM
#51
Hello.
Yes the pywallet script was wrong.
I sent the files to pywallet where I could find 6 wallets but 0 keys.
It means I have nothing on it ... I'm pretty sure ...

I could try with the hex editor and entered the first 32 bytes? How do you get the first 32 bytes out Please ...
newbie
Activity: 20
Merit: 0
September 23, 2020, 06:01:08 AM
#50
I don't believe they had a password. Or a simple one.
Every time I use pywallet.py and the option - recover I am asked to set a password, but I only put it there ...
The only thing I don't understand is spotted the "first 32 bytes" in the other post ... Huh
newbie
Activity: 20
Merit: 0
September 23, 2020, 03:45:08 AM
#48
Sorry.
I've changed
newbie
Activity: 20
Merit: 0
September 23, 2020, 02:21:28 AM
#46
Hello hcp
You were right I wrongly noted the size.
I found 7 wallets on my USB key. But still corrupt ...> Sad

Regarding pywallet 2.2, it is the site that manages the address and private key we are talking about.
I tried it didn't work but if we manage to make it work that suits me too: P

It reassures me that I have no fear of hack my debug file ....

Have you seen this post 11 file? Could it work?
Below.
https://bitcointalksearch.org/topic/walletdat-corrupt-2012533

...
Here I think this is the pastebin:
https://pastebin.com/SwHLAAQT

Thanks again for your help hcp and the others too
newbie
Activity: 20
Merit: 0
September 22, 2020, 01:46:39 AM
#44
I just retry it is written.
Failed To rename wallet.dat To wallet.dat.16 .... bak
Shutdown: in progress ....
Scheduler thread exit
Shutdown: done

maybe that's another problem? Huh
newbie
Activity: 20
Merit: 0
September 21, 2020, 08:09:49 AM
#41
It's good I found the file in the bitcoin folder. It is marked 1:
Failed To rename wallet.dat To ... wallet.dat.160 ... bak
Below 2:
wallet.dat corrupted, recovery failed
newbie
Activity: 20
Merit: 0
September 21, 2020, 07:36:31 AM
#40
Hello. How do I open the debut.log file without touching the wallet.dat file.
When I type in the bitcoin folder: bitcoin-qt.exe -datadir
the error message is written to me:
Corrupted wallet.
HCP
legendary
Activity: 2086
Merit: 4361
September 29, 2020, 06:55:38 PM
#38
is that on my command line:

C: \ Python27> python pywallet.py --dumpwallet --wallet = C: \ python27 \ wallet222.dat,
(Or another (wallet6.dat?)

Some wallets go in the text file
But it is written:

Wallet data not recognized: {'__ type__': 'keymeta', '__value__': "0xc \ x00 \ xea8 .... numbers letters and" \ "...}
"On several lines"
No "hexsec" nor "sec"
That is relatively normal... you'd need to scroll down a LONG way, like several hundred lines to find all the actual key data... The fact that it is finding "keymeta" data is a good sign... it means that it is actually a likely to be a wallet.dat file. It doesn't guarantee that it's not totally corrupted or the key data isn't encrypted, but it is a good starting point! Wink


Quote
There should be a search time then possibly: "Warning: root: pycrypto or libssl bit found, decryption may be slow"
That simply means that python is missing a couple of libraries that can make it decrypt wallet data "faster"... but are not required if the wallet files have no password. It can generally be ignored.


Quote
But not :
"traceback (most recent call last):
File "pywallet.py", line 2111, in parse_wallet
d.update (parse_Blocklocator (vds))
TypeError: NoneType object I not iterable "
This generally happens with "new" wallet files that were updated/created using newer versions of Bitcoin Core... it added some database records to the wallet.dat files that PyWallet does not understand Undecided  There are ways around that, but it involves editing Python code, which I feel may be beyond you Undecided


Quote
Or:
"Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."
This happens when the wallet file specified using --wallet:
1. Does not actually exist
or
2. Is corrupted
or
3. Is already open and "locked" by Bitcoin Core
or
4. Is not actually a valid Bitcoin Core/bitcoind generated wallet.dat


Quote
I don't understand why it's so complicated. I understand why there are so many different topics here
Because you're getting into "non-standard" wallet manipulation territory... They were not designed to be easy to just randomly extract data from... they were designed to work with bitcoind/Bitcoin Core... When things go "wrong" and the wallet files get corrupted, things unfortunately become "difficult" if you're not familiar with commandline scripts etc.


Quote
What must be in my opinion is that the pywallet app is too old for what we ask.
Yes and no... if your wallet files are indeed from 2014 and haven't been "upgraded" to newer formats by newer versions of Bitcoin Core, Pywallet should work with them "OK".


Quote
option: I am ready to find someone I trust to whom I will priest my wallet and others, you never know.
Private message me so that I can see how we do it ...
This is a "Bad Idea"™  You'll likely get a lot of PMs from a lot of dubious characters asking for wallet.dat's and passwords (or asking for TeamViewer/Remote access etc) who'll promise you the earth and then just steal your coins Undecided

Be VERY careful whom you trust here!
jr. member
Activity: 189
Merit: 1
September 29, 2020, 05:24:57 PM
#37
 Hi, I think i can help with your wallet.dats. How many wallets do you have? Can you send the wallets like you say. I have some technique like pywallet that might work but i cant guarantee. But i could try. If we succeed you can send me fee or reward, i would ask not much. My programs work on damage wallets so it may work.
 Reply back or to my email:[email protected]
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 29, 2020, 04:36:01 AM
#36
--snip--
C: \ Python27> python pywallet.py --dumpwallet --wallet = C: \ Python27 \ wallet.dat> wallet.txt.
--snip--
Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."
--snip--

A couple posts above, you gave following answer:
--snip--
3) C:\python27\wallet222.dat
4) wallet222.dat

Et le wallet.dat utilisé est dans "C:\Users\user\AppData\Roaming\Bitcoin\wallets

I do speak a reasonable amount of French (eventough you are not allowed to post non-english posts outside the regional subforum). But what i'm seeing here is that you named your wallet wallet222.dat. So, if there is no wallet.dat @c:\python27, the command will fail...

Maybe you could try:
Code:
C:\Python27>python pywallet.py --dumpwallet --wallet=C:\Python27\wallet222.dat> wallet.txt

Just on a sidenote, this debate has been going on for days, and i sometimes feel like we're going around in circles on this one... Is there anybody you trust for 100% that's tech-savvy and is able to help you with this task? Even if you're tech-savvy yourself, it wouldn't hurt to have a second pair of eyes looking at this thread while having physical access to your system (and the wallet-file itself).
newbie
Activity: 20
Merit: 0
September 29, 2020, 04:04:34 AM
#35
Well ...
Another problem.
I write the correct command line. The one below:

C: \ Python27> python pywallet.py --dumpwallet --wallet = C: \ Python27 \ wallet.dat> wallet.txt.

And it is written "every time":

"Warning: root: pycrypto or libssl bit found, decryption may be slow Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."

do you have the solution to the problem, please?

Maybe there's nothing left on it? That's what I think Huh
HCP
legendary
Activity: 2086
Merit: 4361
September 27, 2020, 03:23:09 PM
#34
Yes... I should have mentioned that you're not likely to see any errors, but all the output will go to wallet.txt file.

In wallet.txt you might see a few hundred lines of weird errors like "Wallet data unknown" or something similar at the start... then you should see all the keydata output similar to this:
Quote
"keys": [
        {
            "addr": "1BitcoinAddressShownHere",
            "compressed": true,
            "hexsec": "b3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx84",
            "private": "30xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9b9",
            "pubkey": "02xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb9",
            "reserve": 1,
            "sec": "LYOUR_WIF_PRIVATE_KEY_IS_KEY",
            "secret": "b3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx01"
        },

The private keys in WIF format are highlighted above... in the "sec" field... you need to import those into the wallet of your choice.
HCP
legendary
Activity: 2086
Merit: 4361
September 27, 2020, 03:59:57 AM
#33
Can I ask why you keep putting "spaces" in your posts? Huh It's kinda confusing and difficult to tell if you're copy/pasting things which are "incorrect" or if it's just the way you're typing your posts! Huh

Anyway... try and copy/paste this entire command exactly as it is shown:
Code:
C:\Python27\python.exe C:\Python27\pywallet.py --dumpwallet --wallet=C:\Python27\wallet.dat > wallet.txt

HCP
legendary
Activity: 2086
Merit: 4361
September 25, 2020, 06:55:28 PM
#32
Based on what you've written, the command (with proper spacing) should be:
Code:
C:\Python27\python.exe pywallet.py --dumpwallet --datadir=C:\DirWallet --wallet=walletfile.dat

NOTE: This command should be used in the folder where pywallet.py is located!

Also, is the wallet file actually called "walletfile.dat"? Huh or is it the standard "wallet.dat"? Huh Obviously, it's very important you type the correct filename! If you don't use the correct filename for the --wallet argument you will indeed get the error:
Code:
ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.
As, obviously, the script will be unable to locate the file Wink


If you tell me:

1. The folder where Python.exe is located
2. The folder where pywallet.py is located
3. The folder where "wallet.dat" is located
4. The actual name of your wallet.dat

I will be able to give you the commandline to run that should dump the wallet contents for you.
newbie
Activity: 20
Merit: 0
September 25, 2020, 08:27:30 AM
#31
So, there I uninstall python38
(it says that it is not in the machine but it is marked in control panel and I cannot uninstall it completely, but all the files are in the recycle bin),
i reinstall python27, found pip and redirected it to python27.
1) I installed ecdsa and yet still the same errors ...
"ecdsa package is not installed pywallet won't be able To sign / verify messages."
2) There I tried again it seems that there is no more the ecdsa error .. !!! I am happy !!! Yes!

But again and again this message below
"Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."

It disgusts me...

After the sentence you whispered in my ear. I type entry I tone on that every time.

"Warning: root: pycrypto or libssl bit found, decryption may be slow Error: root: couldn't open wallet.dat / main. Tu quitting bitcoin and running this again."

As a reminder of the sentence or command line:

C: \ python27> pywallet.py --dumpwallet --datadir = C: \ DirWallet --wallet = walletfile.dat

"In search of the miracle x)"
HCP
legendary
Activity: 2086
Merit: 4361
September 25, 2020, 06:06:27 AM
#30
You shouldn't attempt to run PyWallet with Python 3.8 (Python 3.x introduced a LOT of non-backwards compatible changes that can break a lot of scripts that were written for Python 2.x)... Note that Pywallet was written for Python 2.7.

So, I'd recommend uninstalling Python 3.8 (assuming you don't need it for anything else), and then installing the latest version of Python 2.7 for your OS from here: https://www.python.org/downloads/release/python-2718/

Once you have Python 2.7 installed, if you continue to get errors relating to "ecdsa", you need to install the "ecdsa" package using "PIP":
Code:
pip.exe install ecdsa

NOTE: pip.exe should be located in the "Scripts" folder where python.exe is located (by default, Python 2.7 installs to C:\Python27... so pip would be in C:\Python27\Scripts)
HCP
legendary
Activity: 2086
Merit: 4361
September 24, 2020, 05:23:46 PM
#29
No worries, glad to (hopefully) be of some help... please do keep us updated whether you are successful or not. It's nice to know what the final result was! Wink

Good Luck!
HCP
legendary
Activity: 2086
Merit: 4361
September 24, 2020, 06:17:39 AM
#28
By that I mean that I don't have any key found in the wallet. But just one or more "wallets" found in the wallet.dat file.
....
(6 wallet
0 keys encrypted
0 keys decrypted)
Then it seems that PyWallet was not able to recover anything useful... it found 6 objects (while scanning the first 8gigs of F: drive) that it thought might be wallet.dat files, but was unable to actually retrieve any keys from these objects.

That could be caused by PyWallet only finding a small fragment of the wallet.dat file on the disk, or possibly that an incorrect wallet passphrase was used when trying to recover.

If dumpwallet (or the hex editor method) is allowing you to export the keys, then you're probably better off just ignoring the "--recover" option in PyWallet for now and just get to importing those private keys manually.

You can speed up the process by either:

1. when using importprivkey in Bitcoin Core, use the "false" value for the "rescan" argument... so:
Code:
importprivkey WIF_PRIVATE_KEY_GOES_HERE "" false

Until you get to the very last key... then use true... that way, Bitcoin Core will only run a rescan once for all the keys, rather than running rescan every time you run importprivkey (which can take a very long time!)

or

2. You can bulk import the WIF private keys into an SPV wallet like Electrum... it'll load and scan all the private keys in a matter of minutes.
HCP
legendary
Activity: 2086
Merit: 4361
September 24, 2020, 04:15:46 AM
#27
Thank you for your explanations I already have the hexadecimal software and found the following 32 bytes.
The same goes for the walletdump.
There is a lot of key to import in both cases.
I will do it...
Yes, there is likely to be a minimum of 100 keys (That's what the old keypool minimum was)... at some point I believe the keypool was increased to 1000 keys.


Quote
But if I want to import everything with bitcoin core the whole thing, there must be wallets, encrypted keys or decrypted keys?
In this case in with --recover I have numbers in wallet.
I'm not sure what you mean by this exactly? Huh

If you create a brand new wallet in Bitcoin Core, you will be able to import all the private keys using importprivkey command. It will be slow and annoying, but it will work.

Using --recover with PyWallet... should, theoretically, create a "valid" wallet.dat that you should be able to open using Bitcoin Core... Unfortunately, I do not know of an easy, realiable way to "corrupt" a wallet.dat so that I can test the "--recover" option with PyWallet and see if Bitcoin Core will then load the recovered wallet.dat Undecided
HCP
legendary
Activity: 2086
Merit: 4361
September 23, 2020, 05:50:11 PM
#26
As mentioned in the other thread, if your wallet file didn't have a password, you should be able to search the file for the hexstring: 0201010420

The 32 bytes of data following that string should be a private key (in hex). You can then use other tools like bitaddress.org to convert that hex to a private key in WIF format that could be imported into a wallet.



I quickly downloaded a free hex editor called "WinHex"... then opened a copy of an old wallet.dat that has no password... and did a hexstring search:



We use 020101420 as the string to search for:



This finds the following location in the wallet file:



So, now we want the next 32 bytes... a "byte" is TWO hex characters, so we want to copy the next 32 pairs of characters:





In this instance, we get:
Code:
3CF85D1E6E5DA399921269FC267A5832D5FA0CE302AD425AF9A388E6469B84C0


We put that into the "wallet details" tab on bitaddress.org and click "view details":



We get the following:



Now, that is just ONE key... the wallet.dat will have multiple locations of "0201010420", you need to find every instance of the hex 0201010420 in your wallet.dat and then get the 32 bytes following that and convert them to a private key.





Searching for individual hex private keys in a wallet.dat is a long, tedious process... honestly, using the PyWallet "dumpwallet" command is likely to be a lot easier:
Code:
pywallet.py --dumpwallet --wallet=Full\Path\To\Wallet\File > OUTPUTFILENAME

for instance, if my wallet file was in J:\Dump\ and called "wallet.dat", and I wanted to store the output in a file called walletdump.txt, I would use the command:
Code:
pywallet.py --dumpwallet --wallet=J:\Dump\wallet.dat > walletdump.txt


NOTE: When you open the walletdump.txt file, depending on how "old" the wallet file is, you might see a bunch of warnings like this:



That's fine, you can just ignore them... scroll down until you find the line that starts "The wallet is not encrypted":



All your private keys/addresses will be displayed below that. The private key (in WIF format) is the field labelled "sec".
HCP
legendary
Activity: 2086
Merit: 4361
September 23, 2020, 05:05:36 AM
#25
Have you seen this post 11 file? Could it work?
Below.
https://bitcointalksearch.org/topic/walletdat-corrupt-2012533
As mentioned in that topic... it only works if your wallet.dat had no password.

If your wallet.dat had a password set, then the private key data is stored encrypted, so you cannot simply do a search with a hexeditor to retrieve the private keys.
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 23, 2020, 02:54:18 AM
#24
@Dydy94: non-english posts are only acceptable in the regional subforum... Your post will probably be deleted soon, so i tought i'd post the url to pastebin in case your post "dissapears":

https://pastebin.com/SwHLAAQT
HCP
legendary
Activity: 2086
Merit: 4361
September 23, 2020, 01:03:52 AM
#23
Hello. I have used pywallet before with:

--recover --recov_size --recov_device --recov_outputdir
Did you actually specify the correct values for those options? Huh You need to specify the size of the device, what the device actually is, and where to put the output.

for example, if you were scanning a 8gig thumbdrive that was connected as F:, and you wanted to put the recovered files in C:\temp, you would use something like:
Code:
pywallet.py --recover --recov_size=8Gio --recov_device=F: --recov_outputdir=C:\temp


maybe that's another problem? Huh
Honestly, you'd need to copy/paste the actual contents of the debug.log file for people to be able to diagnose it properly. Giving us little snippets of the debug output does not help much Undecided The debug.log file is probably quite large, so my advice would be to shutdown Bitcoin Core, delete the debug.log file, try and restart Bitcoin Core.

After it has failed and shutdown again, then open debug.log again and copy/paste the entire contents of debug.log to https://pastebin.com/ and click the "create new paste" button. It will generate a unique URL for you. Finally, copy/paste that unique URL here.

NOTE: debug.log does not contain any "secrets", so you don't need to worry about anyone being able to steal your coins or anything, but it may reduce your privacy by showing IP addresses etc.
newbie
Activity: 20
Merit: 0
September 22, 2020, 01:00:21 AM
#22
Hello. I have used pywallet before with:

--recover --recov_size --recov_device --recov_outputdir

I don't know where this is taking me

And with :

Pywallet 2.2 which does not work very well .. I could not get anything out of it
HCP
legendary
Activity: 2086
Merit: 4361
September 21, 2020, 06:48:50 PM
#21
wallet.dat corrupted, recovery failed
"salvagewallet" failed then... It would appear that the wallet file is too corrupted for Bitcoin Core to be able to recover it. You will need to try an alternative method of extracting the private keys from the wallet.dat.

Unfortunately, most of the mthods available require the knowledge and use of command line tools and Python scripts like "PyWallet". These are not "start a program, click a button"-type solutions. Additionally, there is no guarantee that they'll be able to recover anything depending on how corrupted the wallet.dat is. Undecided

How much experience do you have with the commandline and Python scripts? Huh
HCP
legendary
Activity: 2086
Merit: 4361
September 21, 2020, 05:58:28 AM
#20
I run Qt with salvagewallet.
It opens the client and then closes almost automatically. An idea and answer to the problem? Huh
You'll need to have a look in the debug.log file in the Bitcoin Core "Datadir" and see what error is being logged when it shuts down... without knowing that error, no one will be able to tell you why it is doing what it is doing, nor how to fix it. Undecided
HCP
legendary
Activity: 2086
Merit: 4361
September 20, 2020, 09:08:28 PM
#19
How can a full node of a blockchain be quickly retrieved? I don't want to wait for bitcoin-core sync to complete.
Unless you have a fully synced copy of it already available on a another trusted machine, the "fastest" way to sync it is to just let Bitcoin Core sync "naturally"... There are other tips, like use an SSD to store the blockchain/chainstate data, if you have a lot of RAM set the "dbcache" value to at least half your total RAM size etc.

Yes, it takes hours/days, but there really isn't any way to avoid it. Undecided
jr. member
Activity: 40
Merit: 2
September 20, 2020, 04:10:31 AM
#18
How can a full node of a blockchain be quickly retrieved? I don't want to wait for bitcoin-core sync to complete.
HCP
legendary
Activity: 2086
Merit: 4361
September 19, 2020, 04:47:57 PM
#17
- Type the following command to export the key: dumpprivkey (Bitcoin address)
dumpprivkey is a very "slow" way to export multiple private keys... If you have a large number of private keys to export, using dumpwallet is a faster option Wink

The full command is:
Code:
dumpwallet path\to\output\file

For example, on Windows... to output to a file called "Keys.txt" on your D: drive in a folder called "walletdump", you would use:
Code:
dumpwallet D:\walletdump\Keys.txt
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 18, 2020, 04:15:43 AM
#16
Okay.
Do you have the method to send private keys to SPV electrum please.  Huh
Or is the simple solution asking me to wait a bit?
Yes that's it.  Grin
Without you I would never have made it.
I will get back to you very quickly.
You are a great community!  Shocked

1) export the private keys
2) download electrum from electrum.org
3) check electrum's signature (the binary HAS to be signed by ThomasV)
4) when you open electrum, a wizard should appear guiding you trough the process of making a wallet.
4.a) pick a name for your wallet (next)
4.b) chose the option "import Bitcoin addresses or private keys" (next)
4.c) paste the private keys you exported from bitcoin core (next)
4.d) chose a STRONG password (repeat) (next)
4.e) REMOVE the unencrypted file you used to store the exported private keys
4.f) wait a couple of minutes... Electrum will download the block headers... It should take only a couple of minutes tough. But if you exported a long list of private keys, it can take a while... Electrum has to communicate with electrum's nodes and ask for a list of unspent outputs funding each address.

PS.1) Ideally, there is also a fifth step: You have manipulated your wallet.dat quite a bit. You have exported private keys. You have stored your wallet on other media... It's a good idear to make a new, CLEAN wallet, and move all your funds from the wallet containing the imported private keys to a brand new, freshly generated wallet... When creating a new wallet, write down the seed phrase, never store it digitally, but make sure you have a physical, offline copy of said phrase. Don't show the phrase to anybody else, it's private!

PS.2) If you have more than a couple hundred bucks worth of BTC, i'd suggest buying a hardware wallet (ledger and trezor are the most popular brands). If not: learn to make paper wallets in a proper way (completely offline + using the right tools). If not: make an airgapped setup using bitcoin core or electrum using a dedicated pc or a Tails OS usbstick

PS.3) if you opt for a paper wallet or an airgapped setup, do the steps with testnet coins first... Make sure you know how to generate a paper wallet or airgapped setup on the testnet, fund your wallet with testnet BTC, create a transaction spending your funds on the testnet... Only when you are 100% certain about the procedure continue on the main net!

PS.4) It's an old wallet, bitcoin forked quite a bit after unspent outputs funding your addresses were stored on the blockchain. The private keys for these addresses can also be used on several other blockchains to claim a lot of forked coins!!! AFTER you moved all your BTC to a new wallet, you should look into this. BCH/BSV/... are worth considerably less than BTC, but it might still be a good idear to claim and sell them Wink

legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 18, 2020, 01:03:43 AM
#15
Well.
I have successfully imported the wallet with the --salvagewallet option.
The bitcoin core client works but shows nothing.
It must be that the date of the wallet is after the blockchain on my pc?

My best guess would be that the wallet is still syncing... Your balance will only show up once the block(s) containing the transactions funding the addresses managed by your wallet are downloaded.
This has nothing to do with the date on your os.

If you don't want to wait (or fill your disk, or burn your isp's bandwith), you can now just export all private keys and import them into an SPV wallet like electrum.
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 17, 2020, 08:55:48 AM
#14
I only have one windows machine, and it's locked down. Privately i only use linux so i have a hard time following what you're saying here?

Is this your issue? => https://bitcoin.stackexchange.com/questions/95169/pycrypto-or-libssl-not-found-decryption-may-be-slow
The link also contains the answer to your question...
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 17, 2020, 02:13:35 AM
#13
Just one last thing.
The wallet.dat file is corrupted. Do you have a solution ?? Huh Grin

Only perform the following steps on a COPY of your wallet.dat. I repeat, do NOT execute these steps on the original wallet.dat file!!!

1) use the option salvagewallet (like nc50lc already posted)
source: bitcoind -help
Code:
-salvagewallet
       Attempt to recover private keys from a corrupt wallet on startup

Basically, you already went trough the steps of adding a -reindex option... -salvagewallet is an other option, you can add it in a similar way as you added the -reindex option

2) download pywallet from a TRUSTED repo... You'll need to install the dependency's aswell
python pywallet.py –dumpwallet > wallet.text
OR
python pywallet.py –dumpwallet > wallet.text --passphrase=PASSPHRASE

3) bitcoinj's wallettool... You'll need to install the dependency's aswell
github.com/bitcoinj/bitcoinj#building-and-using-the-wallet-tool

legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
September 17, 2020, 02:07:10 AM
#12
Just one last thing.
The wallet.dat file is corrupted. Do you have a solution ?? Huh Grin
Try to run Bitcoin core with --salvagewallet argument.
If you're using Windows, you can create a shortcut and add that at the end of the target, example:
Code:
"C:\Program Files\Bitcoin\bitcoin-qt.exe" --salvagewallet
or run a command prompt, start bitcoin-qt with that arg.

It can only recover the wallet if the master key/keys aren't affected, not if it's beyond repair.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
September 16, 2020, 02:44:41 AM
#11
Ok thank you for that but the real problem is that every time I change "wallet.dat" I am told either corrupted or node goes beyond pruned data ...
 And I have no solutions for that ...  Huh
You have to disable pruning if you need to replace the wallet.dat often.
Having an old wallet.dat is another problem with a pruned node w/ huge set size since the oldest blocks where your UTXO(s) might be are the first to be pruned.

If you're willing to save 300GB of data to your disk to 'fix' that "beyond pruned data" issue,
then disable pruning in Settings->Options->Uncheck "Prune block storage to".
Or if you've set it in your bitcoin.conf file, remove it.
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 15, 2020, 05:15:02 AM
#10
Like when they say to replace the base wallet.dat with the old wallet.dat which would be supposed to contain bitcoins.
But we don't open it with "file => open the wallet"

 Huh Huh

I'm assuming you use windows.

By default, Bitcoin core is going to open the file wallet.dat in the default data directory. You don't need to do anything special, you don't need to use a menu. The only thing you have to do is open windows explorer, browse to said data directory and make sure the file called wallet.dat in said data directory is the wallet you want to open. AFTERWARDS, start bitcoin's gui

so, basically

open the directory described here:
https://en.bitcoinwiki.org/wiki/Data_directory#Default_Location
using windows explorer.

Find the file wallet.dat, rename it to wallet.dat.old

Copy your wallet.dat (the one containing the private keys for the funded addresses) to said directory

open bitcoin's gui

wait...

you don't actually need to wait untill the synchronisation is completed... You can export your keys straight away and import them (in bulk) to (for example) electrum

if something goes wrong, you can find the file debug.log in the default data directoy... You can upload it and show it to us, it doesn't contain data that makes you vulnerable to attack (altough it can contain data that decreases your privacy)
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
September 15, 2020, 03:05:24 AM
#9
I don't really use bitcoin qt (the gui application). I usually stick with bitcoind, but if memory serves me correct, there is no menu to open wallets in the gui (like i said, i haven't opened the gui in a long time).
If you run a "default" installation, you just have to make sure you put the wallet.dat you want to open in the default data directory of your operating system and start the gui.... That's all...
I believe he is referring to the Open Wallet option in the file tab at the top. It allows the user to choose between the wallets within the data directory itself.

OP, as long as the wallet.dat is put into the data directory correctly, there is no reason why you would need to touch the Open Wallet dropdown box.
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 15, 2020, 02:22:01 AM
#8
Also last problem:
A wallet.dat file, which is not marked in Open Wallet. Is there a way to open it.
-Without software? Huh
-Or with a tool like pywallet, although I believe pywallet is not fully operational to recover? Huh
-Or if? Huh
I am grateful to you ...  Wink Cheesy

I find it kind of hard to understand what you're saying here... "A wallet.dat file, which is not marked in Open Wallet".

I don't really use bitcoin qt (the gui application). I usually stick with bitcoind, but if memory serves me correct, there is no menu to open wallets in the gui (like i said, i haven't opened the gui in a long time).
If you run a "default" installation, you just have to make sure you put the wallet.dat you want to open in the default data directory of your operating system and start the gui.... That's all...


The default directory: https://en.bitcoinwiki.org/wiki/Data_directory#Default_Location

BTW... If there  is already an existing wallet.dat, it's wise not to overwrite the existing wallet.dat, but rename the existing wallet.dat before you place the wallet you want to open in the directory... Never delete wallet.dat's, rename them Smiley (and make backups on a safe medium)

There are ways to open the gui using a different wallet file, or a different default data directory, but i'd rather not point you into that direction, since it'll only lead to confusion.

jr. member
Activity: 189
Merit: 1
September 15, 2020, 01:40:18 AM
#7
 Hi i think i can help you with it DyDy. You can contact me here: [email protected] and i can help you with export to electrum.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
September 15, 2020, 01:27:25 AM
#6
Actually no, I don't know which key my bitcoins contain. It's a very old file and I'm looking but can't find how to import it (the .dat file) into electrum.
I read the guides but it's not for me ....
I believe I should be using bitcoin core ?? The best: and maybe the only solution ??
Yes. It'll be the best for you to go ahead and synchronize your Bitcoin Core again. It's quite tedious to export all the keys and import into Electrum manually. Using Bitcoin Core is the only way for you to guarantee that you get all the Bitcoins in the wallet.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
September 15, 2020, 01:05:08 AM
#5
Ah. Very good !! Looks like I need to download some MB of ...?  Huh Blockchain electrum?
Is this it?  Roll Eyes
I have never exported to electrum.
Would you have the path for electrum please? Cheesy
Block header, which is a small part of the data of Bitcoin blocks.

The website for Electrum is electrum.org, do note to verify the authenticity of the download before running it. Follow the guides given by ETFbitcoin to export your addresses. I assume you know which of the addresses have the funds?
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
September 15, 2020, 12:50:55 AM
#4
Ok, but does the blockchain have to be downloaded anyway?   Huh

No,
you can export your private keys from your wallet without downloading the complete blockchain.
 
If you want to keep on using bitcoin core, you'll have to re-download complete blockchain, since you seem to be running a pruned node.
If you decide to move to an SPV wallet (like electrum), you can export the private keys without downloading the complete blockchain, import them into the SPV wallet and ONLY download the block headers (<100 Mb last time i checked).
jr. member
Activity: 33
Merit: 7
September 14, 2020, 11:39:49 AM
#3
Or do you know how to import to electrum? Huh Huh
Please...
In the Bitcoin Core console, you export the private key, then import it in Electrum...
Pm me, I'll send you a telegram and explain more about console commands.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
September 13, 2020, 08:03:30 AM
#2
Ah thank you finally I understand a little better what is said. It is not very clear all these messages, and in numbers.
Please. Can you tell me if "pruning the block storage space to 1 GB" is enough for the entire blockchain? I think not
Or for the other method; Is there software or a command to use? how to extract this key? And sent it to another wallet?
Thanks.
The blockchain is currently over 300GB. You will have to resynchronize eitherways. You have to do a full download of the Blockchain for the client to be able to know the transactions that is relevant to your wallet addresses.

Unless you know exactly which addresses contains Bitcoins, it would be quite a daunting task to locate the keys that you want. You can use dumpwallet to extract all the keys but you'll need quite some time to filter through the hundred over addresses.
newbie
Activity: 20
Merit: 0
September 13, 2020, 02:54:44 AM
#1
hello the big family of crypto assets.

So I have an old wallet that I can't get into bitcoin core. there must be an amount on it dated 2014.

Can you give me the path to the known issue which is therefore "either corrupt or goes beyond pruned data"
Help me please !!

please concrete help.
Jump to: