@ledgerhq/hw-transport-u2f
Advanced tools
Comparing version 5.34.0 to 5.36.0-deprecated
{ | ||
"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)<[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)<[TransportU2F](#transportu2f)>** | ||
More information: https://github.com/LedgerHQ/ledgerjs/blob/master/docs/migrate_webusb.md |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56267
1
4