signed blocks related crashes fixed hopefully, wrong exception

This commit is contained in:
Kevin Froman 2018-04-26 21:18:17 -05:00
parent 5086a839ee
commit e140e8560f

View File

@ -46,7 +46,7 @@ class OnionrCrypto:
'''Verify signed data (combined in nacl) to an ed25519 key'''
try:
key = nacl.signing.VerifyKey(key=key, encoder=nacl.encoding.Base32Encoder)
except nacl.bindings.crypto_sign_PUBLICKEYBYTES:
except nacl.exceptions.ValueError:
logger.warn('Signature by unknown key (cannot reverse hash)')
return False
retData = False