sanity check

This commit is contained in:
thomasv 2012-02-21 16:01:08 +01:00
parent 77696dcfda
commit b0b8a5ec6b
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ class Wallet:
def import_key(self, keypair, password):
address, key = keypair.split(':')
if not self.is_valid(address): return False
if address in self.all_addresses(): return False
b = ASecretToSecret( key )
if not b: return False
secexp = int( b.encode('hex'), 16)