Skip to main content

canonical_args

Function canonical_args 

Source
pub fn canonical_args(args: &[InteropValue]) -> Result<Vec<u8>, CachekitError>
Expand description

Encode the flat argument array to canonical MessagePack (argument profile: number canonicalization applies, so integral floats collapse to ints).

This is the exact byte string hashed by interop_key; exposed so the canonical bytes themselves can be verified against the protocol vectors.

ยงErrors

CachekitError::Serialization for out-of-model values (see interop_key).