pub fn max_subtree_leaves(key_count: u32) -> u32Expand description
The largest real-leaf count any selected subtree can have for key_count.
A full fixed-depth block of next_power_of_two(ceil(sqrt(key_count))) leaves.
Bounds a single round-1 request’s read/hash work (≤ 1024 leaves at the
MAX_COMMITMENT_KEY_COUNT cap). Used both to size selection and as a
pre-read defense-in-depth ceiling in subtree_plan.