Skip to main content

content_digest

Function content_digest 

Source
pub fn content_digest(json: &str) -> Result<String, GameplayDataError>
Expand description

Compute the deterministic SHA-256 identity of a gameplay dataset.

The self-referential identity.digest field is excluded before the JSON value is serialized with sorted object keys. Whitespace and source key ordering therefore do not change the dataset identity.