Created
February 8, 2024 22:50
-
-
Save ilya-korotya/e10cd79a8cc26ab6e40400a11838617e to your computer and use it in GitHub Desktop.
non-merklized-non-zero-balance.json
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/ilya-korotya/660496c859f8d31a7d2a92ca5e970967/raw/6b5fc14fe630c17bfa52e05e08fdc8394c5ea0ce/non-merklized-non-zero-balance.jsonld" | |
}, | |
"version": "1.0", | |
"type": "Balance", | |
"iden3Serialization": { | |
"slotIndexA": "address", | |
"slotIndexB": "balance" | |
} | |
}, | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"description": "balance schema", | |
"title": "Balance", | |
"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" | |
}, | |
"address": { | |
"description": "user address", | |
"title": "address", | |
"type": "string" | |
}, | |
"balance": { | |
"description": "balance", | |
"title": "balance", | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"address", | |
"balance" | |
], | |
"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" | |
} | |
}, | |
"credentialStatus": { | |
"description": "Allows the discovery of information about the current status of the credential, such as whether it is suspended or revoked.", | |
"title": "Credential Status", | |
"properties": { | |
"id": { | |
"description": "Id URL of the credentialStatus.", | |
"title": "Id", | |
"format": "uri", | |
"type": "string" | |
}, | |
"type": { | |
"description": "Expresses the credential status type (method). The value should provide enough information to determine the current status of the credential.", | |
"title": "Type", | |
"type": "string" | |
} | |
}, | |
"required": [ | |
"id", | |
"type" | |
], | |
"type": "object" | |
}, | |
"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