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