mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-27 12:39:04 +00:00
24 lines
736 B
Python
24 lines
736 B
Python
from trezor import ui
|
|
from trezor.utils import unimport
|
|
|
|
|
|
@unimport
|
|
async def layout_wipe_device(message, session_id):
|
|
from trezor.messages.Success import Success
|
|
from .confirm import require_confirm
|
|
from .storage import clear_storage
|
|
|
|
ui.clear()
|
|
ui.display.text(10, 30, 'Wiping device', ui.BOLD, ui.LIGHT_GREEN, ui.BLACK)
|
|
ui.display.text(10, 74, 'Do you really want to',
|
|
ui.BOLD, ui.WHITE, ui.BLACK)
|
|
ui.display.text(10, 104, 'wipe the device?', ui.BOLD, ui.WHITE, ui.BLACK)
|
|
ui.display.text(10, 164, 'All data will be lost.',
|
|
ui.NORMAL, ui.WHITE, ui.BLACK)
|
|
|
|
await require_confirm(session_id)
|
|
|
|
clear_storage(session_id)
|
|
|
|
return Success(message='Wiped')
|