Skip to content

Commit

Permalink
feat: Added some credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
philpotisk committed Jan 11, 2024
1 parent b8d8956 commit dad1a95
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/content/1.credentials/AlpsTourReservation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# AlpsTourReservation

```json
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
"VerifiableAlpsTourReservation"
],
"credentialSchema": {
"id": "https://insert-link",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"id": "did:key:string",
"bookingId": "string"
},
"id": "urn:uuid:3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": {
"id": "did:web:string",
"name": "Alp Tour"
},
"validFrom": "2024-04-31T00:00:00Z",
"expirationDate": "2024-05-31T00:00:00Z",
"issuanceDate": "2024-03-31T00:00:00Z"
}
```

## Mapping example

```json
{
"id": "<uuid>",
"issuer": {
"id": "<issuerDid>"
},
"credentialSubject": {
"id": "<subjectDid>"
},
"issuanceDate": "<timestamp>"
}
```
68 changes: 68 additions & 0 deletions src/content/1.credentials/EducationalID.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# EducationalID

```json
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://europa.eu/schemas/v-id/2020/v1",
"https://europa.eu/schemas/eidas/2020/v1"
],
"id": "urn:uuid:3252d03c-c168-45fd-bf0a-b0b838a65e2c",
"type": [
"VerifiableCredential",
"EducationalID"
],
"issuer": "did:jwk:eyJrdHkiOiJPS1AiLCJkIjoiSElOOVdjVkNxaEd2d1o4STQ3V2VNdHhHY2VTS3B2YUVudTVlWEFvV3lEbyIsImNydiI6IkVkMjU1MTkiLCJraWQiOiJDRlEtTnJhNXlueUJzZnh3eTdhTmY4ZHVBRVVDTWxNSXJSSXJEZzZESXk0IiwieCI6Img1bmJ3Nlg5Sm1JMEJ2dVE1TTBKWGZ6TzhzMmVFYlBkVjI5d3NIVEw5cGsifQ==",
"issuanceDate": "2023-12-13T11:56:31.382517677Z",
"issued": "2023-12-13T11:56:19Z",
"validFrom": "2023-12-13T11:56:19Z",
"credentialSubject": {
"id": "did:key:z6MksJPJvvPhV16vRPNkoDyGfp82bacJWor1fTPW62ZXL4Pw#z6MksJPJvvPhV16vRPNkoDyGfp82bacJWor1fTPW62ZXL4Pw",
"identifier": [
{
"schemeID": "European Student Identifier",
"value": "urn:schac:personalUniqueCode:int:esi:math.example.edu:xxxxxxxxxx",
"id": "urn:schac:personalUniqueCode:int:esi:university.eu:firstlast@email.eu"
}
],
"schacPersonalUniqueID": "urn:schac:personalUniqueID:int:passport:{COUNTRY_CODE}:{PASSPORT_CODE}",
"commonName": "Frist Last",
"displayName": "Frist Last",
"firstName": "Frist",
"familyName": "Ferreira",
"dateOfBirth": "19730429",
"schacHomeOrganization": " ",
"mail": "first.last@university.eu",
"eduPersonPrincipalName": "first.last@university.eu",
"eduPersonPrimaryAffiliation": "student",
"schacPersonalUniqueCode": "urn:schac:personalUniqueCode:int:esi:university.eu:firstlast@email.eu",
"eduPersonAffiliation": [
{
"value": "student, staff"
}
],
"eduPersonScopedAffiliation": [
{
"value": "student@university.eu, staff@university.eu"
}
],
"eduPersonAssurance": [
{
"value": "student, staff"
}
]
}
}
```
## Mapping example

```json
{
"id": "<uuid>",
"issuer": "<issuerDid>",
"credentialSubject": {
"id": "<subjectDid>"
},
"issuanceDate": "<timestamp>"
}
```
51 changes: 51 additions & 0 deletions src/content/1.credentials/HotelReservation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Hotel Reservation

```json
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
"VerifiableHotelReservation"
],
"credentialSchema": {
"id": "https://insert-link",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"id": "did:key:string",
"familyName": "DOE",
"firstName": "Jane",
"currentAddress": [
"42 Great Place, Canada"
],
"dateOfBirth": "1993-04-08",
"placeOfBirth": "LILLE, FRANCE"
},
"id": "urn:uuid:3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": {
"id": "did:web:string",
"name": "Hotel"
},
"validFrom": "2024-01-31T00:00:00Z",
"issuanceDate": "2024-01-31T00:00:00Z"
}

```

## Mapping example

```json
{
"id": "<uuid>",
"issuer": {
"id": "<issuerDid>"
},
"credentialSubject": {
"id": "<subjectDid>"
},
"issuanceDate": "<timestamp>"
}
```
60 changes: 60 additions & 0 deletions src/content/1.credentials/TaxReceipt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# TaxReceipt

```json
{
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"type": [
"VerifiableCredential",
"VerifiableTaxReceipt"
],
"credentialSchema": {
"id": "https://insert-link",
"type": "FullJsonSchemaValidator2021"
},
"credentialSubject": {
"id": "did:key:string",
"ReceiptId": "string",
"VAT": "string"
},
"evidence": [
{
"documentPresence": [
"Physical"
],
"evidenceDocument": [
"Passport"
],
"subjectPresence": "Physical",
"type": [
"DocumentVerification"
],
"verifier": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN"
}
],
"id": "urn:uuid:3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": {
"id": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN",
"name": "Tax Authority"
},
"validFrom": "2024-01-31T00:00:00Z",
"issuanceDate": "2024-01-31T00:00:00Z"
}
```

## Mapping example

```json
{
"id": "<uuid>",
"issuer": {
"id": "<issuerDid>"
},
"credentialSubject": {
"id": "<subjectDid>"
},
"issuanceDate": "<timestamp>"
}
```

0 comments on commit dad1a95

Please sign in to comment.