Coming soon - Get a detailed view of why an account is flagged as spam!
view details
32
Hey Bitcoiners, here are my short Python 3 scripts to generate a Bitcoin address.
Post Body

A few months back I wrote some Python 3 scripts to generate Bitcoin addresses. They work just like Brainwallet does, and in fact are 100% comaptible with brainwallet -- you can copy the private key into brainwallet and expect everything to work.

I use these personally instead of brainwallet so that I don't even need to open a browser in order to generate some addresses. It now occurs to me that perhaps some of you would find a use for them, too.

I have two versions: the first one uses the OpenSSL's random number generator to generate addresses. That means it's unlikely to ever generate the same address twice. The second version hooks into the RNG and always returns the same bytes given a specified seed. That means it behaves similar to "Passphrase" option. It'll generate the same address given the same seed.

Version 1

Version 2

Simple Base58 implementation

If someone can speak on the randomness of version 2, that'd be great.

Also, I haven't tested these on Windows.

If there's any interest in having a script that builds transactions, let me know.

Author
Account Strength
100%
Account Age
15 years
Verified Email
Yes
Verified Flair
No
Total Karma
18,397
Link Karma
110
Comment Karma
18,287
Profile updated: 1 day ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago