Polygon ID · Schema

Link

IdentityVerifiable CredentialsZero-Knowledge ProofsSelf-Sovereign IdentityDecentralized IdentityBlockchainWeb3KYC

Properties

Name Type Description
id string
schemaUrl string
schemaType string
schemaHash string
credentialSubject object
maxIssuance integer
issuedClaims integer
expiration object
credentialExpiration object
createdAt object
active boolean
status string
proofTypes array
refreshService object
displayMethod object
deepLink string
universalLink string
View JSON Schema on GitHub

JSON Schema

link.json Raw ↑
{
  "type": "object",
  "required": [
    "id",
    "schemaUrl",
    "schemaType",
    "credentialSubject",
    "issuedClaims",
    "active",
    "status",
    "proofTypes",
    "schemaHash",
    "createdAt",
    "deepLink",
    "universalLink"
  ],
  "properties": {
    "id": {
      "type": "string",
      "x-go-type": "uuid.UUID",
      "x-go-type-import": {
        "name": "uuid",
        "path": "github.com/google/uuid"
      },
      "example": "8edd8112-c415-11ed-b036-debe37e1cbd6"
    },
    "schemaUrl": {
      "type": "string",
      "example": "https://someValidURL.com"
    },
    "schemaType": {
      "type": "string",
      "example": "KYCAgeCredential"
    },
    "schemaHash": {
      "type": "string",
      "example": "c9b2370371b7fa8b3dab2a5ba81b6838"
    },
    "credentialSubject": {
      "$ref": "#/components/schemas/CredentialSubject"
    },
    "maxIssuance": {
      "type": "integer",
      "x-omitempty": false,
      "nullable": true
    },
    "issuedClaims": {
      "type": "integer"
    },
    "expiration": {
      "$ref": "#/components/schemas/TimeUTC",
      "x-omitempty": false,
      "nullable": true
    },
    "credentialExpiration": {
      "$ref": "#/components/schemas/TimeUTC",
      "x-omitempty": false,
      "nullable": true
    },
    "createdAt": {
      "$ref": "#/components/schemas/TimeUTC"
    },
    "active": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive",
        "exceeded"
      ]
    },
    "proofTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "BJJSignature2021"
      ]
    },
    "refreshService": {
      "$ref": "#/components/schemas/RefreshService"
    },
    "displayMethod": {
      "$ref": "#/components/schemas/DisplayMethod"
    },
    "deepLink": {
      "type": "string",
      "x-omitempty": false,
      "example": "iden3comm://?request_uri=https%3A%2F%2Fissuer-demo.privado.id%2Fapi%2Fqr-store%3Fid%3Df780a169-8959-4380-9461-f7200e2ed3f4"
    },
    "universalLink": {
      "type": "string",
      "x-omitempty": false,
      "example": "https://wallet.privado.id#request_uri=url"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Link"
}