Skip to content

Instantly share code, notes, and snippets.

@k1000
Last active March 17, 2023 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k1000/47560d3a953d652e1f44198d7a574250 to your computer and use it in GitHub Desktop.
Save k1000/47560d3a953d652e1f44198d7a574250 to your computer and use it in GitHub Desktop.
Proof of Virginity - VC
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/k1000/47560d3a953d652e1f44198d7a574250/raw/proof-of-virginity.jsonld",
"jsonSchema": "https://gist.githubusercontent.com/k1000/47560d3a953d652e1f44198d7a574250/raw/proof-of-virginity.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", "isVirgin"],
"properties": {
"id": {
"title": "Credential Subject ID",
"type": "string",
"format": "uri"
},
"isVirgin": {
"type": "integer"
}
}
}
}
}
{
"@context": [
{
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"ProofOfVirginity": {
"@id": "https://gist.githubusercontent.com/k1000/47560d3a953d652e1f44198d7a574250/raw/proof-of-virginity.jsonld#ProofOfVirginity",
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"vocab": "https://gist.githubusercontent.com/k1000/47560d3a953d652e1f44198d7a574250/raw/proof-of-virginity-vocab.md#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"isVirgin": {
"@id": "vocab:isVirgin",
"@type": "xsd:integer"
}
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment