mnemonic: rename seed_type() fn
Some functions have an argument named "seed_type" in which it was annoying to call the seed_type() fn. (especially for functions inside the same module)
This commit is contained in:
@@ -36,7 +36,7 @@ from electrum import ecc, constants, keystore, version, bip32, bitcoin
|
||||
from electrum.bip32 import BIP32Node, xpub_type
|
||||
from electrum.crypto import sha256
|
||||
from electrum.transaction import PartialTxOutput, PartialTxInput, PartialTransaction, Transaction
|
||||
from electrum.mnemonic import Mnemonic, seed_type, is_any_2fa_seed_type
|
||||
from electrum.mnemonic import Mnemonic, calc_seed_type, is_any_2fa_seed_type
|
||||
from electrum.wallet import Multisig_Wallet, Deterministic_Wallet
|
||||
from electrum.i18n import _
|
||||
from electrum.plugin import BasePlugin, hook
|
||||
@@ -555,7 +555,7 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
|
||||
@classmethod
|
||||
def xkeys_from_seed(self, seed, passphrase):
|
||||
t = seed_type(seed)
|
||||
t = calc_seed_type(seed)
|
||||
if not is_any_2fa_seed_type(t):
|
||||
raise Exception(f'unexpected seed type: {t!r}')
|
||||
words = seed.split()
|
||||
|
||||
Reference in New Issue
Block a user