SkillAgentSearch skills...

Addrgen

Minimal Bitcoin address generator in Python

Install / Use

/learn @weex/Addrgen
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

The idea was to have the smallest source code possible so that it would be easy to audit and hard for anyone to hide anything nepharious. If you like this idea, you may want to check out TweetNaCl.

Usage

python addrgen.py

Generating other types of addresses

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

python addrgen.py --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.

Related Skills

View on GitHub
GitHub Stars109
CategoryDevelopment
Updated1mo ago
Forks45

Languages

Python

Security Score

80/100

Audited on Feb 10, 2026

No findings