예제 #1
0
def abort_and_push(m):
    # keep menu position, but interrupt it with a new UX
    from main import numpad
    the_ux.push(m)
    numpad.abort_ux()
예제 #2
0
# (c) Copyright 2020 by Coinkite Inc. This file is covered by license found in COPYING-CC.
#
# quickly main wipe seed; don't install anything new
from main import pa, settings, numpad, dis
from pincodes import AE_SECRET_LEN, PA_IS_BLANK

if not pa.is_secret_blank():
    # clear settings associated with this key, since it will be no more
    settings.blank()

    # save a blank secret (all zeros is a special case, detected by bootloader)
    dis.fullscreen('Wipe Seed!')
    nv = bytes(AE_SECRET_LEN)
    pa.change(new_secret=nv)

    rv = pa.setup(pa.pin)
    pa.login()

    assert pa.is_secret_blank()

# reset top menu and go there
from actions import goto_top_menu
goto_top_menu()

numpad.abort_ux()
예제 #3
0
def abort_and_goto(m):
    # cancel any menu drill-down and show them some UX
    from main import numpad
    the_ux.reset(m)
    numpad.abort_ux()
예제 #4
0
파일: ux.py 프로젝트: Davdegreat/firmware
def abort_and_goto(m):
    from main import numpad

    the_ux.reset(m)

    numpad.abort_ux()