Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COSE receipts: CPP API #6480

Merged
merged 18 commits into from
Sep 19, 2024

Conversation

maxtropets
Copy link
Collaborator

@maxtropets maxtropets commented Sep 15, 2024

Closes #6477

@maxtropets maxtropets self-assigned this Sep 15, 2024
@maxtropets maxtropets changed the title Expose COSE signature in receipt impl (optional) COSE receipts Sep 16, 2024
@maxtropets maxtropets changed the title COSE receipts COSE receipts API Sep 16, 2024
@maxtropets maxtropets changed the title COSE receipts API COSE receipts CPP API Sep 16, 2024
@maxtropets maxtropets changed the title COSE receipts CPP API COSE receipts: CPP API Sep 16, 2024
@maxtropets maxtropets added the run-long-test Run Long Test job label Sep 16, 2024
@maxtropets maxtropets removed the run-long-test Run Long Test job label Sep 16, 2024
@maxtropets maxtropets marked this pull request as ready for review September 18, 2024 17:42
@maxtropets maxtropets requested a review from a team September 18, 2024 17:42
@maxtropets maxtropets added the run-long-test Run Long Test job label Sep 18, 2024
@maxtropets
Copy link
Collaborator Author

Proof example

HEX: 8dfa2190194835820f70ab02a71151d04ed5009907cc3b2cb2c7e9a7a8fb3f66a7ee73cd5b7ed2bf8784863653a322e31323a37373533663833306364626166323562303739303265326230666464643863316665313936623034613836323536323961333963373338656263376237343836582000000000000000000000000000000000000000000000000000000000000000001901958282015820f45e9165fafda60a24550e76df74b75bec70a83e8d6437e2d7c23c5949242e27820158204f5407075ce5df9b6208956ff15723e16b39591e6e763f5bc257363871e4074f

bytes.fromhex(): b"X\xdf\xa2\x19\x01\x94\x83X \xf7\n\xb0*q\x15\x1d\x04\xedP\t\x90|\xc3\xb2\xcb,~\x9az\x8f\xb3\xf6j~\xe7<\xd5\xb7\xed+\xf8xHce:2.12:7753f830cdbaf25b07902e2b0fddd8c1fe196b04a8625629a39c738ebc7b7486X \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\x01\x95\x82\x82\x01X \xf4^\x91e\xfa\xfd\xa6\n$U\x0ev\xdft\xb7[\xecp\xa8>\x8dd7\xe2\xd7\xc2<YI$.'\x82\x01X OT\x07\x07\\\xe5\xdf\x9bb\x08\x95o\xf1W#\xe1k9Y\x1env?[\xc2W68q\xe4\x07O"

cbor2.loads(): b"\xa2\x19\x01\x94\x83X \xf7\n\xb0*q\x15\x1d\x04\xedP\t\x90|\xc3\xb2\xcb,~\x9az\x8f\xb3\xf6j~\xe7<\xd5\xb7\xed+\xf8xHce:2.12:7753f830cdbaf25b07902e2b0fddd8c1fe196b04a8625629a39c738ebc7b7486X \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x19\x01\x95\x82\x82\x01X \xf4^\x91e\xfa\xfd\xa6\n$U\x0ev\xdft\xb7[\xecp\xa8>\x8dd7\xe2\xd7\xc2<YI$.'\x82\x01X OT\x07\x07\\\xe5\xdf\x9bb\x08\x95o\xf1W#\xe1k9Y\x1env?[\xc2W68q\xe4\x07O"

cbor2.loads(cbor2.loads()): {404: [b'\xf7\n\xb0*q\x15\x1d\x04\xedP\t\x90|\xc3\xb2\xcb,~\x9az\x8f\xb3\xf6j~\xe7<\xd5\xb7\xed+\xf8', 'ce:2.12:7753f830cdbaf25b07902e2b0fddd8c1fe196b04a8625629a39c738ebc7b7486', b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'], 405: [[1, b"\xf4^\x91e\xfa\xfd\xa6\n$U\x0ev\xdft\xb7[\xecp\xa8>\x8dd7\xe2\xd7\xc2<YI$.'"], [1, b'OT\x07\x07\\\xe5\xdf\x9bb\x08\x95o\xf1W#\xe1k9Y\x1env?[\xc2W68q\xe4\x07O']]}

@achamayou achamayou added this pull request to the merge queue Sep 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Sep 19, 2024
@achamayou achamayou added this pull request to the merge queue Sep 19, 2024
Merged via the queue into microsoft:main with commit 187d469 Sep 19, 2024
8 checks passed
@achamayou achamayou deleted the f/cose-signature-in-receipts branch September 19, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-long-test Run Long Test job
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support COSE receipts in CCF
2 participants