Skip to main content

MAX_COMMITMENT_KEY_COUNT

Constant MAX_COMMITMENT_KEY_COUNT 

Source
pub const MAX_COMMITMENT_KEY_COUNT: u32 = 1_000_000;
Expand description

Maximum number of keys a single commitment may cover.

Bounds the Merkle path depth and responder-side tree memory. A node storing more keys than this would need to split its claim. The client rejects any quote whose committed_key_count exceeds this before paying, exactly as the node does.