pub fn did_from_origin(url: &Url) -> Result<Did, WebError>Available on crate feature
did-web and (crate features did-jwk or did-key or did-web) only.Expand description
The did:web of the origin of url: as did_from_url, but the URL must have no path.
ยงErrors
WebError::InvalidUrl when the URL has a path, or breaks a rule of did_from_url.