JSPM

@ledgerhq/hw-transport-u2f

5.26.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 45660
  • Score
    100M100P100Q80872F
  • License Apache-2.0

Ledger Hardware Wallet Web implementation of the communication layer, using U2F api

Package Exports

  • @ledgerhq/hw-transport-u2f
  • @ledgerhq/hw-transport-u2f/lib/TransportU2F

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/hw-transport-u2f) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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>