Skip to main content

Module jcs

Module jcs 

Source
Expand description

RFC 8785 JSON Canonicalization Scheme (JCS).

Separate from canonical.rs — this implements the full JCS spec including number canonicalization rules that the existing module explicitly excludes. The two canonical forms serve different contracts.

Functions§

jcs_sha256
Compute SHA-256 of the canonical JSON bytes of a value.
to_jcs
Serialize a value to RFC 8785 canonical JSON bytes.
to_jcs_for
Serialize any Serialize type to RFC 8785 canonical JSON bytes.