====================
Bitcoin address validation
2012-12-14 R.R. Nederhoed
https://github.com/nederhoed/python-bitcoinadress
Please give feedback.
Original author probably:
http://paddy3118.blogspot.nl/2012/11/some-identities-for-python-inttobytes.html
Copied from:
http://rosettacode.org/wiki/Bitcoin/address_validation#Python
I packaged it to be available to everyone via The Cheese Shop (pypi):
http://pypi.python.org/pypi/python-bitcoinaddress
If you use this module, support me with bitcoins! Any amount is appreciated.
`1qYsJbtEWAeXMsbgxUgGsJsAp3VArsBRd`
History
-------
### 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
Metadata
Release files for python-bitcoinaddress 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-bitcoinaddress-0.2.2.tar.gz | 8.2 kB | Without provenance | Details for python-bitcoinaddress-0.2.2.tar.gz |
Release files / python-bitcoinaddress-0.2.2.tar.gz
| Download URL | python-bitcoinaddress-0.2.2.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
910e50af7d197ce34045ba0cfaf750a8b4fe249afdb608473b61d560a30e2dea
|
|
BLAKE2b-256 checksum How to use checksums |
f344b7ba0c3a9bc2b8a19bac4c18b55768c42046daccf2d1bf1e98842b3f169d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-bitcoinaddress 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.