Skip to content

Commit fe38811

Browse files
committed
fix(accounts/usbwallet): use github.com/ethereum/hid to fix freebsd build ethereum#34784
1 parent e98320f commit fe38811

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

accounts/usbwallet/hub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/XinFinOrg/XDPoSChain/accounts"
2727
"github.com/XinFinOrg/XDPoSChain/event"
2828
"github.com/XinFinOrg/XDPoSChain/log"
29-
"github.com/karalabe/hid"
29+
"github.com/ethereum/hid"
3030
)
3131

3232
// LedgerScheme is the protocol scheme prefixing account and wallet URLs.

accounts/usbwallet/wallet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/XinFinOrg/XDPoSChain/core/types"
3232
"github.com/XinFinOrg/XDPoSChain/crypto"
3333
"github.com/XinFinOrg/XDPoSChain/log"
34-
"github.com/karalabe/hid"
34+
"github.com/ethereum/hid"
3535
)
3636

3737
// Maximum time between wallet health checks to detect USB unplugs.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ require (
3939
github.com/deckarep/golang-set/v2 v2.7.0
4040
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
4141
github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3
42+
github.com/ethereum/hid v1.0.1-0.20260421154323-c2ab8d9bf68a
4243
github.com/fsnotify/fsnotify v1.8.0
4344
github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08
4445
github.com/go-yaml/yaml v2.1.0+incompatible
@@ -50,7 +51,6 @@ require (
5051
github.com/hashicorp/golang-lru v1.0.2
5152
github.com/influxdata/influxdb-client-go/v2 v2.4.0
5253
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c
53-
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52
5454
github.com/kylelemons/godebug v1.1.0
5555
github.com/mattn/go-isatty v0.0.17
5656
github.com/protolambda/bls12-381-util v0.0.0-20220416220906-d8552aa452c7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3 h1:+3HCtB74++ClLy8GgjU
5151
github.com/dop251/goja v0.0.0-20230605162241-28ee0ee714f3/go.mod h1:QMWlm50DNe14hD7t24KEqZuUdC9sOTy8W6XbCU1mlw4=
5252
github.com/dop251/goja_nodejs v0.0.0-20210225215109-d91c329300e7/go.mod h1:hn7BA7c8pLvoGndExHudxTDKZ84Pyvv+90pbBjbTz0Y=
5353
github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8aVqWbuLRMHItjPUyqdj+HWPvnQe8V8y1nDpIbM=
54+
github.com/ethereum/hid v1.0.1-0.20260421154323-c2ab8d9bf68a h1:eIFUceK3U/z9UV0D/kAI6cxA27eH7MPqt2ks7fbzj/k=
55+
github.com/ethereum/hid v1.0.1-0.20260421154323-c2ab8d9bf68a/go.mod h1:nABYy4hsKZpuN0mu0uybdjrIOuGb1eE7b1lci/ezUAo=
5456
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
5557
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
5658
github.com/fjl/gencodec v0.0.0-20230517082657-f9840df7b83e h1:bBLctRc7kr01YGvaDfgLbTwjFNW5jdp5y5rj8XXBHfY=
@@ -135,8 +137,6 @@ github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7Bd
135137
github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc=
136138
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
137139
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
138-
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52 h1:msKODTL1m0wigztaqILOtla9HeW1ciscYG4xjLtvk5I=
139-
github.com/karalabe/hid v1.0.1-0.20240306101548-573246063e52/go.mod h1:qk1sX/IBgppQNcGCRoj90u6EGC056EBoIc1oEjCWla8=
140140
github.com/kilic/bls12-381 v0.1.0 h1:encrdjqKMEvabVQ7qYOKu1OvhqpK4s47wDYtNiPtlp4=
141141
github.com/kilic/bls12-381 v0.1.0/go.mod h1:vDTTHJONJ6G+P2R74EhnyotQDTliQDnFEwhdmfzw1ig=
142142
github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU=

0 commit comments

Comments
 (0)