Interface: DidMethod
did.DidMethod
Implemented by
Methods
addControllers
▸ addControllers(methodContext
, senderPublicKey
, target
, controllers
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
controllers | string [] |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:21
addKeys
▸ addKeys(methodContext
, senderPublicKey
, target
, keys
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
keys | Keys [] |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:19
addServiceEndpoint
▸ addServiceEndpoint(methodContext
, senderPublicKey
, target
, endpoint
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
endpoint | Object |
endpoint.id | string |
endpoint.serviceEndpoint | string |
endpoint.type | string |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:23
authorize
▸ authorize(methodContext
, did
, factors
): Promise
<AuthorizationResult
[]>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
did | string |
factors | AuthorizationFactors |
Returns
Promise
<AuthorizationResult
[]>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:17
create
▸ create(methodContext
, senderPublicKey
, did
, controllers
, keys
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
did | string |
controllers | string [] |
keys | Keys [] |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:18
deactivate
▸ deactivate(methodContext
, senderPublicKey
, target
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:29
getConfig
▸ getConfig(): DidModuleConfig
Returns
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:13
getNonce
▸ getNonce(methodContext
, did
): Promise
<{ nonce
: string
}>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
did | string |
Returns
Promise
<{ nonce
: string
}>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:15
incrementNonce
▸ incrementNonce(methodContext
, did
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
did | string |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:16
init
▸ init(config
): void
Parameters
Name | Type |
---|---|
config | DidModuleConfig |
Returns
void
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:12
read
▸ read(methodContext
, did
): Promise
<DidDocument
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
did | string |
Returns
Promise
<DidDocument
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:14
removeControllers
▸ removeControllers(methodContext
, senderPublicKey
, target
, controllers
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
controllers | string [] |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:22
removeKeys
▸ removeKeys(methodContext
, senderPublicKey
, target
, publicKeys
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
publicKeys | Buffer [] |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:20
removeServiceEndpoint
▸ removeServiceEndpoint(methodContext
, senderPublicKey
, target
, endpointId
, signer
, signature?
): Promise
<void
>
Parameters
Name | Type |
---|---|
methodContext | MethodContext |
senderPublicKey | Buffer |
target | string |
endpointId | string |
signer | string |
signature? | Buffer |
Returns
Promise
<void
>
Defined in
packages/klayr-decentralized-identifier/dist/types/method.d.ts:28