Registry / crypto / cosmos-ledger-go

cosmos-ledger-go

JSON →
library0.9.3gogounverified

A Go library for interacting with Ledger hardware wallets in the Cosmos ecosystem.

go get github.com/cosmos/ledger-go
INSTALL
IMPORT
SIG · COSMOS-LEDGER-GO
C
cosmos-ledger-go
cryptogov0.9.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ledger
✓ github.com/cosmos/ledger-go

Finds a Ledger device and retrieves a public key.

package main import ( "fmt" "github.com/cosmos/ledger-go" ) func main() { device, err := ledger.FindLedgerCosmosUserApp() if err != nil { panic(err) } defer device.Close() pubKey, err := device.GetPublicKey([]uint32{44, 118, 0, 0, 0}) if err != nil { panic(err) } fmt.Printf("Public key: %x\n", pubKey) }
Debug
Known issues
gotchaRequires a connected Ledger device with Cosmos app open
fix
Ensure the device is connected and the Cosmos app is running
affects: all
Upgrade
Version history
0.9.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
cosmos-ledger-go — go get cosmos-ledger-go · libregistry