def hash_to_address(version, hash): vh = version + hash return base58.b58encode(vh + double_sha256(vh)[:4])