qt, qml: allow BIP39 seeds which fail checksum or wordlist (fixes #8720)
removes verifySeed from qebitcoin as this code was 99% duplicate of wizard.validate_seed
This commit is contained in:
@@ -107,6 +107,15 @@ class QENewWalletWizard(NewWalletWizard, QEAbstractWizard):
|
||||
def isMatchingSeed(self, seed, seed_again):
|
||||
return mnemonic.is_matching_seed(seed=seed, seed_again=seed_again)
|
||||
|
||||
@pyqtSlot(str, str, str, result='QVariantMap')
|
||||
def verifySeed(self, seed, seed_variant, wallet_type='standard'):
|
||||
seed_valid, seed_type, validation_message = self.validate_seed(seed, seed_variant, wallet_type)
|
||||
return {
|
||||
'valid': seed_valid,
|
||||
'type': seed_type,
|
||||
'message': validation_message
|
||||
}
|
||||
|
||||
@pyqtSlot('QJSValue', bool, str)
|
||||
def createStorage(self, js_data, single_password_enabled, single_password):
|
||||
self._logger.info('Creating wallet from wizard data')
|
||||
|
||||
Reference in New Issue
Block a user