resolve
Resolves a did:jwk
URI into a DidResolutionResult.
This method parses the provided did
URI to extract the Jwk information. It validates the method of the DID URI and then attempts to parse the Jwk from the URI. If successful, it constructs a DidDocument with the resolved Jwk, generating a DidResolutionResult.
The method ensures that the DID URI adheres to the did:jwk
method specification and handles exceptions that may arise during the parsing and resolution process.
Return
DidResolutionResult containing the resolved DID document. If the DID URI is invalid, not conforming to the did:jwk
method, or if any other error occurs during the resolution process, it returns an invalid DidResolutionResult.
Parameters
did
did URI to parse