Skip to main content

Interface: DidMethod

Methods

addControllers

addControllers(methodContext, senderPublicKey, target, controllers, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
controllersstring[]
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:39


addKeys

addKeys(methodContext, senderPublicKey, target, keys, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
keysKeys[]
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:23


addServiceEndpoint

addServiceEndpoint(methodContext, senderPublicKey, target, endpoint, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
endpointObject
endpoint.idstring
endpoint.serviceEndpointstring
endpoint.typestring
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:55


authorize

authorize(methodContext, did, factors): Promise<AuthorizationResult[]>

Parameters

NameType
methodContextMethodContext
didstring
factorsAuthorizationFactors

Returns

Promise<AuthorizationResult[]>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:15


create

create(methodContext, senderPublicKey, did, controllers, keys): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
didstring
controllersstring[]
keysKeys[]

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:16


deactivate

deactivate(methodContext, senderPublicKey, target, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:75


getConfig

getConfig(): DidModuleConfig

Returns

DidModuleConfig

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:11


getNonce

getNonce(methodContext, did): Promise<{ nonce: string }>

Parameters

NameType
methodContextMethodContext
didstring

Returns

Promise<{ nonce: string }>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:13


incrementNonce

incrementNonce(methodContext, did): Promise<void>

Parameters

NameType
methodContextMethodContext
didstring

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:14


init

init(config): void

Parameters

NameType
configDidModuleConfig

Returns

void

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:10


read

read(methodContext, did): Promise<DidDocument>

Parameters

NameType
methodContextMethodContext
didstring

Returns

Promise<DidDocument>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:12


removeControllers

removeControllers(methodContext, senderPublicKey, target, controllers, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
controllersstring[]
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:47


removeKeys

removeKeys(methodContext, senderPublicKey, target, publicKeys, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
publicKeysBuffer[]
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:31


removeServiceEndpoint

removeServiceEndpoint(methodContext, senderPublicKey, target, endpointId, signer, signature?): Promise<void>

Parameters

NameType
methodContextMethodContext
senderPublicKeyBuffer
targetstring
endpointIdstring
signerstring
signature?Buffer

Returns

Promise<void>

Defined in

packages/klayr-decentralized-identifier/src/types/method.ts:67