Class: DidEndpoint
Hierarchy
BaseEndpoint
↳
DidEndpoint
Implements
Constructors
constructor
• new DidEndpoint(stores
, offchainStores
)
Parameters
Name | Type |
---|---|
stores | NamedRegistry |
offchainStores | NamedRegistry |
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
Name | Type |
---|---|
ctx | ModuleEndpointContext |
Returns
Promise
<AuthorizationResult
[]>
Implementation of
Defined in
packages/klayr-did-module/dist/endpoint.d.ts:7
getConfig
▸ getConfig(_ctx
): Promise
<DidModuleConfig
>
Parameters
Name | Type |
---|---|
_ctx | ModuleEndpointContext |
Returns
Promise
<DidModuleConfig
>
Implementation of
Defined in
packages/klayr-did-module/dist/endpoint.d.ts:10
getNonce
▸ getNonce(ctx
): Promise
<{ nonce
: string
}>
Parameters
Name | Type |
---|---|
ctx | ModuleEndpointContext |
Returns
Promise
<{ nonce
: string
}>
Implementation of
Defined in
packages/klayr-did-module/dist/endpoint.d.ts:9
init
▸ init(config
): void
Parameters
Name | Type |
---|---|
config | DidModuleConfig |
Returns
void
Implementation of
Defined in
packages/klayr-did-module/dist/endpoint.d.ts:6
read
▸ read(ctx
): Promise
<undefined
| DidDocument
>
Parameters
Name | Type |
---|---|
ctx | ModuleEndpointContext |
Returns
Promise
<undefined
| DidDocument
>
Implementation of
Defined in
packages/klayr-did-module/dist/endpoint.d.ts:8