trezor

package
v0.0.0-...-e8a7bc5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TRZ = "trezor"

Variables

View Source
var TP_Id int

Functions

func Loop

func Loop()

func MessageName

func MessageName(kind trezorproto.MessageType) string

Name returns the friendly message type name of a specific protocol buffer type number.

func MessageType

func MessageType(msg proto.Message) trezorproto.MessageType

Type returns the protocol buffer type number of a specific message. If the message is nil, this method panics!

Types

type Trezor

type Trezor struct {
	*trezorproto.Features
	USB_ID string
	Name   string
	Pane   *TrezorPane
}

connected Trezor

func (*Trezor) Call

func (d *Trezor) Call(m *bus.Message, req proto.Message, result proto.Message) error

func (Trezor) RawCall

func (d Trezor) RawCall(msg *bus.Message, req proto.Message) (trezorproto.MessageType, []byte, error)

type TrezorPane

type TrezorPane struct {
	ui.PaneDescriptor
	*Trezor
	On       bool
	Id       int
	ViewName string
	Mode     string
	Pin      string
	Pass     string
	// contains filtered or unexported fields
}

func NewTrezorPane

func NewTrezorPane(t *Trezor) *TrezorPane

func (*TrezorPane) EstimateLines

func (p *TrezorPane) EstimateLines(w int) int

func (*TrezorPane) GetDesc

func (p *TrezorPane) GetDesc() *ui.PaneDescriptor

func (*TrezorPane) IsOn

func (p *TrezorPane) IsOn() bool

func (*TrezorPane) SetMode

func (p *TrezorPane) SetMode(mode string)

func (*TrezorPane) SetOn

func (p *TrezorPane) SetOn(on bool)

func (*TrezorPane) SetView

func (p *TrezorPane) SetView(x0, y0, x1, y1 int, overlap byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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