Bitcoin Forum
May 03, 2024, 05:00:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Sweeping BCH from multiple unspent outputs into Coinomi on: July 05, 2021, 11:39:28 PM
Back in 2017 for the bitcoin cash fork I had bitcoin on a Mycellium HD wallet. Initially I tried to sweep my funds into Coinomi it didn't load the total amount of bitcoin cash it should have. (It only showed ~25% as much as I had.) I gave up on trying to recover the rest until recently I was in my mycellium wallet and noticed there is an "unspent outputs" section (it's easy to brush over; you have to select your HD wallet and then click the three dots on the top right corner.) which lists four or five unspent outputs. So I guess when I sweeped my wallet into coinomi it only sweeped one of the unspent outputs. I have now been reading some tutorials on how I can recover the rest of my BCH into coinomi (or another wallet) using bip32.org:

https://bitcoin.stackexchange.com/questions/57422/how-to-sweep-private-extended-key-from-mycellium-for-bitcoin-cash-coins 

I'm confused on exactly what information I need to enter on bip32.org. Before I started entering sensitive information to bip32 I transferred my bitcoin to a new wallet but now as a result I can no longer see my unspent outputs in mycellium.

Can anyone walk me through what exactly I need to do to recover my BCH, or am I shit out of luck without knowing what my unspent outputs are?

When I open the "export account keys" menu in Mycellium it lists a public key (xpub, ypud, or zpub) which are 112 character phrases and a private key (xprv, yprv, zprv) which are QR codes.

I understand HD wallets like mycellium are a bit more technical and though I've owned bitcoin for some years I just hold it and dont really move it around much so it's all still pretty new to me. Any help is appreciated.  Smiley
2  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: July 04, 2021, 09:14:15 PM
I dont know if it is encrypted or not lol. Sorry it was from years ago.

Wallet encryption feature available since Bitcoin-Qt 0.4.0 (on 23 September 2011). Right click the wallet file and see when it's created and modified. If both have date/time before 23 September 2011, it's almost certainty NOT encrypted.

It's from 2016.
3  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: July 04, 2021, 04:26:05 AM
I'm a little surprised that it is coming up as corrupted then... unless the drive is suffering from "bit rot", or the device was disconnected before the file was properly stored on the disk, it should have been "OK".

Do you know if the wallet.dat was encrypted with a password? If it wasn't, it might be possible to extract private keys "manually" by using a hex editor (or a script to scan the raw bytes of the file).

If it was encrypted, it's a lot more difficult.

I dont know if it is encrypted or not lol. Sorry it was from years ago.
4  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: July 03, 2021, 03:55:34 AM
Yeah, you'll likely need to start messing about with hex/byte level stuff to see if you can locate the private key data within the wallet.dat.

When you say it was an "old" wallet.dat, did you find it on an old drive/backup... or was it recovered using file recovery software (ie. a "deleted" file)? Huh
It was on an old USB drive.
5  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: July 02, 2021, 12:06:15 AM
I am running pywallet on a copy of the wallet.dat that I already attempted to -salvage.
In that case... it might be better to make another copy of the original... and then see if PyWallet is able to parse that or if you get the same error. If you still get the same error, then it's possible that the recovered wallet.dat db structure is simply too corrupted for PyWallet to be able to read properly Undecided

Recovery gets quite a bit more difficult if that is indeed the case Undecided
Yeah, that looks to be the case because it's saying the same thing. Oh well. Thanks for your help.
6  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: July 01, 2021, 11:47:50 PM
are you trying to run pywallet on (a copy of) the original wallet.dat or a copy of the wallet.dat after you tried bitcoin-wallet.exe and salvage?

It looks like the file might be quite badly corrupted if it's unable to parse the data correctly Undecided

Sorry for delayed response. I am running pywallet on a copy of the wallet.dat that I already attempted to -salvage.

