Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: jackjack on August 04, 2011, 02:25:48 PM



Title: Deterministic wallet
Post by: jackjack on August 04, 2011, 02:25:48 PM
Here is how to use a passphrase to generate priv keys and corresponding Bitcoin addresses

  • Chose a passphrase of at least 7 words and 40 characters, e.g. "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
  • Run ./pp2k.py (https://github.com/jackjack-jj/pp2k) --pwpath /home/jackjack/dev/bitcoin/pywallet/ --passphrase "The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"
  • The console returns:
    • A random code, a 11-digit number, that you must remember or save it somewhere, for example in your mobile phone where nobody can think it's bitcoin related
    • Your first 10 privkeys
    • The corresponding 10 bitcoin addresses if you downloaded pywallet (https://github.com/jackjack-jj/pywallet) and provided the correct path to pp2k

The code makes stealing your coins nearly impossible even if one knows your passphrase (more than 2 months to test all the possibilities)

If you want more than 10 keys, use the --size flag (maybe with the --code flag if you want to chose it)
If you want to retrieve a key, use the --code and the --keynumber flags