Namespace: utils
Functions
createSignatureChallenge
▸ createSignatureChallenge(payload
): string
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
Returns
string
Defined in
packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:3
createTransactionSignature
▸ createTransactionSignature(payload
, privateKey
): Buffer
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
privateKey | Buffer |
Returns
Buffer
Defined in
packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:4
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/dist/client/utils/validator.d.ts:2
verifyTransactionSignature
▸ verifyTransactionSignature(payload
, signature
, publicKey
): boolean
Parameters
Name | Type |
---|---|
payload | PayloadWithSignature |
signature | Buffer |
publicKey | Buffer |
Returns
boolean
Defined in
packages/klayr-decentralized-identifier/dist/client/utils/index.d.ts:5