Bitcoin Forum
April 24, 2024, 09:20:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 »
41  Bitcoin / Bitcoin Technical Support / Re: Bitcoin cli wallet unlock question on: April 15, 2021, 09:14:28 PM
bitcoin-cli is just the way to interact with bitcoind... it passes the commands to the bitcoind daemon and then returns the responses to you.

The wallet would already need to be loaded by bitcoind (which is essentially the same as having it loaded via the Bitcoin Core GUI) for the walletpassphrase option to work. Same with using dumpwallet with bitcoin-cli... the wallet would already need to be loaded by bitcoind.
So I'm assuming it would get mauled again, rather than being in it's original raw form?
42  Bitcoin / Bitcoin Technical Support / Re: Old wallet.dat in latest core debug info help please. on: April 15, 2021, 09:04:30 PM
Is the hex view from before or after it has been upgraded by Bitcoin Core? Huh

Interestingly... the "1Cni" address that you show actually has a date of 2016... So, I'm wondering if this wallet was already "updated" at some point AFTER 2013.

I suspect the old keys from 2013 were just never used, and now that the wallet was upgraded, they were given "bc1" addresses in the wallet dump (as that is what Bitcoin Core defaults to now).

You could possibly test this, by taking a copy of the original wallet.dat that has not been opened in a new version of Bitcoin Core... and then loading it into Bitcoin Core, after starting Bitcoin Core using the -addresstype="legacy" and -changetype="legacy" options set (or addresstype="legacy" and changetype="legacy" in bitcoin.conf).

Then check the dumpwallet output to see if the 2013 keys are labelled with "1"-type legacy addresses instead of bc1 addresses.
The hex view is before being loaded into core. I have seen both a 2016 and 2013 date shown in 2 different wallet dumps for that legacy address, last image first line. Huh
Something to note is that i haven't done a rescan while this wallet has been loaded into core. Would that have a different outcome regarding what keys/addresses it would show. Still don't understand the encrypted wallet thing though.
43  Bitcoin / Bitcoin Technical Support / Bitcoin cli wallet unlock question on: April 15, 2021, 08:17:08 PM
Can this command decrypt the wallet.dat in the directory even if it has never been loaded into bitcoin core? Also, does it leave that file sitting in the directory unencrypted? Thanks for any info.
44  Bitcoin / Bitcoin Technical Support / Re: Old wallet.dat in latest core debug info help please. on: April 15, 2021, 08:07:58 PM
It would appear the old wallet.dat only had one key in it... I'm not sure if the old versions of Bitcoin Core always had a keypool of 100, or if it originally just generated keys/addresses on the fly.

It's also possible the wallet.dat was modified to delete keys... and/or it is actually a "recovered" wallet.dat from your many attempts at using PyWallet that only had 1 legacy key/address loaded in it.

Once you opened it with the latest version, it would have been loaded up with a new keypool of 1000 (which would have defaulted to the bech32 addresses) which would explain why the filesize changed.

Opening a "non-encrypted" wallet with a new version of Bitcoin Core does not automatically encrypt the wallet... you would need to explicitly set a passphrase using the "Settings -> Enncrypt wallet" option in Bitcoin Core. Also, note that "encrypting" a Bitcoin Core wallet does not actually encrypt the entire contents of the wallet (like Electrum does). ie. it is not a full file encryption... it is only the private key data that actually gets encrypted.

