|
| 1 | +# ePassportCredential |
| 2 | + |
| 3 | +```json |
| 4 | +{ |
| 5 | + "@context": [ |
| 6 | + "https://www.w3.org/2018/credentials/v1" |
| 7 | + ], |
| 8 | + "id": "urn:uuid:6c5f1f91-5c3a-4f4a-94a0-8b2a9cfc9b11", |
| 9 | + "type": [ |
| 10 | + "VerifiableCredential", |
| 11 | + "ePassportCredential" |
| 12 | + ], |
| 13 | + "issuer": "did:example:gov-at", |
| 14 | + "validFrom": "2025-08-12T10:00:00Z", |
| 15 | + "credentialSubject": { |
| 16 | + "id": "did:example:john-doe-123", |
| 17 | + "fullName": "REPLACE_ME", |
| 18 | + "givenName": "REPLACE_ME", |
| 19 | + "familyName": "REPLACE_ME", |
| 20 | + "nationality": "REPLACE_ME", |
| 21 | + "residency": { |
| 22 | + "country": "REPLACE_ME", |
| 23 | + "countryCode": "REPLACE_ME", |
| 24 | + "city": "REPLACE_ME" |
| 25 | + }, |
| 26 | + "passportNumber": "REPLACE_ME", |
| 27 | + "issuingCountry": "REPLACE_ME", |
| 28 | + "dateOfBirth": "REPLACE_ME", |
| 29 | + "authority": "REPLACE_ME", |
| 30 | + "sex": "REPLACE_ME", |
| 31 | + "placeOfBirth": { |
| 32 | + "country": "REPLACE_ME", |
| 33 | + "city": "REPLACE_ME" |
| 34 | + }, |
| 35 | + "type": "REPLACE_ME", |
| 36 | + "code": "REPLACE_ME", |
| 37 | + "height": "REPLACE_ME", |
| 38 | + "eyeColor": "REPLACE_ME", |
| 39 | + "issuanceDate": "REPLACE_ME", |
| 40 | + "expirationDate": "REPLACE_ME" |
| 41 | + } |
| 42 | +} |
| 43 | +``` |
| 44 | + |
| 45 | +## Manifest |
| 46 | + |
| 47 | +```json |
| 48 | +{ |
| 49 | + "claims": { |
| 50 | + "Full name": "$.credentialSubject.fullName", |
| 51 | + "Given name": "$.credentialSubject.givenName", |
| 52 | + "Family name": "$.credentialSubject.familyName", |
| 53 | + "Nationality": "$.credentialSubject.nationality", |
| 54 | + "Residence country": "$.credentialSubject.residency.country", |
| 55 | + "Residence country code": "$.credentialSubject.residency.countryCode", |
| 56 | + "Residence city": "$.credentialSubject.residency.city", |
| 57 | + "Passport number": "$.credentialSubject.passportNumber", |
| 58 | + "Issuing country": "$.credentialSubject.issuingCountry", |
| 59 | + "Date of birth": "$.credentialSubject.dateOfBirth", |
| 60 | + "Issuing authority": "$.credentialSubject.authority", |
| 61 | + "Sex": "$.credentialSubject.sex", |
| 62 | + "Place of birth country": "$.credentialSubject.placeOfBirth.country", |
| 63 | + "Place of birth city": "$.credentialSubject.placeOfBirth.city", |
| 64 | + "Document type": "$.credentialSubject.type", |
| 65 | + "Document code": "$.credentialSubject.code", |
| 66 | + "Height": "$.credentialSubject.height", |
| 67 | + "Eye color": "$.credentialSubject.eyeColor", |
| 68 | + "Document issuance date": "$.credentialSubject.issuanceDate", |
| 69 | + "Document expiration date": "$.credentialSubject.expirationDate" |
| 70 | + } |
| 71 | +} |
| 72 | +``` |
| 73 | + |
| 74 | +## Mapping example |
| 75 | + |
| 76 | +```json |
| 77 | +{ |
| 78 | + "id": "<uuid>", |
| 79 | + "issuer": "<issuerDid>", |
| 80 | + "credentialSubject": { |
| 81 | + "id": "<subjectDid>" |
| 82 | + }, |
| 83 | + "issuanceDate": "<timestamp>", |
| 84 | + "validFrom": "<timestamp>", |
| 85 | + "expirationDate": "<timestamp-in:365d>" |
| 86 | +} |
| 87 | +``` |
0 commit comments