Skip to main content

Class: DidEndpoint

Hierarchy

  • BaseEndpoint

    DidEndpoint

Implements

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: any

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:5


chainspace

Private chainspace: any

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:4


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

DidEndpoint.authorize

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:7


getConfig

getConfig(_ctx): Promise<DidModuleConfig>

Parameters

NameType
_ctxModuleEndpointContext

Returns

Promise<DidModuleConfig>

Implementation of

DidEndpoint.getConfig

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:10


getNonce

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

Parameters

NameType
ctxModuleEndpointContext

Returns

Promise<{ nonce: string }>

Implementation of

DidEndpoint.getNonce

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:9


init

init(config): void

Parameters

NameType
configDidModuleConfig

Returns

void

Implementation of

DidEndpoint.init

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:6


read

read(ctx): Promise<undefined | DidDocument>

Parameters

NameType
ctxModuleEndpointContext

Returns

Promise<undefined | DidDocument>

Implementation of

DidEndpoint.read

Defined in

packages/klayr-did-module/dist/endpoint.d.ts:8