Fix verification for files without sign

This commit is contained in:
shortcutme 2018-10-30 04:41:45 +01:00
parent 87503b875a
commit a49fcb0176
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -58,6 +58,9 @@ def signOld(data, privatekey): # Return sign to data using private key (backwar
def verify(data, address, sign): # Verify data using address and sign
if not sign:
return False
if hasattr(sign, "endswith"):
if opensslVerify: # Use the faster method if avalible
pub = opensslVerify.getMessagePubkey(data, sign)