Skip to content

Commit

Permalink
Unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Geater committed Jul 21, 2024
1 parent 6d3087b commit c65b076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scitt/verify_receipt_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
HEADER_LABEL_DID = 391


def read_cbor_file(cbor_file: str) -> bytes | None:
def read_cbor_file(cbor_file: str) -> Sign1Message:
"""
opens the receipt from the receipt file.
NOTE: the receipt is expected to be in cbor encoding.
Expand Down Expand Up @@ -149,7 +149,7 @@ def main():
"""Verifies a counter signed receipt signature"""

parser = argparse.ArgumentParser(
description="Verify a counter signed receipt signature from a Receipt or Transparent Statement."
description="Verify countersigned signature from a Receipt or Transparent Statement."
)

options = parser.add_argument_group("Input File Type")
Expand Down
4 changes: 2 additions & 2 deletions unittests/test_verify_receipt_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import unittest

from scitt.verify_receipt_signature import verify_receipt, open_receipt
from scitt.verify_receipt_signature import verify_receipt, read_cbor_file

from .constants import KNOWN_RECEIPT_FILE

Expand All @@ -19,7 +19,7 @@ def test_verify_kat_receipt(self):
"""
tests we can verify the signature of a known receipt.
"""
receipt = open_receipt(KNOWN_RECEIPT_FILE)
receipt = read_cbor_file(KNOWN_RECEIPT_FILE)

verified = verify_receipt(receipt)

Expand Down

0 comments on commit c65b076

Please sign in to comment.