Canonical URL

NationalityProof Credential

A certificate that attests to the nationality of a recipient.

Canonical URL
Property Description
identifier
The national identifier of the recipient of the certificate in the issuing country, e.g. social security number in Luxembourg.
issuedBy
The organization issuing the verifiable credential.
nationality
The nationality of the recipient of the certificate.
Example

The following JSON object is an example of how data can be expressed in the credentialSubject section of a NationalityProof verifiable credential.

1
2
3
4
5
6
7
8
{
  "identifier": "1234567809876",
  "issuedBy": {
    "logo": "https://example.com/logo.png",
    "name": "Municipality A"
  },
  "nationality": "LU"
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  "credentialPreview": {
    "@context": [
      "https://www.w3.org/2018/credentials/v1",
      {
        "description": "https://schema.org/description",
        "NationalityProof": {
          "@context": {
            "@protected": true,
            "@version": 1.1,
            "id": "@id",
            "identifier": "schema:identifier",
            "issuedBy": {
              "@context": {
                "@protected": true,
                "@version": 1.1,
                "logo": {
                  "@id": "schema:logo",
                  "@type": "@id"
                },
                "name": "schema:name",
                "schema": "https://schema.org/"
              },
              "@id": "schema:issuedBy"
            },
            "nationality": "schema:nationality",
            "schema": "https://schema.org/",
            "type": "@type"
          },
          "@id": "https://github.com/TalaoDAO/TrustMyData-proto/blob/main/vocab"
        },
        "name": "https://schema.org/name"
      }
    ],
    "id": "urn:...",
    "type": [
      "VerifiableCredential",
      "NationalityProof"
    ],
    "credentialSubject": {
      "id": "did:...",
      "type": "NationalityProof",
      "identifier": "1234567809876",
      "issuedBy": {
        "logo": "https://example.com/logo.png",
        "name": "Municipality A"
      },
      "nationality": "LU"
    },
    "issuer": "did:...",
    "issuanceDate": "2020-12-01T07:47:01Z",
    "credentialSchema": {
      "id": "...",
      "type": "JsonSchemaValidator2021"
    },
    "name": [
      {
        "@language": "en",
        "@value": "Nationality certificate"
      }
    ],
    "description": [
      {
        "@language": "en",
        "@value": "This certificate proves the reality of your nationality."
      }
    ]
  },
  "expires": "2023-12-01T07:47:01Z",
  "type": "CredentialOffer",
}
Copyright © 2021 Compellio S.A., Talao SAS. All rights reserved.
Last modified on Dec 11, 2021 17:50