pub fn record_hash<T: Serialize>(record: &T) -> Result<String>
The hash of a record: SHA-256 over its canonical JSON, hex-encoded.
SHA-256
Returns Error::Json if the record cannot be serialized.
Error::Json