ledger

package
v1.18.1-qos Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: BSD-3-Clause Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLedger added in v1.11.14

func NewLedger() (keychain.Ledger, error)

NewLedger creates a new ledger adapter

Types

type LedgerAdapter added in v1.11.14

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

LedgerAdapter wraps ledger.LedgerLux to implement keychain.Ledger interface

func (*LedgerAdapter) Address added in v1.11.14

func (l *LedgerAdapter) Address(displayHRP string, addressIndex uint32) (ids.ShortID, error)

Address returns an address at the given index

func (*LedgerAdapter) Disconnect added in v1.11.14

func (l *LedgerAdapter) Disconnect() error

Disconnect closes the ledger connection

func (*LedgerAdapter) GetAddresses added in v1.11.14

func (l *LedgerAdapter) GetAddresses(addressIndices []uint32) ([]ids.ShortID, error)

GetAddresses returns addresses at the given indices

func (*LedgerAdapter) Sign added in v1.11.14

func (l *LedgerAdapter) Sign(data []byte, addressIndex uint32) ([]byte, error)

Sign signs data with the given address index

func (*LedgerAdapter) SignHash added in v1.11.14

func (l *LedgerAdapter) SignHash(hash []byte, addressIndex uint32) ([]byte, error)

SignHash signs a hash with the given address index

func (*LedgerAdapter) SignTransaction added in v1.11.14

func (l *LedgerAdapter) SignTransaction(rawUnsignedHash []byte, addressIndices []uint32) ([][]byte, error)

SignTransaction signs a transaction with multiple addresses

func (*LedgerAdapter) Version added in v1.11.14

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

Version returns the app version

Jump to

Keyboard shortcuts

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