From 6469803122d29b3e8595067246bf0d5f0c5a7fe4 Mon Sep 17 00:00:00 2001 From: Joric Date: Thu, 14 Jul 2011 04:46:05 +0600 Subject: [PATCH] added testnet support --- pywallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywallet.py b/pywallet.py index b7961e9..7cfd8f0 100644 --- a/pywallet.py +++ b/pywallet.py @@ -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