pub fn canonical_json(value: &Value) -> Vec<u8> ⓘExpand description
Matrix canonical JSON: keys sorted, no whitespace. serde_json keeps
object keys in a sorted map (the preserve_order feature is not enabled),
and the output is compact UTF-8, which is what the signing rules need for
the integer/string/array/object values used here.