What makes you think the wallet.dat should have been encrypted? Huh
Pywallet confirmed that it is encrypted and that the passphrase is correct. This wallet file is not a pywallet recovered file, it is a wallet.dat recovered from the hard drive with recuva and showed that it originally came from the usual appdata/roaming/ bitcoin file path on the drive. I have shown some screenshots below which includes one of the wallet info command in the daemon bitcoin-wallet utility(this is before bitcoin core has done it's thing with the wallet). I have shown a hex view of the wallet and highlighted the address that the wallet dumps show, and also the address I'm after(strange that this address is in an encrypted wallet, yet core can pull it out of there with it's private key and the resulting wallet is unencrypted). Another strange thing is the dates of the addresses(2013). Cheers.
https://imgur.com/a/8WxPaJj
45  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: April 14, 2021, 08:54:44 PM
Is there a way of not entering a passphrase for the recovered wallet but still entering the correct passphrase for the actual recovery, ie leaving the recovered wallet decrypted?
46  Bitcoin / Bitcoin Technical Support / Re: Old wallet.dat in latest core debug info help please. on: April 14, 2021, 06:31:59 PM
It seems the wallet.dat become corrupted after imported it to the latest version of bitcoin core.
Anyway, do you still have the old backup copy?

If you still have the old copy make a new copy and try to recover your old public keys and private keys using pywallet you can follow the guide from this link below.

- [GUIDE] Recover your deleted keys

or you can just dump private keys using this command


Code:
pywallet.py --dumpwallet --wallet=J:\Dump\wallet.dat > walletdump.txt

If it's encrypted then add this

Code:
--passphrase=yourwalletpassword

It should look like this
Code:
pywallet.py --dumpwallet --passphrase=yourwalletpassword --wallet=J:\Dump\wallet.dat > walletdump.txt

Change the path location under --wallet= if where your wallet.dat copy.

Now it should show all of your private keys.

Now you can sweep or import it in your latest bitcoin core if you still want to use the latest bitcoin core.

I can;t understand how it even used the wallet without causing an error. Not sure why there ends up being one old style address in there.
47  Bitcoin / Bitcoin Technical Support / Old wallet.dat in latest core debug info help please. on: April 14, 2021, 05:15:31 PM
When I load an old wallet into Bitcoin Core, it changes from 96kb to over 600kb and only shows one legacy format key and the rest are new keys(presumably a thousand). I also expected the wallet file to be encrypted but it isn't. The wallet seems to load okay without throwing a corruption message out but does not show any old keys etc. I have shown four screenshots here of the debug log, from starting up with this wallet file. Thanks.
https://imgur.com/a/tjdKISW
48  Bitcoin / Bitcoin Technical Support / Re: Salvagewallet in latest Bitcoin core on: April 14, 2021, 04:59:24 PM
Does the bitcoin-wallet offer any more tools?

Currently there's only two other commands: one to create a wallet (create) and another that lists information about a wallet (info).
Cheers again for your help.
49  Bitcoin / Bitcoin Technical Support / Re: Salvagewallet in latest Bitcoin core on: April 14, 2021, 04:55:53 PM
Be sure to make a backup copy of your wallet.dat before you run it.
Yes, it's supposed to make a backup before it does anything but like anything involving money it's better to do your own backup before anything else touches the file.

-Dave

I'm only using copies, but thanks for your reply.
50  Bitcoin / Bitcoin Technical Support / Re: Salvagewallet in latest Bitcoin core on: April 14, 2021, 04:54:58 PM
If you're still using Windows7, open command prompt to Bitcoin\daemon where bitcoin-wallet.exe is located (change the directory if you're not using the default).
Code:
cd C:\Program Files\Bitcoin\daemon
For the default wallet 'wallet.dat', this command should work:
Code:
bitcoin-wallet -datadir="D:\Bitcoin" salvage
For other wallets, use NotATether's command.

Note: It will not return with a response (aside from errors), you can check the data directory and a backup of the wallet will be created upon using the command.
Does the bitcoin-wallet offer any more tools?
Use:
Code:
bitcoin-wallet --help
Thanks for your help.
51  Bitcoin / Bitcoin Technical Support / Re: Salvagewallet in latest Bitcoin core on: April 13, 2021, 07:51:30 PM
The -salvagewallet command line option was moved into the bitcoin-wallet utility as of Bitcoin Core 0.21, and its name has changed to salvage.

Code:
bitcoin-wallet -wallet=<wallet name> salvage
Thanks, how do I run that on my wallet files? My wallet files are In D:\Bitcoin, and Daemon is in the same. I have 3 wallet files with different names. Does the bitcoin-wallet offer any more tools?
52  Bitcoin / Bitcoin Technical Support / Salvagewallet in latest Bitcoin core on: April 13, 2021, 07:24:09 PM
How do you run salvagewallet in the latest version. Thanks.
53  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: April 12, 2021, 07:48:11 PM
JackJack mentions that pywallet didn't recover compressed keys. Could that be why i'm not able to recover anything from this wallet? Does the old pywallet have trouble recovering and dumping newer wallets. Does a wallet from 2015 fall into this category? Cheers.
Not sure about "recovering"... but it certainly dumps "compressed" keys... the thing you have to remember, is that the private key itself is not "compressed" or "uncompressed"...

It is the public key (and the subsequent hash160 "address") that is "compressed" or "uncompressed". The private key is always a 256bit number.

I think the "new" fields were added when HD wallet support was introduced which was in v0.13... which was released in August 2016... so a wallet created in 2015 should be the old "non HD" wallet type. However, if it was subsequently opened in a newer version of Bitcoin Core, the wallet file was likely "upgraded" (not to HD, but to the new format) which may have added in the fields that cause issues with PyWallet.

This is why I recommend making copies of the original 2015 wallet.dat file and working on the copies.

Again, have you simply tried opening one of the copies of the wallet.dat in Bitcoin Core and using either dumpwallet or dumpprivekey from inside Bitcoin Core? It would be much much easier than trying to deal with PyWallet and it won't matter if the wallet file is old version or new version.
The wallet seemed to load okay into the latest Bitcoin Core but I don't see the address. Here is a wallet dump of it, i'm not sure if I loaded the wallet into core correctly as it seems more complicated than older versions. Why are all the addresses in the newer format? I have obviously deleted most of the private key info.
https://imgur.com/a/vQ5cpCn
54  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: April 11, 2021, 09:49:19 PM
The comment he made about compressed key recovery is in the first comment of this page.
55  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: April 11, 2021, 04:49:06 PM
You can try those code alterations... or use my version here: https://github.com/HardCorePawn/pywallet

It essentially has the mods as shown by the commits here: https://github.com/jackjack-jj/pywallet/compare/master...HardCorePawn:master


But before messing around with PyWallet... have you just tried installing Bitcoin Core and opening a copy of the wallet.dat from 2015 that has the address you're after in it? Huh

It would be much much simpler to use dumpprivkey from within Bitcoin Core (it doesn't even need to be synced or connected to the network) and get the private key that way than trying to use PyWallet.

And of course, regardless of whether you are using Bitcoin Core or Pywallet, you'll still need to know what the wallet passphrase is to be able to access the private key.
JackJack mentions that pywallet didn't recover compressed keys. Could that be why i'm not able to recover anything from this wallet? Does the old pywallet have trouble recovering and dumping newer wallets. Does a wallet from 2015 fall into this category? Cheers.
56  Bitcoin / Development & Technical Discussion / Re: Pywallet 2.2: manage your wallet [Update required] on: April 10, 2021, 11:19:30 PM
Pywallet is very old and the wallet.dat file format has changed since Pywallet was last updated (2014).

It looks like the script does not handle some of the new data fields that are now included in the wallet.dat file. It should theoretically be possible to modify the script to either handle or ignore the unknown fields.

If you just want to dump the file and don't care about making a "valid" wallet.dat... you can edit the pywallet.py file:

Change Line #2111 from:
Code:
				d.update(parse_BlockLocator(vds))
to:
Code:
				#d.update(parse_BlockLocator(vds))


Then on Line #2502, change:
Code:
			json_db['bestblock'] = d['hashes'][0][::-1].encode('hex_codec')
to:
Code:
			print("ignored") #json_db['bestblock'] = d['hashes'][0][::-1].encode('hex_codec')


The script will still spit out a whole heap of garbage like this:
Quote
Wallet data not recognized: {'__type__': 'keymeta', '__value__': "\n\x00\x00\x00\xa9\xd2\x85Z\x00\x00\x00\x00\x0bm/0'/0'/28'\x0c[\xfd\xe5\xabu\xfe\xf6\x13\xfb\x98p$F\xa6\xc2\xf1\\\xba\x04", '__key__': '\x07keymeta!\x03\xe3k\x94[F\xb4HO5f<b\x84\x88\x9fx\xb5Y~\xba\x01&e}\xcd\xbft\x90k\xdf\xbf\x07'}

but you should get to see all the key stuff printed out:
Quote
   "keys": [
        {
            "addr": "1PLXWsEWa3wrZTGo52FDjGiTP85LBbKRpg",
            "compressed": true,
            "hexsec": ".... removed ....",
            "private": "308ffffffffffffffffffffffffffffffffffffffffffffffffffffff73311b4fb36b7bffffffff ffffffffffffffffffffffffffffffffffffffffffffff48ce3d0101022100fffffffffffffffff ffffffffffffffffffffffffffffffffffffffefffffc2f30060fffffffffffffffffffffffffff fffffffffffffffffffffffffff6f81798022100fffffffffffffffffffffffffffffffebaaedce ffffffffffffffffffffffffffffffffffffffffffffffffffffff002067ddfffffffffffffffff fffffffffffffffffffffffffffffffffffff1298b98e",
            "pubkey": "02067dd94367c87da0d59c5f3b1c400239f846073b2b83b87bc15bc3201298b98e",
            "reserve": 1,
            "sec": ".... removed ....",
            "secret": ".... removed ...."
        }

The important one will be "sec"... that will be the WIF private key and should start with "5", "L" or "K"
I have reason to believe that a wallet.dat i found that is from from 2015 could contain the private key i am after. It seems that my brother in law has got his information mixed up. I opened this particular file up with a file viewer 4 and i could read the address i'm after within it. Do you think i could have any luck with either your code alterations or the newer version of pywallet. Cheers. I didn't have any luck when i ran pywallet on the whole hard drive which contains this wallet file.
57  Bitcoin / Bitcoin Technical Support / Re: pywallet install help on: April 07, 2021, 09:02:18 PM
are you using the latest version of PyWallet? (that has been updated recently by jackjack) or are you using the old version? Huh

Also, where is your wallet.dat actually located? The --datadir value you are using is where Python should be installed to... not where your wallet.dat is likely to be located unless you manually copied it there.
I'm probably not making myself clear. I have scanned the whole Hard drive with pywallet on multiple occasions, when the hard drive has been mounted in a separate enclosure and connected via usb. The scans have been successful in recovering wallets but i find that the results have sometimes been inconsistent. The last time I tried a scan i used every passphrase upper and lowercase, but that didn't yield as many results as an earlier one that included less passphrase variations(i do know the correct passphrases that my brother in law used). I have done quite a few scans this way and have managed to dump the recovered wallets. Some of the wallet.dats i recovered were obtained by using recuva(a file retrieval software). I put those files on to a usb stick and ran those through pywallet with limited success. I think they are corrupted but they are from the correct time(2011-2013). The version of pywallet used is the original one using python 2.7. I don't know if the updated one is any better, but i did see JackJack saying that some things in the original "have always been broken" so maybe i should try it? I just wondered whether the pywallet scan of a hard drive from another laptop is fully accessed by the scan. Thanks for your time.
58  Bitcoin / Bitcoin Technical Support / Re: Base 64 characters? Bitcoin docx file on: April 05, 2021, 10:06:30 PM
https://imgur.com/s23eGUj This is the majority of the first block of text.
It certainly looks like Base64 with the +'s and /'s... but it's possible that it is encrypted text/data that has been Base64 encoded... And, obviously, without knowing the details of the encryption method used, if you Base64 decode it, you're just going to get the encrypted data which will look like gibberish Undecided
Someone mentioned that it could be a pgp file?
59  Bitcoin / Bitcoin Technical Support / Re: pywallet install help on: April 05, 2021, 08:56:44 PM
Thanks for the reply. It was from a pywallet recovered wallet via some wallet.dat files that I moved to a thumb drive from the hard drive using recovery software. I have got some inconsistent results with pywallet when searching the whole hard drive. In past searches it has found up to 300 keys, but the last couple of attempts using even more passphrases has produced only 103 at the most. Something else i wondered about was the possible unencrypted keys it says it has found. Do you know whether pywallet will search a whole hard drive that you have mounted in an enclosure and connected via usb, including any partitions it has? Thanks again.
60  Bitcoin / Bitcoin Technical Support / Re: Base 64 characters? Bitcoin docx file on: March 29, 2021, 08:18:11 PM
You can safely test if you have Base64 input and what it encodes by running the following Python code in your local interpreter.

Code:
import base64 
string = input("Input base64 here: ")
string_decode = base64.decodestring(string)
print("Decoded string:")
print(string_decode)

I would avoid using online base64 decoders if you think you might have a private key, since you have no idea if the data is logged server-side.

I assume you already have python installed based on your previous support questions about pywallet.
I might have to send the file to someone trusted to have a look at as I'm not sure what I'm doing. I have got python 2.7 installed but it is a lot of text to enter in a command line. Thanks for your time.
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!