Skip to main content

canonical_json_sha256

Function canonical_json_sha256 

Source
pub fn canonical_json_sha256<T: Serialize>(value: &T) -> Result<String, Error>
Expand description

SHA-256 of canonical_json_bytes, encoded as lowercase hexadecimal.

ยงErrors

Returns a JSON error when value cannot be represented as JSON.