1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

src/apps/common: update layout for signverify

This commit is contained in:
Pavol Rusnak 2018-09-19 19:19:52 +02:00
parent 6d98a97f7c
commit 0499e983fe
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,6 @@ def split_message(message):
m = bytes(message).decode()
words = m.split(" ")
except UnicodeError:
m = hexlify(message)
m = "hex(%s)" % hexlify(message).decode()
words = [m]
return words

View File

@ -39,6 +39,7 @@ async def sign_message(ctx, msg):
async def require_confirm_sign_message(ctx, message):
message = split_message(message)
text = Text("Sign Lisk message", new_lines=False)
text.normal(*split_message(message))
text.normal(*message)
await require_confirm(ctx, text)