Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Utils

Hierarchy

  • Utils

Index

Properties

Static HD_HARDENED

HD_HARDENED: number = 2147483648

Methods

Static ethTx

  • ethTx(params: any, rsv: any): string
  • Parameters

    • params: any
    • rsv: any

    Returns string

Static fromHardened

  • fromHardened(n: number): number

Static int2hex

  • int2hex(num: string | number | BN): string
  • Parameters

    • num: string | number | BN

    Returns string

Static isBech32Path

  • isBech32Path(path?: Array<number>): boolean
  • Parameters

    • Optional path: Array<number>

    Returns boolean

Static isMultisigPath

  • isMultisigPath(path?: Array<number>): boolean
  • Parameters

    • Optional path: Array<number>

    Returns boolean

Static isSegwitPath

  • isSegwitPath(path?: Array<number>): boolean
  • Parameters

    • Optional path: Array<number>

    Returns boolean

Static toHardened

  • toHardened(n: number): number

Static xpubToHDNodeType

  • xpubToHDNodeType(xpub: string): { chain_code: Buffer; child_num: number; depth: number; fingerprint: number; public_key: Buffer }
  • Parameters

    • xpub: string

    Returns { chain_code: Buffer; child_num: number; depth: number; fingerprint: number; public_key: Buffer }

    • chain_code: Buffer
    • child_num: number
    • depth: number
    • fingerprint: number
    • public_key: Buffer

Generated using TypeDoc