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
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.
- Changed testnet support in a way that all altcoin addresses can be validated (thanks to Frederico Reiven, cheers mate!)
- Added support for validating testnet addresses.
- Invalidate addresses with non-base58 characters Leading or trailing spaces will invalidate your address. Strip them before validating the address.
- Renamed the
validatefor 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.
14oLvT2The valid version of that address is:
- Added alternatives for
long.from_bytesfor Python versions prior to 3.2
- Added unit tests