async def slip39_show_checklist_show_shares(ctx, num_of_shares, threshold): checklist = Checklist("Backup checklist", ui.ICON_RESET) checklist.add("Set number of shares") checklist.add("Set threshold") checklist.add(("Write down and check", "all recovery shares")) checklist.select(2) return await confirm( ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue" )
async def slip39_group_show_checklist_set_group_threshold(ctx, num_of_shares): checklist = Checklist("Backup checklist", ui.ICON_RESET) checklist.add("Set number of groups") checklist.add("Set group threshold") checklist.add(("Set size and threshold", "for each group")) checklist.select(1) return await confirm(ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue")
async def slip39_show_checklist(ctx, step: int, backup_type: BackupType) -> None: checklist = Checklist("Backup checklist", ui.ICON_RESET) if backup_type is BackupType.Slip39_Basic: checklist.add("Set number of shares") checklist.add("Set threshold") checklist.add(("Write down and check", "all recovery shares")) elif backup_type is BackupType.Slip39_Advanced: checklist.add("Set number of groups") checklist.add("Set group threshold") checklist.add(("Set size and threshold", "for each group")) checklist.select(step) return await confirm( ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue" )
async def slip39_show_checklist_set_threshold(ctx, num_of_shares): checklist = Checklist("Backup checklist", ui.ICON_RESET) checklist.add("Set number of shares") checklist.add("Set the threshold") checklist.add(("Write down and check", "all seed shares")) checklist.select(1) checklist.process() return await confirm( ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Set threshold", )