verify_presentation
Validate verifiable presentations by checking their signature, holder authenticity, and all included credentials. Ensures the integrity and validity of multi-credential presentations.
Instructions
Verify a verifiable presentation containing multiple credentials. Validates presentation signature, holder verification, and all included credentials.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
presentation | Yes | The verifiable presentation to verify |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {},
"properties": {
"presentation": {
"additionalProperties": true,
"description": "The verifiable presentation to verify",
"properties": {
"@context": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"holder": {
"type": "string"
},
"id": {
"type": "string"
},
"proof": {
"anyOf": [
{
"additionalProperties": true,
"properties": {},
"type": "object"
},
{
"items": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"type": "array"
}
]
},
"type": {
"items": {
"type": "string"
},
"type": "array"
},
"verifiableCredential": {
"anyOf": [
{
"items": {
"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"
},
"type": "array"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
}
},
"required": [
"type",
"verifiableCredential"
],
"type": "object"
}
},
"required": [
"presentation"
],
"type": "object"
}