Schemas

Definitions list

KYCAMLAttestation

{
  "$ref": "#/definitions/KYCAMLAttestation",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "KYCAMLAttestation": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "KYCAMLAttestation",
          "type": "string"
        },
        "process": {
          "type": "string"
        },
        "approvalDate": {
          "type": "string"
        }
      },
      "required": ["type", "process", "approvalDate"],
      "type": "object"
    }
  }
}

Proof of Control

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Verifiable Presentation",
  "type": "object",
  "properties": {
    "@context": {
      "title": "@context",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "type": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "holder": {
      "title": "Holder Identifier",
      "type": "string"
    }
  }
}

Identity Score

{
  "$ref": "#/definitions/IdentityScore",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "AddressOwner": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "AddressOwner",
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "chain": {
          "type": "string"
        },
        "proof": {
          "type": "string"
        }
      },
      "required": ["type", "chain", "address", "proof"],
      "type": "object"
    },
    "IdentityScore": {
      "additionalProperties": false,
      "properties": {
        "type": {
          "const": "IdentityScoreAttestation",
          "type": "string"
        },
        "addressOwner": {
          "items": {
            "$ref": "#/definitions/AddressOwner"
          },
          "type": "array"
        },
        "historyStartDate": {
          "type": "string"
        },
        "openAccounts": {
          "type": "number"
        },
        "paymentHistoryPercentage": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "scoreType": {
          "type": "string"
        },
        "utilization": {
          "type": "number"
        }
      },
      "required": ["type", "score", "scoreType", "provider"],
      "type": "object"
    }
  }
}

Verifiable Credential

{
  "definitions": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://example.com/object1626809845.json",
  "title": "Root",
  "type": "object",
  "required": ["sub", "vc"],
  "properties": {
    "sub": {
      "type": "string",
      "examples": ["did:example:1234"]
    },
    "nbf": {
      "type": "integer",
      "examples": [1562950282]
    },
    "vc": {
      "type": "object",
      "required": ["@context", "type", "credentialSubject"],
      "properties": {
        "@context": {
          "type": "array",
          "items": {
            "examples": ["https://www.w3.org/2018/credentials/v1"]
          }
        },
        "type": {
          "type": "array",
          "items": {
            "type": "string",
            "examples": ["VerifiableCredential"]
          }
        },
        "credentialSubject": {
          "type": "object",
          "required": [],
          "properties": {}
        }
      }
    }
  }
}

Verifiable Presentation

{
  "definitions": {},
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "required": ["sub", "vp"],
  "properties": {
    "sub": {
      "type": "string",
      "examples": ["did:example:1234"]
    },
    "vp": {
      "type": "object",
      "required": ["@context", "type", "holder", "verifiableCredential"],
      "properties": {
        "@context": {
          "type": "array",
          "items": {
            "type": "string",
            "examples": ["https://www.w3.org/2018/credentials/v1"],
            "pattern": "^.*$"
          }
        },
        "type": {
          "type": "array",
          "items": {
            "type": "string",
            "examples": ["VerifiablePresentation"]
          }
        },
        "holder": {
          "type": "string",
          "examples": ["subject"]
        },
        "verifiableCredential": {
          "type": "string"
        }
      }
    }
  }
}

Last updated