ledger
Package ledger provides hardware wallet integration via Ledger devices.
import "github.com/luxfi/sdk/ledger"Package ledger provides hardware wallet integration via Ledger devices.
Types
LedgerDevice
func New() (*LedgerDevice, error)func (dev *LedgerDevice) Address(hrp string, index uint32) (ids.ShortID, error)func (dev *LedgerDevice) Addresses(indices []uint32) ([]ids.ShortID, error)func (dev *LedgerDevice) Close() errorfunc (dev *LedgerDevice) Disconnect() errorfunc (dev *LedgerDevice) FindAddresses(addresses []string, maxIndex uint32) (map[string]uint32, error)func (dev *LedgerDevice) FindFunds(
network network.Network,
amount uint64,
maxIndex uint32,
) ([]uint32, error)func (dev *LedgerDevice) GetAddresses(indices []uint32, hrp string, chainID string) ([]string, error)func (dev *LedgerDevice) Sign(hash []byte, indices []uint32) ([][]byte, error)func (dev *LedgerDevice) SignHash(hash []byte, indices []uint32) ([][]byte, error)func (dev *LedgerDevice) Version() (v *version.Semantic, err error)