Skip to main content

Module jcs

Module jcs 

Source
Expand description

RFC 8785 JSON Canonicalization Scheme + SHA-256 hash.

NOTE: serde_jcs preserves u64 integers; the TS reference uses ECMAScript JSON semantics (all numbers are f64). agent-pay’s envelope payloads use price_msat as a STRING and other large numbers are strings too, so we do not need the normalize_numbers walker here.

Functions§

canonical_json
jcs_hash