derive_credential
Generate privacy-preserving credentials using JSON-LD frames for selective disclosure. Supports credential chaining and zero-knowledge proofs to enhance data privacy and security.
Instructions
Derive credentials with selective disclosure using JSON-LD frames. Supports credential chaining and zero-knowledge proofs for privacy-preserving presentations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
frame | Yes | JSON-LD frame for selective disclosure | |
nonce | No | Nonce for derived proof | |
originalCredential | Yes | W3C Verifiable Credential |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {},
"properties": {
"frame": {
"additionalProperties": true,
"description": "JSON-LD frame for selective disclosure",
"properties": {},
"type": "object"
},
"nonce": {
"description": "Nonce for derived proof",
"type": "string"
},
"originalCredential": {
"additionalProperties": true,
"description": "W3C Verifiable Credential",
"properties": {
"@context": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"credentialStatus": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"credentialSubject": {
"anyOf": [
{
"additionalProperties": true,
"properties": {},
"type": "object"
},
{
"items": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"type": "array"
}
]
},
"expirationDate": {
"type": "string"
},
"id": {
"type": "string"
},
"issuanceDate": {
"type": "string"
},
"issuer": {
"anyOf": [
{
"type": "string"
},
{
"additionalProperties": true,
"properties": {},
"type": "object"
}
]
},
"proof": {
"anyOf": [
{
"additionalProperties": true,
"properties": {},
"type": "object"
},
{
"items": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"type": "array"
}
]
},
"type": {
"items": {
"type": "string"
},
"type": "array"
},
"validFrom": {
"type": "string"
},
"validUntil": {
"type": "string"
}
},
"required": [
"type",
"issuer",
"credentialSubject"
],
"type": "object"
}
},
"required": [
"originalCredential",
"frame"
],
"type": "object"
}