External module: "eosjs-numeric"

Index

Enumerations

Interfaces

Variables

Functions

Variables

Const privateKeyDataSize

privateKeyDataSize: 32 = 32


Const publicKeyDataSize

publicKeyDataSize: 33 = 33


Const signatureDataSize

signatureDataSize: 65 = 65

Functions

Const base58ToBinary

base58ToBinary(size: number, s: string): Uint8Array

Parameters:

Name Type Description
size number bignum size (bytes)
s string -

Returns: Uint8Array


Const base64ToBinary

base64ToBinary(s: string): Uint8Array

Parameters:

Name Type
s string

Returns: Uint8Array


Const binaryToBase58

binaryToBase58(bignum: Uint8Array, minDigits: number): string

Parameters:

Name Type Default Description
bignum Uint8Array - -
minDigits number 1 0-pad result to this many digits

Returns: string


Const binaryToDecimal

binaryToDecimal(bignum: Uint8Array, minDigits: number): string

Parameters:

Name Type Default Description
bignum Uint8Array - -
minDigits number 1 0-pad result to this many digits

Returns: string


Const convertLegacyPublicKey

convertLegacyPublicKey(s: string): string

Parameters:

Name Type
s string

Returns: string


Const convertLegacyPublicKeys

convertLegacyPublicKeys(keys: string[]): string[]

Parameters:

Name Type
keys string[]

Returns: string[]


Const decimalToBinary

decimalToBinary(size: number, s: string): Uint8Array

Parameters:

Name Type Description
size number bignum size (bytes)
s string -

Returns: Uint8Array


Const isNegative

isNegative(bignum: Uint8Array): boolean

Parameters:

Name Type
bignum Uint8Array

Returns: boolean


Const negate

negate(bignum: Uint8Array): void

Parameters:

Name Type
bignum Uint8Array

Returns: void


Const privateKeyToLegacyString

privateKeyToLegacyString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


Const privateKeyToString

privateKeyToString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


Const publicKeyToLegacyString

publicKeyToLegacyString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


Const publicKeyToString

publicKeyToString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


Const signatureToString

signatureToString(signature: Key): string

Parameters:

Name Type
signature Key

Returns: string


Const signedBinaryToDecimal

signedBinaryToDecimal(bignum: Uint8Array, minDigits: number): string

Parameters:

Name Type Default Description
bignum Uint8Array - -
minDigits number 1 0-pad result to this many digits

Returns: string


Const signedDecimalToBinary

signedDecimalToBinary(size: number, s: string): Uint8Array

Parameters:

Name Type Description
size number bignum size (bytes)
s string -

Returns: Uint8Array


Const stringToPrivateKey

stringToPrivateKey(s: string): Key

Parameters:

Name Type
s string

Returns: Key


Const stringToPublicKey

stringToPublicKey(s: string): Key

Parameters:

Name Type
s string

Returns: Key


Const stringToSignature

stringToSignature(s: string): Key

Parameters:

Name Type
s string

Returns: Key