|
@ -200,7 +200,7 @@ class BaseWizard(object): |
|
|
self.storage.put('keystore', k.dump()) |
|
|
self.storage.put('keystore', k.dump()) |
|
|
w = Imported_Wallet(self.storage) |
|
|
w = Imported_Wallet(self.storage) |
|
|
keys = keystore.get_private_keys(text) |
|
|
keys = keystore.get_private_keys(text) |
|
|
good_inputs, bad_inputs = w.import_private_keys(keys, None) |
|
|
good_inputs, bad_inputs = w.import_private_keys(keys, None, write_to_disk=False) |
|
|
self.keystores.append(w.keystore) |
|
|
self.keystores.append(w.keystore) |
|
|
else: |
|
|
else: |
|
|
return self.terminate() |
|
|
return self.terminate() |
|
@ -510,6 +510,7 @@ class BaseWizard(object): |
|
|
|
|
|
|
|
|
def on_password(self, password, *, encrypt_storage, |
|
|
def on_password(self, password, *, encrypt_storage, |
|
|
storage_enc_version=STO_EV_USER_PW, encrypt_keystore): |
|
|
storage_enc_version=STO_EV_USER_PW, encrypt_keystore): |
|
|
|
|
|
assert not self.storage.file_exists(), "file was created too soon! plaintext keys might have been written to disk" |
|
|
self.storage.set_keystore_encryption(bool(password) and encrypt_keystore) |
|
|
self.storage.set_keystore_encryption(bool(password) and encrypt_keystore) |
|
|
if encrypt_storage: |
|
|
if encrypt_storage: |
|
|
self.storage.set_password(password, enc_version=storage_enc_version) |
|
|
self.storage.set_password(password, enc_version=storage_enc_version) |
|
|