Skip to main content

record_hash

Function record_hash 

Source
pub fn record_hash<T: Serialize>(record: &T) -> Result<String>
Expand description

The hash of a record: SHA-256 over its canonical JSON, hex-encoded.

§Errors

Returns Error::Json if the record cannot be serialized.