1
0

mnemonic: add type hints

This commit is contained in:
SomberNight
2024-01-22 01:13:21 +00:00
parent fe03fbf2a0
commit 7007a0c1c9
3 changed files with 17 additions and 16 deletions

View File

@@ -548,7 +548,7 @@ class TrustedCoinPlugin(BasePlugin):
def get_xkeys(self, seed, t, passphrase, derivation):
assert is_any_2fa_seed_type(t)
xtype = 'standard' if t == '2fa' else 'p2wsh'
bip32_seed = Mnemonic.mnemonic_to_seed(seed, passphrase)
bip32_seed = Mnemonic.mnemonic_to_seed(seed, passphrase=passphrase)
rootnode = BIP32Node.from_rootseed(bip32_seed, xtype=xtype)
child_node = rootnode.subkey_at_private_derivation(derivation)
return child_node.to_xprv(), child_node.to_xpub()