From d9cf258cd716c9dcf497b5633f6dacfe761329fc Mon Sep 17 00:00:00 2001 From: Dinkar Date: Sat, 1 Jun 2024 00:09:59 +0530 Subject: [PATCH] Added eID & Visa Credentials --- src/content/1.credentials/Visa.md | 69 +++++++++++++++++++++++++++++++ src/content/1.credentials/eID.md | 59 ++++++++++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 src/content/1.credentials/Visa.md create mode 100644 src/content/1.credentials/eID.md diff --git a/src/content/1.credentials/Visa.md b/src/content/1.credentials/Visa.md new file mode 100644 index 0000000..e5e23c6 --- /dev/null +++ b/src/content/1.credentials/Visa.md @@ -0,0 +1,69 @@ +# Visa + +```json +{ + "@context": ["https://www.w3.org/2018/credentials/v1"], + "type": ["VerifiableCredential", "VerifiableAttestation", "Visa"], + "id": "did:visa:987654321abcdef", + "credentialSubject": { + "id": "", + "firstName": "John", + "lastName": "Doe", + "passportNumber": "G7F2A04F7O", + "dateOfBirth": "1980-01-01", + "gender": "Male", + "nationality": "US", + "visaType": "Tourist", + "entryNumber": "Single", + "visaValidity": { + "start": "2024-01-01", + "end": "2024-06-30" + }, + "purposeOfVisit": "Tourism" + }, + "issuer": { + "id": "did:key:z3MkpTHsHjxvqq7TnqmBnYf6pWZpa27DqXx6Wp7dVPLm987X", + "name": "Embassy of Wonderland" + }, + "issuanceDate": "2023-11-01T00:00:00Z", + "validFrom": "2024-01-01T00:00:00Z", + "expirationDate": "2024-06-30T00:00:00Z" +} +``` + +## Manifest + +```json +{ + "claims": { + "Passport Number": "$.credentialSubject.passportNumber", + "Name": "$.credentialSubject.firstName", + "Last Name": "$.credentialSubject.lastName", + "Date of Birth": "$.credentialSubject.dateOfBirth", + "Gender": "$.credentialSubject.gender", + "Nationality": "$.credentialSubject.nationality", + "Visa Type": "$.credentialSubject.visaType", + "Entry Number": "$.credentialSubject.entryNumber", + "Visa Issuance Date": "$.credentialSubject.visaValidity.start", + "Visa Expiration Date": "$.credentialSubject.visaValidity.end", + "Purpose of Visit": "$.credentialSubject.purposeOfVisit" + } +} +``` + +## Mapping example + +```json +{ + "id": "", + "issuer": { + "id": "" + }, + "credentialSubject": { + "id": "" + }, + "issuanceDate": "", + "validFrom": "", + "expirationDate": "", +} +``` \ No newline at end of file diff --git a/src/content/1.credentials/eID.md b/src/content/1.credentials/eID.md new file mode 100644 index 0000000..91dbb02 --- /dev/null +++ b/src/content/1.credentials/eID.md @@ -0,0 +1,59 @@ +# eID + +```json +{ + "@context": ["https://www.w3.org/2018/credentials/v1"], + "type": ["VerifiableCredential", "VerifiableAttestation", "eID"], + "id": "", + "credentialSubject": { + "id": "", + "firstName": "John", + "lastName": "Doe", + "dateOfBirth": "1980-01-01", + "gender": "Male", + "nationality": "US", + "address": "123 Main St, Anytown, USA", + "documentId": "G7F2A04F7O" + }, + "issuer": { + "id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj", + "name": "Government of Anytown" + }, + "issuanceDate": "2021-08-31T00:00:00Z", + "validFrom": "2021-09-01T00:00:00Z", + "expirationDate": "2031-08-31T00:00:00Z" +} +``` + +## Manifest + +```json +{ + "claims": { + "Document ID": "$.credentialSubject.documentId", + "Name": "$.credentialSubject.firstName", + "Last Name": "$.credentialSubject.lastName", + "Date of Birth": "$.credentialSubject.dateOfBirth", + "Gender": "$.credentialSubject.gender", + "Nationality": "$.credentialSubject.nationality", + "Address": "$.credentialSubject.address", + } +} +``` + +## Mapping example + +```json +{ + "id": "", + "issuer": { + "id": "" + }, + "credentialSubject": { + "id": "" + }, + "issuanceDate": "", + "validFrom": "", + "expirationDate": "", +} +``` \ No newline at end of file