added testnet support

This commit is contained in:
Joric 2011-07-14 04:46:05 +06:00
parent 467b4e5f63
commit 6469803122

View File

@ -164,7 +164,7 @@ def SecretToASecret(privkey):
def ASecretToSecret(key):
vch = DecodeBase58Check(key)
if vch:
if vch and vch[0] == chr(addrtype + 128):
return vch[1:]
else:
return False