Skip to main content

resolve_did_key

Function resolve_did_key 

Source
pub fn resolve_did_key(did_url: &str) -> Result<PublicKey, Error>
Expand description

The key a did:key DID URL names: the DID’s own key, when the fragment is absent or is the DID’s multibase, as the method defines its one verification method.

§Errors

When did_url is not a did:key DID URL in base58btc, names another verification method, or carries a key type the integrity module cannot verify with.