Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils

Index

References

ExtendedKeyVersion

Re-exports ExtendedKeyVersion

getExtendedKeyVersion

Re-exports getExtendedKeyVersion

isExtendedKey

Re-exports isExtendedKey

isValidMnemonic

Re-exports isValidMnemonic

Variables

Const HARDENED_OFFSET

HARDENED_OFFSET: 2147483648 = 0x80000000

Functions

Const fromArray

  • fromArray(derivationPath: number[]): string

Const getFullPath

Const getLedgerTransport

  • Returns an instance of a (wired) Ledger transport method. Currently, this will return the WebUSB method if it is supported, with WebHID method as fallback, and U2F method as fallback for WebHID.

    If no transport method is supported, this will throw an error.

    Returns Promise<LedgerU2F | LedgerWebHID | LedgerWebUSB>

Const getPathPrefix

  • getPathPrefix(derivationPath: string): string

Const getTransportImplementation

Const isTransportType

Const memoize

  • memoize<Argument, Result>(fn: (input: Argument) => Promise<Result>, getIdentifier?: (input: Argument) => string): (input: Argument) => Promise<Result>
  • Returns a memoized version of a function.

    Type parameters

    • Argument

    • Result

    Parameters

    • fn: (input: Argument) => Promise<Result>
        • (input: Argument): Promise<Result>
        • Parameters

          • input: Argument

          Returns Promise<Result>

    • getIdentifier: (input: Argument) => string = ...
        • (input: Argument): string
        • Parameters

          • input: Argument

          Returns string

    Returns (input: Argument) => Promise<Result>

      • (input: Argument): Promise<Result>
      • Parameters

        • input: Argument

        Returns Promise<Result>

Const parseRawData

  • parseRawData(data: Uint8Array, index?: number): [string, number]
  • Parse data received from Transport.send.

    Parameters

    • data: Uint8Array
    • index: number = 0

    Returns [string, number]

Const toArray

  • toArray(derivationPath: string): number[]

Generated using TypeDoc