Skip to main content

canonical_json_bytes

Function canonical_json_bytes 

Source
pub fn canonical_json_bytes<T: Serialize>(
    value: &T,
) -> Result<Vec<u8>, CanonicalError>
Expand description

Serialises any Serialize value to deterministic compact JSON with lexicographically sorted object keys at every nesting depth.