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:
parent
a0f5bbb734
commit
d331ff245f
@ -7,9 +7,7 @@ async def lisk_verify_message(ctx, msg):
|
|||||||
from trezor.messages.FailureType import ProcessError
|
from trezor.messages.FailureType import ProcessError
|
||||||
from apps.wallet.verify_message import require_confirm_verify_message
|
from apps.wallet.verify_message import require_confirm_verify_message
|
||||||
|
|
||||||
# Lisk signature can be more than 64 bytes
|
verify = ed25519.verify(msg.public_key, msg.signature, msg.message)
|
||||||
sig = msg.signature[:64]
|
|
||||||
verify = ed25519.verify(msg.public_key, sig, msg.message)
|
|
||||||
|
|
||||||
if not verify:
|
if not verify:
|
||||||
raise wire.FailureError(ProcessError, 'Invalid signature')
|
raise wire.FailureError(ProcessError, 'Invalid signature')
|
||||||
|
Loading…
Reference in New Issue
Block a user