ledger

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: BSD-3-Clause Imports: 6 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 Odyssey-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