1
0

keystore: cache derive_pubkey

This commit is contained in:
SomberNight
2019-12-09 03:35:20 +01:00
parent 5f6f7da2a1
commit f73b6b5d23
3 changed files with 14 additions and 8 deletions

View File

@@ -369,7 +369,7 @@ class BaseWizard(Logger):
elif purpose == HWD_SETUP_DECRYPT_WALLET:
derivation = get_derivation_used_for_hw_device_encryption()
xpub = self.plugin.get_xpub(device_info.device.id_, derivation, 'standard', self)
password = keystore.Xpub.get_pubkey_from_xpub(xpub, ())
password = keystore.Xpub.get_pubkey_from_xpub(xpub, ()).hex()
try:
storage.decrypt(password)
except InvalidPassword: