pub fn is_known_device<D: HidDeviceInfo>(device: &D) -> bool
Expand description

Checks whether the given device is a known CTAPHID device using its vendor and product ID.

Typically, CTAPHID devices can be identified by the usage page of the HID descriptor. Unfortunately, hidapi does not reliably parse the HID descriptor (issue). VID/PID pairs can be used as a fallback.

Currently, these devices are recognized:

  • Nitrokey 3 and FIDO 2
  • Solokeys Solo 2

Please submit a patch if you want to add a device to this list.