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, encoded as lowercase hexadecimal.

ยงErrors

Returns an error when the value cannot be represented as JSON.