{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/riskrouter-eu/json-schema/riskrouter-eu-signer-key-registration-schema.json",
  "title": "SignerKeyRegistration",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/riskrouter-eu-openapi.json#/components/schemas/SignerKeyRegistration",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "registered": {
      "type": "boolean",
      "description": "true when this call stored the key; false when it was already yours."
    },
    "key_id": {
      "type": "string",
      "pattern": "^[0-9a-f]{16}$"
    },
    "public_key": {
      "$ref": "#/$defs/SignerPublicKey"
    },
    "registered_at": {
      "type": "string"
    },
    "lookup": {
      "type": "string"
    },
    "publish": {
      "type": "string"
    },
    "sign": {
      "type": "string"
    }
  },
  "$defs": {
    "SignerPublicKey": {
      "type": "object",
      "required": [
        "kty",
        "crv",
        "x",
        "y"
      ],
      "additionalProperties": false,
      "properties": {
        "kty": {
          "const": "EC"
        },
        "crv": {
          "const": "P-256"
        },
        "x": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{43}$"
        },
        "y": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_-]{43}$"
        }
      },
      "description": "A P-256 public key in JWK form. Its id is the first 16 hex characters of SHA-256 over the JSON array [x, y]."
    }
  }
}