1
0

rename bc_address functions

This commit is contained in:
ThomasV
2017-08-31 10:21:57 +02:00
parent b9da5afa9d
commit 4d3e079778
4 changed files with 15 additions and 15 deletions

View File

@@ -601,7 +601,7 @@ def xpubkey_to_address(x_pubkey):
# TODO: check that ord() is OK here
addrtype = ord(bfh(x_pubkey[2:4]))
hash160 = bfh(x_pubkey[4:])
address = bitcoin.hash_160_to_bc_address(hash160, addrtype)
address = bitcoin.hash160_to_b58_address(hash160, addrtype)
return x_pubkey, address
if x_pubkey[0:2] in ['02', '03', '04']:
pubkey = x_pubkey