Skip to main content

verify

Function verify 

Source
pub async fn verify(
    document: &Value,
    resolver: Option<&dyn DidResolver>,
) -> Result<ApUri, PortableError>
Expand description

Verify a portable document: its id is an ap URI, a proof by the id’s DID verifies, and an actor lists at least one gateway and nothing else. Returns the id.

§Errors

When any of that does not hold.