Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTrezorPINNeeded = errors.New("pin needed") ErrTrezorPasswordNeeded = errors.New("password required") ErrTrezorAddrPath = errors.New("invalid address path") ErrTrezorPINCancelled = errors.New("pin cancelled") ErrTrezorPINInvalid = errors.New("pin invalid") )
Error codes
Functions ¶
This section is empty.
Types ¶
type BitcoinProc ¶
type BitcoinProc struct{}
BitcoinProc for Bitcoin-related methods
func (*BitcoinProc) GetAddress ¶
func (p *BitcoinProc) GetAddress(dev *Trezor, path []uint32, coin, mode string) (addr string, err error)
GetAddress returns an address referenced by the derivation path
type ConsoleEntry ¶
type ConsoleEntry struct{}
ConsoleEntry handle PIN/password dialogs on stdin/stdout
func (*ConsoleEntry) Ask ¶
func (e *ConsoleEntry) Ask(mode int) (in string)
Ask for PIN or passphrase
type EthereumProc ¶
type EthereumProc struct{}
EthereumProc for Ethereum-related methods
func (*EthereumProc) GetAddress ¶
func (p *EthereumProc) GetAddress(dev *Trezor, path []uint32, coin, mode string) (addr string, err error)
GetAddress returns an address referenced by the derivation path
type Processor ¶
type Processor interface { GetXpub(dev *Trezor, path []uint32, coin, mode string) (pk string, err error) // GetPublicKey(dev *Trezor, path []uint32, coin, mode string) (pk string, err error) GetAddress(dev *Trezor, path []uint32, coin, mode string) (addr string, err error) }
Processor interface for common methods
type Trezor ¶
type Trezor struct {
// contains filtered or unexported fields
}
Trezor device
func OpenTrezor ¶
OpenTrezor: open a Trezor connected via USB (only one Trezor must be connected)
func (*Trezor) GetAddress ¶
DeriveAddress returns an address referenced by the derivation path (coin-agnostic; BIP-39 compatible multi-coin path)
Click to show internal directories.
Click to hide internal directories.