Socket
Socket
Sign inDemoInstall

@ledgerhq/devices

Package Overview
Dependencies
5
Maintainers
15
Versions
245
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ledgerhq/devices

Ledger devices


Version published
Maintainers
15
Install size
5.25 MB
Created

Readme

Source

@ledgerhq/devices

Logic for all Ledger devices.

API

Table of Contents

createHIDframing

Parameters
  • channel number
  • packetSize number

IIGenericHID

The USB product IDs will be defined as MMII, encoding a model (MM) and an interface bitfield (II)

  • Model Ledger Nano S : 0x10 Ledger Blue : 0x00 Ledger Nano X : 0x40

  • Interface support bitfield Generic HID : 0x01 Keyboard HID : 0x02 U2F : 0x04 CCID : 0x08 WebUSB : 0x10

Type: number

ledgerUSBVendorId

Type: number

getDeviceModel

Parameters

Returns DeviceModel

identifyUSBProductId

Parameters

Returns DeviceModel?

getBluetoothServiceUuids

getInfosForServiceUuid

Parameters

Returns BluetoothInfos?

DeviceModelId

Type: $Keys<any>

DeviceModel

Properties

BluetoothInfos

Properties

Type: {id: DeviceModelId, productName: string, usbProductId: number, bluetoothSpec: Array<{serviceUuid: string, writeUuid: string, notifyUuid: string}>?}

Type: {id: string, productName: string, usbProductId: number, usbOnly: boolean, bluetoothSpec: Array<{serviceUuid: string, writeUuid: string, notifyUuid: string}>?}

master

Properties

BluetoothInfos

Type: {deviceModel: DeviceModel, serviceUuid: string, writeUuid: string, notifyUuid: string}

Properties

Keywords

FAQs

Last updated on 07 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc