Created
October 22, 2023 15:03
-
-
Save aditya-vijaykumar/b3fa99dc4f17888024d48331d0b73d01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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