From 467b4e5f6370217e94063c043588a32d21049d7a Mon Sep 17 00:00:00 2001 From: Joric Date: Thu, 14 Jul 2011 04:32:57 +0600 Subject: [PATCH] added testnet support --- pywallet.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pywallet.py b/pywallet.py index 5aea04a..b7961e9 100644 --- a/pywallet.py +++ b/pywallet.py @@ -159,7 +159,7 @@ def DecodeBase58Check(psz): def SecretToASecret(privkey): vchSecret = privkey[9:9+32] # add 1-byte version number - vchIn = "\x80" + vchSecret + vchIn = chr(addrtype+128) + vchSecret return EncodeBase58Check(vchIn) def ASecretToSecret(key): @@ -706,7 +706,6 @@ def main(): if options.dump: print json.dumps(json_db, sort_keys=True, indent=4) - elif options.key: if json_db['version'] > max_version: print "Version mismatch (must be <= %d)" % max_version