pub fn digest_json<T: Serialize>( domain: &str, value: &T, ) -> Result<String, Error>
JSON-serialize value then digest the bytes under domain.
value
domain