Bitcoin address validator by Gavin Andresen.;all

Gratipay changes:

  • Removed Django field
  • Replaced pycrypto with hashlib
  • Added self-test with remote Bitcoin dataset
  • Added cmdline interface for checking address: -i [hash]


encode v, which is a string of bytes, to base58.

gratipay.utils.bitcoin.b58decode(v, length)[source]

decode v into a string of len bytes


Returns None if strAddress is invalid. Otherwise returns integer version of address.