Socket
Book a DemoInstallSign in
Socket

@exodus/ledgerhq-devices

Package Overview
Dependencies
Maintainers
99
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@exodus/ledgerhq-devices

Ledger devices

latest
Source
npmnpm
Version
8.1.0-exodus.5
Version published
Maintainers
99
Created
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

  • id DeviceModelId

Returns DeviceModel

identifyTargetId

Given a targetId, return the deviceModel associated to it, based on the first two bytes.

Parameters

Returns (DeviceModel | null | undefined)

identifyUSBProductId

Parameters

Returns (DeviceModel | null | undefined)

getBluetoothServiceUuids

Returns Array<string>

getInfosForServiceUuid

Parameters

Returns (BluetoothInfos | undefined)

DeviceModel

BluetoothInfos

Keywords

Ledger

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

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