Skip to main content

Namespace: utils

did.client.utils

Functions

createSignatureChallenge

createSignatureChallenge(payload): string

Parameters

NameType
payloadPayloadWithSignature

Returns

string

Defined in

packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:3


createTransactionSignature

createTransactionSignature(payload, privateKey): Buffer

Parameters

NameType
payloadPayloadWithSignature
privateKeyBuffer

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:4


validateParams

validateParams(command, param, chainspace): Promise<boolean>

Parameters

NameType
commandDIDCommands
paramTransactionPayload<any>
chainspacestring

Returns

Promise<boolean>

Defined in

packages/klayr-decentralized-identifier/dist/client/utils/validator.d.ts:2


verifyTransactionSignature

verifyTransactionSignature(payload, signature, publicKey): boolean

Parameters

NameType
payloadPayloadWithSignature
signatureBuffer
publicKeyBuffer

Returns

boolean

Defined in

packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:5