#trezor #wallet #bitcoin #hardware-wallet

trezorlib

Client library for interfacing with Trezor hardware wallet devices

1 unstable release

0.0.2 Nov 30, 2021

#7 in #trezor

CC0 license

4MB
85K SLoC

Trezor Client Library

Client library for interfacing with Trezor devices.

Requirements

The following Ubuntu packages are needed:

  • libudev-dev
  • libusb-1.0-0-dev
  • libhidapi-dev (TODO: optional)

lib.rs:

Trezor API library

Connecting

Use the public top-level methods find_devices() and unique() to find devices. When using find_devices(), a list of different available devices is returned. To connect to one or more of them, use their connect() method.

Logging

We use the log package interface, so any logger that supports log can be attached. Please be aware that trace logging can contain sensitive data.

Dependencies

~6MB
~126K SLoC