Skip to main content

MAX_COMMITMENT_SIDECAR_BYTES

Constant MAX_COMMITMENT_SIDECAR_BYTES 

Source
pub const MAX_COMMITMENT_SIDECAR_BYTES: usize = _; // 8_192usize
Expand description

Maximum serialized size of a single commitment sidecar blob (ADR-0004).

A well-formed StorageCommitment is ~5.3 KiB (root 32 + key_count 4 + peer_id 32 + pubkey 1952 + signature 3293 + serde framing). 8 KiB leaves generous headroom while bounding the deserialize/verify work a malicious quote responder or client can force on the hot verification path. A sidecar larger than this is rejected before any parse attempt.