assert verify_store_signature
does not raise exception in case of internal crypto error
#288
Labels
bug
Something isn't working
The
assert
command here checks theverify_store_signature
return value as a boolean value.However, such return value originates from the signature verification API in the crypto lib, and it is a
int
-- the SWIG conversion should maintain the type. Most importantly, this value is-1
when there is an internal error in the crypto lib. In this case, theassert
above does not raise any exception.Also, this happens in other places.
Proposed solution: change the assert argument to (
result > 0
).The text was updated successfully, but these errors were encountered: