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

base58ToBinary

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

Parameters:

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

Returns: Uint8Array


base64ToBinary

base64ToBinary(s: string): Uint8Array

Parameters:

Name Type
s string

Returns: Uint8Array


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


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


convertLegacyPublicKey

convertLegacyPublicKey(s: string): string

Parameters:

Name Type
s string

Returns: string


convertLegacyPublicKeys

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

Parameters:

Name Type
keys string[]

Returns: string[]


decimalToBinary

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

Parameters:

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

Returns: Uint8Array


isNegative

isNegative(bignum: Uint8Array): boolean

Parameters:

Name Type
bignum Uint8Array

Returns: boolean


negate

negate(bignum: Uint8Array): void

Parameters:

Name Type
bignum Uint8Array

Returns: void


privateKeyToString

privateKeyToString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


publicKeyToString

publicKeyToString(key: Key): string

Parameters:

Name Type
key Key

Returns: string


signatureToString

signatureToString(signature: Key): string

Parameters:

Name Type
signature Key

Returns: string


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


signedDecimalToBinary

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

Parameters:

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

Returns: Uint8Array


stringToPrivateKey

stringToPrivateKey(s: string): Key

Parameters:

Name Type
s string

Returns: Key


stringToPublicKey

stringToPublicKey(s: string): Key

Parameters:

Name Type
s string

Returns: Key


stringToSignature

stringToSignature(s: string): Key

Parameters:

Name Type
s string

Returns: Key