DIDResolverPlugin.getDIDComponentById() method
Dereferences a DID URL fragment and returns the corresponding DID document entry.
Signature:
getDIDComponentById({ didDocument, didUrl, section, }: {
didDocument: DIDDocument;
didUrl: string;
section?: DIDDocumentSection;
}): Promise<VerificationMethod | ServiceEndpoint>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| { didDocument, didUrl, section, } | { didDocument: DIDDocument; didUrl: string; section?: DIDDocumentSection; } |
Returns:
Promise<VerificationMethod | ServiceEndpoint>
a Promise containing the or