Verified Identity

Details about the Presentation Definition required to request for the Verified Identity Document from the Affinidi Vault.

To request verified identity VC available in the Affinidi Vault, a specific Presentation Definition must be defined in the Affinidi Iota Framework. In the Presentation Definition, the query must include the following filters to enable Affinidi Vault to determine whether the website requesting data from the user requires the verified identity VC or not.

  • Check for VC Issuer: Filter to only accept Verifiable Credential issued by Affinidi and signed using the did:web method. The verified identity VC is issued and signed by the did:web:idv.affinidi.com DID.

  • Check for VC Type: Filter to only accept Verifiable Credential created by Identity Verification flow, including the supported document.

If the verified identity VC is not found in the Affinidi Vault, the user is redirected to the ID Verification provider to perform identity verification where they must provide a self-photo and supported identity documents.

Requesting Passport Data

Below is the Presentation Definition required to query the verified identity VC of the user from the Affinidi Vault.

{
  "id": "verified_identity",
  "input_descriptors": [
    {
      "id": "id_document_input",
      "name": "ID Document from IDV provider",
      "constraints": {
        "fields": [
          {
            "path": ["$.issuer", "$.vc.issuer", "$.iss"],
            "purpose": "Only accept credentials issued by Affinidi IDV",
            "filter": {
              "type": "string",
              "pattern": "^did:web:idv.affinidi.com$"
            }
          },
          {
            "path": [
              "$.type"
            ],
            "purpose": "Only accept IDV type VC",
            "filter": {
              "type": "array",
              "contains": {
                "type": "string",
                "pattern": "^VerifiedIdentityDocument$"
              }
            }
          },
          {
            "path": [
              "$.type"
            ],
            "purpose": "Only accept IDV supported document",
            "filter": {
              "type": "array",
              "contains": {
                "type": "string",
                "pattern": "^Passport$"
              }
            }
          }
        ]
      }
    }
  ]
}