Trezor
Initialize a Trezor for the Bitcoin Hardware Wallet Interface (HWI) and use it with your node.
The examples assume the
secure-node.nixpreset; see Using services.
-
Enable Trezor support in your configuration:
services.hardware-wallets.trezor = true;This installs
hwi,trezorctlandlsusb, and adds udev rules that give grouphardware-walletsaccess to the device. Only members of that group can use it, unless you run the Trezor Bridge (see below). Theoperatoruser is in that group. Hardware wallets require the bitcoind wallet, soservices.bitcoind.disablewalletmust stay unset orfalse. -
Deploy your configuration.
-
Plug in your Trezor and check that your node recognizes it:
ssh operator@bitcoin-node lsusb -
If your Trezor’s firmware is outdated, update it:
trezorctl firmware updateKeep your recovery seed at hand: a firmware update can wipe the device. See Trezor’s firmware guide for the bootloader mode of your model.
-
If your Trezor is not yet initialized, set it up with a PIN:
trezorctl device setup -p -
Find your Trezor:
hwi enumerateA Trezor One asks for its PIN through HWI:
hwi -t trezor -d <path from previous command> promptpin hwi -t trezor -d <path> sendpin <number positions for the PIN as displayed on your device's screen> hwi enumerate -
Follow HWI’s guide on using Bitcoin Core with hardware wallets to use your Trezor with
bitcoin-clion your node.
The Trezor Bridge (trezord) doesn’t run by default, since HWI and trezorctl don’t
need it. To run it for apps that use it, set services.hardware-wallets.trezorBridge = true;.
The bridge serves an HTTP API without authentication on 127.0.0.1:21325, so every
local user and service can then use the Trezor through it.