When I initially found the bitcoin wallet dat file I made a copy of it which is the copy I've been working on.
7  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: June 28, 2021, 09:39:15 PM
BTW I've tried using the datadir command but pywallet says it's been removed:
REMOVED OPTION: put full path in the --wallet option
  -w WALLETFILE, --wallet=WALLETFILE
                        wallet filename (defaults to wallet.dat)
Oh ok... you're using the "new" version of Pywallet... I have a feeling that the latest version might actually require Python 3 and not Python 2.

In any case... try:
Code:
python pywallet.py --dumpwallet --wallet=./wallet.dat --passphrase=YOUR_WALLET_PASSPHRASE_GOES_HERE > wallet.text



And also I dont know the passphrase to the wallet. It's 6 years old or so. It appears to be encrypted basing off all the characters and symbols when I open it in notepad.
Opening in notepad is guaranteed to show all sorts of weird characters and symbols, because notepad is for text based files... and a wallet.dat is a binary database file. So, it isn't necessarily encrypted... but chances are pretty good that it is.

However, if the file is indeed encrypted and you don't have the passphrase, you're not going to be able to recover the private keys. It's as simple as that. You can try running without the --passphrase option and see if you get the "Sec" fields that show the private keys...

Code:
python pywallet.py --dumpwallet --wallet=./wallet.dat > wallet.text

If you only get addresses/public keys... and you don't see any "sec" fields with WIF private keys and hex private keys, then the file is encrypted. Undecided

I ran the second command (without the passphrase line, due to not knowing what the password is.) In the command window it outputted an "error: unpack_from requires a buffer of at least 4 bytes", and above that it outputted four lines all starting with "File "pywallet.py, line xxxx," the x's being numbers. Looks normal I imagine but just throwing it in here anyway (because I have no idea  Cheesy)

When I open the wallet.text file it reads:
"ERROR parsing wallet.dat, type tx"
"Key data: *random characters*"
"Key data in hex:"
*a bunch of numbers and letters*
"value data in hex:"
*a ton more numbers and letters*
8  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: June 27, 2021, 10:28:21 PM
Yes, my wallet.dat is in my pywallet folder and is labeled "wallet.dat"
I'll try that now with ecdsa.

BTW I've tried using the datadir command but pywallet says it's been removed:
REMOVED OPTION: put full path in the --wallet option
  -w WALLETFILE, --wallet=WALLETFILE
                        wallet filename (defaults to wallet.dat)

And also I dont know the passphrase to the wallet. It's 6 years old or so. It appears to be encrypted basing off all the characters and symbols when I open it in notepad.
9  Bitcoin / Bitcoin Technical Support / Re: corrupted wallet, salvagewallet command not working (Bitcoin Core) on: June 27, 2021, 09:44:22 PM
Ah, thanks for that. That did the job. However, it still says the wallet is corrupted. I was trying to use pywallet but I've been getting an " 'ecdsa' package is not installed, pywallet won't be able to sign/verify messages       A mandatory option is missing "  I tried installing ecdsa but wasnt sure where to install it, into the python27 folder or program files etc and what exactly I need to do to get it working with python. (I dont know much about python.)

What I'm typing in in the command window is: "python pywallet.py –dumpwallet > wallet.text --passphrase= PASSPHRASE".

Also, I get an "error: no such option: -u" in the command window" unless I change the "-dumpwallet" to "--dumpwallet", so Im not sure if that's a mistake on the part of the website where I copied the python code from or what.  And finally, it says "pycrypto or libssl not found, decryption may be slow" but Im not sure that's even a problem.
10  Bitcoin / Bitcoin Technical Support / corrupted wallet, salvagewallet command not working (Bitcoin Core) on: June 25, 2021, 02:20:49 AM
I have an old bitcion wallet dat file. Bitcoin core says it is corrupted. I followed some tutorials online to try using the salvage command but when bitcoin core starts up I get hit with a "Error parsing command line arguments: Invalid parameter -salvagewallet."

I'm typing in cd C:\ProgramFiles\Bitcoin\bitcoinqt.exe -salvagewallet to an elevated command prompt

I've tried it both on Win10 and Win7.

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!