1
0

fix: replace remaining occurences of public_key_to_bc_address

This commit is contained in:
ThomasV
2017-01-29 06:34:35 +01:00
parent f937472928
commit 6bfbc9a718
4 changed files with 6 additions and 6 deletions

View File

@@ -404,7 +404,7 @@ def public_key_from_private_key(sec):
def address_from_private_key(sec):
public_key = public_key_from_private_key(sec)
address = public_key_to_bc_address(public_key.decode('hex'))
address = public_key_to_p2pkh(public_key.decode('hex'))
return address
@@ -470,7 +470,7 @@ def verify_message(address, sig, message):
public_key, compressed = pubkey_from_signature(sig, message)
# check public key using the address
pubkey = point_to_ser(public_key.pubkey.point, compressed)
addr = public_key_to_bc_address(pubkey)
addr = public_key_to_p2pkh(pubkey)
if address != addr:
raise Exception("Bad signature")
# check message