signed blocks related crashes fixed hopefully, wrong exception
parent
5086a839ee
commit
e140e8560f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue