Skip to content

Samples and Unit Tests

Christian Findlay edited this page Jan 15, 2019 · 12 revisions

There are three samples in the Samples folder inside the main solution of this repo. Please clone this repo to see the samples. This should be the first place to look. The samples have direct enumerating and device listening. The example there is for talking to a Trezor Hardwarewallet. The code there is shared across the three different platforms.

Here are some other repos that also use Usb.Net or Hid.Net. These should help you to understand how the libraries can be used to connect to various devices. The libraries are for cryptocurrency hardwarewallets. Your best bet for connecting to a device and using it is to clone one of these repos and modify it to suit your needs.

Platform Device Types
Trezor.Net UWP, Android, Console - .NET Framework
Ledger.Net UWP, Console - .NET Core
Ledger .NET API Console - .NET Core
KeepKey.Net UWP, Android, .NET Framework