{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskrouter-eu/json-schema/riskrouter-eu-attestation-schema.json",
  "title": "Attestation",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskrouter-eu-openapi.json#/components/schemas/Attestation",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "attestation": {
      "type": "object",
      "properties": {
        "as_of": {
          "type": "string",
          "format": "date-time"
        },
        "entries": {
          "type": "integer"
        },
        "genesis": {
          "type": "string"
        },
        "algorithm": {
          "type": "string",
          "const": "sha256"
        },
        "canonical": {
          "type": "string"
        },
        "head_hash": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        }
      }
    },
    "signature": {
      "type": "object",
      "properties": {
        "algorithm": {
          "type": "string",
          "const": "ECDSA_P256_SHA256"
        },
        "key_id": {
          "type": "string"
        },
        "signed_payload": {
          "type": "string"
        },
        "signature": {
          "type": "string",
          "contentEncoding": "base64"
        }
      }
    },
    "signature_unavailable": {
      "type": "string",
      "description": "Present instead of `signature` when no signing key is bound. Never a fabricated signature."
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}