pub fn canonical_json_sha256<T: Serialize>(value: &T) -> Result<String, Error>
SHA-256 of canonical JSON, encoded as lowercase hexadecimal.
Returns an error when the value cannot be represented as JSON.