signed blocks related crashes fixed hopefully, wrong exception

master
Kevin Froman 2018-04-26 21:18:17 -05:00
parent 5086a839ee
commit e140e8560f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class OnionrCrypto:
'''Verify signed data (combined in nacl) to an ed25519 key''' '''Verify signed data (combined in nacl) to an ed25519 key'''
try: try:
key = nacl.signing.VerifyKey(key=key, encoder=nacl.encoding.Base32Encoder) 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)') logger.warn('Signature by unknown key (cannot reverse hash)')
return False return False
retData = False retData = False