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