Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python bitcoin address validation

Project Description
Bitcoin address validation

2012-12-14 R.R. Nederhoed
Please give feedback.

Original author probably:

Copied from:

I packaged it to be available to everyone via The Cheese Shop (pypi):

If you use this module, support me with bitcoins! Any amount is appreciated.

### 2013-08-12
* Invalidate addresses with non-base58 characters
Leading or trailing spaces will invalidate your address. Strip them before
validating the address.

### 2012-12-14
* Renamed the `check_bc` function to `validate` for ease of use.
* Added check if the base58-re-encoded address matches the original address
Relevant for short addresses with a valid check, but invalid format.
For example: `14oLvT2`
The valid version of that address is: `1111111111111111111114oLvT2`
* Added alternatives for `long.to_bytes` and `long.from_bytes` for Python
versions prior to 3.2
* Added unit tests
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-bitcoinaddress-0.2.2.tar.gz (8.2 kB) Copy SHA256 Checksum SHA256 Source Aug 12, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting