Updated criptography part to be compatible with older releases of crpytography package

This commit is contained in:
Adolfo Gómez García 2021-06-09 17:47:49 +02:00
parent 9e462478fc
commit 38490e184e

View File

@ -179,7 +179,7 @@ def verifySignature(script, signature):
from cryptography.hazmat.primitives import serialization, hashes
from cryptography.hazmat.primitives.asymmetric import utils, padding
public_key = serialization.load_pem_public_key(data=PUBLIC_KEY)
public_key = serialization.load_pem_public_key(data=PUBLIC_KEY, backend=default_backend())
try:
public_key.verify(