mirror of https://github.com/CIRCL/AIL-framework
Enforcing Base58 check on Litecoin and Dash addresses
parent
9051c4081b
commit
69e793f16a
|
@ -34,7 +34,7 @@ def check_base58_address(bc):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def verify_cryptocurrency_address(cryptocurrency_type, cryptocurrency_address):
|
def verify_cryptocurrency_address(cryptocurrency_type, cryptocurrency_address):
|
||||||
if cryptocurrency_type == 'bitcoin':
|
if cryptocurrency_type in ('bitcoin', 'litecoin', 'dash'):
|
||||||
return check_base58_address(cryptocurrency_address)
|
return check_base58_address(cryptocurrency_address)
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue