Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Utils

Index

Methods

Static formatToReadiblePrice

  • formatToReadiblePrice(dctAmount: number): string
  • Change price amount from blockchain format to real and readable formatted string.

    Example: Amount price from blockchain is 1, formatted price 0.00000001 DCT

    Parameters

    • dctAmount: number

    Returns string

Static generateKeys

  • Generates private and public key from given brain key.

    Return array of keys in form [privateKey: KeyPrivate, publicKey: KeyPublic]

    Parameters

    • fromBrainKey: string

    Returns (KeyPrivate | KeyPublic)[]

    [privateKey: KeyPrivate, publicKey: KeyPublic]

Static getPublicKey

Static privateKeyFromWif

  • Create KeyPrivate object from WIF format of private key.

    Parameters

    • pkWif: string

    Returns KeyPrivate

Static publicKeyFromString

  • publicKeyFromString(pubKeyString: string): KeyPublic
  • Create KeyPublic object from string format of public key.

    Parameters

    • pubKeyString: string

    Returns KeyPublic

Static ripemdHash

  • ripemdHash(fromBuffer: Buffer): string
  • Parameters

    • fromBuffer: Buffer

    Returns string

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc