1
0

replace bitcoin.is_valid

This commit is contained in:
ThomasV
2017-08-31 10:06:13 +02:00
parent e853dde111
commit b9da5afa9d
4 changed files with 6 additions and 11 deletions

View File

@@ -476,11 +476,6 @@ def address_from_private_key(sec):
address = public_key_to_p2pkh(bfh(public_key))
return address
def is_valid(addr):
return is_address(addr)
def is_address(addr):
try:
addrtype, h = bc_address_to_hash_160(addr)