{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://trh.wtf/schemas/trh-signature.schema.json",
  "title": "TRH Ed25519 Signature",
  "type": "object",
  "additionalProperties": false,
  "required": ["algorithm", "key_id", "public_key", "signature", "signed_field"],
  "properties": {
    "algorithm": { "const": "Ed25519" },
    "key_id": { "type": "string", "pattern": "^trh-ed25519-[a-z0-9-]+$" },
    "public_key": { "type": "string", "pattern": "^[A-Za-z0-9+/]{43}=$" },
    "signature": { "type": "string", "pattern": "^[A-Za-z0-9+/]{86}==$" },
    "signed_field": { "const": "artifact_sha256" }
  }
}
