Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 081f730

Browse files
committed
added PhotoIDCredential.md
1 parent 9f8d4c5 commit 081f730

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# PhotoIDCredential
2+
3+
```json
4+
{
5+
"@context": [
6+
"https://www.w3.org/2018/credentials/v1",
7+
"https://domain.com/photoid.json"
8+
],
9+
"id": "urn:uuid:123",
10+
"type": ["VerifiableCredential", "PhotoIDCredential"],
11+
"issuer": {
12+
"id": "did:example:issuer"
13+
},
14+
"issuanceDate": "2025-08-06T08:00:00Z",
15+
"expirationDate": "2035-08-06T08:00:00Z",
16+
"credentialSubject": {
17+
"id": "did:example:holder",
18+
"iso23220": {
19+
"family_name_unicode": "Doe",
20+
"given_name_unicode": "John",
21+
"birth_date": "1990-01-01",
22+
"portrait": "base64-image-data",
23+
"issue_date": "2025-01-01",
24+
"expiry_date": "2035-01-01",
25+
"issuing_authority_unicode": "Gov Authority",
26+
"issuing_country": "US",
27+
"age_over_18": true
28+
},
29+
"photoid": {
30+
"person_id": "PID123456",
31+
"birth_country": "US",
32+
"birth_state": "CA",
33+
"birth_city": "Los Angeles"
34+
},
35+
"dtc": {
36+
"dtc_dg1": "MRZDATA==",
37+
"dtc_dg2": "FACEIMAGE==",
38+
"dtc_sod": "SODDATA=="
39+
}
40+
}
41+
}
42+
43+
```
44+
45+
## Manifest
46+
47+
```json
48+
{
49+
"claims": {
50+
"Full Name": "$.credentialSubject.iso23220.given_name_unicode $.credentialSubject.iso23220.family_name_unicode",
51+
"Birth Date": "$.credentialSubject.iso23220.birth_date",
52+
"Issuing Country": "$.credentialSubject.iso23220.issuing_country",
53+
"Document Issue Date": "$.credentialSubject.iso23220.issue_date",
54+
"Document Expiry Date": "$.credentialSubject.iso23220.expiry_date",
55+
"Over 18": "$.credentialSubject.iso23220.age_over_18",
56+
"Person ID": "$.credentialSubject.photoid.person_id",
57+
"Birthplace": "$.credentialSubject.photoid.birth_city, $.credentialSubject.photoid.birth_state, $.credentialSubject.photoid.birth_country"
58+
}
59+
}
60+
61+
```
62+
63+
## Mapping example
64+
65+
```json
66+
{
67+
"id": "<uuid>",
68+
"issuer": {
69+
"id": "<issuerDid>"
70+
},
71+
"credentialSubject": {
72+
"id": "<subjectDid>"
73+
},
74+
"issuanceDate": "<timestamp>",
75+
"expirationDate": "<timestamp-in:365d>"
76+
}
77+
```

0 commit comments

Comments
 (0)