Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jondel on November 02, 2017, 02:27:44 AM



Title: Looking for pywallet tutorial for non-tech newbie
Post by: jondel on November 02, 2017, 02:27:44 AM
I have problem with qt wallet. After my PC crash I manage to recover my wallet.dat
then I reinstall qt-wallet and copy wallet.dat to appfolder. When I run qt wallet, it gives error "Wallet.dat corrupt...."
I then googling how to recover correct wallet, and found there's an python application called pywallet can do the job.
the problem is I am very non-techie noobie and completely know nothing about python.
Anyone can refer me to any tutorial for dummy about this pywallet?

Thank you in advance.


Title: Re: Looking for pywallet tutorial for non-tech newbie
Post by: HCP on November 02, 2017, 02:35:45 AM
There isn't one.

Also, if you were using a recent version of Bitcoin-Qt, there is a good chance that pywallet won't work properly anyway, as the wallet file format was updated/changed since pywallet was last updated (late 2014!!?!).

The script chokes on a bunch of "unknown" and/or "unexpected" data fields if I remember correctly...

Python scripts and operating from the command line aren't really "non-techie"... You'll just have to read the pywallet thread and use Google ;)

Refer: https://bitcointalk.org/index.php?topic=34028.0


Title: Re: Looking for pywallet tutorial for non-tech newbie
Post by: morbius55 on November 02, 2017, 03:27:34 PM
I have problem with qt wallet. After my PC crash I manage to recover my wallet.dat
then I reinstall qt-wallet and copy wallet.dat to appfolder. When I run qt wallet, it gives error "Wallet.dat corrupt...."
I then googling how to recover correct wallet, and found there's an python application called pywallet can do the job.
the problem is I am very non-techie noobie and completely know nothing about python.
Anyone can refer me to any tutorial for dummy about this pywallet?

Thank you in advance.

Ditto :(


Title: Re: Looking for pywallet tutorial for non-tech newbie
Post by: AltCoinProject on November 03, 2017, 10:51:57 PM
Install python(2.7) to your computer, then unzip "bitcoin 1.1.42" package to Lib folder in python(2.7), then run idle and open new file, use code below and run module

from bitcoin import *

for addr in range(1):
    priv = sha256(random_key())
    pub = privtopub(priv)
    addr = pubtoaddr(pub)
           print (addr)
           print (priv)


Title: Re: Looking for pywallet tutorial for non-tech newbie
Post by: lebiderya on November 04, 2017, 01:59:51 AM
The other day I got a help from a friend about this problem. If I can find it, send your source to you.