mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
core: remove unused variables in Shamir recovery
This commit is contained in:
parent
c205acd3e1
commit
6c50b155de
@ -76,7 +76,7 @@ async def recovery_device(ctx, msg):
|
|||||||
if remaining == 0:
|
if remaining == 0:
|
||||||
try:
|
try:
|
||||||
secret = mnemonic_module.process_all(mnemonics)
|
secret = mnemonic_module.process_all(mnemonics)
|
||||||
except slip39.MnemonicError as e:
|
except slip39.MnemonicError:
|
||||||
raise wire.ProcessError("Mnemonic is not valid")
|
raise wire.ProcessError("Mnemonic is not valid")
|
||||||
# show a number of remaining mnemonics for SLIP39
|
# show a number of remaining mnemonics for SLIP39
|
||||||
if secret is None and mnemonic_module == mnemonic.slip39:
|
if secret is None and mnemonic_module == mnemonic.slip39:
|
||||||
|
@ -594,13 +594,6 @@ def combine_mnemonics(mnemonics):
|
|||||||
|
|
||||||
for group_index, group in groups.items():
|
for group_index, group in groups.items():
|
||||||
if len(group[1]) != group[0]:
|
if len(group[1]) != group[0]:
|
||||||
prefix = _group_prefix(
|
|
||||||
identifier,
|
|
||||||
iteration_exponent,
|
|
||||||
group_index,
|
|
||||||
group_threshold,
|
|
||||||
group_count,
|
|
||||||
)
|
|
||||||
raise MnemonicError(
|
raise MnemonicError(
|
||||||
"Wrong number of mnemonics. Expected {} mnemonics, but {} were provided.".format(
|
"Wrong number of mnemonics. Expected {} mnemonics, but {} were provided.".format(
|
||||||
group[0], len(group[1])
|
group[0], len(group[1])
|
||||||
|
Loading…
Reference in New Issue
Block a user