Skip to content

Commit

Permalink
feat: added the evidence- & issuer-object
Browse files Browse the repository at this point in the history
  • Loading branch information
philpotisk committed Oct 17, 2023
1 parent 0d5891b commit 1857bc6
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 11 deletions.
11 changes: 10 additions & 1 deletion src/main/resources/vc-templates/BankId.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@
},
"id": "identity#BankId#3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": "did:example:456",
"issuer": {
"id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj",
"image": {
"id": "<url to image>",
"type": "Image"
},
"name": "CH Authority",
"type": "Profile",
"url": "<url to image>"
},
"validFrom": "2021-08-31T00:00:00Z",
"issuanceDate": "2021-08-31T00:00:00Z"
}
18 changes: 17 additions & 1 deletion src/main/resources/vc-templates/KycChecksCredential.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,23 @@
},
"id": "identity#KycCredential#3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN",
"issuer": {
"id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj",
"image": {
"id": "<url to image>",
"type": "Image"
},
"name": "CH Authority",
"type": "Profile",
"url": "<url to image>"
},
"validFrom": "2021-08-31T00:00:00Z",
"issuanceDate": "2021-08-31T00:00:00Z",
"evidence": {
"documentPresence": "Digital",
"evidenceDocument": "KYC",
"subjectPresence": "Physical",
"type": "DocumentVerification",
"verifier": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN"
}
}
18 changes: 17 additions & 1 deletion src/main/resources/vc-templates/KycDataCredential.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,23 @@
},
"id": "identity#KycCredential#3add94f4-28ec-42a1-8704-4e4aa51006b4",
"issued": "2021-08-31T00:00:00Z",
"issuer": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN",
"issuer": {
"id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj",
"image": {
"id": "<url to image>",
"type": "Image"
},
"name": "CH Authority",
"type": "Profile",
"url": "<url to image>"
},
"validFrom": "2021-08-31T00:00:00Z",
"issuanceDate": "2021-08-31T00:00:00Z",
"evidence": {
"documentPresence": "Digital",
"evidenceDocument": "KYC",
"subjectPresence": "Physical",
"type": "DocumentVerification",
"verifier": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN"
}
}
32 changes: 25 additions & 7 deletions src/main/resources/vc-templates/PassportCh.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
{
"@context": ["https://www.w3.org/2018/credentials/v1"],
"@context": [
"https://www.w3.org/2018/credentials/v1"
],
"id": "did:ebsi:635ba519cd19764e84ea67dd",
"type": [
"VerifiableCredential",
"VerifiableAttestation",
"VerifableId",
"PassportCh"
],
"issuer": "did:ebsi:zhs8QaHif4mPqhEcn5Z8K9E",
"issuer": {
"id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj",
"image": {
"id": "<url to image>",
"type": "Image"
},
"name": "CH Authority",
"type": "Profile",
"url": "<url to image>"
},
"issuanceDate": "2022-11-10T19:19:47.287Z",
"validFrom": "2022-11-10T19:19:47.287Z",
"expirationDate": "2022-11-10T19:19:47.287Z",
Expand All @@ -25,11 +36,18 @@
"dateOfBirth": "1930-10-01",
"emailAddress": "",
"placeOfBirth": "Ruemligen BL",
"height" : "183",
"gender" : "F",
"authority" : "Aarau AG",
"nationality" : "Schweiz",
"countryCode" : "CHE",
"height": "183",
"gender": "F",
"authority": "Aarau AG",
"nationality": "Schweiz",
"countryCode": "CHE",
"passportPhoto": "data:image/png;base64,iVBORw0KGgo...kJggg=="
},
"evidence": {
"documentPresence": "Physical",
"evidenceDocument": "Passport",
"subjectPresence": "Physical",
"type": "DocumentVerification",
"verifier": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"VerifiableAttestation",
"VerifiablePortableDocumentA1"
],
"issuer": "did:ebsi:zhs8QaHif4mPqhEcn5Z8K9E",
"issuer": {
"id": "did:key:z6MkrHKzgsahxBLyNAbLQyB1pcWNYC9GmywiWPgkrvntAZcj",
"image": {
"id": "<url to image>",
"type": "Image"
},
"name": "CH Authority",
"type": "Profile",
"url": "<url to image>"
},
"issuanceDate": "2022-11-10T19:19:47.287Z",
"validFrom": "2022-11-10T19:19:47.287Z",
"issued": "2022-11-10T19:19:47.287Z",
Expand Down Expand Up @@ -97,5 +106,12 @@
"credentialSchema": {
"id": "https://api-test.ebsi.eu/trusted-schemas-registry/v2/schemas/z3BTAA7Cs3qw8UV8YtgCVMicPNkaYHfFZZPfUfXAbFvng",
"type": "FullJsonSchemaValidator2021"
},
"evidence": {
"documentPresence": "Physical",
"evidenceDocument": "A1",
"subjectPresence": "Physical",
"type": "DocumentVerification",
"verifier": "did:ebsi:2A9BZ9SUe6BatacSpvs1V5CdjHvLpQ7bEsi2Jb6LdHKnQxaN"
}
}

0 comments on commit 1857bc6

Please sign in to comment.