{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/nb01/schemas/receiver-policy.schema.json",
  "title": "NB01-F01 receiver-policy",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "artifact_version",
    "receiver_id",
    "node_id",
    "policy_epoch",
    "store_id",
    "accepted_bootstrap_commitment",
    "anchor_context_commitment",
    "bootstrap_epoch_floor",
    "admin_keys",
    "admin_threshold",
    "forbidden_issuer_thumbprints",
    "valid_until"
  ],
  "properties": {
    "artifact_version": {
      "const": "nb-01"
    },
    "receiver_id": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/id"
    },
    "node_id": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/id"
    },
    "policy_epoch": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/positive"
    },
    "store_id": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/id"
    },
    "accepted_bootstrap_commitment": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/hash"
    },
    "anchor_context_commitment": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/hash"
    },
    "bootstrap_epoch_floor": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/positive"
    },
    "admin_keys": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "items": {
        "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/pin"
      }
    },
    "admin_threshold": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "forbidden_issuer_thumbprints": {
      "type": "array",
      "minItems": 1,
      "maxItems": 16,
      "uniqueItems": true,
      "items": {
        "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/hash"
      }
    },
    "valid_until": {
      "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/positive"
    }
  }
}
