Module web

Module web 

Source
Expand description

Web DID client for did:web resolution.

Resolves did:web identifiers by converting them to HTTPS URLs and fetching DID documents from well-known locations on web servers.

  • query_hostname(): Direct document retrieval from hostname well-known endpoints

§URL Conversion

Transforms DIDs like did:web:example.com:path:subpath into HTTPS URLs following the did:web specification for well-known document locations.

Functions§

did_web_to_url
Converts a did:web DID to its corresponding HTTPS URL. Transforms DID format to the expected well-known document location.
query
Queries a did:web DID document from its hosting location. Resolves the DID to HTTPS URL and fetches the JSON document.
query_hostname
Queries a DID document directly from a hostname’s well-known location. Fetches from https://{hostname}/.well-known/did.json