How to use @ledgerhq/hw-transport-node-hid-singleton - 3 common examples

To help you get started, we’ve selected a few @ledgerhq/hw-transport-node-hid-singleton examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ArkEcosystem / desktop-wallet / src / renderer / services / ledger-service.js View on Github external
async listenForLedger () {
    if (this.listeningForLedger) {
      return
    }

    this.listeningForLedger = true
    this.transport = await LedgerTransport.create()
    this.ledger = new ArkLedger(this.transport)
    this.listeningForLedger = false
  }
github LedgerHQ / ledger-live-desktop / src / helpers / live-common-setup-internal-hw.js View on Github external
export const listenDevices = (): * =>
  getEnv('EXPERIMENTAL_USB')
    ? Observable.create(TransportNodeHidSingleton.listen)
    : Observable.create(TransportNodeHid.listen)
github LedgerHQ / ledger-live-desktop / src / helpers / live-common-setup-internal-hw.js View on Github external
() =>
          getEnv('EXPERIMENTAL_USB')
            ? TransportNodeHidSingleton.open()
            : TransportNodeHid.open(devicePath),
        { maxRetry: 4 },

@ledgerhq/hw-transport-node-hid-singleton

Ledger Hardware Wallet Node implementation of the communication layer, using node-hid and node-usb

MIT
Latest version published 7 days ago

Package Health Score

87 / 100
Full package analysis