From 2502e0a77b1cb99154f872cf91c9189fd1be3690 Mon Sep 17 00:00:00 2001 From: Dinkar Date: Fri, 7 Jun 2024 11:11:21 +0530 Subject: [PATCH] chore: Added Boarding Pass Credential --- src/content/1.credentials/BoardingPass.md | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/content/1.credentials/BoardingPass.md diff --git a/src/content/1.credentials/BoardingPass.md b/src/content/1.credentials/BoardingPass.md new file mode 100644 index 0000000..c8ee77d --- /dev/null +++ b/src/content/1.credentials/BoardingPass.md @@ -0,0 +1,55 @@ +# BoardingPass + +```json +{ + "@context": ["https://www.w3.org/2018/credentials/v1"], + "type": ["VerifiableCredential", "VerifiableAttestation", "BoardingPass"], + "id": "", + "credentialSubject": { + "id": "", + "firstName": "John", + "lastName": "Doe", + "seat": "1A", + "flight": "LH123", + "date": "09/01/2021" + }, + "issuer": { + "id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj", + "name": "Airline" + }, + "issuanceDate": "2021-08-31T00:00:00Z", + "validFrom": "2021-09-01T00:00:00Z", + "expirationDate": "2031-08-31T00:00:00Z" +} +``` + +## Manifest + +```json +{ + "claims": { + "Date": "$.credentialSubject.date", + "Name": "$.credentialSubject.firstName", + "Last Name": "$.credentialSubject.lastName", + "Flight": "$.credentialSubject.flight", + "Seat": "$.credentialSubject.seat" + } +} +``` + +## Mapping example + +```json +{ + "id": "", + "issuer": { + "id": "" + }, + "credentialSubject": { + "id": "" + }, + "issuanceDate": "", + "validFrom": "", + "expirationDate": "" +} +``` \ No newline at end of file