From b7c043df6632184a6afd79684b7472c6a4efc49b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 3 May 2017 17:36:27 +0200 Subject: [PATCH] apps.wallet: fix sign_identity for ed25519 curves --- src/apps/wallet/sign_identity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/apps/wallet/sign_identity.py b/src/apps/wallet/sign_identity.py index a56f8cb24..a81e5ba6c 100644 --- a/src/apps/wallet/sign_identity.py +++ b/src/apps/wallet/sign_identity.py @@ -103,6 +103,8 @@ async def layout_sign_identity(session_id, msg): else: address = None pubkey = node.public_key() + if pubkey[0] == 0x01: + pubkey = b'\x00' + pubkey[1:] seckey = node.private_key() if msg.identity.proto == 'gpg':