apps.wallet: fix sign_identity for ed25519 curves

This commit is contained in:
Pavol Rusnak 2017-05-03 17:36:27 +02:00
parent f345de1a4f
commit b7c043df66
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 2 additions and 0 deletions

View File

@ -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':