ledger

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 7 Imported by: 5

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 Avalanche-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 added in v1.9.11

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