Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Last active September 25, 2024 21:54
Show Gist options
  • Save BigBlueHat/4d4eb257a1df1d17d3104b51a4db24ad to your computer and use it in GitHub Desktop.
Save BigBlueHat/4d4eb257a1df1d17d3104b51a4db24ad to your computer and use it in GitHub Desktop.
DRAFT: DID Core JSON Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"@context": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"id": {
"type": "string"
},
"alsoKnownAs": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": [
{
"type": "string"
}
]
}
]
},
"controller": {
"type": "array"
},
"authentication": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"controller": {
"type": "string"
},
"publicKeyMultibase": {
"type": "string"
}
}
}
]
},
"capabilityInvocation": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"controller": {
"type": "string"
},
"publicKeyMultibase": {
"type": "string"
}
}
}
]
},
"capabilityDelegation": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"controller": {
"type": "string"
},
"publicKeyMultibase": {
"type": "string"
}
}
}
]
},
"assertionMethod": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"controller": {
"type": "string"
},
"publicKeyMultibase": {
"type": "string"
}
}
}
]
}
},
"required": [
"id"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment