Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtropets committed Sep 10, 2024
1 parent 5272c14 commit 69fa97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/ccf/cose.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def create_cose_sign1_finish(
return msg.encode(sign=False)


def validate_cose_sign1(payload: bytes, cert_pem: Pem, cose_sign1: bytes) -> bool:
def validate_cose_sign1(payload: bytes, cert_pem: Pem, cose_sign1: bytes):
cert = load_pem_x509_certificate(cert_pem.encode("ascii"), default_backend())
if not isinstance(cert.public_key(), EllipticCurvePublicKey):
raise NotImplementedError("unsupported key type")
Expand Down

0 comments on commit 69fa97d

Please sign in to comment.