{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://schema.twindev.org/w3c-did/DidPresentationVerification",
    "title": "DidPresentationVerification",
    "description": "Interface describing the result of checking verifiable presentation.",
    "type": "object",
    "properties": {
        "isVerified": {
            "type": "boolean",
            "description": "Is the whole presentation verified."
        },
        "holder": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "string",
                    "description": "The id of the holder."
                },
                "isVerified": {
                    "type": "boolean",
                    "description": "Is the holder verified."
                },
                "document": {
                    "$ref": "https://schema.twindev.org/w3c-did/DidDocument",
                    "description": "The DID document for the holder."
                }
            },
            "required": [
                "id",
                "isVerified"
            ],
            "description": "Who was the holder."
        }
    },
    "required": [
        "isVerified"
    ]
}
