Skip to content

Instantly share code, notes, and snippets.

@ilya-korotya
Last active August 29, 2024 16:07
Show Gist options
  • Save ilya-korotya/cb78b5f58e2531ddea17083bfff06c99 to your computer and use it in GitHub Desktop.
Save ilya-korotya/cb78b5f58e2531ddea17083bfff06c99 to your computer and use it in GitHub Desktop.
{
"@context": [
{
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"AnimaProofOfIdentity": {
"@id": "https://gist.githubusercontent.com/ilya-korotya/cb78b5f58e2531ddea17083bfff06c99/raw/84e2cc56c3a9bc23e63f7e7a6f2a118a649ef6d5/poi-v2.json-ld#AnimaProofOfIdentity",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"kyc-vocab": "https://github.com/anima-protocol/claims-polygonid/blob/main/credentials/poi.md#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"firstname": {
"@id": "kyc-vocab:firstname",
"@type": "xsd:string"
},
"lastname": {
"@id": "kyc-vocab:lastname",
"@type": "xsd:string"
},
"date_of_birth_str": {
"@id": "kyc-vocab:date_of_birth_str",
"@type": "xsd:string"
},
"date_of_birth": {
"@id": "kyc-vocab:date_of_birth",
"@type": "xsd:integer"
},
"nationality": {
"@id": "kyc-vocab:nationality",
"@type": "xsd:string"
},
"document_country": {
"@id": "kyc-vocab:document_country",
"@type": "xsd:string"
},
"document_type": {
"@id": "kyc-vocab:document_type",
"@type": "xsd:string"
},
"document_number": {
"@id": "kyc-vocab:document_number",
"@type": "xsd:string"
},
"document_expiration_str": {
"@id": "kyc-vocab:document_expiration_str",
"@type": "xsd:string"
},
"document_expiration": {
"@id": "kyc-vocab:document_expiration",
"@type": "xsd:integer"
},
"kyc_validated": {
"@id": "kyc-vocab:kyc_validated",
"@type": "xsd:boolean"
},
"kyc_aml_validated": {
"@id": "kyc-vocab:kyc_aml_validated",
"@type": "xsd:boolean"
},
"document_country_code": {
"@id": "kyc-vocab:document_country_code",
"@type": "xsd:integer"
}
}
}
}
]
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/ilya-korotya/cb78b5f58e2531ddea17083bfff06c99/raw/84e2cc56c3a9bc23e63f7e7a6f2a118a649ef6d5/poi-v2.json-ld",
"jsonSchema": "https://gist.githubusercontent.com/ilya-korotya/cb78b5f58e2531ddea17083bfff06c99/raw/84e2cc56c3a9bc23e63f7e7a6f2a118a649ef6d5/PoIAnima-v2.json"
}
},
"required": [
"@context",
"id",
"type",
"issuanceDate",
"credentialSubject",
"credentialSchema",
"credentialStatus",
"issuer"
],
"properties": {
"@context": {
"type": [
"string",
"array",
"object"
]
},
"id": {
"type": "string"
},
"type": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"issuer": {
"type": [
"string",
"object"
],
"format": "uri",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uri"
}
}
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"credentialSchema": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
},
"subjectPosition": {
"type": "string",
"enum": [
"none",
"index",
"value"
]
},
"merklizationRootPosition": {
"type": "string",
"enum": [
"none",
"index",
"value"
]
},
"revNonce": {
"type": "integer"
},
"version": {
"type": "integer"
},
"updatable": {
"type": "boolean"
},
"credentialSubject": {
"type": "object",
"required": [
"id",
"firstname",
"lastname",
"date_of_birth_str",
"date_of_birth",
"nationality",
"document_country",
"document_type",
"document_number",
"document_expiration_str",
"document_expiration",
"kyc_validated",
"kyc_aml_validated",
"document_country_code"
],
"properties": {
"id": {
"title": "Credential Subject ID",
"type": "string",
"format": "uri"
},
"firstname": {
"title": "First Name",
"type": "string"
},
"lastname": {
"title": "Last Name",
"type": "string"
},
"date_of_birth_str": {
"title": "Date of Birth (Date String)",
"type": "string"
},
"date_of_birth": {
"title": "Date of Birth (Timestamp)",
"type": "integer"
},
"nationality": {
"title": "Nationality",
"type": "string"
},
"document_country": {
"title": "Document Country",
"type": "string"
},
"document_type": {
"title": "Document Type",
"type": "string"
},
"document_number": {
"title": "Document Number",
"type": "string"
},
"document_expiration_str": {
"title": "Document Expiration Date (Date String)",
"type": "string"
},
"document_expiration": {
"title": "Document Expiration Date (Timestamp)",
"type": "integer"
},
"kyc_validated": {
"title": "KYC Validated",
"type": "boolean"
},
"kyc_aml_validated": {
"title": "KYC AML Validated",
"type": "boolean"
},
"document_country_code": {
"title": "Document Country Code",
"type": "integer"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment