1
0

move import test to wallet.py

This commit is contained in:
ThomasV
2015-05-28 15:39:26 +02:00
parent 9a8f9cefed
commit 9dc8393cf6
2 changed files with 1 additions and 1 deletions

View File

@@ -288,6 +288,7 @@ class Abstract_Wallet(object):
return account is not None
def import_key(self, sec, password):
assert self.can_import()
try:
pubkey = public_key_from_private_key(sec)
address = public_key_to_bc_address(pubkey.decode('hex'))