Package web5.sdk.dids.methods.jwk
Class DidJwk
-
- All Implemented Interfaces:
public final class DidJwkProvides functionality for creating and resolving "did:jwk" method Decentralized Identifiers (DIDs).
The "did:jwk" DID method derives a DID directly from a public key using the JSON Web Key (JWK) format. This allows the DID to be self-verifiable, without relying on a ledger or blockchain.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDidJwk.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static DidJwk.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description DidJwk()
-
Method Summary
Modifier and Type Method Description final static ResolutionResultresolve(String uri)Resolves a "did:jwk" DID into a ResolutionResult. -
-
Method Detail
-
resolve
final static ResolutionResult resolve(String uri)
Resolves a "did:jwk" DID into a ResolutionResult.
This method resolves a DID URI by decoding the method-specific identifier (the public key) and constructing a DID document based on the JWK format.
- Parameters:
uri- The DID URI to resolve.- Returns:
A ResolutionResult containing the DID document and related metadata.
-
-
-
-