-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.verida.io/credential/zkpass/v0.1.0/schema.json", | ||
"title": "Schema for ZKPass", | ||
"description": "A schema for zkpass credential", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#4bbf95", | ||
"icon": "./icon.svg" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://core.schemas.verida.io/base/latest/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"taskId": { | ||
"title": "Task ID", | ||
"description": "Unique id of the task allocated by the allocator node", | ||
"type": "string" | ||
}, | ||
"publicFields": { | ||
"title": "zkPass PublicFields", | ||
"description": "Values of public fields defined in schema", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"allocatorAddress": { | ||
"title": "Allocator Address", | ||
"description": "The address of the allocator node", | ||
"type": "string" | ||
}, | ||
"publicFieldsHash": { | ||
"title": "PublicFields", | ||
"description": "Hash of public field values", | ||
"type": "string" | ||
}, | ||
"allocatorSignature": { | ||
"title": "Allocator Signature", | ||
"description": "Signature of the task meta data by the allocator node", | ||
"type": "string" | ||
}, | ||
"uHash": { | ||
"title": "UHash", | ||
"description": "Hash value of user unique id in the data source", | ||
"type": "string" | ||
}, | ||
"validatorAddress": { | ||
"title": "ValidatorAddress", | ||
"description": "The address of the validator node", | ||
"type": "string" | ||
}, | ||
"validatorSignature": { | ||
"title": "Validator Signature", | ||
"description": "The signature of the verification result by the allocator node", | ||
"type": "string" | ||
}, | ||
"zkPassSchemaId": { | ||
"title": "zkPass Schema ID", | ||
"description": "The schema ID that added in the project", | ||
"type": "string" | ||
}, | ||
"zkPassSchemaLabel": { | ||
"title": "Schema Label", | ||
"description": "The schema label that added in the project", | ||
"type": "string" | ||
}, | ||
"did": { | ||
"title": "Verida Did", | ||
"description": "Decentralized Identifier on the Verida network", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"taskId", | ||
"allocatorAddress", | ||
"allocatorSignature", | ||
"uHash", | ||
"validatorAddress", | ||
"validatorSignature", | ||
"zkPassSchemaId", | ||
"zkPassSchemaLabel", | ||
"did" | ||
] | ||
} | ||
] | ||
} |