Namespace: utils
client.utils
Functions
createSignatureChallenge
▸ createSignatureChallenge(payload
): string
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
Returns
string
Defined in
packages/klayr-decentralized-identifier/src/client/utils/index.ts:5
createTransactionSignature
▸ createTransactionSignature(payload
, privateKey
): Buffer
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
privateKey | Buffer |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/src/client/utils/index.ts:10
validateParams
▸ validateParams(command
, param
, chainspace
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
command | DIDCommands |
param | TransactionPayload <any > |
chainspace | string |
Returns
Promise
<boolean
>
Defined in
packages/klayr-decentralized-identifier/src/client/utils/validator.ts:18
verifyTransactionSignature
▸ verifyTransactionSignature(payload
, signature
, publicKey
): boolean
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
signature | Buffer |
publicKey | Buffer |
Returns
boolean
Defined in
packages/klayr-decentralized-identifier/src/client/utils/index.ts:15