pub fn validate_note_codec_component(
component: &[u8],
max_bytes: usize,
) -> Result<()>Expand description
Applies the whole note codec component policy: the byte cap, the Wasm feature set, and the structural limits.
max_bytes is the caller’s byte budget. The producer passes
MAX_NOTE_CODEC_COMPONENT_BYTES, and a consumer
passes the cap in its own limits.