Skip to main content

checksum

Function checksum 

Source
pub fn checksum(payload: &Value) -> String
Expand description

sha256 over canonical JSON excluding the checksum field.

The canonical encoding is byte-identical to Python’s json.dumps(sort_keys=True, separators=(",", ":")) — see super::canonical::canonical_json for the float/string rules.