Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

This version has been deprecated

Author message:

Ledger U2F transport is deprecated in favor of @ledgerhq/hw-transport-webusb and/or @ledgerhq/hw-transport-webhid – check https://github.com/LedgerHQ/ledgerjs for more information

@ledgerhq/hw-transport-u2f

5.22.0 • Public • Published

Github, Ledger Devs Slack

@ledgerhq/hw-transport-u2f

Allows to communicate with Ledger Hardware Wallets.

[Web] (U2F) (legacy but reliable) – FIDO U2F api. check browser support.

API

Table of Contents

TransportU2F

Extends Transport

U2F web Transport implementation

Examples

import TransportU2F from "@ledgerhq/hw-transport-u2f";
...
TransportU2F.create().then(transport => ...)

exchange

Exchange with the device using APDU protocol.

Parameters

Returns Promise<Buffer> a promise of apdu response

setScrambleKey

Parameters

setUnwrap

Parameters

open

static function to create a new Transport from a connected Ledger device discoverable via U2F (browser support)

Parameters
  • _ any
  • _openTimeout number (optional, default 5000)

Returns Promise<TransportU2F>

Install

npm i @ledgerhq/[email protected]

Version

5.22.0

License

Apache-2.0

Unpacked Size

58 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar