mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-26 06:12:01 +00:00
core: mnemonic mypy
This commit is contained in:
parent
4030874c7e
commit
ac2acb0b5a
@ -51,8 +51,11 @@ def get_seed(passphrase: str = "", progress_bar: bool = True) -> bytes:
|
||||
elif mnemonic_type == TYPE_SLIP39:
|
||||
identifier = storage.device.get_slip39_identifier()
|
||||
iteration_exponent = storage.device.get_slip39_iteration_exponent()
|
||||
if identifier is None or iteration_exponent is None:
|
||||
# Identifier or exponent expected but not found
|
||||
raise RuntimeError
|
||||
seed = slip39.decrypt(
|
||||
identifier, iteration_exponent, mnemonic_secret, passphrase
|
||||
identifier, iteration_exponent, mnemonic_secret, passphrase.encode()
|
||||
)
|
||||
|
||||
if progress_bar:
|
||||
|
Loading…
Reference in New Issue
Block a user