Polygon ID · Schema

Scope

IdentityVerifiable CredentialsZero-Knowledge ProofsSelf-Sovereign IdentityDecentralized IdentityBlockchainWeb3KYC

Properties

Name Type Description
id integer
circuitId string
query object
params object
View JSON Schema on GitHub

JSON Schema

verifier-scope.json Raw ↑
{
  "type": "object",
  "required": [
    "id",
    "circuitId",
    "query"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "uint32",
      "example": 1
    },
    "circuitId": {
      "type": "string",
      "example": "credentialAtomicQuerySigV2"
    },
    "query": {
      "$ref": "#/components/schemas/Query"
    },
    "params": {
      "$ref": "#/components/schemas/ScopeParams"
    }
  },
  "example": {
    "circuitID": "credentialAtomicQuerySigV2",
    "id": 1,
    "query": {
      "context": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld",
      "allowedIssuers": [
        "*"
      ],
      "type": "KYCAgeCredential",
      "credentialSubject": {
        "birthday": {
          "$eq": 19960424
        }
      }
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Scope"
}