added testnet support
This commit is contained in:
parent
467b4e5f63
commit
6469803122
@ -164,7 +164,7 @@ def SecretToASecret(privkey):
|
|||||||
|
|
||||||
def ASecretToSecret(key):
|
def ASecretToSecret(key):
|
||||||
vch = DecodeBase58Check(key)
|
vch = DecodeBase58Check(key)
|
||||||
if vch:
|
if vch and vch[0] == chr(addrtype + 128):
|
||||||
return vch[1:]
|
return vch[1:]
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user