Help us shape the future of Go! Take the 2026 Go Developer Survey

ledger

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (keychain.Ledger, error)

Types

type Ledger

type Ledger struct {
	// contains filtered or unexported fields
}

Ledger is a wrapper around the low-level Ledger Device interface that provides Lux-specific access.

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