fix error in verify signature

This commit is contained in:
Cayo Puigdefabregas 2024-05-28 10:18:33 +02:00
parent 4a9b5398cb
commit 927d93c78e
1 changed files with 4 additions and 1 deletions

View File

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