{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.org/schemas/wd-02/profiles/amoy-pilot-0.1/proof-core.schema.json",
  "title": "XCIM Experimental Amoy Acyclic Proof Core",
  "description": "Prepared core only, not a completed proof or current send authorization. Cross-object bindings and cryptography remain mandatory.",
  "type": "object", "additionalProperties": false,
  "required": ["receipt_id", "permission_id", "receipt", "receipt_event", "event_inclusion_proof", "state_proof"],
  "properties": {
    "receipt_id": { "type": "string", "pattern": "^urn:xcim:receipt:[A-Za-z0-9._~-]+$" },
    "permission_id": { "type": "string", "pattern": "^urn:xcim:permission:[A-Za-z0-9._~-]+$" },
    "receipt": { "$ref": "https://xcim.org/schemas/0.1/jws-envelope.schema.json" },
    "receipt_event": { "$ref": "https://xcim.org/schemas/0.1/transparency-event.schema.json" },
    "event_inclusion_proof": { "$ref": "https://xcim.org/schemas/0.1/event-inclusion-proof.schema.json" },
    "state_proof": {
      "type": "object", "additionalProperties": false,
      "required": ["batch_sequence", "tree_depth", "state_key", "presence", "state_value", "sibling_bitmap", "non_empty_siblings", "state_root", "this_update", "next_update"],
      "properties": {
        "batch_sequence": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
        "tree_depth": { "const": 256 },
        "state_key": { "$ref": "https://xcim.org/schemas/0.1/status-proof.schema.json#/$defs/hash" },
        "presence": { "const": true },
        "state_value": { "$ref": "https://xcim.org/schemas/0.1/state-value.schema.json" },
        "sibling_bitmap": { "$ref": "https://xcim.org/schemas/0.1/status-proof.schema.json#/properties/sibling_bitmap" },
        "non_empty_siblings": { "$ref": "https://xcim.org/schemas/0.1/status-proof.schema.json#/properties/non_empty_siblings" },
        "state_root": { "$ref": "https://xcim.org/schemas/0.1/status-proof.schema.json#/$defs/hash" },
        "this_update": { "$ref": "https://xcim.org/schemas/wd-02/0.2/identity-evidence.schema.json#/$defs/utc" },
        "next_update": { "$ref": "https://xcim.org/schemas/wd-02/0.2/identity-evidence.schema.json#/$defs/utc" }
      }
    }
  }
}
