pub fn get_doc_schema(doc: &[u8]) -> Result<Option<Hash>>
Expand description

Attempt to get the schema for a raw document. Fails if the raw byte slice doesn’t conform to the right format, or if the hash is invalid.