Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aditya-vijaykumar/b3fa99dc4f17888024d48331d0b73d01 to your computer and use it in GitHub Desktop.
Save aditya-vijaykumar/b3fa99dc4f17888024d48331d0b73d01 to your computer and use it in GitHub Desktop.
{
"$metadata": {
"uris": {
"jsonLdContext": "https://gist.githubusercontent.com/aditya-vijaykumar/3b59e3b344dcd66b969d8b06c48e36bb/raw/7a9129846604adb38b24375b1ab8c8d6977d6adc/ArtemisDaoMembershipCredential.jsonld"
},
"version": "1.0",
"type": "ArtemisDaoMembershipCredential"
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Artemis DAO Membership Credential to prove user's vote balance of a DAO.",
"title": "Artemis DAO Membership Credential",
"properties": {
"credentialSubject": {
"description": "Stores the data of the credential",
"title": "Credential subject",
"properties": {
"id": {
"description": "Stores the DID of the subject that owns the credential",
"title": "Credential subject ID",
"format": "uri",
"type": "string"
},
"amId": {
"description": "Artemis Status Check ID.",
"title": "Artemis ID",
"type": "string"
},
"daoKey": {
"description": "Key name of a DAO.",
"title": "DAO Key",
"type": "string"
},
"voteBalance": {
"description": "Vote Balance of Holder.",
"title": "Vote Balance",
"type": "number"
},
"timestamp": {
"description": "Timestamp of when the data of holder was verified.",
"title": "Timestamp",
"type": "number"
}
},
"required": [
"amId",
"daoKey",
"voteBalance",
"timestamp"
],
"type": "object"
},
"@context": {
"type": [
"string",
"array",
"object"
]
},
"expirationDate": {
"format": "date-time",
"type": "string"
},
"id": {
"type": "string"
},
"issuanceDate": {
"format": "date-time",
"type": "string"
},
"issuer": {
"type": [
"string",
"object"
],
"format": "uri",
"properties": {
"id": {
"format": "uri",
"type": "string"
}
},
"required": [
"id"
]
},
"type": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"credentialSchema": {
"properties": {
"id": {
"format": "uri",
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"id",
"type"
],
"type": "object"
}
},
"required": [
"credentialSubject",
"@context",
"id",
"issuanceDate",
"issuer",
"type",
"credentialSchema"
],
"type": "object"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment