joric / pywallet Goto Github PK
View Code? Open in Web Editor NEWBitcoin wallet importer/exporter (original)
Bitcoin wallet importer/exporter (original)
Usage: pywallet.py [options] Options: --version show program's version number and exit -h, --help show this help message and exit --dumpwallet dump wallet in json format --importprivkey=KEY import private key from vanitygen --datadir=DATADIR wallet directory (defaults to bitcoin default) --testnet use testnet subdirectory and address type --password=PASSWORD password for the encrypted wallet Dependencies: bsddb (python 2.7.2 msi includes bsddb by default) Links: http://www.python.org/ftp/python/2.7.2/python-2.7.2.msi
Hi
Help me, please.
How to find in the file wallet.dat number of nDeriveIterations?
python pywallet.py --dumpwallet --datadir=. > wallet.txt
@joric Hello, I have a bitcoin wallet with information for this wallet such as the public key and s and z values. Can I extract the private key through this program, I am a beginner, please explain to me step by step
I need someone to help me recover my lost wallet
Hi,
I'm using this py-script to recover my private key from my wallet, but when I run the dumpwallet command, I see a lot of addresses passing by, except the one I need.
Strange thing is that when I open up the wallet, the wanted address is in the list of addresses in which I can receive coins.
Any idea why this one is not popping up and that dumplist?
Restored old copies of lost wallet.dat from broken SSD. On some copies script ends with error messages, but on some completely hangs with 100% CPU load without any output. Does it possible to check if it can restore some data?
Tried on windows 10 wsl and on clean Ubuntu 18.04 with the same result on both OSes.
It seems like the vKeyData and vSalt vars are being concatenated but Python 3.9 does not allow for byte concatenation. The standard fix would be to concatenate strings and then encode. Not sure how that would work in this case.
C:\Users\aalhendi\Desktop\pywallet>python pywallet.py --datadir ./test-wallets --walletfile bitcoincore-0.20.1-wallet.dat --password btcr-test-password --dumpwallet
WARNING:root:pycrypto or libssl not found, decryption may be slow
Traceback (most recent call last):
File "C:\Users\aalhendi\Desktop\pywallet\pywallet.py", line 1425, in parse_wallet
item_callback(type, d)
File "C:\Users\aalhendi\Desktop\pywallet\pywallet.py", line 1601, in item_callback
res = crypter.SetKeyFromPassphrase(password, d['salt'], d['nDeriveIterations'], d['nDerivationMethod'])
File "C:\Users\aalhendi\Desktop\pywallet\pywallet.py", line 792, in SetKeyFromPassphrase
data = vKeyData + vSalt
TypeError: can only concatenate str (not "bytes") to str
ERROR parsing wallet.dat, type mkey
key data in hex: b'046d6b657901000000'
value data in hex: b'30a4307d977955ea5b540fd3625495b7cae035a2eb00185384045ad3258c396c354ef0f0ac491c38f62b0e556727110b3d08f141e46f5ee8625a00000000cd2d030000'
Hi. The --dumpwallet param provided me output, but I don't see any documentation anywhere to describe the output content.
Here's a few lines of my output ...
{ "bestblock": "c3a386b33958520a58e26c750a7177e6d6c6d40a7d88a736c95fde33bd49531c", "defaultkey": "16G3gj5B6LQveDmQypYHrsTbghvVfSp6jn", "keys": [ { "addr": "1NNKB8fF6H5nTqmFFp7Ait9b7zZdBfkQff", "reserve": 1, "sec": "L2ywxvQz7uAbhuzUAixd9uHwY3fKaajw22dCr2QVrFm5Knp2wxye" }, { "addr": "1H8xxRLE6o5RPA8TNfYCj7FjGAyzMkR1rv", "reserve": 1, "sec": "KxFgAhRx9dtgsQBMofvz2zMXizrx9AUNX68PCwTDXuKL449jYemb" }, ---cut--- ], "minversion": 60000, "mkey": { "crypted_key": "4a5506d6446f9677f878ea274095c86ec9232adc3cb0dd649fdeda7704245172d334002ef4ea5f9071d832c432106825", "nDerivationMethod": 0, "nDeriveIterations": 51842, "nID": 1, "salt": "80d864ca93a67343", "vchOtherDerivationParameters": "" }, "orderposnext": "unsupported", "settings": { "addrIncoming": "0.0.0.0:0" }, "tx": "unsupported", "version": 1060000 }
It's a dump of my Doge wallet.dat
Doge Public addresses start with 'D' ... none of the addresses in the output start with 'D" - they all start with '1' (which from memory is a Bitcoin public address).
I also don't see my Private key either.
Am I doing something wrong?
Cheers,
Mark
In 2015, my Desktop PC crashed while my Litecoin-QT wallet was open. I still have the wallet.dat file. I am not sure but I think the file is corrupted because I remember having moved the .dat file in a new LiteCoin-QT wallet (2 years ago) and an error message was saying something in the like of "corrupted file".
Anyways. I've decided to try pywallet from joric.
Today, I installed Python 2.7 (Windows version) on a new laptop PC and I received an error message which is the following:
C:\Python27>python pywallet.py --dumpwallet
Traceback (most recent call last):
File "pywallet.py", line 1783, in main()
File "pywallet.py", line 1740, in main
db_env = create_env(db_dir)
File "pywallet.py", line 1180, 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:\Users\15146\AppData\Roaming\Bitcoin\__db.001: No such file or directory')
Can someone here tell me what is the problem as I am not a coder nor a programmer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.