Fix unhandled expcetion on invalid cert
This commit is contained in:
parent
1ee592f5b7
commit
4c7ff9bb53
2 changed files with 9 additions and 4 deletions
|
@ -331,7 +331,7 @@ def verify_message(address, signature, message):
|
|||
def SetCompactSignature(pkey, hash, signature):
|
||||
sig = base64.b64decode(signature)
|
||||
if len(sig) != 65:
|
||||
raise BaseException("Wrong encoding")
|
||||
raise Exception("Wrong encoding")
|
||||
nV = ord(sig[0])
|
||||
if nV < 27 or nV >= 35:
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue