Skip to main content

Crate codec_jcs

Crate codec_jcs 

Source
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).