@ledgerhq/devices 6.9.1-taproot.0 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -54
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -10,44 +10,46 @@ Logic for all Ledger devices.
|
|
|
10
10
|
|
|
11
11
|
#### Table of Contents
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
13
|
+
* [createHIDframing](#createhidframing)
|
|
14
|
+
* [Parameters](#parameters)
|
|
15
|
+
* [IIGenericHID](#iigenerichid)
|
|
16
|
+
* [ledgerUSBVendorId](#ledgerusbvendorid)
|
|
17
|
+
* [getDeviceModel](#getdevicemodel)
|
|
18
|
+
* [Parameters](#parameters-1)
|
|
19
|
+
* [identifyTargetId](#identifytargetid)
|
|
20
|
+
* [Parameters](#parameters-2)
|
|
21
|
+
* [identifyUSBProductId](#identifyusbproductid)
|
|
22
|
+
* [Parameters](#parameters-3)
|
|
23
|
+
* [getBluetoothServiceUuids](#getbluetoothserviceuuids)
|
|
24
|
+
* [getInfosForServiceUuid](#getinfosforserviceuuid)
|
|
25
|
+
* [Parameters](#parameters-4)
|
|
26
|
+
* [DeviceModel](#devicemodel)
|
|
27
|
+
* [BluetoothInfos](#bluetoothinfos)
|
|
28
28
|
|
|
29
29
|
### createHIDframing
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* `channel` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
34
|
+
* `packetSize` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
35
35
|
|
|
36
36
|
### IIGenericHID
|
|
37
37
|
|
|
38
38
|
The USB product IDs will be defined as MMII, encoding a model (MM) and an interface bitfield (II)
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
Ledger Nano S : 0x10
|
|
42
|
-
Ledger Blue : 0x00
|
|
43
|
-
Ledger Nano X : 0x40
|
|
40
|
+
* Model
|
|
44
41
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
Ledger Nano S : 0x10
|
|
43
|
+
Ledger Blue : 0x00
|
|
44
|
+
Ledger Nano X : 0x40
|
|
45
|
+
|
|
46
|
+
* Interface support bitfield
|
|
47
|
+
|
|
48
|
+
Generic HID : 0x01
|
|
49
|
+
Keyboard HID : 0x02
|
|
50
|
+
U2F : 0x04
|
|
51
|
+
CCID : 0x08
|
|
52
|
+
WebUSB : 0x10
|
|
51
53
|
|
|
52
54
|
Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)
|
|
53
55
|
|
|
@@ -59,7 +61,7 @@ Type: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
59
61
|
|
|
60
62
|
#### Parameters
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
* `id` **DeviceModelId**
|
|
63
65
|
|
|
64
66
|
Returns **[DeviceModel](#devicemodel)**
|
|
65
67
|
|
|
@@ -70,7 +72,7 @@ based on the first two bytes.
|
|
|
70
72
|
|
|
71
73
|
#### Parameters
|
|
72
74
|
|
|
73
|
-
|
|
75
|
+
* `targetId` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
74
76
|
|
|
75
77
|
Returns **([DeviceModel](#devicemodel) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**
|
|
76
78
|
|
|
@@ -78,57 +80,57 @@ Returns **([DeviceModel](#devicemodel) | null | [undefined](https://developer.mo
|
|
|
78
80
|
|
|
79
81
|
#### Parameters
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
* `usbProductId` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
82
84
|
|
|
83
85
|
Returns **([DeviceModel](#devicemodel) | null | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**
|
|
84
86
|
|
|
85
87
|
### getBluetoothServiceUuids
|
|
86
88
|
|
|
87
|
-
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
89
|
+
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
88
90
|
|
|
89
91
|
### getInfosForServiceUuid
|
|
90
92
|
|
|
91
93
|
#### Parameters
|
|
92
94
|
|
|
93
|
-
|
|
95
|
+
* `uuid` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
94
96
|
|
|
95
|
-
Returns **([BluetoothInfos](#bluetoothinfos)
|
|
97
|
+
Returns **([BluetoothInfos](#bluetoothinfos) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))**
|
|
96
98
|
|
|
97
99
|
### DeviceModel
|
|
98
100
|
|
|
99
101
|
### BluetoothInfos
|
|
100
102
|
|
|
101
|
-
#
|
|
103
|
+
# <<<<<<< HEAD
|
|
102
104
|
|
|
103
105
|
#### Properties
|
|
104
106
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
* `id` **[DeviceModelId](#devicemodelid)**
|
|
108
|
+
* `productName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
109
|
+
* `productIdMM` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
110
|
+
* `legacyUsbProductId` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
111
|
+
* `usbOnly` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
112
|
+
* `memorySize` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
113
|
+
* `masks` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)>**
|
|
114
|
+
* `getBlockSize` **function (firmwareVersion: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)): [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
115
|
+
* `bluetoothSpec` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<{serviceUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), writeUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), notifyUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>?**
|
|
114
116
|
|
|
115
117
|
> > > > > > > 7184a62c3469949743efa3c4fc2b93293add5e04
|
|
116
118
|
> > > > > > >
|
|
117
119
|
> > > > > > > ### BluetoothInfos
|
|
118
120
|
|
|
119
|
-
# Type: {id: [DeviceModelId](#devicemodelid), productName: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), usbProductId: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), bluetoothSpec: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
121
|
+
# Type: {id: [DeviceModelId](#devicemodelid), productName: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), usbProductId: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), bluetoothSpec: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<{serviceUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), writeUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), notifyUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>?}
|
|
120
122
|
|
|
121
|
-
Type: {id: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), productName: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), usbProductId: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), usbOnly: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean), bluetoothSpec: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)
|
|
123
|
+
Type: {id: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), productName: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), usbProductId: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number), usbOnly: [boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean), bluetoothSpec: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<{serviceUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), writeUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), notifyUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>?}
|
|
122
124
|
|
|
123
125
|
> > > > > > > master
|
|
124
126
|
|
|
125
127
|
#### Properties
|
|
126
128
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
* `id` **[DeviceModelId](#devicemodelid)**
|
|
130
|
+
* `productName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
131
|
+
* `usbProductId` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)**
|
|
132
|
+
* `usbOnly` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
|
|
133
|
+
* `bluetoothSpec` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<{serviceUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), writeUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), notifyUuid: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>?**
|
|
132
134
|
|
|
133
135
|
### BluetoothInfos
|
|
134
136
|
|
|
@@ -136,7 +138,7 @@ Type: {deviceModel: [DeviceModel](#devicemodel), serviceUuid: [string](https://d
|
|
|
136
138
|
|
|
137
139
|
#### Properties
|
|
138
140
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
* `deviceModel` **[DeviceModel](#devicemodel)**
|
|
142
|
+
* `serviceUuid` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
143
|
+
* `writeUuid` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
144
|
+
* `notifyUuid` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/devices",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
4
4
|
"description": "Ledger devices",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@types/semver": "^7.3.8"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ledgerhq/errors": "^6.
|
|
28
|
-
"@ledgerhq/logs": "^6.
|
|
27
|
+
"@ledgerhq/errors": "^6.10.0",
|
|
28
|
+
"@ledgerhq/logs": "^6.10.0",
|
|
29
29
|
"rxjs": "6",
|
|
30
30
|
"semver": "^7.3.5"
|
|
31
31
|
},
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"watch": "bash ../../script/watch.sh",
|
|
36
36
|
"doc": "bash ../../script/doc.sh"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "03b06be36f668077572feb4d5ccd7486f546f7b4"
|
|
39
39
|
}
|