diff --git a/src/apps/common/request_passphrase.py b/src/apps/common/request_passphrase.py index 63efac9469..52e867f4a2 100644 --- a/src/apps/common/request_passphrase.py +++ b/src/apps/common/request_passphrase.py @@ -1,5 +1,6 @@ from trezor import res, ui, wire + async def request_passphrase(ctx): from trezor.ui.text import Text from trezor.ui.entry_select import EntrySelector @@ -11,7 +12,7 @@ async def request_passphrase(ctx): entry = EntrySelector(text) entry_type = await entry - on_device = on_device=(entry_type == 0) + on_device = (entry_type == 0) from trezor.messages.FailureType import ActionCancelled, ProcessError from trezor.messages.PassphraseRequest import PassphraseRequest @@ -50,6 +51,7 @@ async def request_passphrase(ctx): return passphrase + async def protect_by_passphrase(ctx): from apps.common import storage