ledger

package
v1.13.4-lux.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLedgerDisabled = errors.New("ledger support is disabled")

Functions

func New

func New() (keychain.Ledger, error)

Types

type Keychain added in v1.1.11

type Keychain struct{}

func NewKeychain added in v1.1.11

func NewKeychain() (*Keychain, error)

func (*Keychain) Addresses added in v1.1.11

func (l *Keychain) Addresses() []ids.ShortID

func (*Keychain) Close added in v1.1.11

func (l *Keychain) Close() error

func (*Keychain) Get added in v1.1.11

func (l *Keychain) Get(address ids.ShortID) (keychain.Signer, bool)

func (*Keychain) Ledger added in v1.1.11

func (l *Keychain) Ledger() *Ledger

func (*Keychain) Match added in v1.1.11

func (l *Keychain) Match(owners interface{}, minSigs uint32) ([]ids.ShortID, []uint32, bool)

func (*Keychain) Spend added in v1.1.11

func (l *Keychain) Spend(owners interface{}, minSigs uint32) ([]ids.ShortID, []keychain.Signer, bool)

type Ledger

type Ledger struct{}

func (*Ledger) Address

func (l *Ledger) Address(hrp string, addressIndex uint32) (ids.ShortID, error)

func (*Ledger) Addresses

func (l *Ledger) Addresses(addressIndices []uint32) ([]ids.ShortID, error)

func (*Ledger) Disconnect

func (l *Ledger) Disconnect() error

func (*Ledger) Sign

func (l *Ledger) Sign(txBytes []byte, addressIndices []uint32) ([][]byte, error)

func (*Ledger) SignHash

func (l *Ledger) SignHash(hash []byte, addressIndices []uint32) ([][]byte, error)

func (*Ledger) Version

func (l *Ledger) Version() (*version.Semantic, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL