Skip to content

Commit

Permalink
education and alliance id issuance & verifications
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed May 27, 2024
1 parent 0118aa6 commit 4c43033
Show file tree
Hide file tree
Showing 10 changed files with 638 additions and 32 deletions.
194 changes: 194 additions & 0 deletions data/issuer-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,200 @@
}
}
}
},

"EducationalID": {
"format": "vc_jwt",
"scope": "EducationalID",
"cryptographic_binding_methods_supported": ["jwk"],
"cryptographic_suites_supported": ["ES256"],
"display": [
{
"name": "EducationalID",
"locale": "en-GB",
"background_color": "#12107c",
"text_color": "#FFFFFF"
}
],
"credential_definition": {
"type": ["EducationalID"],
"claims": {
"identifier": {
"display": [
{
"name": "Identifier",
"locale": "en-GB"
}
]
},
"schacPersonalUniqueCode": {
"display": [
{
"name": "SCHAC Personal Unique Code",
"locale": "en-GB"
}
]
},
"schacPersonalUniqueID": {
"display": [
{
"name": "SCHAC Personal Unique ID",
"locale": "en-GB"
}
]
},
"schacHomeOrganization": {
"display": [
{
"name": "SCHAC Home Organization",
"locale": "en-GB"
}
]
},
"familyName": {
"display": [
{
"name": "Family Name",
"locale": "en-GB"
}
]
},
"firstName": {
"display": [
{
"name": "First Name",
"locale": "en-GB"
}
]
},
"displayName": {
"display": [
{
"name": "Display Name",
"locale": "en-GB"
}
]
},
"dateOfBirth": {
"display": [
{
"name": "Date of Birth",
"locale": "en-GB"
}
]
},
"commonName": {
"display": [
{
"name": "Common Name",
"locale": "en-GB"
}
]
},
"mail": {
"display": [
{
"name": "Email",
"locale": "en-GB"
}
]
},
"eduPersonPrincipalName": {
"display": [
{
"name": "eduPerson Principal Name",
"locale": "en-GB"
}
]
},
"eduPersonPrimaryAffiliation": {
"display": [
{
"name": "eduPerson Primary Affiliation",
"locale": "en-GB"
}
]
},
"eduPersonAffiliation": {
"display": [
{
"name": "eduPerson Affiliation",
"locale": "en-GB"
}
]
},
"eduPersonScopedAffiliation": {
"display": [
{
"name": "eduPerson Scoped Affiliation",
"locale": "en-GB"
}
]
},
"eduPersonAssurance": {
"display": [
{
"name": "eduPerson Assurance",
"locale": "en-GB"
}
]
}
}
}
},
"allianceIDCredential": {
"format": "vc_jwt",
"scope": "allianceIDCredential",
"cryptographic_binding_methods_supported": ["jwk"],
"cryptographic_suites_supported": ["ES256"],
"display": [
{
"name": "AllianceIDCredential",
"locale": "en-GB",
"background_color": "#12107c",
"text_color": "#FFFFFF"
}
],
"credential_definition": {
"type": ["allianceIDCredential"],
"claims": {
"identifier": {
"display": [
{
"name": "Identifier",
"locale": "en-GB"
}
],
"properties": {
"schemeID": {
"display": [
{
"name": "Scheme ID",
"locale": "en-GB"
}
]
},
"value": {
"display": [
{
"name": "Value",
"locale": "en-GB"
}
]
},
"id": {
"display": [
{
"name": "ID",
"locale": "en-GB"
}
]
}
}
}
}
}
}

}
}
28 changes: 28 additions & 0 deletions data/presentation_definition_alliance_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"constraints": {
"fields": [
{
"path": ["$.credentialSubject.identifier.id","$.vc.credentialSubject.identifier.id"]
}

]
},
"limit_disclosure": "required"
}
]
}
28 changes: 28 additions & 0 deletions data/presentation_definition_education_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"constraints": {
"fields": [
{
"path": ["$.credentialSubject.schacPersonalUniqueCode","$.vc.credentialSubject.schacPersonalUniqueCode"]
}

]
},
"limit_disclosure": "required"
}
]
}
28 changes: 28 additions & 0 deletions data/presentation_definition_epass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"constraints": {
"fields": [
{
"path": ["$.credentialSubject.electronicPassport","$.vc.credentialSubject.electronicPassport"]
}

]
},
"limit_disclosure": "required"
}
]
}
50 changes: 50 additions & 0 deletions data/presentation_definition_pid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"id": "d49ee616-0e8d-4698-aff5-2a8a2362652d",
"name": "id-card-proof",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"input_descriptors": [
{
"id": "abd4acb1-1dcb-41ad-8596-ceb1401a69c7",
"format": {
"jwt_vc": {
"alg": ["ES256", "ES384"]
}
},
"constraints": {
"fields": [
{
"path": ["$.credentialSubject.given_name","$.vc.credentialSubject.given_name"]
},
{
"path": ["$.credentialSubject.family_name","$.vc.credentialSubject.family_name"]
},
{
"path": ["$.credentialSubject.birth_date","$.vc.credentialSubject.birth_date"]
},
{
"path": ["$.credentialSubject.age_over_18","$.vc.credentialSubject.age_over_18"]
},
{
"path": ["$.credentialSubject.issuance_date","$.vc.credentialSubject.issuance_date"]
},
{
"path": ["$.credentialSubject.expiry_date","$.vc.credentialSubject.expiry_date"]
},
{
"path": ["$.credentialSubject.issuing_authority","$.vc.credentialSubject.issuing_authority"]
},
{
"path": ["$.credentialSubject.issuing_country","$.vc.credentialSubject.issuing_country"]
}


]
},
"limit_disclosure": "required"
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "SERVER_URL=https://96d8-2a02-587-870b-2f00-d697-1738-3249-fb5f.ngrok-free.app node server.js"
"dev": "SERVER_URL=https://6d7f-2a02-587-870b-2f00-d697-1738-3249-fb5f.ngrok-free.app node server.js"
},
"author": "",
"license": "ISC",
Expand Down
Loading

0 comments on commit 4c43033

Please sign in to comment.