{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskrouter-eu/json-schema/riskrouter-eu-evidence-entry-schema.json",
  "title": "EvidenceEntry",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskrouter-eu-openapi.json#/components/schemas/EvidenceEntry",
  "type": "object",
  "required": [
    "leaf_index",
    "created_at",
    "distributor_id",
    "kind",
    "record_digest",
    "leaf_hash"
  ],
  "properties": {
    "leaf_index": {
      "type": "integer",
      "minimum": 0
    },
    "created_at": {
      "type": "string",
      "description": "UTC, YYYY-MM-DDTHH:MM:SS.ffffffZ, exactly as in the leaf string."
    },
    "distributor_id": {
      "type": "string",
      "format": "uuid"
    },
    "kind": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9.-]{0,39}$"
    },
    "record_digest": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "leaf_hash": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "description": "SHA-256(0x00 || leaf string); the leaf string is the v2 or the v3 form according to leaf_version. See /spec."
    },
    "leaf_version": {
      "type": "integer",
      "enum": [
        2,
        3
      ],
      "description": "2: unsigned leaf. 3: the entry also carries signer_key_id, claimed_at and client_signature, the distributor's own signature over its claim."
    },
    "signer_key_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{16}$"
    },
    "claimed_at": {
      "type": "string"
    },
    "client_signature": {
      "type": "string"
    }
  }
}