Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-transport-u2f

Package Overview
Dependencies
Maintainers
15
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-transport-u2f - npm Package Compare versions

Comparing version 5.34.0 to 5.36.0-deprecated

4

package.json
{
"name": "@ledgerhq/hw-transport-u2f",
"version": "5.34.0",
"version": "5.36.0-deprecated",
"description": "Ledger Hardware Wallet Web implementation of the communication layer, using U2F api",

@@ -45,3 +45,3 @@ "keywords": [

},
"gitHead": "b6a7aca784dd61818d43b6198143176507ef412b"
"gitHead": "6d655aa89b748e50ae15c0cfb30c08f2215f6d84"
}

@@ -1,74 +0,4 @@

<img src="https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png" height="100" />
[Github](https://github.com/LedgerHQ/ledgerjs/),
[Ledger Devs Slack](https://ledger-dev.slack.com/)
`@ledgerhq/hw-transport-u2f` is deprecated. Please use [`@ledgerhq/hw-transport-webusb`](https://github.com/LedgerHQ/ledgerjs) or [`@ledgerhq/hw-transport-webhid`](https://github.com/LedgerHQ/ledgerjs).
## @ledgerhq/hw-transport-u2f
Allows to communicate with Ledger Hardware Wallets.
**[Web]** **(U2F)** (legacy but reliable) – FIDO U2F api. [check browser support](https://caniuse.com/u2f).
## API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
#### Table of Contents
- [TransportU2F](#transportu2f)
- [Examples](#examples)
- [exchange](#exchange)
- [Parameters](#parameters)
- [setScrambleKey](#setscramblekey)
- [Parameters](#parameters-1)
- [setUnwrap](#setunwrap)
- [Parameters](#parameters-2)
- [open](#open)
- [Parameters](#parameters-3)
### TransportU2F
**Extends Transport**
U2F web Transport implementation
#### Examples
```javascript
import TransportU2F from "@ledgerhq/hw-transport-u2f";
...
TransportU2F.create().then(transport => ...)
```
#### exchange
Exchange with the device using APDU protocol.
##### Parameters
- `apdu` **[Buffer](https://nodejs.org/api/buffer.html)**
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[Buffer](https://nodejs.org/api/buffer.html)>** a promise of apdu response
#### setScrambleKey
##### Parameters
- `scrambleKey` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
#### setUnwrap
##### Parameters
- `unwrap` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
#### open
static function to create a new Transport from a connected Ledger device discoverable via U2F (browser support)
##### Parameters
- `_` **any**
- `_openTimeout` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** (optional, default `5000`)
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;[TransportU2F](#transportu2f)>**
More information: https://github.com/LedgerHQ/ledgerjs/blob/master/docs/migrate_webusb.md
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc