{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://alxprotocol.com/protocol/1/extensions/merkle/schemas/merkle-proof.schema.json",
  "title": "ALX Merkle Proof",
  "description": "Merkle inclusion proof binding a Block hash (leaf) to an off-chain Merkle root. Does not affect Block identity or blockHash computation.",
  "$comment": "This schema validates proof shape only. It does not verify proof correctness.",
  "type": "object",
  "properties": {
    "root": {
      "$ref": "../../../schemas/defs.schema.json#/$defs/hash",
      "description": "Root hash of the Merkle tree."
    },
    "leaf": {
      "$ref": "../../../schemas/defs.schema.json#/$defs/hash",
      "description": "blockHash of the Block whose inclusion in the tree is being proved."
    },
    "proof": {
      "type": "array",
      "items": { "$ref": "../../../schemas/defs.schema.json#/$defs/hash" },
      "description": "Ordered sibling hashes from leaf to root."
    }
  },
  "required": ["root", "leaf", "proof"],
  "additionalProperties": false
}
