Minimal Bitcoin address generator in Python
Python Other
Switch branches/tags
Nothing to show
Latest commit dab22b2 Oct 28, 2015
David Sterry
David Sterry update readme for OS X

addrgen - minimal Bitcoin address generator in Python

This script generates a single Bitcoin address using the compressed public key format and prints it with its private key.



Mac OS X

For some reason, the script segfaults on OS X unless it's run in in 32-bit mode. Instead, those on OS X should run:


Generating other types of addresses

Supply the version number for your desired address with the --otherversion switch. (supported by pywallet at least)

python --otherversion=48

If you wish to generate addresses based on a passphrase, a given private key, or some other option look at the commented lines in the test() function.

Created and Licensed Public Domain by Joric/bitcoin-dev June 2012 with minor modifications by David Sterry.