Skip to main content

digest_of

Function digest_of 

Source
pub fn digest_of<T>(value: &T) -> Result<String, A2aError>
where T: Serialize,
Available on crate feature audit only.
Expand description

"sha256:<hex>" over the canonical JSON of any serializable value.

ยงErrors

Returns an error when the value cannot be serialized or canonicalized.