Skip to main content

parse_document

Function parse_document 

Source
pub fn parse_document(
    hostname: &str,
    url: &str,
    body: &str,
) -> Result<DidDocument, ResolveError>
Expand description

Parses body as hostname’s DID document, checking its id against what was asked for.