Skip to content

Commit

Permalink
Fix verify for signatures with not enough chars
Browse files Browse the repository at this point in the history
  • Loading branch information
bricerisingalgorand committed Jan 20, 2022
1 parent 0237e6a commit 1c13405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algosdk/future/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2533,7 +2533,7 @@ def verify(self, public_key):
try:
verify_key.verify(to_sign, base64.b64decode(self.sig))
return True
except BadSignatureError:
except (BadSignatureError, ValueError):
return False

return self.msig.verify(to_sign)
Expand Down

0 comments on commit 1c13405

Please sign in to comment.