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,
0x0015,
0x1015,
0x4015,
0x0011,
0x1011,
0x4011,
}
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 NewRopstenLedgerSigner ¶ added in v0.2.0
func NewRopstenLedgerSigner(path string, address string) (*LedgerSigner, error)
func NewTomoLedgerSigner ¶ added in v0.2.0
func NewTomoLedgerSigner(path string, address string) (*LedgerSigner, error)
func (*LedgerSigner) SignTx ¶
func (self *LedgerSigner) SignTx(tx *types.Transaction) (*types.Transaction, error)
func (*LedgerSigner) Unlock ¶
func (self *LedgerSigner) Unlock() error
type Ledgereum ¶ added in v0.2.0
type Ledgereum struct {
// contains filtered or unexported fields
}
func NewLedgereum ¶ added in v0.2.0
func (*Ledgereum) Sign ¶ added in v0.2.0
func (self *Ledgereum) Sign(path accounts.DerivationPath, tx *types.Transaction, chainID *big.Int) (common.Address, *types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.