fix error in verify signature

This commit is contained in:
Cayo Puigdefabregas 2024-05-28 10:18:33 +02:00
parent 4a9b5398cb
commit 927d93c78e

View file

@ -62,6 +62,9 @@ def verify_vc(credential):
return False
verify_key = get_verify_key(vc)
data_verified = verify_key.verify(signature_jws+signature)
try:
data_verified = verify_key.verify(signature_jws+signature)
except nacl.exceptions.BadSignatureError:
return False
return data_verified == signature