keystore: API changes for from_seed/from_bip43_rootseed/bip39_to_seed
- force kwargs - add type hints
This commit is contained in:
@@ -77,7 +77,7 @@ class QEBip39RecoveryListModel(QAbstractListModel):
|
||||
|
||||
assert wallet_type == 'standard'
|
||||
|
||||
self._root_seed = keystore.bip39_to_seed(seed, seed_extra_words)
|
||||
self._root_seed = keystore.bip39_to_seed(seed, passphrase=seed_extra_words)
|
||||
|
||||
self.clear()
|
||||
|
||||
|
||||
@@ -712,7 +712,7 @@ class WCScriptAndDerivation(WalletWizardComponent, Logger):
|
||||
|
||||
passphrase = self.wizard_data['seed_extra_words'] if self.wizard_data['seed_extend'] else ''
|
||||
if self.wizard_data['seed_variant'] == 'bip39':
|
||||
root_seed = bip39_to_seed(self.wizard_data['seed'], passphrase)
|
||||
root_seed = bip39_to_seed(self.wizard_data['seed'], passphrase=passphrase)
|
||||
elif self.wizard_data['seed_variant'] == 'slip39':
|
||||
root_seed = self.wizard_data['seed'].decrypt(passphrase)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user