pub fn parse_document_bytes(bytes: &[u8]) -> Result<Document, String>Expand description
Decode, validate, and verify a DID document from raw DAG-CBOR bytes.
The single trusted entry point for turning stored bytes into a validated,
proof-verified Document: decodes DAG-CBOR, runs Document::validate,
and verifies the proof with Document::verify. Resolution backends can
reuse this to inherit the same guarantees.