Skip to content

Latest commit

 

History

History
175 lines (110 loc) · 3.75 KB

modules.md

File metadata and controls

175 lines (110 loc) · 3.75 KB

platrust-wallet-js-sdk / Exports

platrust-wallet-js-sdk

Table of contents

Enumerations

Classes

Interfaces

Type Aliases

Functions

Type Aliases

NumberLike

Ƭ NumberLike: number | string

number like type

Defined in

utils/numberLike.ts:7

Functions

decodeSignature

decodeSignature(packedSignature): Object

Parameters

Name Type
packedSignature string

Returns

Object

Name Type
aggregator string
signature string
signatureMode BigNumber
validAfter BigNumber
validUntil BigNumber
validationData BigNumber

Defined in

utils/signatures.ts:117


encodeSignature

encodeSignature(signatureMode, signature, validAfter?, validUntil?, aggregator?): string

Static

Parameters

Name Type Default value
signatureMode SignatureMode undefined
signature string undefined
validAfter? number 0
validUntil? number 0
aggregator? string AddressZero

Returns

string

Defined in

utils/signatures.ts:57


packSignatureHash

packSignatureHash(hash, signatureMode?, validAfter?, validUntil?, aggregator?): string

Parameters

Name Type Default value
hash string undefined
signatureMode SignatureMode SignatureMode.owner
validAfter? number 0
validUntil? number 0
aggregator? string AddressZero

Returns

string

Defined in

utils/signatures.ts:27


recoverAddress

recoverAddress(msg, signature): string

Parameters

Name Type
msg string
signature string

Returns

string

Defined in

utils/personalSign.ts:13


signMessage

signMessage(msg, privateKey): string

Parameters

Name Type
msg string
privateKey string

Returns

string

Defined in

utils/personalSign.ts:4