Expand description
RFC 8785 JSON Canonicalization Scheme.
Produces the unique canonical byte string for a JSON value so that a signature computed over the output verifies across independent implementations. Correctness of two subtle areas — object member ordering by UTF-16 code unit and ECMAScript-conformant number serialization — is what makes that cross-stack guarantee hold; both are implemented to the RFC and covered by conformance tests.
Enums§
- JcsError
- Error returned when JSON canonicalization (JCS) fails.
Constants§
- MAX_
NESTING_ DEPTH - Maximum array/object nesting depth accepted by
canonicalize_json.
Functions§
- canonicalize_
json - Canonicalize a JSON value according to RFC 8785 (JSON Canonicalization Scheme).