Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ABCKEY

Hierarchy

Index

Constructors

constructor

Properties

Optional __MSG__

__MSG__: iMsgObj

__PIDS__

__PIDS__: { productId: number; vendorId: number }[] = [...Pabc1.device,...P53c1.device,]

__PROTOCOL__

__PROTOCOL__: Protocol

claimInterface

claimInterface: number

Optional debug

debug: undefined | false | true

Optional productId

productId: undefined | number

selectConfiguration

selectConfiguration: number

Optional serialNumber

serialNumber: undefined | string

Methods

Private _addressN

  • _addressN(params?: any): Promise<void>
  • Parameters

    • Optional params: any

    Returns Promise<void>

Private _fixTx

  • _fixTx(params?: any): Promise<any>
  • Parameters

    • Optional params: any

    Returns Promise<any>

Private _multisig

  • _multisig(params?: any): Promise<void>
  • Parameters

    • Optional params: any

    Returns Promise<void>

Private _scriptType

  • _scriptType(params?: any): Promise<void>
  • Parameters

    • Optional params: any

    Returns Promise<void>

Private _txAck

add

  • add(): Promise<boolean>

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

cmd

  • cmd(type: string, data?: any, init?: undefined | false | true): Promise<iMsgObj>
  • Parameters

    • type: string
    • Optional data: any
    • Optional init: undefined | false | true

    Returns Promise<iMsgObj>

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getDevices

  • getDevices(): Promise<undefined | USBDevice[]>

getMaxListeners

  • getMaxListeners(): number
  • Returns number

Private io

  • io(type: string, data?: any): Promise<iMsgObj>

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

onAdd

  • onAdd(cb: (event: USBDevice) => void): void
  • Parameters

    • cb: (event: USBDevice) => void
        • (event: USBDevice): void
        • Parameters

          • event: USBDevice

          Returns void

    Returns void

onConnect

  • onConnect(cb: (e: USBConnectionEvent) => void): void
  • Parameters

    • cb: (e: USBConnectionEvent) => void
        • (e: USBConnectionEvent): void
        • Parameters

          • e: USBConnectionEvent

          Returns void

    Returns void

onErr

  • onErr(cb: (event: any) => void): void
  • Parameters

    • cb: (event: any) => void
        • (event: any): void
        • Parameters

          • event: any

          Returns void

    Returns void

onError

  • onError(cb: (e: any) => void): void
  • Parameters

    • cb: (e: any) => void
        • (e: any): void
        • Parameters

          • e: any

          Returns void

    Returns void

onMsg

  • onMsg(cb: (msg: any) => void): void
  • Parameters

    • cb: (msg: any) => void
        • (msg: any): void
        • Parameters

          • msg: any

          Returns void

    Returns void

once

  • once(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

protocol

  • protocol(pid: number): false | Protocol

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

requestDevice

  • requestDevice(filters: Array<USBDeviceFilter>): Promise<undefined | USBDevice>

resetDevice

  • resetDevice(params: any): Promise<iMsgObj>
  • Performs device setup and generates a new seed.

    Parameters

    • params: any

    Returns Promise<iMsgObj>

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

signBTC

  • signBTC(params?: any): Promise<iMsgObj>

signETH

  • signETH(params?: any): Promise<iMsgObj>

transferIn

  • transferIn(endpointNumber: number, length: number): Promise<Buffer>

transferOut

  • transferOut(endpointNumber: number, data: ArrayBuffer[]): Promise<void>

write

  • write(type: string, data?: any): Promise<void>

Generated using TypeDoc