//! 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.
use Value;
use ;
use crateError;