{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:junexis:schema:trust-store-signature:0.1",
  "title": "Podpis magazynu zaufania platformy Junexis 0.1",
  "description": "Podpis klucza głównego nad obsługiwaną wersją dokumentu junexis.trust-store/0.1 albo 0.2. Nie zawiera prywatnego materiału ani treści polityki — wyłącznie jej odcisk SHA-256.",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "algorithm", "rootKeyId", "authority", "revision", "trustStoreSha256", "signature"],
  "properties": {
    "schemaVersion": { "const": "junexis.trust-store-signature/0.1" },
    "algorithm": { "const": "ecdsa-p256-sha256-der" },
    "rootKeyId": { "$ref": "#/$defs/keyId" },
    "authority": { "const": "junexis-project" },
    "revision": { "type": "integer", "minimum": 1 },
    "trustStoreSha256": { "$ref": "#/$defs/sha256" },
    "signature": { "type": "string", "minLength": 1, "contentEncoding": "base64" }
  },
  "$defs": {
    "keyId": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
    "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}(?![\\s\\S])" }
  }
}
