pub fn content_hash(object: &CanonicalJsonObject) -> Result<String, Error>
Creates a content hash for an event.
Returns the hash as a Base64-encoded string, using the standard character set, without padding.
The content hash of an event covers the complete event including the unredacted contents. It is used during federation and is described in the Matrix server-server specification.
object: A JSON object to generate a content hash for.
Returns an error if the event is too large.