Skip to main content

Class: DidEndpoint

Hierarchy

  • BaseEndpoint

    DidEndpoint

Implements

  • DidEndpoint

Constructors

constructor

new DidEndpoint(stores, offchainStores)

Parameters

NameType
storesNamedRegistry
offchainStoresNamedRegistry

Inherited from

BaseEndpoint.constructor

Defined in

node_modules/klayr-framework/dist-node/modules/base_endpoint.d.ts:6

Properties

autoCreateAddressDID

Private autoCreateAddressDID: boolean = false

Defined in

packages/klayr-did-module/src/endpoint.ts:17


chainspace

Private chainspace: string = ''

Defined in

packages/klayr-did-module/src/endpoint.ts:16


offchainStores

Protected offchainStores: NamedRegistry

Inherited from

BaseEndpoint.offchainStores

Defined in

node_modules/klayr-framework/dist-node/modules/base_endpoint.d.ts:4


stores

Protected stores: NamedRegistry

Inherited from

BaseEndpoint.stores

Defined in

node_modules/klayr-framework/dist-node/modules/base_endpoint.d.ts:3

Methods

authorize

authorize(ctx): Promise<AuthorizationResult[]>

Parameters

NameType
ctxModuleEndpointContext

Returns

Promise<AuthorizationResult[]>

Implementation of

DidEndpointInterface.authorize

Defined in

packages/klayr-did-module/src/endpoint.ts:24


getConfig

getConfig(_ctx): Promise<DidModuleConfig>

Parameters

NameType
_ctxModuleEndpointContext

Returns

Promise<DidModuleConfig>

Implementation of

DidEndpointInterface.getConfig

Defined in

packages/klayr-did-module/src/endpoint.ts:90


getNonce

getNonce(ctx): Promise<{ nonce: string }>

Parameters

NameType
ctxModuleEndpointContext

Returns

Promise<{ nonce: string }>

Implementation of

DidEndpointInterface.getNonce

Defined in

packages/klayr-did-module/src/endpoint.ts:80


init

init(config): void

Parameters

NameType
configDidModuleConfig

Returns

void

Implementation of

DidEndpointInterface.init

Defined in

packages/klayr-did-module/src/endpoint.ts:19


read

read(ctx): Promise<undefined | DidDocument>

Parameters

NameType
ctxModuleEndpointContext

Returns

Promise<undefined | DidDocument>

Implementation of

DidEndpointInterface.read

Defined in

packages/klayr-did-module/src/endpoint.ts:71