Skip to main content

Namespace: utils

client.utils

Functions

createSignatureChallenge

createSignatureChallenge(payload): string

Parameters

NameType
payloadPayloadWithSignature

Returns

string

Defined in

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


createTransactionSignature

createTransactionSignature(payload, privateKey): Buffer

Parameters

NameType
payloadPayloadWithSignature
privateKeyBuffer

Returns

Buffer

Defined in

packages/klayr-decentralized-identifier/src/client/utils/index.ts:10


validateParams

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

Parameters

NameType
commandDIDCommands
paramTransactionPayload<any>
chainspacestring

Returns

Promise<boolean>

Defined in

packages/klayr-decentralized-identifier/src/client/utils/validator.ts:18


verifyTransactionSignature

verifyTransactionSignature(payload, signature, publicKey): boolean

Parameters

NameType
payloadPayloadWithSignature
signatureBuffer
publicKeyBuffer

Returns

boolean

Defined in

packages/klayr-decentralized-identifier/src/client/utils/index.ts:15