Browse Source
wizard: try harder to have temporarily stored pw erased from memory
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight
5 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
2 additions and
1 deletions
-
electrum/base_wizard.py
-
electrum/gui/qt/installwizard.py
|
@ -582,6 +582,7 @@ class BaseWizard(Logger): |
|
|
if not self.pw_args: |
|
|
if not self.pw_args: |
|
|
return |
|
|
return |
|
|
password, encrypt_storage, storage_enc_version = self.pw_args |
|
|
password, encrypt_storage, storage_enc_version = self.pw_args |
|
|
|
|
|
self.pw_args = None # clean-up so that it can get GC-ed |
|
|
storage = WalletStorage(path) |
|
|
storage = WalletStorage(path) |
|
|
storage.set_keystore_encryption(bool(password)) |
|
|
storage.set_keystore_encryption(bool(password)) |
|
|
if encrypt_storage: |
|
|
if encrypt_storage: |
|
|
|
@ -287,7 +287,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): |
|
|
else: |
|
|
else: |
|
|
raise Exception('Unexpected encryption version') |
|
|
raise Exception('Unexpected encryption version') |
|
|
|
|
|
|
|
|
return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None) # |
|
|
return self.temp_storage.path, (self.temp_storage if self.temp_storage.file_exists() else None) |
|
|
|
|
|
|
|
|
def run_upgrades(self, storage): |
|
|
def run_upgrades(self, storage): |
|
|
path = storage.path |
|
|
path = storage.path |
|
|