1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 03:48:09 +00:00

app.lisk: fix lisk_verify_message

This commit is contained in:
Aleksey Popov 2018-05-01 18:03:05 +03:00 committed by Jan Pochyla
parent a0f5bbb734
commit d331ff245f

View File

@ -7,9 +7,7 @@ async def lisk_verify_message(ctx, msg):
from trezor.messages.FailureType import ProcessError
from apps.wallet.verify_message import require_confirm_verify_message
# Lisk signature can be more than 64 bytes
sig = msg.signature[:64]
verify = ed25519.verify(msg.public_key, sig, msg.message)
verify = ed25519.verify(msg.public_key, msg.signature, msg.message)
if not verify:
raise wire.FailureError(ProcessError, 'Invalid signature')