|
|
@ -90,7 +90,6 @@ async def select_word(
|
|
|
|
count: int,
|
|
|
|
count: int,
|
|
|
|
group_index: int | None = None,
|
|
|
|
group_index: int | None = None,
|
|
|
|
) -> str:
|
|
|
|
) -> str:
|
|
|
|
assert len(words) == 3
|
|
|
|
|
|
|
|
if share_index is None:
|
|
|
|
if share_index is None:
|
|
|
|
title: str = "CHECK SEED"
|
|
|
|
title: str = "CHECK SEED"
|
|
|
|
elif group_index is None:
|
|
|
|
elif group_index is None:
|
|
|
@ -98,6 +97,13 @@ async def select_word(
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
title = f"CHECK G{group_index + 1} - SHARE {share_index + 1}"
|
|
|
|
title = f"CHECK G{group_index + 1} - SHARE {share_index + 1}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# It may happen (with a very low probability)
|
|
|
|
|
|
|
|
# that there will be less than three unique words to choose from.
|
|
|
|
|
|
|
|
# In that case, duplicating the last word to make it three.
|
|
|
|
|
|
|
|
words = list(words)
|
|
|
|
|
|
|
|
while len(words) < 3:
|
|
|
|
|
|
|
|
words.append(words[-1])
|
|
|
|
|
|
|
|
|
|
|
|
result = await ctx.wait(
|
|
|
|
result = await ctx.wait(
|
|
|
|
RustLayout(
|
|
|
|
RustLayout(
|
|
|
|
trezorui2.select_word(
|
|
|
|
trezorui2.select_word(
|
|
|
|