HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
October 16, 2020, 12:58:20 AM |
|
That is correct. The encryption in Bitcoin Core is simply encrypting the private key data stored in the wallet file. The walletpassphrase could be "12 words", it could also be 200 random characters or non-existent or some other combination of letters/numbers/symbols etc... it's basically just a standard "password"... and has no direct bearing on the ability to recreate any keys.
Historically though, "12 word" phrases (consisting of 12 "random" words) have been some form of backup/recovery system as opposed to a password.
In other words, if you have 12 words, they're probably more likely to be a mnemonic of some description than they are to be a "password", but that doesn't mean they aren't a password.
The crucial point is that Bitcoin Core has never used a mnemonic system for recovery/backup... it has always been "make a copy of wallet.dat". So, if these 12 words are indeed a recovery mnemonic of some description, they're most likely not related to Bitcoin Core.
|
|
|
|
nc50lc
Legendary
Offline
Activity: 2604
Merit: 6412
Self-proclaimed Genius
|
|
October 16, 2020, 02:34:20 AM |
|
The link you've provided is just about encrypting Bitcoin core's wallet file, not specifically " 12-words to encrypt". Anyways, it will accept 12-words as a passphrase because core accepts spaces.
Please fix your quote, it looks like the text in the middle was posted by me: Insert [/quote] after " Can you provide the link of that paper or article?" And insert [quote author=nc50lc] before " Because as far as I know" to fix it.
|
|
|
|
SheriffBass (OP)
Member
Offline
Activity: 77
Merit: 11
|
|
February 06, 2021, 03:11:57 PM |
|
so to be sure I have PYwallet properly installed and operating as it should, I ran it on a hard drive with bitcoin core (which I assume should already have a wallet and keys) , I also had a folder of previously found/ created wallets and partial wallets (results from running PY wallet multiple times on multiple drives) on that same hard drive, ran PYwallet and got this result: Found 70 possible wallets found 0 possible encrypted keys found 0 possible unencrypted keys the wallet is encrypted and the passphrase is correct importing:...…..
I was hoping PY wallet would recognize the bitcoin core wallet and I would get at least the one good key off the drive!! what am I doing wrong??
then since I'm pretty bad with computers, don't trust myself with proper installation, operation of PY wallet and can't run simple commands as dump wallet or privkeys….. I ran Electrum to sweep keys from the Py wallet generated/ found wallets which gave me a page full of numbers multiple lines of zeros and a bunch of numbers on the last 3 lines. looked it up and referred me to adding p2wpkh IN front of the key but its a whole page full of numbers and I can't tell which is the key!!
any advice?? Thank you,
|
|
|
|
NotATether
Legendary
Offline
Activity: 1792
Merit: 7383
Top Crypto Casino
|
|
February 06, 2021, 04:47:23 PM |
|
then since I'm pretty bad with computers, don't trust myself with proper installation, operation of PY wallet and can't run simple commands as dump wallet or privkeys….. I ran Electrum to sweep keys from the Py wallet generated/ found wallets which gave me a page full of numbers multiple lines of zeros and a bunch of numbers on the last 3 lines. looked it up and referred me to adding p2wpkh IN front of the key but its a whole page full of numbers and I can't tell which is the key!!
pywallet with the --dumpwallet switch writes the private keys to a JSON file which is a kind of file that has a structure like this: { "key": "value", "key2": [1, 2, 3], "key3": { "subkey": "anothervalue" } } and so on. If your file doesn't look like this, then it was created with another pywallet command. In your case, look for a key called "keys", and it's going to have a list of key-values {} in them that have "address" and "sec" subkeys. The "sec" key has your private key inside and it begins with a "H","J","K" or "L" (or any of these with a "5" at the beginning). This is what you import into Electrum. "addr" is the address for the private key. Look at the characters at the beginning ("1", "3", or "bc1") and add the correct prefix in front of the private key to import it into Electrum (p2pkh: , p2sh: , or p2wpkh: respectively). If you don't see "sec" keys next to "addr" keys then it means that particular private key is encrypted and you need to run "pywallet --dumpwallet --passphrase yourpasswordhere" to decrypt it.
|
|
|
|
SheriffBass (OP)
Member
Offline
Activity: 77
Merit: 11
|
|
February 06, 2021, 07:44:08 PM |
|
then since I'm pretty bad with computers, don't trust myself with proper installation, operation of PY wallet and can't run simple commands as dump wallet or privkeys….. I ran Electrum to sweep keys from the Py wallet generated/ found wallets which gave me a page full of numbers multiple lines of zeros and a bunch of numbers on the last 3 lines. looked it up and referred me to adding p2wpkh IN front of the key but its a whole page full of numbers and I can't tell which is the key!! [I didn’t run Pywallet dump keys as I don’t know how! I as assuming the Pywallet would acknowledge the presence of a wallet and keys and display them]
pywallet with the --dumpwallet switch writes the private keys to a JSON file which is a kind of file that has a structure like this:
{ "key": "value", "key2": [1, 2, 3], "key3": { "subkey": "anothervalue" } }
and so on. If your file doesn't look like this, then it was created with another pywallet command.
In your case, look for a key called "keys", and it's going to have a list of key-values {} in them that have "address" and "sec" subkeys. The "sec" key has your private key inside and it begins with a "H","J","K" or "L" (or any of these with a "5" at the beginning). This is what you import into Electrum.
"addr" is the address for the private key. Look at the characters at the beginning ("1", "3", or "bc1") and add the correct prefix in front of the private key to import it into Electrum (p2pkh: , p2sh: , or p2wpkh: respectively).
If you don't see "sec" keys next to "addr" keys then it means that particular private key is encrypted and you need to run "pywallet --dumpwallet --passphrase yourpasswordhere" to decrypt it. [/ I’ll been to learn the command for Pywallet dump keys and dump wallet to proceed! ] just opening the wallet file from Electrum did show an address on the bottom starting with bc1 and asked to add p2wphk to the key but I can’t figure out what the key is from all these numbers in the file!!
|
|
|
|
jackjack
Legendary
Offline
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
|
|
February 06, 2021, 09:12:07 PM |
|
I'm sorry I'm a little confused, this thread is a year and a half old and I don't get if you managed to find any wallet or key Based on this I guessed not Found 70 possible wallets found 0 possible encrypted keys found 0 possible unencrypted keys The 70 only means pywallet found 70 master keys (wallet encryption parameters) but no addresses at all, this is weird When were the wallets created? Are you sure it is a bitcoin-qt/core wallet? BTW I found out the pywallet recovery is bugged, I fix a bit of that a couple hours ago you can try the new version and see if it finds any key I'll be fixing this over the next weeks
|
Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2 Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
|
|
|
SheriffBass (OP)
Member
Offline
Activity: 77
Merit: 11
|
|
February 06, 2021, 09:39:53 PM |
|
I'm sorry I'm a little confused, this thread is a year and a half old and I don't get if you managed to find any wallet or key Based on this I guessed not Found 70 possible wallets found 0 possible encrypted keys found 0 possible unencrypted keys The 70 only means pywallet found 70 master keys (wallet encryption parameters) but no addresses at all, this is weird When were the wallets created? Are you sure it is a bitcoin-qt/core wallet? BTW I found out the pywallet recovery is bugged, I fix a bit of that a couple hours ago you can try the new version and see if it finds any key I'll be fixing this over the next weeks [yes I’ve been looking since 2017!! Believe the wallet was from 2009-2010! I Barley Lerned enough python to download and run Pywallet, already ran it on all my drives and every time it’s done it say either partial wallet or creates a wallet but never shows any keys! I’m surprised because this test was to see it if will capture the keys off the Bitcoin core wallet I had running on that hard drive 2 weeks ago but it didn’t 🤔 that’s why I question if I have something missing in my program download or operation?]
|
|
|
|
jackjack
Legendary
Offline
Activity: 1176
Merit: 1280
May Bitcoin be touched by his Noodly Appendage
|
|
February 06, 2021, 09:47:06 PM |
|
Well the recovery has some bugs but from my tests it finds at least a few keys for recent wallets Things will be clearer in a few weeks
|
Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2 Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
|
|
|
NotATether
Legendary
Offline
Activity: 1792
Merit: 7383
Top Crypto Casino
|
|
February 06, 2021, 11:27:09 PM |
|
... ran PYwallet and got this result: Found 70 possible wallets found 0 possible encrypted keys found 0 possible unencrypted keys the wallet is encrypted and the passphrase is correct
Are you absolutely sure that all those wallets aren't just password-protected with no receiving addresses created for it yet? Core doesn't create receiving addresses for new wallets by default, you have to explicitly tell it to give you an address so it's possible the wallets you're trying to dump were only created but never used (by virtue of having not receiving addresses for it). As far as looking for the private key is concerned, look for something with "5H" "5J" "5K" or "5L" at the beginning of a line.
|
|
|
|
SheriffBass (OP)
Member
Offline
Activity: 77
Merit: 11
|
|
February 08, 2021, 03:22:56 PM |
|
Are you absolutely sure that all those wallets aren't just password-protected with no receiving addresses created for it yet? Core doesn't create receiving addresses for new wallets by default, you have to explicitly tell it to give you an address so it's possible the wallets you're trying to dump were only created but never used (by virtue of having not receiving addresses for it). As far as looking for the private key is concerned, look for something with "5H" "5J" "5K" or "5L" at the beginning of a line. [ I believe the 70 found "wallets" were probably the empty .dat files created by PYwallet when I ran it (probably 70 times)!! I thought that bitcoin core automatically creates one wallet when installed, I wasn't trying to dump wallets as I don't know how, was just trying to find a wallet then go to the next step of extracting keys and........ so now I'll plug in a drive with electrum wallet and a backed up bitcoine core wallet to test the PYwallet again to see if PYwallet works as designed on my machine, I also just learned that it doesn't look into compressed files, back up files in their current status no wonder I can't find any wallets will have a long way to find good quality programs to decompress and decipher/make backup files readable to PYwallet, I was using windows search looking for .dat files on a 500 GB drive yesterday and it said it needs 1.4TB disk space .]
|
|
|
|
NotATether
Legendary
Offline
Activity: 1792
Merit: 7383
Top Crypto Casino
|
|
February 08, 2021, 08:02:19 PM |
|
I was using windows search looking for .dat files on a 500 GB drive yesterday and it said it needs 1.4TB disk space
Bear in mind that searching only for files that have a .dat file extension at the end will give you A LOT of false positives. .dat's usage is extremely loaded and dozens of programs store their own different file format in files that have this extension, so you might end up with a bunch of .dat files that are not wallet files!
|
|
|
|
SheriffBass (OP)
Member
Offline
Activity: 77
Merit: 11
|
|
February 08, 2021, 08:14:46 PM |
|
I was using windows search looking for .dat files on a 500 GB drive yesterday and it said it needs 1.4TB disk space
Bear in mind that searching only for files that have a .dat file extension at the end will give you A LOT of false positives. .dat's usage is extremely loaded and dozens of programs store their own different file format in files that have this extension, so you might end up with a bunch of .dat files that are not wallet files! that’s what PYwallet is for though, right? I’ll pile up 1.5 GB of .dat files run it and The program will do the work, skip the junk and find wallet files if present! I’ll have to buy a bigger hard drive!!
|
|
|
|
NotATether
Legendary
Offline
Activity: 1792
Merit: 7383
Top Crypto Casino
|
|
February 09, 2021, 12:02:57 PM |
|
that’s what PYwallet is for though, right? I’ll pile up 1.5 GB of .dat files run it and The program will do the work, skip the junk and find wallet files if present! I’ll have to buy a bigger hard drive!!
Well technically it is going to skip over the .dat files it can't read and raise an error, but the more errors related to unreadable files are in your log the output for the real wallet.dat files are going to be buried under an avalanche of "cannot read file" kind of messages.
|
|
|
|
|