ledgereum

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEDGER_VENDOR_ID   uint16 = 0x2c97
	LEDGER_USAGE_ID    uint16 = 0xffa0
	LEDGER_ENDPOINT_ID int    = 0
)

Variables

View Source
var LEDGER_PRODUCT_IDS []uint16 = []uint16{

	0x0000,
	0x0001,
	0x0004,
	0x0005,
	0x0006,

	0x0015,
	0x1015,
	0x4015,
	0x5015,
	0x6015,

	0x0011,
	0x1011,
	0x4011,
	0x5011,
	0x6011,
}

Functions

This section is empty.

Types

type LedgerSigner

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

func NewLedgerSigner

func NewLedgerSigner(path string, address string) (*LedgerSigner, error)

func (*LedgerSigner) SignTx

func (self *LedgerSigner) SignTx(
	tx *types.Transaction,
	chainId *big.Int,
) (*types.Transaction, error)

func (*LedgerSigner) Unlock

func (self *LedgerSigner) Unlock() error

type Ledgereum

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

func NewLedgereum

func NewLedgereum() (*Ledgereum, error)

func (*Ledgereum) Derive

func (self *Ledgereum) Derive(path accounts.DerivationPath) (common.Address, error)

func (*Ledgereum) Sign

func (self *Ledgereum) Sign(
	path accounts.DerivationPath,
	tx *types.Transaction,
	chainID *big.Int,
) (common.Address, *types.Transaction, error)

func (*Ledgereum) Unlock

func (self *Ledgereum) Unlock() error

Jump to

Keyboard shortcuts

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