Fix verification for files without sign
This commit is contained in:
parent
87503b875a
commit
a49fcb0176
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue