aboutsummaryrefslogtreecommitdiffstats
path: root/signer
diff options
context:
space:
mode:
Diffstat (limited to 'signer')
-rw-r--r--signer/core/api.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/signer/core/api.go b/signer/core/api.go
index 783aaece4..12bbd7bd3 100644
--- a/signer/core/api.go
+++ b/signer/core/api.go
@@ -151,6 +151,13 @@ func StartClefAccountManager(ksLocation string, nousb, lightKDF bool) *accounts.
backends = append(backends, trezorhub)
log.Debug("Trezor support enabled")
}
+ // Start a USB hub for Trezor hardware wallets (WebUSB version)
+ if trezorhub, err := usbwallet.NewWebUSBTrezorHub(); err != nil {
+ log.Warn(fmt.Sprintf("Failed to start Trezor hub, disabling: %v", err))
+ } else {
+ backends = append(backends, trezorhub)
+ log.Debug("Trezor support enabled")
+ }
}
// Clef doesn't allow insecure http account unlock.
return accounts.NewManager(&accounts.Config{InsecureUnlockAllowed: false}, backends...)