Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ require (
github.com/valyala/bytebufferpool v1.0.0
github.com/yuin/goldmark v1.7.8
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
github.com/zondax/hid v0.9.2
go.etcd.io/bbolt v1.3.11
go.opentelemetry.io/otel v1.34.0
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0
Expand Down Expand Up @@ -88,7 +89,6 @@ require (
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.42.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/zondax/hid v0.9.2 // indirect
github.com/zondax/ledger-go v0.14.3 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
Expand Down
5 changes: 5 additions & 0 deletions tm2/pkg/crypto/ledger/ledger_secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"github.com/btcsuite/btcd/btcec/v2"
"github.com/btcsuite/btcd/btcec/v2/ecdsa"
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/zondax/hid"

"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/crypto"
Expand Down Expand Up @@ -177,6 +178,10 @@
}

func getLedgerDevice() (ledger.SECP256K1, error) {
if !hid.Supported() {
return nil, fmt.Errorf("Ledger support is not enabled. Try building with CGO_ENABLED=1")

Check failure on line 182 in tm2/pkg/crypto/ledger/ledger_secp256k1.go

View workflow job for this annotation

GitHub Actions / Run TM2 suite / Go Lint / lint

ST1005: error strings should not be capitalized (staticcheck)
}

device, err := ledger.Discover()
if err != nil {
return nil, errors.Wrap(err, "ledger nano S")
Expand Down
Loading