trezor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package trezor contains the wire protocol wrapper in Go.

Index

Constants

View Source
const (
	PinMatrixRequestType_Current   = 1
	PinMatrixRequestType_NewFirst  = 2
	PinMatrixRequestType_NewSecond = 3
)
View Source
const OUTDATED_FIRMWARE_ERROR = `` /* 135-byte string literal not displayed */
View Source
const PIN_MATRIX_DESCRIPTION = `Use the numeric keypad to describe number positions. The layout is:
    7 8 9
    4 5 6
    1 2 3`
View Source
const TREZORD_HOST = "http://127.0.0.1:21325"

Variables

View Source
var ButtonRequestType_name = map[int32]string{
	0:  "ButtonRequest_Other",
	2:  "ButtonRequest_FeeOverThreshold",
	3:  "ButtonRequest_ConfirmOutput",
	4:  "ButtonRequest_ResetDevice",
	5:  "ButtonRequest_ConfirmWord",
	6:  "ButtonRequest_WipeDevice",
	7:  "ButtonRequest_ProtectCall",
	8:  "ButtonRequest_SignTx",
	9:  "ButtonRequest_FirmwareCheck",
	10: "ButtonRequest_Address",
	11: "ButtonRequest_PublicKey",
}
View Source
var ButtonRequestType_value = map[string]int32{
	"ButtonRequest_Other":            0,
	"ButtonRequest_FeeOverThreshold": 2,
	"ButtonRequest_ConfirmOutput":    3,
	"ButtonRequest_ResetDevice":      4,
	"ButtonRequest_ConfirmWord":      5,
	"ButtonRequest_WipeDevice":       6,
	"ButtonRequest_ProtectCall":      7,
	"ButtonRequest_SignTx":           8,
	"ButtonRequest_FirmwareCheck":    9,
	"ButtonRequest_Address":          10,
	"ButtonRequest_PublicKey":        11,
}
View Source
var E_WireBootloader = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50007,
	Name:          "trezor.wire_bootloader",
	Tag:           "varint,50007,opt,name=wire_bootloader",
	Filename:      "types.proto",
}
View Source
var E_WireDebugIn = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50004,
	Name:          "trezor.wire_debug_in",
	Tag:           "varint,50004,opt,name=wire_debug_in",
	Filename:      "types.proto",
}
View Source
var E_WireDebugOut = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50005,
	Name:          "trezor.wire_debug_out",
	Tag:           "varint,50005,opt,name=wire_debug_out",
	Filename:      "types.proto",
}
View Source
var E_WireIn = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50002,
	Name:          "trezor.wire_in",
	Tag:           "varint,50002,opt,name=wire_in",
	Filename:      "types.proto",
}
View Source
var E_WireOut = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50003,
	Name:          "trezor.wire_out",
	Tag:           "varint,50003,opt,name=wire_out",
	Filename:      "types.proto",
}
View Source
var E_WireTiny = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50006,
	Name:          "trezor.wire_tiny",
	Tag:           "varint,50006,opt,name=wire_tiny",
	Filename:      "types.proto",
}
View Source
var ErrKeyNotFound = errors.New("KeyNotFound")
View Source
var FailureType_name = map[int32]string{
	0:  "Failure_UnexpectedMessage",
	2:  "Failure_ButtonExpected",
	3:  "Failure_DataError",
	4:  "Failure_ActionCancelled",
	5:  "Failure_PinExpected",
	6:  "Failure_PinCancelled",
	7:  "Failure_PinInvalid",
	8:  "Failure_InvalidSignature",
	9:  "Failure_ProcessError",
	10: "Failure_NotEnoughFunds",
	11: "Failure_NotInitialized",
	99: "Failure_FirmwareError",
}
View Source
var FailureType_value = map[string]int32{
	"Failure_UnexpectedMessage": 0,
	"Failure_ButtonExpected":    2,
	"Failure_DataError":         3,
	"Failure_ActionCancelled":   4,
	"Failure_PinExpected":       5,
	"Failure_PinCancelled":      6,
	"Failure_PinInvalid":        7,
	"Failure_InvalidSignature":  8,
	"Failure_ProcessError":      9,
	"Failure_NotEnoughFunds":    10,
	"Failure_NotInitialized":    11,
	"Failure_FirmwareError":     99,
}
View Source
var InputScriptType_name = map[int32]string{
	0: "SPENDADDRESS",
	1: "SPENDMULTISIG",
	2: "EXTERNAL",
	3: "SPENDWITNESS",
	4: "SPENDP2SHWITNESS",
}
View Source
var InputScriptType_value = map[string]int32{
	"SPENDADDRESS":     0,
	"SPENDMULTISIG":    1,
	"EXTERNAL":         2,
	"SPENDWITNESS":     3,
	"SPENDP2SHWITNESS": 4,
}
View Source
var MINIMUM_FIRMWARE_VERSION = map[string][3]uint32{
	"1": [3]uint32{1, 8, 0},
	"T": [3]uint32{2, 1, 0},
}
View Source
var MessageType_name = map[int32]string{
	0:   "MessageType_Initialize",
	1:   "MessageType_Ping",
	2:   "MessageType_Success",
	3:   "MessageType_Failure",
	4:   "MessageType_ChangePin",
	5:   "MessageType_WipeDevice",
	6:   "MessageType_FirmwareErase",
	7:   "MessageType_FirmwareUpload",
	8:   "MessageType_FirmwareRequest",
	9:   "MessageType_GetEntropy",
	10:  "MessageType_Entropy",
	11:  "MessageType_GetPublicKey",
	12:  "MessageType_PublicKey",
	13:  "MessageType_LoadDevice",
	14:  "MessageType_ResetDevice",
	15:  "MessageType_SignTx",
	16:  "MessageType_SimpleSignTx",
	17:  "MessageType_Features",
	18:  "MessageType_PinMatrixRequest",
	19:  "MessageType_PinMatrixAck",
	20:  "MessageType_Cancel",
	21:  "MessageType_TxRequest",
	22:  "MessageType_TxAck",
	23:  "MessageType_CipherKeyValue",
	24:  "MessageType_ClearSession",
	25:  "MessageType_ApplySettings",
	26:  "MessageType_ButtonRequest",
	27:  "MessageType_ButtonAck",
	28:  "MessageType_ApplyFlags",
	29:  "MessageType_GetAddress",
	30:  "MessageType_Address",
	32:  "MessageType_SelfTest",
	34:  "MessageType_BackupDevice",
	35:  "MessageType_EntropyRequest",
	36:  "MessageType_EntropyAck",
	38:  "MessageType_SignMessage",
	39:  "MessageType_VerifyMessage",
	40:  "MessageType_MessageSignature",
	41:  "MessageType_PassphraseRequest",
	42:  "MessageType_PassphraseAck",
	43:  "MessageType_EstimateTxSize",
	44:  "MessageType_TxSize",
	45:  "MessageType_RecoveryDevice",
	46:  "MessageType_WordRequest",
	47:  "MessageType_WordAck",
	48:  "MessageType_CipheredKeyValue",
	49:  "MessageType_EncryptMessage",
	50:  "MessageType_EncryptedMessage",
	51:  "MessageType_DecryptMessage",
	52:  "MessageType_DecryptedMessage",
	53:  "MessageType_SignIdentity",
	54:  "MessageType_SignedIdentity",
	55:  "MessageType_GetFeatures",
	56:  "MessageType_ThetaGetAddress",
	57:  "MessageType_ThetaAddress",
	58:  "MessageType_ThetaSignTx",
	59:  "MessageType_ThetaTxRequest",
	60:  "MessageType_ThetaTxAck",
	61:  "MessageType_GetECDHSessionKey",
	62:  "MessageType_ECDHSessionKey",
	63:  "MessageType_SetU2FCounter",
	64:  "MessageType_ThetaSignMessage",
	65:  "MessageType_ThetaVerifyMessage",
	66:  "MessageType_ThetaMessageSignature",
	100: "MessageType_DebugLinkDecision",
	101: "MessageType_DebugLinkGetState",
	102: "MessageType_DebugLinkState",
	103: "MessageType_DebugLinkStop",
	104: "MessageType_DebugLinkLog",
	110: "MessageType_DebugLinkMemoryRead",
	111: "MessageType_DebugLinkMemory",
	112: "MessageType_DebugLinkMemoryWrite",
	113: "MessageType_DebugLinkFlashErase",
}
View Source
var MessageType_value = map[string]int32{
	"MessageType_Initialize":            0,
	"MessageType_Ping":                  1,
	"MessageType_Success":               2,
	"MessageType_Failure":               3,
	"MessageType_ChangePin":             4,
	"MessageType_WipeDevice":            5,
	"MessageType_FirmwareErase":         6,
	"MessageType_FirmwareUpload":        7,
	"MessageType_FirmwareRequest":       8,
	"MessageType_GetEntropy":            9,
	"MessageType_Entropy":               10,
	"MessageType_GetPublicKey":          11,
	"MessageType_PublicKey":             12,
	"MessageType_LoadDevice":            13,
	"MessageType_ResetDevice":           14,
	"MessageType_SignTx":                15,
	"MessageType_SimpleSignTx":          16,
	"MessageType_Features":              17,
	"MessageType_PinMatrixRequest":      18,
	"MessageType_PinMatrixAck":          19,
	"MessageType_Cancel":                20,
	"MessageType_TxRequest":             21,
	"MessageType_TxAck":                 22,
	"MessageType_CipherKeyValue":        23,
	"MessageType_ClearSession":          24,
	"MessageType_ApplySettings":         25,
	"MessageType_ButtonRequest":         26,
	"MessageType_ButtonAck":             27,
	"MessageType_ApplyFlags":            28,
	"MessageType_GetAddress":            29,
	"MessageType_Address":               30,
	"MessageType_SelfTest":              32,
	"MessageType_BackupDevice":          34,
	"MessageType_EntropyRequest":        35,
	"MessageType_EntropyAck":            36,
	"MessageType_SignMessage":           38,
	"MessageType_VerifyMessage":         39,
	"MessageType_MessageSignature":      40,
	"MessageType_PassphraseRequest":     41,
	"MessageType_PassphraseAck":         42,
	"MessageType_EstimateTxSize":        43,
	"MessageType_TxSize":                44,
	"MessageType_RecoveryDevice":        45,
	"MessageType_WordRequest":           46,
	"MessageType_WordAck":               47,
	"MessageType_CipheredKeyValue":      48,
	"MessageType_EncryptMessage":        49,
	"MessageType_EncryptedMessage":      50,
	"MessageType_DecryptMessage":        51,
	"MessageType_DecryptedMessage":      52,
	"MessageType_SignIdentity":          53,
	"MessageType_SignedIdentity":        54,
	"MessageType_GetFeatures":           55,
	"MessageType_ThetaGetAddress":       56,
	"MessageType_ThetaAddress":          57,
	"MessageType_ThetaSignTx":           58,
	"MessageType_ThetaTxRequest":        59,
	"MessageType_ThetaTxAck":            60,
	"MessageType_GetECDHSessionKey":     61,
	"MessageType_ECDHSessionKey":        62,
	"MessageType_SetU2FCounter":         63,
	"MessageType_ThetaSignMessage":      64,
	"MessageType_ThetaVerifyMessage":    65,
	"MessageType_ThetaMessageSignature": 66,
	"MessageType_DebugLinkDecision":     100,
	"MessageType_DebugLinkGetState":     101,
	"MessageType_DebugLinkState":        102,
	"MessageType_DebugLinkStop":         103,
	"MessageType_DebugLinkLog":          104,
	"MessageType_DebugLinkMemoryRead":   110,
	"MessageType_DebugLinkMemory":       111,
	"MessageType_DebugLinkMemoryWrite":  112,
	"MessageType_DebugLinkFlashErase":   113,
}
View Source
var OutputScriptType_name = map[int32]string{
	0: "PAYTOADDRESS",
	1: "PAYTOSCRIPTHASH",
	2: "PAYTOMULTISIG",
	3: "PAYTOOPRETURN",
	4: "PAYTOWITNESS",
	5: "PAYTOP2SHWITNESS",
}
View Source
var OutputScriptType_value = map[string]int32{
	"PAYTOADDRESS":     0,
	"PAYTOSCRIPTHASH":  1,
	"PAYTOMULTISIG":    2,
	"PAYTOOPRETURN":    3,
	"PAYTOWITNESS":     4,
	"PAYTOP2SHWITNESS": 5,
}
View Source
var PinMatrixRequestType_name = map[int32]string{
	0: "PinMatrixRequestType_Current",
	2: "PinMatrixRequestType_NewFirst",
	3: "PinMatrixRequestType_NewSecond",
}
View Source
var PinMatrixRequestType_value = map[string]int32{
	"PinMatrixRequestType_Current":   0,
	"PinMatrixRequestType_NewFirst":  2,
	"PinMatrixRequestType_NewSecond": 3,
}
View Source
var RecoveryDeviceType_name = map[int32]string{
	0: "RecoveryDeviceType_ScrambledWords",
	1: "RecoveryDeviceType_Matrix",
}
View Source
var RecoveryDeviceType_value = map[string]int32{
	"RecoveryDeviceType_ScrambledWords": 0,
	"RecoveryDeviceType_Matrix":         1,
}
View Source
var RequestType_name = map[int32]string{
	0: "TXINPUT",
	1: "TXOUTPUT",
	2: "TXMETA",
	3: "TXFINISHED",
	4: "TXEXTRADATA",
}
View Source
var RequestType_value = map[string]int32{
	"TXINPUT":     0,
	"TXOUTPUT":    1,
	"TXMETA":      2,
	"TXFINISHED":  3,
	"TXEXTRADATA": 4,
}
View Source
var TREZORD_VERSION_MODERN = [3]uint32{2, 0, 25}
View Source
var WordRequestType_name = map[int32]string{
	0: "WordRequestType_Plain",
	1: "WordRequestType_Matrix9",
	2: "WordRequestType_Matrix6",
}
View Source
var WordRequestType_value = map[string]int32{
	"WordRequestType_Plain":   0,
	"WordRequestType_Matrix9": 1,
	"WordRequestType_Matrix6": 2,
}

Functions

func ConvertBytes

func ConvertBytes(bytes []byte) (res []byte)

func DumpMessage

func DumpMessage(writer io.Writer, msg interface{}) error

func GetEmptyObj

func GetEmptyObj(msgType MessageType) interface{}

func LoadMessage

func LoadMessage(reader io.Reader, target interface{}, limit *int32) (interface{}, error)

func LoadMessage(reader io.Reader, msgType MessageType, limit *int32) (interface{}, error) {

func Name

func Name(kind uint16) string

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

func Pack

func Pack(packed *[6]byte, msgType uint16, serLen uint32)

func RevertBytes

func RevertBytes(bytes []byte) (res []byte)

func Type

func Type(msg proto.Message) uint16

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

Types

type Address

type Address struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Contains address derived from device private seed @prev GetAddress

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetAddress

func (m *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

type ApplyFlags

type ApplyFlags struct {
	Flags                uint32   `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: set flags of the device @next Success @next Failure

func (*ApplyFlags) Descriptor

func (*ApplyFlags) Descriptor() ([]byte, []int)

func (*ApplyFlags) GetFlags

func (m *ApplyFlags) GetFlags() uint32

func (*ApplyFlags) ProtoMessage

func (*ApplyFlags) ProtoMessage()

func (*ApplyFlags) Reset

func (m *ApplyFlags) Reset()

func (*ApplyFlags) String

func (m *ApplyFlags) String() string

func (*ApplyFlags) XXX_DiscardUnknown

func (m *ApplyFlags) XXX_DiscardUnknown()

func (*ApplyFlags) XXX_Marshal

func (m *ApplyFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplyFlags) XXX_Merge

func (m *ApplyFlags) XXX_Merge(src proto.Message)

func (*ApplyFlags) XXX_Size

func (m *ApplyFlags) XXX_Size() int

func (*ApplyFlags) XXX_Unmarshal

func (m *ApplyFlags) XXX_Unmarshal(b []byte) error

type ApplySettings

type ApplySettings struct {
	Language             string   `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	UsePassphrase        bool     `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase,proto3" json:"use_passphrase,omitempty"`
	Homescreen           []byte   `protobuf:"bytes,4,opt,name=homescreen,proto3" json:"homescreen,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: change language and/or label of the device @next Success @next Failure @next ButtonRequest @next PinMatrixRequest

func (*ApplySettings) Descriptor

func (*ApplySettings) Descriptor() ([]byte, []int)

func (*ApplySettings) GetHomescreen

func (m *ApplySettings) GetHomescreen() []byte

func (*ApplySettings) GetLabel

func (m *ApplySettings) GetLabel() string

func (*ApplySettings) GetLanguage

func (m *ApplySettings) GetLanguage() string

func (*ApplySettings) GetUsePassphrase

func (m *ApplySettings) GetUsePassphrase() bool

func (*ApplySettings) ProtoMessage

func (*ApplySettings) ProtoMessage()

func (*ApplySettings) Reset

func (m *ApplySettings) Reset()

func (*ApplySettings) String

func (m *ApplySettings) String() string

func (*ApplySettings) XXX_DiscardUnknown

func (m *ApplySettings) XXX_DiscardUnknown()

func (*ApplySettings) XXX_Marshal

func (m *ApplySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ApplySettings) XXX_Merge

func (m *ApplySettings) XXX_Merge(src proto.Message)

func (*ApplySettings) XXX_Size

func (m *ApplySettings) XXX_Size() int

func (*ApplySettings) XXX_Unmarshal

func (m *ApplySettings) XXX_Unmarshal(b []byte) error

type BackupDevice

type BackupDevice struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Perform backup of the device seed if not backed up using ResetDevice @next ButtonRequest

func (*BackupDevice) Descriptor

func (*BackupDevice) Descriptor() ([]byte, []int)

func (*BackupDevice) ProtoMessage

func (*BackupDevice) ProtoMessage()

func (*BackupDevice) Reset

func (m *BackupDevice) Reset()

func (*BackupDevice) String

func (m *BackupDevice) String() string

func (*BackupDevice) XXX_DiscardUnknown

func (m *BackupDevice) XXX_DiscardUnknown()

func (*BackupDevice) XXX_Marshal

func (m *BackupDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BackupDevice) XXX_Merge

func (m *BackupDevice) XXX_Merge(src proto.Message)

func (*BackupDevice) XXX_Size

func (m *BackupDevice) XXX_Size() int

func (*BackupDevice) XXX_Unmarshal

func (m *BackupDevice) XXX_Unmarshal(b []byte) error

type BridgeTransport

type BridgeTransport struct {
	Device   Device
	Session  string
	Features *Features
	Legacy   bool
	Debug    bool
}

func (*BridgeTransport) BeginSession

func (b *BridgeTransport) BeginSession() error

func (*BridgeTransport) CallRaw

func (b *BridgeTransport) CallRaw(data []byte) (interface{}, MessageType, error)

func (*BridgeTransport) CheckFirmwareVersion

func (b *BridgeTransport) CheckFirmwareVersion(version [3]uint32, warnOnly bool) error

func (*BridgeTransport) EndSession

func (b *BridgeTransport) EndSession()

func (*BridgeTransport) ReadRaw

func (b *BridgeTransport) ReadRaw() (interface{}, MessageType, error)

func (*BridgeTransport) WriteRaw

func (b *BridgeTransport) WriteRaw(data []byte) error

type ButtonAck

type ButtonAck struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Computer agrees to wait for HW button press @prev ButtonRequest

func (*ButtonAck) Descriptor

func (*ButtonAck) Descriptor() ([]byte, []int)

func (*ButtonAck) ProtoMessage

func (*ButtonAck) ProtoMessage()

func (*ButtonAck) Reset

func (m *ButtonAck) Reset()

func (*ButtonAck) String

func (m *ButtonAck) String() string

func (*ButtonAck) XXX_DiscardUnknown

func (m *ButtonAck) XXX_DiscardUnknown()

func (*ButtonAck) XXX_Marshal

func (m *ButtonAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ButtonAck) XXX_Merge

func (m *ButtonAck) XXX_Merge(src proto.Message)

func (*ButtonAck) XXX_Size

func (m *ButtonAck) XXX_Size() int

func (*ButtonAck) XXX_Unmarshal

func (m *ButtonAck) XXX_Unmarshal(b []byte) error

type ButtonRequest

type ButtonRequest struct {
	Code                 ButtonRequestType `protobuf:"varint,1,opt,name=code,proto3,enum=trezor.ButtonRequestType" json:"code,omitempty"`
	Data                 string            `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

* Response: Device is waiting for HW button press. @next ButtonAck @next Cancel

func (*ButtonRequest) Descriptor

func (*ButtonRequest) Descriptor() ([]byte, []int)

func (*ButtonRequest) GetCode

func (m *ButtonRequest) GetCode() ButtonRequestType

func (*ButtonRequest) GetData

func (m *ButtonRequest) GetData() string

func (*ButtonRequest) ProtoMessage

func (*ButtonRequest) ProtoMessage()

func (*ButtonRequest) Reset

func (m *ButtonRequest) Reset()

func (*ButtonRequest) String

func (m *ButtonRequest) String() string

func (*ButtonRequest) XXX_DiscardUnknown

func (m *ButtonRequest) XXX_DiscardUnknown()

func (*ButtonRequest) XXX_Marshal

func (m *ButtonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ButtonRequest) XXX_Merge

func (m *ButtonRequest) XXX_Merge(src proto.Message)

func (*ButtonRequest) XXX_Size

func (m *ButtonRequest) XXX_Size() int

func (*ButtonRequest) XXX_Unmarshal

func (m *ButtonRequest) XXX_Unmarshal(b []byte) error

type ButtonRequestType

type ButtonRequestType int32

* Type of button request @used_in ButtonRequest

const (
	ButtonRequestType_ButtonRequest_Other            ButtonRequestType = 0
	ButtonRequestType_ButtonRequest_FeeOverThreshold ButtonRequestType = 2
	ButtonRequestType_ButtonRequest_ConfirmOutput    ButtonRequestType = 3
	ButtonRequestType_ButtonRequest_ResetDevice      ButtonRequestType = 4
	ButtonRequestType_ButtonRequest_ConfirmWord      ButtonRequestType = 5
	ButtonRequestType_ButtonRequest_WipeDevice       ButtonRequestType = 6
	ButtonRequestType_ButtonRequest_ProtectCall      ButtonRequestType = 7
	ButtonRequestType_ButtonRequest_SignTx           ButtonRequestType = 8
	ButtonRequestType_ButtonRequest_FirmwareCheck    ButtonRequestType = 9
	ButtonRequestType_ButtonRequest_Address          ButtonRequestType = 10
	ButtonRequestType_ButtonRequest_PublicKey        ButtonRequestType = 11
)

func (ButtonRequestType) EnumDescriptor

func (ButtonRequestType) EnumDescriptor() ([]byte, []int)

func (ButtonRequestType) String

func (x ButtonRequestType) String() string

type Cancel

type Cancel struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Abort last operation that user interaction @prev ButtonRequest @prev PinMatrixRequest @prev PassphraseRequest

func (*Cancel) Descriptor

func (*Cancel) Descriptor() ([]byte, []int)

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) Reset

func (m *Cancel) Reset()

func (*Cancel) String

func (m *Cancel) String() string

func (*Cancel) XXX_DiscardUnknown

func (m *Cancel) XXX_DiscardUnknown()

func (*Cancel) XXX_Marshal

func (m *Cancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cancel) XXX_Merge

func (m *Cancel) XXX_Merge(src proto.Message)

func (*Cancel) XXX_Size

func (m *Cancel) XXX_Size() int

func (*Cancel) XXX_Unmarshal

func (m *Cancel) XXX_Unmarshal(b []byte) error

type ChangePin

type ChangePin struct {
	Remove               bool     `protobuf:"varint,1,opt,name=remove,proto3" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Starts workflow for setting/changing/removing the PIN @next ButtonRequest @next PinMatrixRequest

func (*ChangePin) Descriptor

func (*ChangePin) Descriptor() ([]byte, []int)

func (*ChangePin) GetRemove

func (m *ChangePin) GetRemove() bool

func (*ChangePin) ProtoMessage

func (*ChangePin) ProtoMessage()

func (*ChangePin) Reset

func (m *ChangePin) Reset()

func (*ChangePin) String

func (m *ChangePin) String() string

func (*ChangePin) XXX_DiscardUnknown

func (m *ChangePin) XXX_DiscardUnknown()

func (*ChangePin) XXX_Marshal

func (m *ChangePin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChangePin) XXX_Merge

func (m *ChangePin) XXX_Merge(src proto.Message)

func (*ChangePin) XXX_Size

func (m *ChangePin) XXX_Size() int

func (*ChangePin) XXX_Unmarshal

func (m *ChangePin) XXX_Unmarshal(b []byte) error

type CipherKeyValue

type CipherKeyValue struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Key                  string   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Encrypt              bool     `protobuf:"varint,4,opt,name=encrypt,proto3" json:"encrypt,omitempty"`
	AskOnEncrypt         bool     `protobuf:"varint,5,opt,name=ask_on_encrypt,json=askOnEncrypt,proto3" json:"ask_on_encrypt,omitempty"`
	AskOnDecrypt         bool     `protobuf:"varint,6,opt,name=ask_on_decrypt,json=askOnDecrypt,proto3" json:"ask_on_decrypt,omitempty"`
	Iv                   []byte   `protobuf:"bytes,7,opt,name=iv,proto3" json:"iv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to encrypt or decrypt value of given key @next CipheredKeyValue @next Failure

func (*CipherKeyValue) Descriptor

func (*CipherKeyValue) Descriptor() ([]byte, []int)

func (*CipherKeyValue) GetAddressN

func (m *CipherKeyValue) GetAddressN() []uint32

func (*CipherKeyValue) GetAskOnDecrypt

func (m *CipherKeyValue) GetAskOnDecrypt() bool

func (*CipherKeyValue) GetAskOnEncrypt

func (m *CipherKeyValue) GetAskOnEncrypt() bool

func (*CipherKeyValue) GetEncrypt

func (m *CipherKeyValue) GetEncrypt() bool

func (*CipherKeyValue) GetIv

func (m *CipherKeyValue) GetIv() []byte

func (*CipherKeyValue) GetKey

func (m *CipherKeyValue) GetKey() string

func (*CipherKeyValue) GetValue

func (m *CipherKeyValue) GetValue() []byte

func (*CipherKeyValue) ProtoMessage

func (*CipherKeyValue) ProtoMessage()

func (*CipherKeyValue) Reset

func (m *CipherKeyValue) Reset()

func (*CipherKeyValue) String

func (m *CipherKeyValue) String() string

func (*CipherKeyValue) XXX_DiscardUnknown

func (m *CipherKeyValue) XXX_DiscardUnknown()

func (*CipherKeyValue) XXX_Marshal

func (m *CipherKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CipherKeyValue) XXX_Merge

func (m *CipherKeyValue) XXX_Merge(src proto.Message)

func (*CipherKeyValue) XXX_Size

func (m *CipherKeyValue) XXX_Size() int

func (*CipherKeyValue) XXX_Unmarshal

func (m *CipherKeyValue) XXX_Unmarshal(b []byte) error

type CipheredKeyValue

type CipheredKeyValue struct {
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Return ciphered/deciphered value @prev CipherKeyValue

func (*CipheredKeyValue) Descriptor

func (*CipheredKeyValue) Descriptor() ([]byte, []int)

func (*CipheredKeyValue) GetValue

func (m *CipheredKeyValue) GetValue() []byte

func (*CipheredKeyValue) ProtoMessage

func (*CipheredKeyValue) ProtoMessage()

func (*CipheredKeyValue) Reset

func (m *CipheredKeyValue) Reset()

func (*CipheredKeyValue) String

func (m *CipheredKeyValue) String() string

func (*CipheredKeyValue) XXX_DiscardUnknown

func (m *CipheredKeyValue) XXX_DiscardUnknown()

func (*CipheredKeyValue) XXX_Marshal

func (m *CipheredKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CipheredKeyValue) XXX_Merge

func (m *CipheredKeyValue) XXX_Merge(src proto.Message)

func (*CipheredKeyValue) XXX_Size

func (m *CipheredKeyValue) XXX_Size() int

func (*CipheredKeyValue) XXX_Unmarshal

func (m *CipheredKeyValue) XXX_Unmarshal(b []byte) error

type ClearSession

type ClearSession struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: clear session (removes cached PIN, passphrase, etc). @next Success

func (*ClearSession) Descriptor

func (*ClearSession) Descriptor() ([]byte, []int)

func (*ClearSession) ProtoMessage

func (*ClearSession) ProtoMessage()

func (*ClearSession) Reset

func (m *ClearSession) Reset()

func (*ClearSession) String

func (m *ClearSession) String() string

func (*ClearSession) XXX_DiscardUnknown

func (m *ClearSession) XXX_DiscardUnknown()

func (*ClearSession) XXX_Marshal

func (m *ClearSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClearSession) XXX_Merge

func (m *ClearSession) XXX_Merge(src proto.Message)

func (*ClearSession) XXX_Size

func (m *ClearSession) XXX_Size() int

func (*ClearSession) XXX_Unmarshal

func (m *ClearSession) XXX_Unmarshal(b []byte) error

type CoinType

type CoinType struct {
	CoinName             string   `protobuf:"bytes,1,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	CoinShortcut         string   `protobuf:"bytes,2,opt,name=coin_shortcut,json=coinShortcut,proto3" json:"coin_shortcut,omitempty"`
	AddressType          uint32   `protobuf:"varint,3,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"`
	MaxfeeKb             uint64   `protobuf:"varint,4,opt,name=maxfee_kb,json=maxfeeKb,proto3" json:"maxfee_kb,omitempty"`
	AddressTypeP2Sh      uint32   `protobuf:"varint,5,opt,name=address_type_p2sh,json=addressTypeP2sh,proto3" json:"address_type_p2sh,omitempty"`
	SignedMessageHeader  string   `protobuf:"bytes,8,opt,name=signed_message_header,json=signedMessageHeader,proto3" json:"signed_message_header,omitempty"`
	XpubMagic            uint32   `protobuf:"varint,9,opt,name=xpub_magic,json=xpubMagic,proto3" json:"xpub_magic,omitempty"`
	XprvMagic            uint32   `protobuf:"varint,10,opt,name=xprv_magic,json=xprvMagic,proto3" json:"xprv_magic,omitempty"`
	Segwit               bool     `protobuf:"varint,11,opt,name=segwit,proto3" json:"segwit,omitempty"`
	Forkid               uint32   `protobuf:"varint,12,opt,name=forkid,proto3" json:"forkid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing Coin @used_in Features

func (*CoinType) Descriptor

func (*CoinType) Descriptor() ([]byte, []int)

func (*CoinType) GetAddressType

func (m *CoinType) GetAddressType() uint32

func (*CoinType) GetAddressTypeP2Sh

func (m *CoinType) GetAddressTypeP2Sh() uint32

func (*CoinType) GetCoinName

func (m *CoinType) GetCoinName() string

func (*CoinType) GetCoinShortcut

func (m *CoinType) GetCoinShortcut() string

func (*CoinType) GetForkid

func (m *CoinType) GetForkid() uint32

func (*CoinType) GetMaxfeeKb

func (m *CoinType) GetMaxfeeKb() uint64

func (*CoinType) GetSegwit

func (m *CoinType) GetSegwit() bool

func (*CoinType) GetSignedMessageHeader

func (m *CoinType) GetSignedMessageHeader() string

func (*CoinType) GetXprvMagic

func (m *CoinType) GetXprvMagic() uint32

func (*CoinType) GetXpubMagic

func (m *CoinType) GetXpubMagic() uint32

func (*CoinType) ProtoMessage

func (*CoinType) ProtoMessage()

func (*CoinType) Reset

func (m *CoinType) Reset()

func (*CoinType) String

func (m *CoinType) String() string

func (*CoinType) XXX_DiscardUnknown

func (m *CoinType) XXX_DiscardUnknown()

func (*CoinType) XXX_Marshal

func (m *CoinType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CoinType) XXX_Merge

func (m *CoinType) XXX_Merge(src proto.Message)

func (*CoinType) XXX_Size

func (m *CoinType) XXX_Size() int

func (*CoinType) XXX_Unmarshal

func (m *CoinType) XXX_Unmarshal(b []byte) error

type Config

type Config struct {
	Version string
}

type DebugLinkDecision

type DebugLinkDecision struct {
	YesNo                bool     `protobuf:"varint,1,opt,name=yes_no,json=yesNo,proto3" json:"yes_no,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: "Press" the button on the device @next Success

func (*DebugLinkDecision) Descriptor

func (*DebugLinkDecision) Descriptor() ([]byte, []int)

func (*DebugLinkDecision) GetYesNo

func (m *DebugLinkDecision) GetYesNo() bool

func (*DebugLinkDecision) ProtoMessage

func (*DebugLinkDecision) ProtoMessage()

func (*DebugLinkDecision) Reset

func (m *DebugLinkDecision) Reset()

func (*DebugLinkDecision) String

func (m *DebugLinkDecision) String() string

func (*DebugLinkDecision) XXX_DiscardUnknown

func (m *DebugLinkDecision) XXX_DiscardUnknown()

func (*DebugLinkDecision) XXX_Marshal

func (m *DebugLinkDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkDecision) XXX_Merge

func (m *DebugLinkDecision) XXX_Merge(src proto.Message)

func (*DebugLinkDecision) XXX_Size

func (m *DebugLinkDecision) XXX_Size() int

func (*DebugLinkDecision) XXX_Unmarshal

func (m *DebugLinkDecision) XXX_Unmarshal(b []byte) error

type DebugLinkFlashErase

type DebugLinkFlashErase struct {
	Sector               uint32   `protobuf:"varint,1,opt,name=sector,proto3" json:"sector,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Erase block of flash on device WARNING: Writing to the wrong location can irreparably break the device.

func (*DebugLinkFlashErase) Descriptor

func (*DebugLinkFlashErase) Descriptor() ([]byte, []int)

func (*DebugLinkFlashErase) GetSector

func (m *DebugLinkFlashErase) GetSector() uint32

func (*DebugLinkFlashErase) ProtoMessage

func (*DebugLinkFlashErase) ProtoMessage()

func (*DebugLinkFlashErase) Reset

func (m *DebugLinkFlashErase) Reset()

func (*DebugLinkFlashErase) String

func (m *DebugLinkFlashErase) String() string

func (*DebugLinkFlashErase) XXX_DiscardUnknown

func (m *DebugLinkFlashErase) XXX_DiscardUnknown()

func (*DebugLinkFlashErase) XXX_Marshal

func (m *DebugLinkFlashErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkFlashErase) XXX_Merge

func (m *DebugLinkFlashErase) XXX_Merge(src proto.Message)

func (*DebugLinkFlashErase) XXX_Size

func (m *DebugLinkFlashErase) XXX_Size() int

func (*DebugLinkFlashErase) XXX_Unmarshal

func (m *DebugLinkFlashErase) XXX_Unmarshal(b []byte) error

type DebugLinkGetState

type DebugLinkGetState struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Computer asks for device state @next DebugLinkState

func (*DebugLinkGetState) Descriptor

func (*DebugLinkGetState) Descriptor() ([]byte, []int)

func (*DebugLinkGetState) ProtoMessage

func (*DebugLinkGetState) ProtoMessage()

func (*DebugLinkGetState) Reset

func (m *DebugLinkGetState) Reset()

func (*DebugLinkGetState) String

func (m *DebugLinkGetState) String() string

func (*DebugLinkGetState) XXX_DiscardUnknown

func (m *DebugLinkGetState) XXX_DiscardUnknown()

func (*DebugLinkGetState) XXX_Marshal

func (m *DebugLinkGetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkGetState) XXX_Merge

func (m *DebugLinkGetState) XXX_Merge(src proto.Message)

func (*DebugLinkGetState) XXX_Size

func (m *DebugLinkGetState) XXX_Size() int

func (*DebugLinkGetState) XXX_Unmarshal

func (m *DebugLinkGetState) XXX_Unmarshal(b []byte) error

type DebugLinkLog

type DebugLinkLog struct {
	Level                uint32   `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	Bucket               string   `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Text                 string   `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device wants host to log event

func (*DebugLinkLog) Descriptor

func (*DebugLinkLog) Descriptor() ([]byte, []int)

func (*DebugLinkLog) GetBucket

func (m *DebugLinkLog) GetBucket() string

func (*DebugLinkLog) GetLevel

func (m *DebugLinkLog) GetLevel() uint32

func (*DebugLinkLog) GetText

func (m *DebugLinkLog) GetText() string

func (*DebugLinkLog) ProtoMessage

func (*DebugLinkLog) ProtoMessage()

func (*DebugLinkLog) Reset

func (m *DebugLinkLog) Reset()

func (*DebugLinkLog) String

func (m *DebugLinkLog) String() string

func (*DebugLinkLog) XXX_DiscardUnknown

func (m *DebugLinkLog) XXX_DiscardUnknown()

func (*DebugLinkLog) XXX_Marshal

func (m *DebugLinkLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkLog) XXX_Merge

func (m *DebugLinkLog) XXX_Merge(src proto.Message)

func (*DebugLinkLog) XXX_Size

func (m *DebugLinkLog) XXX_Size() int

func (*DebugLinkLog) XXX_Unmarshal

func (m *DebugLinkLog) XXX_Unmarshal(b []byte) error

type DebugLinkMemory

type DebugLinkMemory struct {
	Memory               []byte   `protobuf:"bytes,1,opt,name=memory,proto3" json:"memory,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device sends memory back @prev DebugLinkMemoryRead

func (*DebugLinkMemory) Descriptor

func (*DebugLinkMemory) Descriptor() ([]byte, []int)

func (*DebugLinkMemory) GetMemory

func (m *DebugLinkMemory) GetMemory() []byte

func (*DebugLinkMemory) ProtoMessage

func (*DebugLinkMemory) ProtoMessage()

func (*DebugLinkMemory) Reset

func (m *DebugLinkMemory) Reset()

func (*DebugLinkMemory) String

func (m *DebugLinkMemory) String() string

func (*DebugLinkMemory) XXX_DiscardUnknown

func (m *DebugLinkMemory) XXX_DiscardUnknown()

func (*DebugLinkMemory) XXX_Marshal

func (m *DebugLinkMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkMemory) XXX_Merge

func (m *DebugLinkMemory) XXX_Merge(src proto.Message)

func (*DebugLinkMemory) XXX_Size

func (m *DebugLinkMemory) XXX_Size() int

func (*DebugLinkMemory) XXX_Unmarshal

func (m *DebugLinkMemory) XXX_Unmarshal(b []byte) error

type DebugLinkMemoryRead

type DebugLinkMemoryRead struct {
	Address              uint32   `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"`
	Length               uint32   `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Read memory from device @next DebugLinkMemory

func (*DebugLinkMemoryRead) Descriptor

func (*DebugLinkMemoryRead) Descriptor() ([]byte, []int)

func (*DebugLinkMemoryRead) GetAddress

func (m *DebugLinkMemoryRead) GetAddress() uint32

func (*DebugLinkMemoryRead) GetLength

func (m *DebugLinkMemoryRead) GetLength() uint32

func (*DebugLinkMemoryRead) ProtoMessage

func (*DebugLinkMemoryRead) ProtoMessage()

func (*DebugLinkMemoryRead) Reset

func (m *DebugLinkMemoryRead) Reset()

func (*DebugLinkMemoryRead) String

func (m *DebugLinkMemoryRead) String() string

func (*DebugLinkMemoryRead) XXX_DiscardUnknown

func (m *DebugLinkMemoryRead) XXX_DiscardUnknown()

func (*DebugLinkMemoryRead) XXX_Marshal

func (m *DebugLinkMemoryRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkMemoryRead) XXX_Merge

func (m *DebugLinkMemoryRead) XXX_Merge(src proto.Message)

func (*DebugLinkMemoryRead) XXX_Size

func (m *DebugLinkMemoryRead) XXX_Size() int

func (*DebugLinkMemoryRead) XXX_Unmarshal

func (m *DebugLinkMemoryRead) XXX_Unmarshal(b []byte) error

type DebugLinkMemoryWrite

type DebugLinkMemoryWrite struct {
	Address              uint32   `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"`
	Memory               []byte   `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"`
	Flash                bool     `protobuf:"varint,3,opt,name=flash,proto3" json:"flash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Write memory to device. WARNING: Writing to the wrong location can irreparably break the device.

func (*DebugLinkMemoryWrite) Descriptor

func (*DebugLinkMemoryWrite) Descriptor() ([]byte, []int)

func (*DebugLinkMemoryWrite) GetAddress

func (m *DebugLinkMemoryWrite) GetAddress() uint32

func (*DebugLinkMemoryWrite) GetFlash

func (m *DebugLinkMemoryWrite) GetFlash() bool

func (*DebugLinkMemoryWrite) GetMemory

func (m *DebugLinkMemoryWrite) GetMemory() []byte

func (*DebugLinkMemoryWrite) ProtoMessage

func (*DebugLinkMemoryWrite) ProtoMessage()

func (*DebugLinkMemoryWrite) Reset

func (m *DebugLinkMemoryWrite) Reset()

func (*DebugLinkMemoryWrite) String

func (m *DebugLinkMemoryWrite) String() string

func (*DebugLinkMemoryWrite) XXX_DiscardUnknown

func (m *DebugLinkMemoryWrite) XXX_DiscardUnknown()

func (*DebugLinkMemoryWrite) XXX_Marshal

func (m *DebugLinkMemoryWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkMemoryWrite) XXX_Merge

func (m *DebugLinkMemoryWrite) XXX_Merge(src proto.Message)

func (*DebugLinkMemoryWrite) XXX_Size

func (m *DebugLinkMemoryWrite) XXX_Size() int

func (*DebugLinkMemoryWrite) XXX_Unmarshal

func (m *DebugLinkMemoryWrite) XXX_Unmarshal(b []byte) error

type DebugLinkState

type DebugLinkState struct {
	Layout               []byte      `protobuf:"bytes,1,opt,name=layout,proto3" json:"layout,omitempty"`
	Pin                  string      `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"`
	Matrix               string      `protobuf:"bytes,3,opt,name=matrix,proto3" json:"matrix,omitempty"`
	Mnemonic             string      `protobuf:"bytes,4,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	Node                 *HDNodeType `protobuf:"bytes,5,opt,name=node,proto3" json:"node,omitempty"`
	PassphraseProtection bool        `protobuf:"varint,6,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	ResetWord            string      `protobuf:"bytes,7,opt,name=reset_word,json=resetWord,proto3" json:"reset_word,omitempty"`
	ResetEntropy         []byte      `protobuf:"bytes,8,opt,name=reset_entropy,json=resetEntropy,proto3" json:"reset_entropy,omitempty"`
	RecoveryFakeWord     string      `protobuf:"bytes,9,opt,name=recovery_fake_word,json=recoveryFakeWord,proto3" json:"recovery_fake_word,omitempty"`
	RecoveryWordPos      uint32      `protobuf:"varint,10,opt,name=recovery_word_pos,json=recoveryWordPos,proto3" json:"recovery_word_pos,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Response: Device current state @prev DebugLinkGetState

func (*DebugLinkState) Descriptor

func (*DebugLinkState) Descriptor() ([]byte, []int)

func (*DebugLinkState) GetLayout

func (m *DebugLinkState) GetLayout() []byte

func (*DebugLinkState) GetMatrix

func (m *DebugLinkState) GetMatrix() string

func (*DebugLinkState) GetMnemonic

func (m *DebugLinkState) GetMnemonic() string

func (*DebugLinkState) GetNode

func (m *DebugLinkState) GetNode() *HDNodeType

func (*DebugLinkState) GetPassphraseProtection

func (m *DebugLinkState) GetPassphraseProtection() bool

func (*DebugLinkState) GetPin

func (m *DebugLinkState) GetPin() string

func (*DebugLinkState) GetRecoveryFakeWord

func (m *DebugLinkState) GetRecoveryFakeWord() string

func (*DebugLinkState) GetRecoveryWordPos

func (m *DebugLinkState) GetRecoveryWordPos() uint32

func (*DebugLinkState) GetResetEntropy

func (m *DebugLinkState) GetResetEntropy() []byte

func (*DebugLinkState) GetResetWord

func (m *DebugLinkState) GetResetWord() string

func (*DebugLinkState) ProtoMessage

func (*DebugLinkState) ProtoMessage()

func (*DebugLinkState) Reset

func (m *DebugLinkState) Reset()

func (*DebugLinkState) String

func (m *DebugLinkState) String() string

func (*DebugLinkState) XXX_DiscardUnknown

func (m *DebugLinkState) XXX_DiscardUnknown()

func (*DebugLinkState) XXX_Marshal

func (m *DebugLinkState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkState) XXX_Merge

func (m *DebugLinkState) XXX_Merge(src proto.Message)

func (*DebugLinkState) XXX_Size

func (m *DebugLinkState) XXX_Size() int

func (*DebugLinkState) XXX_Unmarshal

func (m *DebugLinkState) XXX_Unmarshal(b []byte) error

type DebugLinkStop

type DebugLinkStop struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to restart

func (*DebugLinkStop) Descriptor

func (*DebugLinkStop) Descriptor() ([]byte, []int)

func (*DebugLinkStop) ProtoMessage

func (*DebugLinkStop) ProtoMessage()

func (*DebugLinkStop) Reset

func (m *DebugLinkStop) Reset()

func (*DebugLinkStop) String

func (m *DebugLinkStop) String() string

func (*DebugLinkStop) XXX_DiscardUnknown

func (m *DebugLinkStop) XXX_DiscardUnknown()

func (*DebugLinkStop) XXX_Marshal

func (m *DebugLinkStop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DebugLinkStop) XXX_Merge

func (m *DebugLinkStop) XXX_Merge(src proto.Message)

func (*DebugLinkStop) XXX_Size

func (m *DebugLinkStop) XXX_Size() int

func (*DebugLinkStop) XXX_Unmarshal

func (m *DebugLinkStop) XXX_Unmarshal(b []byte) error

type DecryptMessage

type DecryptMessage struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Nonce                []byte   `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Message              []byte   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Hmac                 []byte   `protobuf:"bytes,4,opt,name=hmac,proto3" json:"hmac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to decrypt message @next Success @next Failure

func (*DecryptMessage) Descriptor

func (*DecryptMessage) Descriptor() ([]byte, []int)

func (*DecryptMessage) GetAddressN

func (m *DecryptMessage) GetAddressN() []uint32

func (*DecryptMessage) GetHmac

func (m *DecryptMessage) GetHmac() []byte

func (*DecryptMessage) GetMessage

func (m *DecryptMessage) GetMessage() []byte

func (*DecryptMessage) GetNonce

func (m *DecryptMessage) GetNonce() []byte

func (*DecryptMessage) ProtoMessage

func (*DecryptMessage) ProtoMessage()

func (*DecryptMessage) Reset

func (m *DecryptMessage) Reset()

func (*DecryptMessage) String

func (m *DecryptMessage) String() string

func (*DecryptMessage) XXX_DiscardUnknown

func (m *DecryptMessage) XXX_DiscardUnknown()

func (*DecryptMessage) XXX_Marshal

func (m *DecryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptMessage) XXX_Merge

func (m *DecryptMessage) XXX_Merge(src proto.Message)

func (*DecryptMessage) XXX_Size

func (m *DecryptMessage) XXX_Size() int

func (*DecryptMessage) XXX_Unmarshal

func (m *DecryptMessage) XXX_Unmarshal(b []byte) error

type DecryptedMessage

type DecryptedMessage struct {
	Message              []byte   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Decrypted message @prev DecryptedMessage

func (*DecryptedMessage) Descriptor

func (*DecryptedMessage) Descriptor() ([]byte, []int)

func (*DecryptedMessage) GetAddress

func (m *DecryptedMessage) GetAddress() string

func (*DecryptedMessage) GetMessage

func (m *DecryptedMessage) GetMessage() []byte

func (*DecryptedMessage) ProtoMessage

func (*DecryptedMessage) ProtoMessage()

func (*DecryptedMessage) Reset

func (m *DecryptedMessage) Reset()

func (*DecryptedMessage) String

func (m *DecryptedMessage) String() string

func (*DecryptedMessage) XXX_DiscardUnknown

func (m *DecryptedMessage) XXX_DiscardUnknown()

func (*DecryptedMessage) XXX_Marshal

func (m *DecryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DecryptedMessage) XXX_Merge

func (m *DecryptedMessage) XXX_Merge(src proto.Message)

func (*DecryptedMessage) XXX_Size

func (m *DecryptedMessage) XXX_Size() int

func (*DecryptedMessage) XXX_Unmarshal

func (m *DecryptedMessage) XXX_Unmarshal(b []byte) error

type Device

type Device struct {
	Path         string
	Vendor       int
	Product      int
	Debug        bool
	Session      Session
	DebugSession Session
}

type ECDHSessionKey

type ECDHSessionKey struct {
	SessionKey           []byte   `protobuf:"bytes,1,opt,name=session_key,json=sessionKey,proto3" json:"session_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device provides ECDH session key @prev GetECDHSessionKey

func (*ECDHSessionKey) Descriptor

func (*ECDHSessionKey) Descriptor() ([]byte, []int)

func (*ECDHSessionKey) GetSessionKey

func (m *ECDHSessionKey) GetSessionKey() []byte

func (*ECDHSessionKey) ProtoMessage

func (*ECDHSessionKey) ProtoMessage()

func (*ECDHSessionKey) Reset

func (m *ECDHSessionKey) Reset()

func (*ECDHSessionKey) String

func (m *ECDHSessionKey) String() string

func (*ECDHSessionKey) XXX_DiscardUnknown

func (m *ECDHSessionKey) XXX_DiscardUnknown()

func (*ECDHSessionKey) XXX_Marshal

func (m *ECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ECDHSessionKey) XXX_Merge

func (m *ECDHSessionKey) XXX_Merge(src proto.Message)

func (*ECDHSessionKey) XXX_Size

func (m *ECDHSessionKey) XXX_Size() int

func (*ECDHSessionKey) XXX_Unmarshal

func (m *ECDHSessionKey) XXX_Unmarshal(b []byte) error

type EncryptMessage

type EncryptMessage struct {
	Pubkey               []byte   `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Message              []byte   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	DisplayOnly          bool     `protobuf:"varint,3,opt,name=display_only,json=displayOnly,proto3" json:"display_only,omitempty"`
	AddressN             []uint32 `protobuf:"varint,4,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	CoinName             string   `protobuf:"bytes,5,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to encrypt message @next EncryptedMessage @next Failure

func (*EncryptMessage) Descriptor

func (*EncryptMessage) Descriptor() ([]byte, []int)

func (*EncryptMessage) GetAddressN

func (m *EncryptMessage) GetAddressN() []uint32

func (*EncryptMessage) GetCoinName

func (m *EncryptMessage) GetCoinName() string

func (*EncryptMessage) GetDisplayOnly

func (m *EncryptMessage) GetDisplayOnly() bool

func (*EncryptMessage) GetMessage

func (m *EncryptMessage) GetMessage() []byte

func (*EncryptMessage) GetPubkey

func (m *EncryptMessage) GetPubkey() []byte

func (*EncryptMessage) ProtoMessage

func (*EncryptMessage) ProtoMessage()

func (*EncryptMessage) Reset

func (m *EncryptMessage) Reset()

func (*EncryptMessage) String

func (m *EncryptMessage) String() string

func (*EncryptMessage) XXX_DiscardUnknown

func (m *EncryptMessage) XXX_DiscardUnknown()

func (*EncryptMessage) XXX_Marshal

func (m *EncryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptMessage) XXX_Merge

func (m *EncryptMessage) XXX_Merge(src proto.Message)

func (*EncryptMessage) XXX_Size

func (m *EncryptMessage) XXX_Size() int

func (*EncryptMessage) XXX_Unmarshal

func (m *EncryptMessage) XXX_Unmarshal(b []byte) error

type EncryptedMessage

type EncryptedMessage struct {
	Nonce                []byte   `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Message              []byte   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Hmac                 []byte   `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Encrypted message @prev EncryptMessage

func (*EncryptedMessage) Descriptor

func (*EncryptedMessage) Descriptor() ([]byte, []int)

func (*EncryptedMessage) GetHmac

func (m *EncryptedMessage) GetHmac() []byte

func (*EncryptedMessage) GetMessage

func (m *EncryptedMessage) GetMessage() []byte

func (*EncryptedMessage) GetNonce

func (m *EncryptedMessage) GetNonce() []byte

func (*EncryptedMessage) ProtoMessage

func (*EncryptedMessage) ProtoMessage()

func (*EncryptedMessage) Reset

func (m *EncryptedMessage) Reset()

func (*EncryptedMessage) String

func (m *EncryptedMessage) String() string

func (*EncryptedMessage) XXX_DiscardUnknown

func (m *EncryptedMessage) XXX_DiscardUnknown()

func (*EncryptedMessage) XXX_Marshal

func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncryptedMessage) XXX_Merge

func (m *EncryptedMessage) XXX_Merge(src proto.Message)

func (*EncryptedMessage) XXX_Size

func (m *EncryptedMessage) XXX_Size() int

func (*EncryptedMessage) XXX_Unmarshal

func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error

type Entropy

type Entropy struct {
	Entropy              []byte   `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Reply with random data generated by internal RNG @prev GetEntropy

func (*Entropy) Descriptor

func (*Entropy) Descriptor() ([]byte, []int)

func (*Entropy) GetEntropy

func (m *Entropy) GetEntropy() []byte

func (*Entropy) ProtoMessage

func (*Entropy) ProtoMessage()

func (*Entropy) Reset

func (m *Entropy) Reset()

func (*Entropy) String

func (m *Entropy) String() string

func (*Entropy) XXX_DiscardUnknown

func (m *Entropy) XXX_DiscardUnknown()

func (*Entropy) XXX_Marshal

func (m *Entropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Entropy) XXX_Merge

func (m *Entropy) XXX_Merge(src proto.Message)

func (*Entropy) XXX_Size

func (m *Entropy) XXX_Size() int

func (*Entropy) XXX_Unmarshal

func (m *Entropy) XXX_Unmarshal(b []byte) error

type EntropyAck

type EntropyAck struct {
	Entropy              []byte   `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Provide additional entropy for seed generation function @prev EntropyRequest @next ButtonRequest

func (*EntropyAck) Descriptor

func (*EntropyAck) Descriptor() ([]byte, []int)

func (*EntropyAck) GetEntropy

func (m *EntropyAck) GetEntropy() []byte

func (*EntropyAck) ProtoMessage

func (*EntropyAck) ProtoMessage()

func (*EntropyAck) Reset

func (m *EntropyAck) Reset()

func (*EntropyAck) String

func (m *EntropyAck) String() string

func (*EntropyAck) XXX_DiscardUnknown

func (m *EntropyAck) XXX_DiscardUnknown()

func (*EntropyAck) XXX_Marshal

func (m *EntropyAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntropyAck) XXX_Merge

func (m *EntropyAck) XXX_Merge(src proto.Message)

func (*EntropyAck) XXX_Size

func (m *EntropyAck) XXX_Size() int

func (*EntropyAck) XXX_Unmarshal

func (m *EntropyAck) XXX_Unmarshal(b []byte) error

type EntropyRequest

type EntropyRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Ask for additional entropy from host computer @prev ResetDevice @next EntropyAck

func (*EntropyRequest) Descriptor

func (*EntropyRequest) Descriptor() ([]byte, []int)

func (*EntropyRequest) ProtoMessage

func (*EntropyRequest) ProtoMessage()

func (*EntropyRequest) Reset

func (m *EntropyRequest) Reset()

func (*EntropyRequest) String

func (m *EntropyRequest) String() string

func (*EntropyRequest) XXX_DiscardUnknown

func (m *EntropyRequest) XXX_DiscardUnknown()

func (*EntropyRequest) XXX_Marshal

func (m *EntropyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntropyRequest) XXX_Merge

func (m *EntropyRequest) XXX_Merge(src proto.Message)

func (*EntropyRequest) XXX_Size

func (m *EntropyRequest) XXX_Size() int

func (*EntropyRequest) XXX_Unmarshal

func (m *EntropyRequest) XXX_Unmarshal(b []byte) error

type EstimateTxSize

type EstimateTxSize struct {
	OutputsCount         uint32   `protobuf:"varint,1,opt,name=outputs_count,json=outputsCount,proto3" json:"outputs_count,omitempty"`
	InputsCount          uint32   `protobuf:"varint,2,opt,name=inputs_count,json=inputsCount,proto3" json:"inputs_count,omitempty"`
	CoinName             string   `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Estimated size of the transaction This behaves exactly like SignTx, which means that it can ask using TxRequest This call is non-blocking (except possible PassphraseRequest to unlock the seed) @next TxSize @next Failure

func (*EstimateTxSize) Descriptor

func (*EstimateTxSize) Descriptor() ([]byte, []int)

func (*EstimateTxSize) GetCoinName

func (m *EstimateTxSize) GetCoinName() string

func (*EstimateTxSize) GetInputsCount

func (m *EstimateTxSize) GetInputsCount() uint32

func (*EstimateTxSize) GetOutputsCount

func (m *EstimateTxSize) GetOutputsCount() uint32

func (*EstimateTxSize) ProtoMessage

func (*EstimateTxSize) ProtoMessage()

func (*EstimateTxSize) Reset

func (m *EstimateTxSize) Reset()

func (*EstimateTxSize) String

func (m *EstimateTxSize) String() string

func (*EstimateTxSize) XXX_DiscardUnknown

func (m *EstimateTxSize) XXX_DiscardUnknown()

func (*EstimateTxSize) XXX_Marshal

func (m *EstimateTxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EstimateTxSize) XXX_Merge

func (m *EstimateTxSize) XXX_Merge(src proto.Message)

func (*EstimateTxSize) XXX_Size

func (m *EstimateTxSize) XXX_Size() int

func (*EstimateTxSize) XXX_Unmarshal

func (m *EstimateTxSize) XXX_Unmarshal(b []byte) error

type Failure

type Failure struct {
	Code                 FailureType `protobuf:"varint,1,opt,name=code,proto3,enum=trezor.FailureType" json:"code,omitempty"`
	Message              string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Response: Failure of the previous request

func (*Failure) Descriptor

func (*Failure) Descriptor() ([]byte, []int)

func (*Failure) GetCode

func (m *Failure) GetCode() FailureType

func (*Failure) GetMessage

func (m *Failure) GetMessage() string

func (*Failure) ProtoMessage

func (*Failure) ProtoMessage()

func (*Failure) Reset

func (m *Failure) Reset()

func (*Failure) String

func (m *Failure) String() string

func (*Failure) XXX_DiscardUnknown

func (m *Failure) XXX_DiscardUnknown()

func (*Failure) XXX_Marshal

func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Failure) XXX_Merge

func (m *Failure) XXX_Merge(src proto.Message)

func (*Failure) XXX_Size

func (m *Failure) XXX_Size() int

func (*Failure) XXX_Unmarshal

func (m *Failure) XXX_Unmarshal(b []byte) error

type FailureType

type FailureType int32

* Type of failures returned by Failure message @used_in Failure

const (
	FailureType_Failure_UnexpectedMessage FailureType = 0
	FailureType_Failure_ButtonExpected    FailureType = 2
	FailureType_Failure_DataError         FailureType = 3
	FailureType_Failure_ActionCancelled   FailureType = 4
	FailureType_Failure_PinExpected       FailureType = 5
	FailureType_Failure_PinCancelled      FailureType = 6
	FailureType_Failure_PinInvalid        FailureType = 7
	FailureType_Failure_InvalidSignature  FailureType = 8
	FailureType_Failure_ProcessError      FailureType = 9
	FailureType_Failure_NotEnoughFunds    FailureType = 10
	FailureType_Failure_NotInitialized    FailureType = 11
	FailureType_Failure_FirmwareError     FailureType = 99
)

func (FailureType) EnumDescriptor

func (FailureType) EnumDescriptor() ([]byte, []int)

func (FailureType) String

func (x FailureType) String() string

type Features

type Features struct {
	Vendor               string      `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	MajorVersion         uint32      `protobuf:"varint,2,opt,name=major_version,json=majorVersion,proto3" json:"major_version,omitempty"`
	MinorVersion         uint32      `protobuf:"varint,3,opt,name=minor_version,json=minorVersion,proto3" json:"minor_version,omitempty"`
	PatchVersion         uint32      `protobuf:"varint,4,opt,name=patch_version,json=patchVersion,proto3" json:"patch_version,omitempty"`
	BootloaderMode       bool        `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode,proto3" json:"bootloader_mode,omitempty"`
	DeviceId             string      `protobuf:"bytes,6,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	PinProtection        bool        `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"`
	PassphraseProtection bool        `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	Language             string      `protobuf:"bytes,9,opt,name=language,proto3" json:"language,omitempty"`
	Label                string      `protobuf:"bytes,10,opt,name=label,proto3" json:"label,omitempty"`
	Coins                []*CoinType `protobuf:"bytes,11,rep,name=coins,proto3" json:"coins,omitempty"`
	Initialized          bool        `protobuf:"varint,12,opt,name=initialized,proto3" json:"initialized,omitempty"`
	Revision             []byte      `protobuf:"bytes,13,opt,name=revision,proto3" json:"revision,omitempty"`
	BootloaderHash       []byte      `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash,proto3" json:"bootloader_hash,omitempty"`
	Imported             bool        `protobuf:"varint,15,opt,name=imported,proto3" json:"imported,omitempty"`
	PinCached            bool        `protobuf:"varint,16,opt,name=pin_cached,json=pinCached,proto3" json:"pin_cached,omitempty"`
	PassphraseCached     bool        `protobuf:"varint,17,opt,name=passphrase_cached,json=passphraseCached,proto3" json:"passphrase_cached,omitempty"`
	FirmwarePresent      bool        `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent,proto3" json:"firmware_present,omitempty"`
	NeedsBackup          bool        `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup,proto3" json:"needs_backup,omitempty"`
	Flags                uint32      `protobuf:"varint,20,opt,name=flags,proto3" json:"flags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Response: Reports various information about the device @prev Initialize @prev GetFeatures

func (*Features) Descriptor

func (*Features) Descriptor() ([]byte, []int)

func (*Features) GetBootloaderHash

func (m *Features) GetBootloaderHash() []byte

func (*Features) GetBootloaderMode

func (m *Features) GetBootloaderMode() bool

func (*Features) GetCoins

func (m *Features) GetCoins() []*CoinType

func (*Features) GetDeviceId

func (m *Features) GetDeviceId() string

func (*Features) GetFirmwarePresent

func (m *Features) GetFirmwarePresent() bool

func (*Features) GetFlags

func (m *Features) GetFlags() uint32

func (*Features) GetImported

func (m *Features) GetImported() bool

func (*Features) GetInitialized

func (m *Features) GetInitialized() bool

func (*Features) GetLabel

func (m *Features) GetLabel() string

func (*Features) GetLanguage

func (m *Features) GetLanguage() string

func (*Features) GetMajorVersion

func (m *Features) GetMajorVersion() uint32

func (*Features) GetMinorVersion

func (m *Features) GetMinorVersion() uint32

func (*Features) GetNeedsBackup

func (m *Features) GetNeedsBackup() bool

func (*Features) GetPassphraseCached

func (m *Features) GetPassphraseCached() bool

func (*Features) GetPassphraseProtection

func (m *Features) GetPassphraseProtection() bool

func (*Features) GetPatchVersion

func (m *Features) GetPatchVersion() uint32

func (*Features) GetPinCached

func (m *Features) GetPinCached() bool

func (*Features) GetPinProtection

func (m *Features) GetPinProtection() bool

func (*Features) GetRevision

func (m *Features) GetRevision() []byte

func (*Features) GetVendor

func (m *Features) GetVendor() string

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) Reset

func (m *Features) Reset()

func (*Features) String

func (m *Features) String() string

func (*Features) XXX_DiscardUnknown

func (m *Features) XXX_DiscardUnknown()

func (*Features) XXX_Marshal

func (m *Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Features) XXX_Merge

func (m *Features) XXX_Merge(src proto.Message)

func (*Features) XXX_Size

func (m *Features) XXX_Size() int

func (*Features) XXX_Unmarshal

func (m *Features) XXX_Unmarshal(b []byte) error

type FirmwareErase

type FirmwareErase struct {
	Length               uint32   `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to erase its firmware (so it can be replaced via FirmwareUpload) @next Success @next FirmwareRequest @next Failure

func (*FirmwareErase) Descriptor

func (*FirmwareErase) Descriptor() ([]byte, []int)

func (*FirmwareErase) GetLength

func (m *FirmwareErase) GetLength() uint32

func (*FirmwareErase) ProtoMessage

func (*FirmwareErase) ProtoMessage()

func (*FirmwareErase) Reset

func (m *FirmwareErase) Reset()

func (*FirmwareErase) String

func (m *FirmwareErase) String() string

func (*FirmwareErase) XXX_DiscardUnknown

func (m *FirmwareErase) XXX_DiscardUnknown()

func (*FirmwareErase) XXX_Marshal

func (m *FirmwareErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FirmwareErase) XXX_Merge

func (m *FirmwareErase) XXX_Merge(src proto.Message)

func (*FirmwareErase) XXX_Size

func (m *FirmwareErase) XXX_Size() int

func (*FirmwareErase) XXX_Unmarshal

func (m *FirmwareErase) XXX_Unmarshal(b []byte) error

type FirmwareRequest

type FirmwareRequest struct {
	Offset               uint32   `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	Length               uint32   `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Ask for firmware chunk @next FirmwareUpload

func (*FirmwareRequest) Descriptor

func (*FirmwareRequest) Descriptor() ([]byte, []int)

func (*FirmwareRequest) GetLength

func (m *FirmwareRequest) GetLength() uint32

func (*FirmwareRequest) GetOffset

func (m *FirmwareRequest) GetOffset() uint32

func (*FirmwareRequest) ProtoMessage

func (*FirmwareRequest) ProtoMessage()

func (*FirmwareRequest) Reset

func (m *FirmwareRequest) Reset()

func (*FirmwareRequest) String

func (m *FirmwareRequest) String() string

func (*FirmwareRequest) XXX_DiscardUnknown

func (m *FirmwareRequest) XXX_DiscardUnknown()

func (*FirmwareRequest) XXX_Marshal

func (m *FirmwareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FirmwareRequest) XXX_Merge

func (m *FirmwareRequest) XXX_Merge(src proto.Message)

func (*FirmwareRequest) XXX_Size

func (m *FirmwareRequest) XXX_Size() int

func (*FirmwareRequest) XXX_Unmarshal

func (m *FirmwareRequest) XXX_Unmarshal(b []byte) error

type FirmwareUpload

type FirmwareUpload struct {
	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Hash                 []byte   `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Send firmware in binary form to the device @next Success @next Failure

func (*FirmwareUpload) Descriptor

func (*FirmwareUpload) Descriptor() ([]byte, []int)

func (*FirmwareUpload) GetHash

func (m *FirmwareUpload) GetHash() []byte

func (*FirmwareUpload) GetPayload

func (m *FirmwareUpload) GetPayload() []byte

func (*FirmwareUpload) ProtoMessage

func (*FirmwareUpload) ProtoMessage()

func (*FirmwareUpload) Reset

func (m *FirmwareUpload) Reset()

func (*FirmwareUpload) String

func (m *FirmwareUpload) String() string

func (*FirmwareUpload) XXX_DiscardUnknown

func (m *FirmwareUpload) XXX_DiscardUnknown()

func (*FirmwareUpload) XXX_Marshal

func (m *FirmwareUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FirmwareUpload) XXX_Merge

func (m *FirmwareUpload) XXX_Merge(src proto.Message)

func (*FirmwareUpload) XXX_Size

func (m *FirmwareUpload) XXX_Size() int

func (*FirmwareUpload) XXX_Unmarshal

func (m *FirmwareUpload) XXX_Unmarshal(b []byte) error

type GetAddress

type GetAddress struct {
	AddressN             []uint32                  `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	CoinName             string                    `protobuf:"bytes,2,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	ShowDisplay          bool                      `protobuf:"varint,3,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"`
	Multisig             *MultisigRedeemScriptType `protobuf:"bytes,4,opt,name=multisig,proto3" json:"multisig,omitempty"`
	ScriptType           InputScriptType           `protobuf:"varint,5,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

* Request: Ask device for address corresponding to address_n path @next PassphraseRequest @next Address @next Failure

func (*GetAddress) Descriptor

func (*GetAddress) Descriptor() ([]byte, []int)

func (*GetAddress) GetAddressN

func (m *GetAddress) GetAddressN() []uint32

func (*GetAddress) GetCoinName

func (m *GetAddress) GetCoinName() string

func (*GetAddress) GetMultisig

func (m *GetAddress) GetMultisig() *MultisigRedeemScriptType

func (*GetAddress) GetScriptType

func (m *GetAddress) GetScriptType() InputScriptType

func (*GetAddress) GetShowDisplay

func (m *GetAddress) GetShowDisplay() bool

func (*GetAddress) ProtoMessage

func (*GetAddress) ProtoMessage()

func (*GetAddress) Reset

func (m *GetAddress) Reset()

func (*GetAddress) String

func (m *GetAddress) String() string

func (*GetAddress) XXX_DiscardUnknown

func (m *GetAddress) XXX_DiscardUnknown()

func (*GetAddress) XXX_Marshal

func (m *GetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetAddress) XXX_Merge

func (m *GetAddress) XXX_Merge(src proto.Message)

func (*GetAddress) XXX_Size

func (m *GetAddress) XXX_Size() int

func (*GetAddress) XXX_Unmarshal

func (m *GetAddress) XXX_Unmarshal(b []byte) error

type GetECDHSessionKey

type GetECDHSessionKey struct {
	Identity             *IdentityType `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	PeerPublicKey        []byte        `protobuf:"bytes,2,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"`
	EcdsaCurveName       string        `protobuf:"bytes,3,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

* Request: Ask device to generate ECDH session key @next ECDHSessionKey @next Failure

func (*GetECDHSessionKey) Descriptor

func (*GetECDHSessionKey) Descriptor() ([]byte, []int)

func (*GetECDHSessionKey) GetEcdsaCurveName

func (m *GetECDHSessionKey) GetEcdsaCurveName() string

func (*GetECDHSessionKey) GetIdentity

func (m *GetECDHSessionKey) GetIdentity() *IdentityType

func (*GetECDHSessionKey) GetPeerPublicKey

func (m *GetECDHSessionKey) GetPeerPublicKey() []byte

func (*GetECDHSessionKey) ProtoMessage

func (*GetECDHSessionKey) ProtoMessage()

func (*GetECDHSessionKey) Reset

func (m *GetECDHSessionKey) Reset()

func (*GetECDHSessionKey) String

func (m *GetECDHSessionKey) String() string

func (*GetECDHSessionKey) XXX_DiscardUnknown

func (m *GetECDHSessionKey) XXX_DiscardUnknown()

func (*GetECDHSessionKey) XXX_Marshal

func (m *GetECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetECDHSessionKey) XXX_Merge

func (m *GetECDHSessionKey) XXX_Merge(src proto.Message)

func (*GetECDHSessionKey) XXX_Size

func (m *GetECDHSessionKey) XXX_Size() int

func (*GetECDHSessionKey) XXX_Unmarshal

func (m *GetECDHSessionKey) XXX_Unmarshal(b []byte) error

type GetEntropy

type GetEntropy struct {
	Size                 uint32   `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Request a sample of random data generated by hardware RNG. May be used for testing. @next ButtonRequest @next Entropy @next Failure

func (*GetEntropy) Descriptor

func (*GetEntropy) Descriptor() ([]byte, []int)

func (*GetEntropy) GetSize

func (m *GetEntropy) GetSize() uint32

func (*GetEntropy) ProtoMessage

func (*GetEntropy) ProtoMessage()

func (*GetEntropy) Reset

func (m *GetEntropy) Reset()

func (*GetEntropy) String

func (m *GetEntropy) String() string

func (*GetEntropy) XXX_DiscardUnknown

func (m *GetEntropy) XXX_DiscardUnknown()

func (*GetEntropy) XXX_Marshal

func (m *GetEntropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetEntropy) XXX_Merge

func (m *GetEntropy) XXX_Merge(src proto.Message)

func (*GetEntropy) XXX_Size

func (m *GetEntropy) XXX_Size() int

func (*GetEntropy) XXX_Unmarshal

func (m *GetEntropy) XXX_Unmarshal(b []byte) error

type GetFeatures

type GetFeatures struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask for device details (no device reset) @next Features

func (*GetFeatures) Descriptor

func (*GetFeatures) Descriptor() ([]byte, []int)

func (*GetFeatures) ProtoMessage

func (*GetFeatures) ProtoMessage()

func (*GetFeatures) Reset

func (m *GetFeatures) Reset()

func (*GetFeatures) String

func (m *GetFeatures) String() string

func (*GetFeatures) XXX_DiscardUnknown

func (m *GetFeatures) XXX_DiscardUnknown()

func (*GetFeatures) XXX_Marshal

func (m *GetFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetFeatures) XXX_Merge

func (m *GetFeatures) XXX_Merge(src proto.Message)

func (*GetFeatures) XXX_Size

func (m *GetFeatures) XXX_Size() int

func (*GetFeatures) XXX_Unmarshal

func (m *GetFeatures) XXX_Unmarshal(b []byte) error

type GetPublicKey

type GetPublicKey struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	EcdsaCurveName       string   `protobuf:"bytes,2,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"`
	ShowDisplay          bool     `protobuf:"varint,3,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"`
	CoinName             string   `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device for public key corresponding to address_n path @next PassphraseRequest @next PublicKey @next Failure

func (*GetPublicKey) Descriptor

func (*GetPublicKey) Descriptor() ([]byte, []int)

func (*GetPublicKey) GetAddressN

func (m *GetPublicKey) GetAddressN() []uint32

func (*GetPublicKey) GetCoinName

func (m *GetPublicKey) GetCoinName() string

func (*GetPublicKey) GetEcdsaCurveName

func (m *GetPublicKey) GetEcdsaCurveName() string

func (*GetPublicKey) GetShowDisplay

func (m *GetPublicKey) GetShowDisplay() bool

func (*GetPublicKey) ProtoMessage

func (*GetPublicKey) ProtoMessage()

func (*GetPublicKey) Reset

func (m *GetPublicKey) Reset()

func (*GetPublicKey) String

func (m *GetPublicKey) String() string

func (*GetPublicKey) XXX_DiscardUnknown

func (m *GetPublicKey) XXX_DiscardUnknown()

func (*GetPublicKey) XXX_Marshal

func (m *GetPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPublicKey) XXX_Merge

func (m *GetPublicKey) XXX_Merge(src proto.Message)

func (*GetPublicKey) XXX_Size

func (m *GetPublicKey) XXX_Size() int

func (*GetPublicKey) XXX_Unmarshal

func (m *GetPublicKey) XXX_Unmarshal(b []byte) error

type HDNodePathType

type HDNodePathType struct {
	Node                 *HDNodeType `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	AddressN             []uint32    `protobuf:"varint,2,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*HDNodePathType) Descriptor

func (*HDNodePathType) Descriptor() ([]byte, []int)

func (*HDNodePathType) GetAddressN

func (m *HDNodePathType) GetAddressN() []uint32

func (*HDNodePathType) GetNode

func (m *HDNodePathType) GetNode() *HDNodeType

func (*HDNodePathType) ProtoMessage

func (*HDNodePathType) ProtoMessage()

func (*HDNodePathType) Reset

func (m *HDNodePathType) Reset()

func (*HDNodePathType) String

func (m *HDNodePathType) String() string

func (*HDNodePathType) XXX_DiscardUnknown

func (m *HDNodePathType) XXX_DiscardUnknown()

func (*HDNodePathType) XXX_Marshal

func (m *HDNodePathType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HDNodePathType) XXX_Merge

func (m *HDNodePathType) XXX_Merge(src proto.Message)

func (*HDNodePathType) XXX_Size

func (m *HDNodePathType) XXX_Size() int

func (*HDNodePathType) XXX_Unmarshal

func (m *HDNodePathType) XXX_Unmarshal(b []byte) error

type HDNodeType

type HDNodeType struct {
	Depth                uint32   `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"`
	Fingerprint          uint32   `protobuf:"varint,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	ChildNum             uint32   `protobuf:"varint,3,opt,name=child_num,json=childNum,proto3" json:"child_num,omitempty"`
	ChainCode            []byte   `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,5,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	PublicKey            []byte   `protobuf:"bytes,6,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing BIP32 (hierarchical deterministic) node Used for imports of private key into the device and exporting public key out of device @used_in PublicKey @used_in LoadDevice @used_in DebugLinkState @used_in Storage

func (*HDNodeType) Descriptor

func (*HDNodeType) Descriptor() ([]byte, []int)

func (*HDNodeType) GetChainCode

func (m *HDNodeType) GetChainCode() []byte

func (*HDNodeType) GetChildNum

func (m *HDNodeType) GetChildNum() uint32

func (*HDNodeType) GetDepth

func (m *HDNodeType) GetDepth() uint32

func (*HDNodeType) GetFingerprint

func (m *HDNodeType) GetFingerprint() uint32

func (*HDNodeType) GetPrivateKey

func (m *HDNodeType) GetPrivateKey() []byte

func (*HDNodeType) GetPublicKey

func (m *HDNodeType) GetPublicKey() []byte

func (*HDNodeType) ProtoMessage

func (*HDNodeType) ProtoMessage()

func (*HDNodeType) Reset

func (m *HDNodeType) Reset()

func (*HDNodeType) String

func (m *HDNodeType) String() string

func (*HDNodeType) XXX_DiscardUnknown

func (m *HDNodeType) XXX_DiscardUnknown()

func (*HDNodeType) XXX_Marshal

func (m *HDNodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HDNodeType) XXX_Merge

func (m *HDNodeType) XXX_Merge(src proto.Message)

func (*HDNodeType) XXX_Size

func (m *HDNodeType) XXX_Size() int

func (*HDNodeType) XXX_Unmarshal

func (m *HDNodeType) XXX_Unmarshal(b []byte) error

type IdentityType

type IdentityType struct {
	Proto                string   `protobuf:"bytes,1,opt,name=proto,proto3" json:"proto,omitempty"`
	User                 string   `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Host                 string   `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	Port                 string   `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"`
	Path                 string   `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	Index                uint32   `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing identity data @used_in IdentityType

func (*IdentityType) Descriptor

func (*IdentityType) Descriptor() ([]byte, []int)

func (*IdentityType) GetHost

func (m *IdentityType) GetHost() string

func (*IdentityType) GetIndex

func (m *IdentityType) GetIndex() uint32

func (*IdentityType) GetPath

func (m *IdentityType) GetPath() string

func (*IdentityType) GetPort

func (m *IdentityType) GetPort() string

func (*IdentityType) GetProto

func (m *IdentityType) GetProto() string

func (*IdentityType) GetUser

func (m *IdentityType) GetUser() string

func (*IdentityType) ProtoMessage

func (*IdentityType) ProtoMessage()

func (*IdentityType) Reset

func (m *IdentityType) Reset()

func (*IdentityType) String

func (m *IdentityType) String() string

func (*IdentityType) XXX_DiscardUnknown

func (m *IdentityType) XXX_DiscardUnknown()

func (*IdentityType) XXX_Marshal

func (m *IdentityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdentityType) XXX_Merge

func (m *IdentityType) XXX_Merge(src proto.Message)

func (*IdentityType) XXX_Size

func (m *IdentityType) XXX_Size() int

func (*IdentityType) XXX_Unmarshal

func (m *IdentityType) XXX_Unmarshal(b []byte) error

type Initialize

type Initialize struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Reset device to default state and ask for device details @next Features

func (*Initialize) Descriptor

func (*Initialize) Descriptor() ([]byte, []int)

func (*Initialize) ProtoMessage

func (*Initialize) ProtoMessage()

func (*Initialize) Reset

func (m *Initialize) Reset()

func (*Initialize) String

func (m *Initialize) String() string

func (*Initialize) XXX_DiscardUnknown

func (m *Initialize) XXX_DiscardUnknown()

func (*Initialize) XXX_Marshal

func (m *Initialize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Initialize) XXX_Merge

func (m *Initialize) XXX_Merge(src proto.Message)

func (*Initialize) XXX_Size

func (m *Initialize) XXX_Size() int

func (*Initialize) XXX_Unmarshal

func (m *Initialize) XXX_Unmarshal(b []byte) error

type InputScriptType

type InputScriptType int32

* Type of script which will be used for transaction output @used_in TxInputType

const (
	InputScriptType_SPENDADDRESS     InputScriptType = 0
	InputScriptType_SPENDMULTISIG    InputScriptType = 1
	InputScriptType_EXTERNAL         InputScriptType = 2
	InputScriptType_SPENDWITNESS     InputScriptType = 3
	InputScriptType_SPENDP2SHWITNESS InputScriptType = 4
)

func (InputScriptType) EnumDescriptor

func (InputScriptType) EnumDescriptor() ([]byte, []int)

func (InputScriptType) String

func (x InputScriptType) String() string

type LoadDevice

type LoadDevice struct {
	Mnemonic             string      `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	Node                 *HDNodeType `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	Pin                  string      `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"`
	PassphraseProtection bool        `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	Language             string      `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
	Label                string      `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
	SkipChecksum         bool        `protobuf:"varint,7,opt,name=skip_checksum,json=skipChecksum,proto3" json:"skip_checksum,omitempty"`
	U2FCounter           uint32      `protobuf:"varint,8,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Request: Load seed and related internal settings from the computer @next ButtonRequest @next Success @next Failure

func (*LoadDevice) Descriptor

func (*LoadDevice) Descriptor() ([]byte, []int)

func (*LoadDevice) GetLabel

func (m *LoadDevice) GetLabel() string

func (*LoadDevice) GetLanguage

func (m *LoadDevice) GetLanguage() string

func (*LoadDevice) GetMnemonic

func (m *LoadDevice) GetMnemonic() string

func (*LoadDevice) GetNode

func (m *LoadDevice) GetNode() *HDNodeType

func (*LoadDevice) GetPassphraseProtection

func (m *LoadDevice) GetPassphraseProtection() bool

func (*LoadDevice) GetPin

func (m *LoadDevice) GetPin() string

func (*LoadDevice) GetSkipChecksum

func (m *LoadDevice) GetSkipChecksum() bool

func (*LoadDevice) GetU2FCounter

func (m *LoadDevice) GetU2FCounter() uint32

func (*LoadDevice) ProtoMessage

func (*LoadDevice) ProtoMessage()

func (*LoadDevice) Reset

func (m *LoadDevice) Reset()

func (*LoadDevice) String

func (m *LoadDevice) String() string

func (*LoadDevice) XXX_DiscardUnknown

func (m *LoadDevice) XXX_DiscardUnknown()

func (*LoadDevice) XXX_Marshal

func (m *LoadDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadDevice) XXX_Merge

func (m *LoadDevice) XXX_Merge(src proto.Message)

func (*LoadDevice) XXX_Size

func (m *LoadDevice) XXX_Size() int

func (*LoadDevice) XXX_Unmarshal

func (m *LoadDevice) XXX_Unmarshal(b []byte) error

type MessageSignature

type MessageSignature struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Signed message @prev SignMessage

func (*MessageSignature) Descriptor

func (*MessageSignature) Descriptor() ([]byte, []int)

func (*MessageSignature) GetAddress

func (m *MessageSignature) GetAddress() string

func (*MessageSignature) GetSignature

func (m *MessageSignature) GetSignature() []byte

func (*MessageSignature) ProtoMessage

func (*MessageSignature) ProtoMessage()

func (*MessageSignature) Reset

func (m *MessageSignature) Reset()

func (*MessageSignature) String

func (m *MessageSignature) String() string

func (*MessageSignature) XXX_DiscardUnknown

func (m *MessageSignature) XXX_DiscardUnknown()

func (*MessageSignature) XXX_Marshal

func (m *MessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageSignature) XXX_Merge

func (m *MessageSignature) XXX_Merge(src proto.Message)

func (*MessageSignature) XXX_Size

func (m *MessageSignature) XXX_Size() int

func (*MessageSignature) XXX_Unmarshal

func (m *MessageSignature) XXX_Unmarshal(b []byte) error

type MessageType

type MessageType int32

* Mapping between Trezor wire identifier (uint) and a protobuf message

const (
	MessageType_MessageType_Initialize            MessageType = 0
	MessageType_MessageType_Ping                  MessageType = 1
	MessageType_MessageType_Success               MessageType = 2
	MessageType_MessageType_Failure               MessageType = 3
	MessageType_MessageType_ChangePin             MessageType = 4
	MessageType_MessageType_WipeDevice            MessageType = 5
	MessageType_MessageType_FirmwareErase         MessageType = 6
	MessageType_MessageType_FirmwareUpload        MessageType = 7
	MessageType_MessageType_FirmwareRequest       MessageType = 8
	MessageType_MessageType_GetEntropy            MessageType = 9
	MessageType_MessageType_Entropy               MessageType = 10
	MessageType_MessageType_GetPublicKey          MessageType = 11
	MessageType_MessageType_PublicKey             MessageType = 12
	MessageType_MessageType_LoadDevice            MessageType = 13
	MessageType_MessageType_ResetDevice           MessageType = 14
	MessageType_MessageType_SignTx                MessageType = 15
	MessageType_MessageType_SimpleSignTx          MessageType = 16 // Deprecated: Do not use.
	MessageType_MessageType_Features              MessageType = 17
	MessageType_MessageType_PinMatrixRequest      MessageType = 18
	MessageType_MessageType_PinMatrixAck          MessageType = 19
	MessageType_MessageType_Cancel                MessageType = 20
	MessageType_MessageType_TxRequest             MessageType = 21
	MessageType_MessageType_TxAck                 MessageType = 22
	MessageType_MessageType_CipherKeyValue        MessageType = 23
	MessageType_MessageType_ClearSession          MessageType = 24
	MessageType_MessageType_ApplySettings         MessageType = 25
	MessageType_MessageType_ButtonRequest         MessageType = 26
	MessageType_MessageType_ButtonAck             MessageType = 27
	MessageType_MessageType_ApplyFlags            MessageType = 28
	MessageType_MessageType_GetAddress            MessageType = 29
	MessageType_MessageType_Address               MessageType = 30
	MessageType_MessageType_SelfTest              MessageType = 32
	MessageType_MessageType_BackupDevice          MessageType = 34
	MessageType_MessageType_EntropyRequest        MessageType = 35
	MessageType_MessageType_EntropyAck            MessageType = 36
	MessageType_MessageType_SignMessage           MessageType = 38
	MessageType_MessageType_VerifyMessage         MessageType = 39
	MessageType_MessageType_MessageSignature      MessageType = 40
	MessageType_MessageType_PassphraseRequest     MessageType = 41
	MessageType_MessageType_PassphraseAck         MessageType = 42
	MessageType_MessageType_EstimateTxSize        MessageType = 43 // Deprecated: Do not use.
	MessageType_MessageType_TxSize                MessageType = 44 // Deprecated: Do not use.
	MessageType_MessageType_RecoveryDevice        MessageType = 45
	MessageType_MessageType_WordRequest           MessageType = 46
	MessageType_MessageType_WordAck               MessageType = 47
	MessageType_MessageType_CipheredKeyValue      MessageType = 48
	MessageType_MessageType_EncryptMessage        MessageType = 49 // Deprecated: Do not use.
	MessageType_MessageType_EncryptedMessage      MessageType = 50 // Deprecated: Do not use.
	MessageType_MessageType_DecryptMessage        MessageType = 51 // Deprecated: Do not use.
	MessageType_MessageType_DecryptedMessage      MessageType = 52 // Deprecated: Do not use.
	MessageType_MessageType_SignIdentity          MessageType = 53
	MessageType_MessageType_SignedIdentity        MessageType = 54
	MessageType_MessageType_GetFeatures           MessageType = 55
	MessageType_MessageType_ThetaGetAddress       MessageType = 56
	MessageType_MessageType_ThetaAddress          MessageType = 57
	MessageType_MessageType_ThetaSignTx           MessageType = 58
	MessageType_MessageType_ThetaTxRequest        MessageType = 59
	MessageType_MessageType_ThetaTxAck            MessageType = 60
	MessageType_MessageType_GetECDHSessionKey     MessageType = 61
	MessageType_MessageType_ECDHSessionKey        MessageType = 62
	MessageType_MessageType_SetU2FCounter         MessageType = 63
	MessageType_MessageType_ThetaSignMessage      MessageType = 64
	MessageType_MessageType_ThetaVerifyMessage    MessageType = 65
	MessageType_MessageType_ThetaMessageSignature MessageType = 66
	MessageType_MessageType_DebugLinkDecision     MessageType = 100
	MessageType_MessageType_DebugLinkGetState     MessageType = 101
	MessageType_MessageType_DebugLinkState        MessageType = 102
	MessageType_MessageType_DebugLinkStop         MessageType = 103
	MessageType_MessageType_DebugLinkLog          MessageType = 104
	MessageType_MessageType_DebugLinkMemoryRead   MessageType = 110
	MessageType_MessageType_DebugLinkMemory       MessageType = 111
	MessageType_MessageType_DebugLinkMemoryWrite  MessageType = 112
	MessageType_MessageType_DebugLinkFlashErase   MessageType = 113
)

func (MessageType) EnumDescriptor

func (MessageType) EnumDescriptor() ([]byte, []int)

func (MessageType) String

func (x MessageType) String() string

type MultisigRedeemScriptType

type MultisigRedeemScriptType struct {
	Pubkeys              []*HDNodePathType `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
	Signatures           [][]byte          `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	M                    uint32            `protobuf:"varint,3,opt,name=m,proto3" json:"m,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

* Type of redeem script used in input @used_in TxInputType

func (*MultisigRedeemScriptType) Descriptor

func (*MultisigRedeemScriptType) Descriptor() ([]byte, []int)

func (*MultisigRedeemScriptType) GetM

func (m *MultisigRedeemScriptType) GetM() uint32

func (*MultisigRedeemScriptType) GetPubkeys

func (m *MultisigRedeemScriptType) GetPubkeys() []*HDNodePathType

func (*MultisigRedeemScriptType) GetSignatures

func (m *MultisigRedeemScriptType) GetSignatures() [][]byte

func (*MultisigRedeemScriptType) ProtoMessage

func (*MultisigRedeemScriptType) ProtoMessage()

func (*MultisigRedeemScriptType) Reset

func (m *MultisigRedeemScriptType) Reset()

func (*MultisigRedeemScriptType) String

func (m *MultisigRedeemScriptType) String() string

func (*MultisigRedeemScriptType) XXX_DiscardUnknown

func (m *MultisigRedeemScriptType) XXX_DiscardUnknown()

func (*MultisigRedeemScriptType) XXX_Marshal

func (m *MultisigRedeemScriptType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MultisigRedeemScriptType) XXX_Merge

func (m *MultisigRedeemScriptType) XXX_Merge(src proto.Message)

func (*MultisigRedeemScriptType) XXX_Size

func (m *MultisigRedeemScriptType) XXX_Size() int

func (*MultisigRedeemScriptType) XXX_Unmarshal

func (m *MultisigRedeemScriptType) XXX_Unmarshal(b []byte) error

type OutputScriptType

type OutputScriptType int32

* Type of script which will be used for transaction output @used_in TxOutputType

const (
	OutputScriptType_PAYTOADDRESS     OutputScriptType = 0
	OutputScriptType_PAYTOSCRIPTHASH  OutputScriptType = 1
	OutputScriptType_PAYTOMULTISIG    OutputScriptType = 2
	OutputScriptType_PAYTOOPRETURN    OutputScriptType = 3
	OutputScriptType_PAYTOWITNESS     OutputScriptType = 4
	OutputScriptType_PAYTOP2SHWITNESS OutputScriptType = 5
)

func (OutputScriptType) EnumDescriptor

func (OutputScriptType) EnumDescriptor() ([]byte, []int)

func (OutputScriptType) String

func (x OutputScriptType) String() string

type PassphraseAck

type PassphraseAck struct {
	Passphrase           string   `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Send passphrase back @prev PassphraseRequest

func (*PassphraseAck) Descriptor

func (*PassphraseAck) Descriptor() ([]byte, []int)

func (*PassphraseAck) GetPassphrase

func (m *PassphraseAck) GetPassphrase() string

func (*PassphraseAck) ProtoMessage

func (*PassphraseAck) ProtoMessage()

func (*PassphraseAck) Reset

func (m *PassphraseAck) Reset()

func (*PassphraseAck) String

func (m *PassphraseAck) String() string

func (*PassphraseAck) XXX_DiscardUnknown

func (m *PassphraseAck) XXX_DiscardUnknown()

func (*PassphraseAck) XXX_Marshal

func (m *PassphraseAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PassphraseAck) XXX_Merge

func (m *PassphraseAck) XXX_Merge(src proto.Message)

func (*PassphraseAck) XXX_Size

func (m *PassphraseAck) XXX_Size() int

func (*PassphraseAck) XXX_Unmarshal

func (m *PassphraseAck) XXX_Unmarshal(b []byte) error

type PassphraseRequest

type PassphraseRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device awaits encryption passphrase @next PassphraseAck @next Cancel

func (*PassphraseRequest) Descriptor

func (*PassphraseRequest) Descriptor() ([]byte, []int)

func (*PassphraseRequest) ProtoMessage

func (*PassphraseRequest) ProtoMessage()

func (*PassphraseRequest) Reset

func (m *PassphraseRequest) Reset()

func (*PassphraseRequest) String

func (m *PassphraseRequest) String() string

func (*PassphraseRequest) XXX_DiscardUnknown

func (m *PassphraseRequest) XXX_DiscardUnknown()

func (*PassphraseRequest) XXX_Marshal

func (m *PassphraseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PassphraseRequest) XXX_Merge

func (m *PassphraseRequest) XXX_Merge(src proto.Message)

func (*PassphraseRequest) XXX_Size

func (m *PassphraseRequest) XXX_Size() int

func (*PassphraseRequest) XXX_Unmarshal

func (m *PassphraseRequest) XXX_Unmarshal(b []byte) error

type PinMatrixAck

type PinMatrixAck struct {
	Pin                  string   `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Computer responds with encoded PIN @prev PinMatrixRequest

func (*PinMatrixAck) Descriptor

func (*PinMatrixAck) Descriptor() ([]byte, []int)

func (*PinMatrixAck) GetPin

func (m *PinMatrixAck) GetPin() string

func (*PinMatrixAck) ProtoMessage

func (*PinMatrixAck) ProtoMessage()

func (*PinMatrixAck) Reset

func (m *PinMatrixAck) Reset()

func (*PinMatrixAck) String

func (m *PinMatrixAck) String() string

func (*PinMatrixAck) XXX_DiscardUnknown

func (m *PinMatrixAck) XXX_DiscardUnknown()

func (*PinMatrixAck) XXX_Marshal

func (m *PinMatrixAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PinMatrixAck) XXX_Merge

func (m *PinMatrixAck) XXX_Merge(src proto.Message)

func (*PinMatrixAck) XXX_Size

func (m *PinMatrixAck) XXX_Size() int

func (*PinMatrixAck) XXX_Unmarshal

func (m *PinMatrixAck) XXX_Unmarshal(b []byte) error

type PinMatrixRequest

type PinMatrixRequest struct {
	Type                 PinMatrixRequestType `protobuf:"varint,1,opt,name=type,proto3,enum=trezor.PinMatrixRequestType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

* Response: Device is asking computer to show PIN matrix and awaits PIN encoded using this matrix scheme @next PinMatrixAck @next Cancel

func (*PinMatrixRequest) Descriptor

func (*PinMatrixRequest) Descriptor() ([]byte, []int)

func (*PinMatrixRequest) GetType

func (*PinMatrixRequest) ProtoMessage

func (*PinMatrixRequest) ProtoMessage()

func (*PinMatrixRequest) Reset

func (m *PinMatrixRequest) Reset()

func (*PinMatrixRequest) String

func (m *PinMatrixRequest) String() string

func (*PinMatrixRequest) XXX_DiscardUnknown

func (m *PinMatrixRequest) XXX_DiscardUnknown()

func (*PinMatrixRequest) XXX_Marshal

func (m *PinMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PinMatrixRequest) XXX_Merge

func (m *PinMatrixRequest) XXX_Merge(src proto.Message)

func (*PinMatrixRequest) XXX_Size

func (m *PinMatrixRequest) XXX_Size() int

func (*PinMatrixRequest) XXX_Unmarshal

func (m *PinMatrixRequest) XXX_Unmarshal(b []byte) error

type PinMatrixRequestType

type PinMatrixRequestType int32

* Type of PIN request @used_in PinMatrixRequest

const (
	PinMatrixRequestType_PinMatrixRequestType_Current   PinMatrixRequestType = 0
	PinMatrixRequestType_PinMatrixRequestType_NewFirst  PinMatrixRequestType = 2
	PinMatrixRequestType_PinMatrixRequestType_NewSecond PinMatrixRequestType = 3
)

func (PinMatrixRequestType) EnumDescriptor

func (PinMatrixRequestType) EnumDescriptor() ([]byte, []int)

func (PinMatrixRequestType) String

func (x PinMatrixRequestType) String() string

type Ping

type Ping struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	ButtonProtection     bool     `protobuf:"varint,2,opt,name=button_protection,json=buttonProtection,proto3" json:"button_protection,omitempty"`
	PinProtection        bool     `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"`
	PassphraseProtection bool     `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Test if the device is alive, device sends back the message in Success response @next Success

func (*Ping) Descriptor

func (*Ping) Descriptor() ([]byte, []int)

func (*Ping) GetButtonProtection

func (m *Ping) GetButtonProtection() bool

func (*Ping) GetMessage

func (m *Ping) GetMessage() string

func (*Ping) GetPassphraseProtection

func (m *Ping) GetPassphraseProtection() bool

func (*Ping) GetPinProtection

func (m *Ping) GetPinProtection() bool

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ping) XXX_Merge

func (m *Ping) XXX_Merge(src proto.Message)

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

func (m *Ping) XXX_Unmarshal(b []byte) error

type ProtoField

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

type PublicKey

type PublicKey struct {
	Node                 *HDNodeType `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Xpub                 string      `protobuf:"bytes,2,opt,name=xpub,proto3" json:"xpub,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

* Response: Contains public key derived from device private seed @prev GetPublicKey

func (*PublicKey) Descriptor

func (*PublicKey) Descriptor() ([]byte, []int)

func (*PublicKey) GetNode

func (m *PublicKey) GetNode() *HDNodeType

func (*PublicKey) GetXpub

func (m *PublicKey) GetXpub() string

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

func (*PublicKey) XXX_DiscardUnknown

func (m *PublicKey) XXX_DiscardUnknown()

func (*PublicKey) XXX_Marshal

func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublicKey) XXX_Merge

func (m *PublicKey) XXX_Merge(src proto.Message)

func (*PublicKey) XXX_Size

func (m *PublicKey) XXX_Size() int

func (*PublicKey) XXX_Unmarshal

func (m *PublicKey) XXX_Unmarshal(b []byte) error

type RecoveryDevice

type RecoveryDevice struct {
	WordCount            uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount,proto3" json:"word_count,omitempty"`
	PassphraseProtection bool   `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	PinProtection        bool   `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"`
	Language             string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	Label                string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"`
	EnforceWordlist      bool   `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist,proto3" json:"enforce_wordlist,omitempty"`
	// 7 reserved for unused recovery method
	Type                 uint32   `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"`
	U2FCounter           uint32   `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"`
	DryRun               bool     `protobuf:"varint,10,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Start recovery workflow asking user for specific words of mnemonic Used to recovery device safely even on untrusted computer. @next WordRequest

func (*RecoveryDevice) Descriptor

func (*RecoveryDevice) Descriptor() ([]byte, []int)

func (*RecoveryDevice) GetDryRun

func (m *RecoveryDevice) GetDryRun() bool

func (*RecoveryDevice) GetEnforceWordlist

func (m *RecoveryDevice) GetEnforceWordlist() bool

func (*RecoveryDevice) GetLabel

func (m *RecoveryDevice) GetLabel() string

func (*RecoveryDevice) GetLanguage

func (m *RecoveryDevice) GetLanguage() string

func (*RecoveryDevice) GetPassphraseProtection

func (m *RecoveryDevice) GetPassphraseProtection() bool

func (*RecoveryDevice) GetPinProtection

func (m *RecoveryDevice) GetPinProtection() bool

func (*RecoveryDevice) GetType

func (m *RecoveryDevice) GetType() uint32

func (*RecoveryDevice) GetU2FCounter

func (m *RecoveryDevice) GetU2FCounter() uint32

func (*RecoveryDevice) GetWordCount

func (m *RecoveryDevice) GetWordCount() uint32

func (*RecoveryDevice) ProtoMessage

func (*RecoveryDevice) ProtoMessage()

func (*RecoveryDevice) Reset

func (m *RecoveryDevice) Reset()

func (*RecoveryDevice) String

func (m *RecoveryDevice) String() string

func (*RecoveryDevice) XXX_DiscardUnknown

func (m *RecoveryDevice) XXX_DiscardUnknown()

func (*RecoveryDevice) XXX_Marshal

func (m *RecoveryDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecoveryDevice) XXX_Merge

func (m *RecoveryDevice) XXX_Merge(src proto.Message)

func (*RecoveryDevice) XXX_Size

func (m *RecoveryDevice) XXX_Size() int

func (*RecoveryDevice) XXX_Unmarshal

func (m *RecoveryDevice) XXX_Unmarshal(b []byte) error

type RecoveryDeviceType

type RecoveryDeviceType int32

* Type of recovery procedure. These should be used as bitmask, e.g., `RecoveryDeviceType_ScrambledWords | RecoveryDeviceType_Matrix` listing every method supported by the host computer.

Note that ScrambledWords must be supported by every implementation for backward compatibility; there is no way to not support it.

@used_in RecoveryDevice

const (
	// use powers of two when extending this field
	RecoveryDeviceType_RecoveryDeviceType_ScrambledWords RecoveryDeviceType = 0
	RecoveryDeviceType_RecoveryDeviceType_Matrix         RecoveryDeviceType = 1
)

func (RecoveryDeviceType) EnumDescriptor

func (RecoveryDeviceType) EnumDescriptor() ([]byte, []int)

func (RecoveryDeviceType) String

func (x RecoveryDeviceType) String() string

type RequestType

type RequestType int32

* Type of information by transaction signing process @used_in TxRequest

const (
	RequestType_TXINPUT     RequestType = 0
	RequestType_TXOUTPUT    RequestType = 1
	RequestType_TXMETA      RequestType = 2
	RequestType_TXFINISHED  RequestType = 3
	RequestType_TXEXTRADATA RequestType = 4
)

func (RequestType) EnumDescriptor

func (RequestType) EnumDescriptor() ([]byte, []int)

func (RequestType) String

func (x RequestType) String() string

type ResetDevice

type ResetDevice struct {
	DisplayRandom        bool     `protobuf:"varint,1,opt,name=display_random,json=displayRandom,proto3" json:"display_random,omitempty"`
	Strength             uint32   `protobuf:"varint,2,opt,name=strength,proto3" json:"strength,omitempty"`
	PassphraseProtection bool     `protobuf:"varint,3,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"`
	PinProtection        bool     `protobuf:"varint,4,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"`
	Language             string   `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
	Label                string   `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
	U2FCounter           uint32   `protobuf:"varint,7,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"`
	SkipBackup           bool     `protobuf:"varint,8,opt,name=skip_backup,json=skipBackup,proto3" json:"skip_backup,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to do initialization involving user interaction @next EntropyRequest @next Failure

func (*ResetDevice) Descriptor

func (*ResetDevice) Descriptor() ([]byte, []int)

func (*ResetDevice) GetDisplayRandom

func (m *ResetDevice) GetDisplayRandom() bool

func (*ResetDevice) GetLabel

func (m *ResetDevice) GetLabel() string

func (*ResetDevice) GetLanguage

func (m *ResetDevice) GetLanguage() string

func (*ResetDevice) GetPassphraseProtection

func (m *ResetDevice) GetPassphraseProtection() bool

func (*ResetDevice) GetPinProtection

func (m *ResetDevice) GetPinProtection() bool

func (*ResetDevice) GetSkipBackup

func (m *ResetDevice) GetSkipBackup() bool

func (*ResetDevice) GetStrength

func (m *ResetDevice) GetStrength() uint32

func (*ResetDevice) GetU2FCounter

func (m *ResetDevice) GetU2FCounter() uint32

func (*ResetDevice) ProtoMessage

func (*ResetDevice) ProtoMessage()

func (*ResetDevice) Reset

func (m *ResetDevice) Reset()

func (*ResetDevice) String

func (m *ResetDevice) String() string

func (*ResetDevice) XXX_DiscardUnknown

func (m *ResetDevice) XXX_DiscardUnknown()

func (*ResetDevice) XXX_Marshal

func (m *ResetDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResetDevice) XXX_Merge

func (m *ResetDevice) XXX_Merge(src proto.Message)

func (*ResetDevice) XXX_Size

func (m *ResetDevice) XXX_Size() int

func (*ResetDevice) XXX_Unmarshal

func (m *ResetDevice) XXX_Unmarshal(b []byte) error

type SelfTest

type SelfTest struct {
	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Perform a device self-test @next Success @next Failure

func (*SelfTest) Descriptor

func (*SelfTest) Descriptor() ([]byte, []int)

func (*SelfTest) GetPayload

func (m *SelfTest) GetPayload() []byte

func (*SelfTest) ProtoMessage

func (*SelfTest) ProtoMessage()

func (*SelfTest) Reset

func (m *SelfTest) Reset()

func (*SelfTest) String

func (m *SelfTest) String() string

func (*SelfTest) XXX_DiscardUnknown

func (m *SelfTest) XXX_DiscardUnknown()

func (*SelfTest) XXX_Marshal

func (m *SelfTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SelfTest) XXX_Merge

func (m *SelfTest) XXX_Merge(src proto.Message)

func (*SelfTest) XXX_Size

func (m *SelfTest) XXX_Size() int

func (*SelfTest) XXX_Unmarshal

func (m *SelfTest) XXX_Unmarshal(b []byte) error

type Session

type Session struct {
	Session string
}

type SetU2FCounter

type SetU2FCounter struct {
	U2FCounter           uint32   `protobuf:"varint,1,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Set U2F counter @next Success

func (*SetU2FCounter) Descriptor

func (*SetU2FCounter) Descriptor() ([]byte, []int)

func (*SetU2FCounter) GetU2FCounter

func (m *SetU2FCounter) GetU2FCounter() uint32

func (*SetU2FCounter) ProtoMessage

func (*SetU2FCounter) ProtoMessage()

func (*SetU2FCounter) Reset

func (m *SetU2FCounter) Reset()

func (*SetU2FCounter) String

func (m *SetU2FCounter) String() string

func (*SetU2FCounter) XXX_DiscardUnknown

func (m *SetU2FCounter) XXX_DiscardUnknown()

func (*SetU2FCounter) XXX_Marshal

func (m *SetU2FCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SetU2FCounter) XXX_Merge

func (m *SetU2FCounter) XXX_Merge(src proto.Message)

func (*SetU2FCounter) XXX_Size

func (m *SetU2FCounter) XXX_Size() int

func (*SetU2FCounter) XXX_Unmarshal

func (m *SetU2FCounter) XXX_Unmarshal(b []byte) error

type SignIdentity

type SignIdentity struct {
	Identity             *IdentityType `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
	ChallengeHidden      []byte        `protobuf:"bytes,2,opt,name=challenge_hidden,json=challengeHidden,proto3" json:"challenge_hidden,omitempty"`
	ChallengeVisual      string        `protobuf:"bytes,3,opt,name=challenge_visual,json=challengeVisual,proto3" json:"challenge_visual,omitempty"`
	EcdsaCurveName       string        `protobuf:"bytes,4,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

* Request: Ask device to sign identity @next SignedIdentity @next Failure

func (*SignIdentity) Descriptor

func (*SignIdentity) Descriptor() ([]byte, []int)

func (*SignIdentity) GetChallengeHidden

func (m *SignIdentity) GetChallengeHidden() []byte

func (*SignIdentity) GetChallengeVisual

func (m *SignIdentity) GetChallengeVisual() string

func (*SignIdentity) GetEcdsaCurveName

func (m *SignIdentity) GetEcdsaCurveName() string

func (*SignIdentity) GetIdentity

func (m *SignIdentity) GetIdentity() *IdentityType

func (*SignIdentity) ProtoMessage

func (*SignIdentity) ProtoMessage()

func (*SignIdentity) Reset

func (m *SignIdentity) Reset()

func (*SignIdentity) String

func (m *SignIdentity) String() string

func (*SignIdentity) XXX_DiscardUnknown

func (m *SignIdentity) XXX_DiscardUnknown()

func (*SignIdentity) XXX_Marshal

func (m *SignIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignIdentity) XXX_Merge

func (m *SignIdentity) XXX_Merge(src proto.Message)

func (*SignIdentity) XXX_Size

func (m *SignIdentity) XXX_Size() int

func (*SignIdentity) XXX_Unmarshal

func (m *SignIdentity) XXX_Unmarshal(b []byte) error

type SignMessage

type SignMessage struct {
	AddressN             []uint32        `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Message              []byte          `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	CoinName             string          `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	ScriptType           InputScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

* Request: Ask device to sign message @next MessageSignature @next Failure

func (*SignMessage) Descriptor

func (*SignMessage) Descriptor() ([]byte, []int)

func (*SignMessage) GetAddressN

func (m *SignMessage) GetAddressN() []uint32

func (*SignMessage) GetCoinName

func (m *SignMessage) GetCoinName() string

func (*SignMessage) GetMessage

func (m *SignMessage) GetMessage() []byte

func (*SignMessage) GetScriptType

func (m *SignMessage) GetScriptType() InputScriptType

func (*SignMessage) ProtoMessage

func (*SignMessage) ProtoMessage()

func (*SignMessage) Reset

func (m *SignMessage) Reset()

func (*SignMessage) String

func (m *SignMessage) String() string

func (*SignMessage) XXX_DiscardUnknown

func (m *SignMessage) XXX_DiscardUnknown()

func (*SignMessage) XXX_Marshal

func (m *SignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignMessage) XXX_Merge

func (m *SignMessage) XXX_Merge(src proto.Message)

func (*SignMessage) XXX_Size

func (m *SignMessage) XXX_Size() int

func (*SignMessage) XXX_Unmarshal

func (m *SignMessage) XXX_Unmarshal(b []byte) error

type SignTx

type SignTx struct {
	OutputsCount         uint32   `protobuf:"varint,1,opt,name=outputs_count,json=outputsCount,proto3" json:"outputs_count,omitempty"`
	InputsCount          uint32   `protobuf:"varint,2,opt,name=inputs_count,json=inputsCount,proto3" json:"inputs_count,omitempty"`
	CoinName             string   `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	Version              uint32   `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	LockTime             uint32   `protobuf:"varint,5,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to sign transaction @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure

func (*SignTx) Descriptor

func (*SignTx) Descriptor() ([]byte, []int)

func (*SignTx) GetCoinName

func (m *SignTx) GetCoinName() string

func (*SignTx) GetInputsCount

func (m *SignTx) GetInputsCount() uint32

func (*SignTx) GetLockTime

func (m *SignTx) GetLockTime() uint32

func (*SignTx) GetOutputsCount

func (m *SignTx) GetOutputsCount() uint32

func (*SignTx) GetVersion

func (m *SignTx) GetVersion() uint32

func (*SignTx) ProtoMessage

func (*SignTx) ProtoMessage()

func (*SignTx) Reset

func (m *SignTx) Reset()

func (*SignTx) String

func (m *SignTx) String() string

func (*SignTx) XXX_DiscardUnknown

func (m *SignTx) XXX_DiscardUnknown()

func (*SignTx) XXX_Marshal

func (m *SignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignTx) XXX_Merge

func (m *SignTx) XXX_Merge(src proto.Message)

func (*SignTx) XXX_Size

func (m *SignTx) XXX_Size() int

func (*SignTx) XXX_Unmarshal

func (m *SignTx) XXX_Unmarshal(b []byte) error

type SignedIdentity

type SignedIdentity struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PublicKey            []byte   `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Signature            []byte   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device provides signed identity @prev SignIdentity

func (*SignedIdentity) Descriptor

func (*SignedIdentity) Descriptor() ([]byte, []int)

func (*SignedIdentity) GetAddress

func (m *SignedIdentity) GetAddress() string

func (*SignedIdentity) GetPublicKey

func (m *SignedIdentity) GetPublicKey() []byte

func (*SignedIdentity) GetSignature

func (m *SignedIdentity) GetSignature() []byte

func (*SignedIdentity) ProtoMessage

func (*SignedIdentity) ProtoMessage()

func (*SignedIdentity) Reset

func (m *SignedIdentity) Reset()

func (*SignedIdentity) String

func (m *SignedIdentity) String() string

func (*SignedIdentity) XXX_DiscardUnknown

func (m *SignedIdentity) XXX_DiscardUnknown()

func (*SignedIdentity) XXX_Marshal

func (m *SignedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignedIdentity) XXX_Merge

func (m *SignedIdentity) XXX_Merge(src proto.Message)

func (*SignedIdentity) XXX_Size

func (m *SignedIdentity) XXX_Size() int

func (*SignedIdentity) XXX_Unmarshal

func (m *SignedIdentity) XXX_Unmarshal(b []byte) error

type SimpleSignTx

type SimpleSignTx struct {
	Inputs               []*TxInputType     `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs              []*TxOutputType    `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Transactions         []*TransactionType `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"`
	CoinName             string             `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	Version              uint32             `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
	LockTime             uint32             `protobuf:"varint,6,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

* Request: Simplified transaction signing This method doesn't support streaming, so there are hardware limits in number of inputs and outputs. In case of success, the result is returned using TxRequest message. @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure

func (*SimpleSignTx) Descriptor

func (*SimpleSignTx) Descriptor() ([]byte, []int)

func (*SimpleSignTx) GetCoinName

func (m *SimpleSignTx) GetCoinName() string

func (*SimpleSignTx) GetInputs

func (m *SimpleSignTx) GetInputs() []*TxInputType

func (*SimpleSignTx) GetLockTime

func (m *SimpleSignTx) GetLockTime() uint32

func (*SimpleSignTx) GetOutputs

func (m *SimpleSignTx) GetOutputs() []*TxOutputType

func (*SimpleSignTx) GetTransactions

func (m *SimpleSignTx) GetTransactions() []*TransactionType

func (*SimpleSignTx) GetVersion

func (m *SimpleSignTx) GetVersion() uint32

func (*SimpleSignTx) ProtoMessage

func (*SimpleSignTx) ProtoMessage()

func (*SimpleSignTx) Reset

func (m *SimpleSignTx) Reset()

func (*SimpleSignTx) String

func (m *SimpleSignTx) String() string

func (*SimpleSignTx) XXX_DiscardUnknown

func (m *SimpleSignTx) XXX_DiscardUnknown()

func (*SimpleSignTx) XXX_Marshal

func (m *SimpleSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleSignTx) XXX_Merge

func (m *SimpleSignTx) XXX_Merge(src proto.Message)

func (*SimpleSignTx) XXX_Size

func (m *SimpleSignTx) XXX_Size() int

func (*SimpleSignTx) XXX_Unmarshal

func (m *SimpleSignTx) XXX_Unmarshal(b []byte) error

type Success

type Success struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Success of the previous request

func (*Success) Descriptor

func (*Success) Descriptor() ([]byte, []int)

func (*Success) GetMessage

func (m *Success) GetMessage() string

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) Reset

func (m *Success) Reset()

func (*Success) String

func (m *Success) String() string

func (*Success) XXX_DiscardUnknown

func (m *Success) XXX_DiscardUnknown()

func (*Success) XXX_Marshal

func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Success) XXX_Merge

func (m *Success) XXX_Merge(src proto.Message)

func (*Success) XXX_Size

func (m *Success) XXX_Size() int

func (*Success) XXX_Unmarshal

func (m *Success) XXX_Unmarshal(b []byte) error

type ThetaAddress

type ThetaAddress struct {
	Address              []byte   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Contains an Theta address derived from device private seed @prev ThetaGetAddress

func (*ThetaAddress) Descriptor

func (*ThetaAddress) Descriptor() ([]byte, []int)

func (*ThetaAddress) GetAddress

func (m *ThetaAddress) GetAddress() []byte

func (*ThetaAddress) ProtoMessage

func (*ThetaAddress) ProtoMessage()

func (*ThetaAddress) Reset

func (m *ThetaAddress) Reset()

func (*ThetaAddress) String

func (m *ThetaAddress) String() string

func (*ThetaAddress) XXX_DiscardUnknown

func (m *ThetaAddress) XXX_DiscardUnknown()

func (*ThetaAddress) XXX_Marshal

func (m *ThetaAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaAddress) XXX_Merge

func (m *ThetaAddress) XXX_Merge(src proto.Message)

func (*ThetaAddress) XXX_Size

func (m *ThetaAddress) XXX_Size() int

func (*ThetaAddress) XXX_Unmarshal

func (m *ThetaAddress) XXX_Unmarshal(b []byte) error

type ThetaGetAddress

type ThetaGetAddress struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	ShowDisplay          bool     `protobuf:"varint,2,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device for Theta address corresponding to address_n path @next PassphraseRequest @next ThetaAddress @next Failure

func (*ThetaGetAddress) Descriptor

func (*ThetaGetAddress) Descriptor() ([]byte, []int)

func (*ThetaGetAddress) GetAddressN

func (m *ThetaGetAddress) GetAddressN() []uint32

func (*ThetaGetAddress) GetShowDisplay

func (m *ThetaGetAddress) GetShowDisplay() bool

func (*ThetaGetAddress) ProtoMessage

func (*ThetaGetAddress) ProtoMessage()

func (*ThetaGetAddress) Reset

func (m *ThetaGetAddress) Reset()

func (*ThetaGetAddress) String

func (m *ThetaGetAddress) String() string

func (*ThetaGetAddress) XXX_DiscardUnknown

func (m *ThetaGetAddress) XXX_DiscardUnknown()

func (*ThetaGetAddress) XXX_Marshal

func (m *ThetaGetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaGetAddress) XXX_Merge

func (m *ThetaGetAddress) XXX_Merge(src proto.Message)

func (*ThetaGetAddress) XXX_Size

func (m *ThetaGetAddress) XXX_Size() int

func (*ThetaGetAddress) XXX_Unmarshal

func (m *ThetaGetAddress) XXX_Unmarshal(b []byte) error

type ThetaMessageSignature

type ThetaMessageSignature struct {
	Address              []byte   `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Signed message @prev ThetaSignMessage

func (*ThetaMessageSignature) Descriptor

func (*ThetaMessageSignature) Descriptor() ([]byte, []int)

func (*ThetaMessageSignature) GetAddress

func (m *ThetaMessageSignature) GetAddress() []byte

func (*ThetaMessageSignature) GetSignature

func (m *ThetaMessageSignature) GetSignature() []byte

func (*ThetaMessageSignature) ProtoMessage

func (*ThetaMessageSignature) ProtoMessage()

func (*ThetaMessageSignature) Reset

func (m *ThetaMessageSignature) Reset()

func (*ThetaMessageSignature) String

func (m *ThetaMessageSignature) String() string

func (*ThetaMessageSignature) XXX_DiscardUnknown

func (m *ThetaMessageSignature) XXX_DiscardUnknown()

func (*ThetaMessageSignature) XXX_Marshal

func (m *ThetaMessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaMessageSignature) XXX_Merge

func (m *ThetaMessageSignature) XXX_Merge(src proto.Message)

func (*ThetaMessageSignature) XXX_Size

func (m *ThetaMessageSignature) XXX_Size() int

func (*ThetaMessageSignature) XXX_Unmarshal

func (m *ThetaMessageSignature) XXX_Unmarshal(b []byte) error

type ThetaSignMessage

type ThetaSignMessage struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Message              []byte   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to sign message @next ThetaMessageSignature @next Failure

func (*ThetaSignMessage) Descriptor

func (*ThetaSignMessage) Descriptor() ([]byte, []int)

func (*ThetaSignMessage) GetAddressN

func (m *ThetaSignMessage) GetAddressN() []uint32

func (*ThetaSignMessage) GetMessage

func (m *ThetaSignMessage) GetMessage() []byte

func (*ThetaSignMessage) ProtoMessage

func (*ThetaSignMessage) ProtoMessage()

func (*ThetaSignMessage) Reset

func (m *ThetaSignMessage) Reset()

func (*ThetaSignMessage) String

func (m *ThetaSignMessage) String() string

func (*ThetaSignMessage) XXX_DiscardUnknown

func (m *ThetaSignMessage) XXX_DiscardUnknown()

func (*ThetaSignMessage) XXX_Marshal

func (m *ThetaSignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaSignMessage) XXX_Merge

func (m *ThetaSignMessage) XXX_Merge(src proto.Message)

func (*ThetaSignMessage) XXX_Size

func (m *ThetaSignMessage) XXX_Size() int

func (*ThetaSignMessage) XXX_Unmarshal

func (m *ThetaSignMessage) XXX_Unmarshal(b []byte) error

type ThetaSignTx

type ThetaSignTx struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Nonce            []byte   `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	GasPrice         []byte   `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasLimit         []byte   `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	To               []byte   `protobuf:"bytes,11,opt,name=to,proto3" json:"to,omitempty"`
	Value            []byte   `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"`
	DataInitialChunk []byte   `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk,proto3" json:"data_initial_chunk,omitempty"`
	DataLength       uint32   `protobuf:"varint,8,opt,name=data_length,json=dataLength,proto3" json:"data_length,omitempty"`
	// ChainId              uint32   `protobuf:"varint,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to sign transaction All fields are from the protocol's point of view. Each field defaults to value `0` if missing. Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. @next PassphraseRequest @next PinMatrixRequest @next ThetaTxRequest @next Failure

func (*ThetaSignTx) Descriptor

func (*ThetaSignTx) Descriptor() ([]byte, []int)

func (*ThetaSignTx) GetAddressN

func (m *ThetaSignTx) GetAddressN() []uint32

func (*ThetaSignTx) GetDataInitialChunk

func (m *ThetaSignTx) GetDataInitialChunk() []byte

func (*ThetaSignTx) GetDataLength

func (m *ThetaSignTx) GetDataLength() uint32

func (*ThetaSignTx) GetGasLimit

func (m *ThetaSignTx) GetGasLimit() []byte

func (*ThetaSignTx) GetGasPrice

func (m *ThetaSignTx) GetGasPrice() []byte

func (*ThetaSignTx) GetNonce

func (m *ThetaSignTx) GetNonce() []byte

func (*ThetaSignTx) GetTo

func (m *ThetaSignTx) GetTo() []byte

func (*ThetaSignTx) GetValue

func (m *ThetaSignTx) GetValue() []byte

func (*ThetaSignTx) ProtoMessage

func (*ThetaSignTx) ProtoMessage()

func (*ThetaSignTx) Reset

func (m *ThetaSignTx) Reset()

func (*ThetaSignTx) String

func (m *ThetaSignTx) String() string

func (*ThetaSignTx) XXX_DiscardUnknown

func (m *ThetaSignTx) XXX_DiscardUnknown()

func (*ThetaSignTx) XXX_Marshal

func (m *ThetaSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaSignTx) XXX_Merge

func (m *ThetaSignTx) XXX_Merge(src proto.Message)

func (*ThetaSignTx) XXX_Size

func (m *ThetaSignTx) XXX_Size() int

func (*ThetaSignTx) XXX_Unmarshal

func (m *ThetaSignTx) XXX_Unmarshal(b []byte) error

type ThetaTxAck

type ThetaTxAck struct {
	DataChunk            []byte   `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk,proto3" json:"data_chunk,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Transaction payload data. @prev ThetaTxRequest @next ThetaTxRequest

func (*ThetaTxAck) Descriptor

func (*ThetaTxAck) Descriptor() ([]byte, []int)

func (*ThetaTxAck) GetDataChunk

func (m *ThetaTxAck) GetDataChunk() []byte

func (*ThetaTxAck) ProtoMessage

func (*ThetaTxAck) ProtoMessage()

func (*ThetaTxAck) Reset

func (m *ThetaTxAck) Reset()

func (*ThetaTxAck) String

func (m *ThetaTxAck) String() string

func (*ThetaTxAck) XXX_DiscardUnknown

func (m *ThetaTxAck) XXX_DiscardUnknown()

func (*ThetaTxAck) XXX_Marshal

func (m *ThetaTxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaTxAck) XXX_Merge

func (m *ThetaTxAck) XXX_Merge(src proto.Message)

func (*ThetaTxAck) XXX_Size

func (m *ThetaTxAck) XXX_Size() int

func (*ThetaTxAck) XXX_Unmarshal

func (m *ThetaTxAck) XXX_Unmarshal(b []byte) error

type ThetaTxRequest

type ThetaTxRequest struct {
	DataLength           uint32   `protobuf:"varint,1,opt,name=data_length,json=dataLength,proto3" json:"data_length,omitempty"`
	SignatureV           uint32   `protobuf:"varint,2,opt,name=signature_v,json=signatureV,proto3" json:"signature_v,omitempty"`
	SignatureR           []byte   `protobuf:"bytes,3,opt,name=signature_r,json=signatureR,proto3" json:"signature_r,omitempty"`
	SignatureS           []byte   `protobuf:"bytes,4,opt,name=signature_s,json=signatureS,proto3" json:"signature_s,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Device asks for more data from transaction payload, or returns the signature. If data_length is set, device awaits that many more bytes of payload. Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present. @prev ThetaSignTx @next ThetaTxAck

func (*ThetaTxRequest) Descriptor

func (*ThetaTxRequest) Descriptor() ([]byte, []int)

func (*ThetaTxRequest) GetDataLength

func (m *ThetaTxRequest) GetDataLength() uint32

func (*ThetaTxRequest) GetSignatureR

func (m *ThetaTxRequest) GetSignatureR() []byte

func (*ThetaTxRequest) GetSignatureS

func (m *ThetaTxRequest) GetSignatureS() []byte

func (*ThetaTxRequest) GetSignatureV

func (m *ThetaTxRequest) GetSignatureV() uint32

func (*ThetaTxRequest) ProtoMessage

func (*ThetaTxRequest) ProtoMessage()

func (*ThetaTxRequest) Reset

func (m *ThetaTxRequest) Reset()

func (*ThetaTxRequest) String

func (m *ThetaTxRequest) String() string

func (*ThetaTxRequest) XXX_DiscardUnknown

func (m *ThetaTxRequest) XXX_DiscardUnknown()

func (*ThetaTxRequest) XXX_Marshal

func (m *ThetaTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaTxRequest) XXX_Merge

func (m *ThetaTxRequest) XXX_Merge(src proto.Message)

func (*ThetaTxRequest) XXX_Size

func (m *ThetaTxRequest) XXX_Size() int

func (*ThetaTxRequest) XXX_Unmarshal

func (m *ThetaTxRequest) XXX_Unmarshal(b []byte) error

type ThetaVerifyMessage

type ThetaVerifyMessage struct {
	Address              []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Message              []byte   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to verify message @next Success @next Failure

func (*ThetaVerifyMessage) Descriptor

func (*ThetaVerifyMessage) Descriptor() ([]byte, []int)

func (*ThetaVerifyMessage) GetAddress

func (m *ThetaVerifyMessage) GetAddress() []byte

func (*ThetaVerifyMessage) GetMessage

func (m *ThetaVerifyMessage) GetMessage() []byte

func (*ThetaVerifyMessage) GetSignature

func (m *ThetaVerifyMessage) GetSignature() []byte

func (*ThetaVerifyMessage) ProtoMessage

func (*ThetaVerifyMessage) ProtoMessage()

func (*ThetaVerifyMessage) Reset

func (m *ThetaVerifyMessage) Reset()

func (*ThetaVerifyMessage) String

func (m *ThetaVerifyMessage) String() string

func (*ThetaVerifyMessage) XXX_DiscardUnknown

func (m *ThetaVerifyMessage) XXX_DiscardUnknown()

func (*ThetaVerifyMessage) XXX_Marshal

func (m *ThetaVerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ThetaVerifyMessage) XXX_Merge

func (m *ThetaVerifyMessage) XXX_Merge(src proto.Message)

func (*ThetaVerifyMessage) XXX_Size

func (m *ThetaVerifyMessage) XXX_Size() int

func (*ThetaVerifyMessage) XXX_Unmarshal

func (m *ThetaVerifyMessage) XXX_Unmarshal(b []byte) error

type TransactionType

type TransactionType struct {
	Version              uint32             `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Inputs               []*TxInputType     `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	BinOutputs           []*TxOutputBinType `protobuf:"bytes,3,rep,name=bin_outputs,json=binOutputs,proto3" json:"bin_outputs,omitempty"`
	Outputs              []*TxOutputType    `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"`
	LockTime             uint32             `protobuf:"varint,4,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"`
	InputsCnt            uint32             `protobuf:"varint,6,opt,name=inputs_cnt,json=inputsCnt,proto3" json:"inputs_cnt,omitempty"`
	OutputsCnt           uint32             `protobuf:"varint,7,opt,name=outputs_cnt,json=outputsCnt,proto3" json:"outputs_cnt,omitempty"`
	ExtraData            []byte             `protobuf:"bytes,8,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
	ExtraDataLen         uint32             `protobuf:"varint,9,opt,name=extra_data_len,json=extraDataLen,proto3" json:"extra_data_len,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

* Structure representing transaction @used_in SimpleSignTx

func (*TransactionType) Descriptor

func (*TransactionType) Descriptor() ([]byte, []int)

func (*TransactionType) GetBinOutputs

func (m *TransactionType) GetBinOutputs() []*TxOutputBinType

func (*TransactionType) GetExtraData

func (m *TransactionType) GetExtraData() []byte

func (*TransactionType) GetExtraDataLen

func (m *TransactionType) GetExtraDataLen() uint32

func (*TransactionType) GetInputs

func (m *TransactionType) GetInputs() []*TxInputType

func (*TransactionType) GetInputsCnt

func (m *TransactionType) GetInputsCnt() uint32

func (*TransactionType) GetLockTime

func (m *TransactionType) GetLockTime() uint32

func (*TransactionType) GetOutputs

func (m *TransactionType) GetOutputs() []*TxOutputType

func (*TransactionType) GetOutputsCnt

func (m *TransactionType) GetOutputsCnt() uint32

func (*TransactionType) GetVersion

func (m *TransactionType) GetVersion() uint32

func (*TransactionType) ProtoMessage

func (*TransactionType) ProtoMessage()

func (*TransactionType) Reset

func (m *TransactionType) Reset()

func (*TransactionType) String

func (m *TransactionType) String() string

func (*TransactionType) XXX_DiscardUnknown

func (m *TransactionType) XXX_DiscardUnknown()

func (*TransactionType) XXX_Marshal

func (m *TransactionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionType) XXX_Merge

func (m *TransactionType) XXX_Merge(src proto.Message)

func (*TransactionType) XXX_Size

func (m *TransactionType) XXX_Size() int

func (*TransactionType) XXX_Unmarshal

func (m *TransactionType) XXX_Unmarshal(b []byte) error

type TrezorUI

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

func NewTrezorUI

func NewTrezorUI(always bool) *TrezorUI

func (*TrezorUI) ButtonRequest

func (ui *TrezorUI) ButtonRequest()

func (*TrezorUI) GetPassphrase

func (ui *TrezorUI) GetPassphrase() string

func (*TrezorUI) GetPin

func (ui *TrezorUI) GetPin(code PinMatrixRequestType) string

type TxAck

type TxAck struct {
	Tx                   *TransactionType `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

* Request: Reported transaction data @prev TxRequest @next TxRequest

func (*TxAck) Descriptor

func (*TxAck) Descriptor() ([]byte, []int)

func (*TxAck) GetTx

func (m *TxAck) GetTx() *TransactionType

func (*TxAck) ProtoMessage

func (*TxAck) ProtoMessage()

func (*TxAck) Reset

func (m *TxAck) Reset()

func (*TxAck) String

func (m *TxAck) String() string

func (*TxAck) XXX_DiscardUnknown

func (m *TxAck) XXX_DiscardUnknown()

func (*TxAck) XXX_Marshal

func (m *TxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxAck) XXX_Merge

func (m *TxAck) XXX_Merge(src proto.Message)

func (*TxAck) XXX_Size

func (m *TxAck) XXX_Size() int

func (*TxAck) XXX_Unmarshal

func (m *TxAck) XXX_Unmarshal(b []byte) error

type TxInputType

type TxInputType struct {
	AddressN             []uint32                  `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	PrevHash             []byte                    `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"`
	PrevIndex            uint32                    `protobuf:"varint,3,opt,name=prev_index,json=prevIndex,proto3" json:"prev_index,omitempty"`
	ScriptSig            []byte                    `protobuf:"bytes,4,opt,name=script_sig,json=scriptSig,proto3" json:"script_sig,omitempty"`
	Sequence             uint32                    `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
	ScriptType           InputScriptType           `protobuf:"varint,6,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"`
	Multisig             *MultisigRedeemScriptType `protobuf:"bytes,7,opt,name=multisig,proto3" json:"multisig,omitempty"`
	Amount               uint64                    `protobuf:"varint,8,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

* Structure representing transaction input @used_in SimpleSignTx @used_in TransactionType

func (*TxInputType) Descriptor

func (*TxInputType) Descriptor() ([]byte, []int)

func (*TxInputType) GetAddressN

func (m *TxInputType) GetAddressN() []uint32

func (*TxInputType) GetAmount

func (m *TxInputType) GetAmount() uint64

func (*TxInputType) GetMultisig

func (m *TxInputType) GetMultisig() *MultisigRedeemScriptType

func (*TxInputType) GetPrevHash

func (m *TxInputType) GetPrevHash() []byte

func (*TxInputType) GetPrevIndex

func (m *TxInputType) GetPrevIndex() uint32

func (*TxInputType) GetScriptSig

func (m *TxInputType) GetScriptSig() []byte

func (*TxInputType) GetScriptType

func (m *TxInputType) GetScriptType() InputScriptType

func (*TxInputType) GetSequence

func (m *TxInputType) GetSequence() uint32

func (*TxInputType) ProtoMessage

func (*TxInputType) ProtoMessage()

func (*TxInputType) Reset

func (m *TxInputType) Reset()

func (*TxInputType) String

func (m *TxInputType) String() string

func (*TxInputType) XXX_DiscardUnknown

func (m *TxInputType) XXX_DiscardUnknown()

func (*TxInputType) XXX_Marshal

func (m *TxInputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxInputType) XXX_Merge

func (m *TxInputType) XXX_Merge(src proto.Message)

func (*TxInputType) XXX_Size

func (m *TxInputType) XXX_Size() int

func (*TxInputType) XXX_Unmarshal

func (m *TxInputType) XXX_Unmarshal(b []byte) error

type TxOutputBinType

type TxOutputBinType struct {
	Amount               uint64   `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	ScriptPubkey         []byte   `protobuf:"bytes,2,opt,name=script_pubkey,json=scriptPubkey,proto3" json:"script_pubkey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing compiled transaction output @used_in TransactionType

func (*TxOutputBinType) Descriptor

func (*TxOutputBinType) Descriptor() ([]byte, []int)

func (*TxOutputBinType) GetAmount

func (m *TxOutputBinType) GetAmount() uint64

func (*TxOutputBinType) GetScriptPubkey

func (m *TxOutputBinType) GetScriptPubkey() []byte

func (*TxOutputBinType) ProtoMessage

func (*TxOutputBinType) ProtoMessage()

func (*TxOutputBinType) Reset

func (m *TxOutputBinType) Reset()

func (*TxOutputBinType) String

func (m *TxOutputBinType) String() string

func (*TxOutputBinType) XXX_DiscardUnknown

func (m *TxOutputBinType) XXX_DiscardUnknown()

func (*TxOutputBinType) XXX_Marshal

func (m *TxOutputBinType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutputBinType) XXX_Merge

func (m *TxOutputBinType) XXX_Merge(src proto.Message)

func (*TxOutputBinType) XXX_Size

func (m *TxOutputBinType) XXX_Size() int

func (*TxOutputBinType) XXX_Unmarshal

func (m *TxOutputBinType) XXX_Unmarshal(b []byte) error

type TxOutputType

type TxOutputType struct {
	Address              string                    `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	AddressN             []uint32                  `protobuf:"varint,2,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"`
	Amount               uint64                    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	ScriptType           OutputScriptType          `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=trezor.OutputScriptType" json:"script_type,omitempty"`
	Multisig             *MultisigRedeemScriptType `protobuf:"bytes,5,opt,name=multisig,proto3" json:"multisig,omitempty"`
	OpReturnData         []byte                    `protobuf:"bytes,6,opt,name=op_return_data,json=opReturnData,proto3" json:"op_return_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

* Structure representing transaction output @used_in SimpleSignTx @used_in TransactionType

func (*TxOutputType) Descriptor

func (*TxOutputType) Descriptor() ([]byte, []int)

func (*TxOutputType) GetAddress

func (m *TxOutputType) GetAddress() string

func (*TxOutputType) GetAddressN

func (m *TxOutputType) GetAddressN() []uint32

func (*TxOutputType) GetAmount

func (m *TxOutputType) GetAmount() uint64

func (*TxOutputType) GetMultisig

func (m *TxOutputType) GetMultisig() *MultisigRedeemScriptType

func (*TxOutputType) GetOpReturnData

func (m *TxOutputType) GetOpReturnData() []byte

func (*TxOutputType) GetScriptType

func (m *TxOutputType) GetScriptType() OutputScriptType

func (*TxOutputType) ProtoMessage

func (*TxOutputType) ProtoMessage()

func (*TxOutputType) Reset

func (m *TxOutputType) Reset()

func (*TxOutputType) String

func (m *TxOutputType) String() string

func (*TxOutputType) XXX_DiscardUnknown

func (m *TxOutputType) XXX_DiscardUnknown()

func (*TxOutputType) XXX_Marshal

func (m *TxOutputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutputType) XXX_Merge

func (m *TxOutputType) XXX_Merge(src proto.Message)

func (*TxOutputType) XXX_Size

func (m *TxOutputType) XXX_Size() int

func (*TxOutputType) XXX_Unmarshal

func (m *TxOutputType) XXX_Unmarshal(b []byte) error

type TxRequest

type TxRequest struct {
	RequestType          RequestType              `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=trezor.RequestType" json:"request_type,omitempty"`
	Details              *TxRequestDetailsType    `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	Serialized           *TxRequestSerializedType `protobuf:"bytes,3,opt,name=serialized,proto3" json:"serialized,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

* Response: Device asks for information for signing transaction or returns the last result If request_index is set, device awaits TxAck message (with fields filled in according to request_type) If signature_index is set, 'signature' contains signed input of signature_index's input @prev SignTx @prev SimpleSignTx @prev TxAck

func (*TxRequest) Descriptor

func (*TxRequest) Descriptor() ([]byte, []int)

func (*TxRequest) GetDetails

func (m *TxRequest) GetDetails() *TxRequestDetailsType

func (*TxRequest) GetRequestType

func (m *TxRequest) GetRequestType() RequestType

func (*TxRequest) GetSerialized

func (m *TxRequest) GetSerialized() *TxRequestSerializedType

func (*TxRequest) ProtoMessage

func (*TxRequest) ProtoMessage()

func (*TxRequest) Reset

func (m *TxRequest) Reset()

func (*TxRequest) String

func (m *TxRequest) String() string

func (*TxRequest) XXX_DiscardUnknown

func (m *TxRequest) XXX_DiscardUnknown()

func (*TxRequest) XXX_Marshal

func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRequest) XXX_Merge

func (m *TxRequest) XXX_Merge(src proto.Message)

func (*TxRequest) XXX_Size

func (m *TxRequest) XXX_Size() int

func (*TxRequest) XXX_Unmarshal

func (m *TxRequest) XXX_Unmarshal(b []byte) error

type TxRequestDetailsType

type TxRequestDetailsType struct {
	RequestIndex         uint32   `protobuf:"varint,1,opt,name=request_index,json=requestIndex,proto3" json:"request_index,omitempty"`
	TxHash               []byte   `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ExtraDataLen         uint32   `protobuf:"varint,3,opt,name=extra_data_len,json=extraDataLen,proto3" json:"extra_data_len,omitempty"`
	ExtraDataOffset      uint32   `protobuf:"varint,4,opt,name=extra_data_offset,json=extraDataOffset,proto3" json:"extra_data_offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing request details @used_in TxRequest

func (*TxRequestDetailsType) Descriptor

func (*TxRequestDetailsType) Descriptor() ([]byte, []int)

func (*TxRequestDetailsType) GetExtraDataLen

func (m *TxRequestDetailsType) GetExtraDataLen() uint32

func (*TxRequestDetailsType) GetExtraDataOffset

func (m *TxRequestDetailsType) GetExtraDataOffset() uint32

func (*TxRequestDetailsType) GetRequestIndex

func (m *TxRequestDetailsType) GetRequestIndex() uint32

func (*TxRequestDetailsType) GetTxHash

func (m *TxRequestDetailsType) GetTxHash() []byte

func (*TxRequestDetailsType) ProtoMessage

func (*TxRequestDetailsType) ProtoMessage()

func (*TxRequestDetailsType) Reset

func (m *TxRequestDetailsType) Reset()

func (*TxRequestDetailsType) String

func (m *TxRequestDetailsType) String() string

func (*TxRequestDetailsType) XXX_DiscardUnknown

func (m *TxRequestDetailsType) XXX_DiscardUnknown()

func (*TxRequestDetailsType) XXX_Marshal

func (m *TxRequestDetailsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRequestDetailsType) XXX_Merge

func (m *TxRequestDetailsType) XXX_Merge(src proto.Message)

func (*TxRequestDetailsType) XXX_Size

func (m *TxRequestDetailsType) XXX_Size() int

func (*TxRequestDetailsType) XXX_Unmarshal

func (m *TxRequestDetailsType) XXX_Unmarshal(b []byte) error

type TxRequestSerializedType

type TxRequestSerializedType struct {
	SignatureIndex       uint32   `protobuf:"varint,1,opt,name=signature_index,json=signatureIndex,proto3" json:"signature_index,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	SerializedTx         []byte   `protobuf:"bytes,3,opt,name=serialized_tx,json=serializedTx,proto3" json:"serialized_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Structure representing serialized data @used_in TxRequest

func (*TxRequestSerializedType) Descriptor

func (*TxRequestSerializedType) Descriptor() ([]byte, []int)

func (*TxRequestSerializedType) GetSerializedTx

func (m *TxRequestSerializedType) GetSerializedTx() []byte

func (*TxRequestSerializedType) GetSignature

func (m *TxRequestSerializedType) GetSignature() []byte

func (*TxRequestSerializedType) GetSignatureIndex

func (m *TxRequestSerializedType) GetSignatureIndex() uint32

func (*TxRequestSerializedType) ProtoMessage

func (*TxRequestSerializedType) ProtoMessage()

func (*TxRequestSerializedType) Reset

func (m *TxRequestSerializedType) Reset()

func (*TxRequestSerializedType) String

func (m *TxRequestSerializedType) String() string

func (*TxRequestSerializedType) XXX_DiscardUnknown

func (m *TxRequestSerializedType) XXX_DiscardUnknown()

func (*TxRequestSerializedType) XXX_Marshal

func (m *TxRequestSerializedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxRequestSerializedType) XXX_Merge

func (m *TxRequestSerializedType) XXX_Merge(src proto.Message)

func (*TxRequestSerializedType) XXX_Size

func (m *TxRequestSerializedType) XXX_Size() int

func (*TxRequestSerializedType) XXX_Unmarshal

func (m *TxRequestSerializedType) XXX_Unmarshal(b []byte) error

type TxSize

type TxSize struct {
	TxSize               uint32   `protobuf:"varint,1,opt,name=tx_size,json=txSize,proto3" json:"tx_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Estimated size of the transaction @prev EstimateTxSize

func (*TxSize) Descriptor

func (*TxSize) Descriptor() ([]byte, []int)

func (*TxSize) GetTxSize

func (m *TxSize) GetTxSize() uint32

func (*TxSize) ProtoMessage

func (*TxSize) ProtoMessage()

func (*TxSize) Reset

func (m *TxSize) Reset()

func (*TxSize) String

func (m *TxSize) String() string

func (*TxSize) XXX_DiscardUnknown

func (m *TxSize) XXX_DiscardUnknown()

func (*TxSize) XXX_Marshal

func (m *TxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxSize) XXX_Merge

func (m *TxSize) XXX_Merge(src proto.Message)

func (*TxSize) XXX_Size

func (m *TxSize) XXX_Size() int

func (*TxSize) XXX_Unmarshal

func (m *TxSize) XXX_Unmarshal(b []byte) error

type VerifyMessage

type VerifyMessage struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Message              []byte   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	CoinName             string   `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to verify message @next Success @next Failure

func (*VerifyMessage) Descriptor

func (*VerifyMessage) Descriptor() ([]byte, []int)

func (*VerifyMessage) GetAddress

func (m *VerifyMessage) GetAddress() string

func (*VerifyMessage) GetCoinName

func (m *VerifyMessage) GetCoinName() string

func (*VerifyMessage) GetMessage

func (m *VerifyMessage) GetMessage() []byte

func (*VerifyMessage) GetSignature

func (m *VerifyMessage) GetSignature() []byte

func (*VerifyMessage) ProtoMessage

func (*VerifyMessage) ProtoMessage()

func (*VerifyMessage) Reset

func (m *VerifyMessage) Reset()

func (*VerifyMessage) String

func (m *VerifyMessage) String() string

func (*VerifyMessage) XXX_DiscardUnknown

func (m *VerifyMessage) XXX_DiscardUnknown()

func (*VerifyMessage) XXX_Marshal

func (m *VerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerifyMessage) XXX_Merge

func (m *VerifyMessage) XXX_Merge(src proto.Message)

func (*VerifyMessage) XXX_Size

func (m *VerifyMessage) XXX_Size() int

func (*VerifyMessage) XXX_Unmarshal

func (m *VerifyMessage) XXX_Unmarshal(b []byte) error

type WipeDevice

type WipeDevice struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Request device to wipe all sensitive data and settings @next ButtonRequest

func (*WipeDevice) Descriptor

func (*WipeDevice) Descriptor() ([]byte, []int)

func (*WipeDevice) ProtoMessage

func (*WipeDevice) ProtoMessage()

func (*WipeDevice) Reset

func (m *WipeDevice) Reset()

func (*WipeDevice) String

func (m *WipeDevice) String() string

func (*WipeDevice) XXX_DiscardUnknown

func (m *WipeDevice) XXX_DiscardUnknown()

func (*WipeDevice) XXX_Marshal

func (m *WipeDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WipeDevice) XXX_Merge

func (m *WipeDevice) XXX_Merge(src proto.Message)

func (*WipeDevice) XXX_Size

func (m *WipeDevice) XXX_Size() int

func (*WipeDevice) XXX_Unmarshal

func (m *WipeDevice) XXX_Unmarshal(b []byte) error

type WordAck

type WordAck struct {
	Word                 string   `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Computer replies with word from the mnemonic @prev WordRequest @next WordRequest @next Success @next Failure

func (*WordAck) Descriptor

func (*WordAck) Descriptor() ([]byte, []int)

func (*WordAck) GetWord

func (m *WordAck) GetWord() string

func (*WordAck) ProtoMessage

func (*WordAck) ProtoMessage()

func (*WordAck) Reset

func (m *WordAck) Reset()

func (*WordAck) String

func (m *WordAck) String() string

func (*WordAck) XXX_DiscardUnknown

func (m *WordAck) XXX_DiscardUnknown()

func (*WordAck) XXX_Marshal

func (m *WordAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WordAck) XXX_Merge

func (m *WordAck) XXX_Merge(src proto.Message)

func (*WordAck) XXX_Size

func (m *WordAck) XXX_Size() int

func (*WordAck) XXX_Unmarshal

func (m *WordAck) XXX_Unmarshal(b []byte) error

type WordRequest

type WordRequest struct {
	Type                 WordRequestType `protobuf:"varint,1,opt,name=type,proto3,enum=trezor.WordRequestType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

* Response: Device is waiting for user to enter word of the mnemonic Its position is shown only on device's internal display. @prev RecoveryDevice @prev WordAck

func (*WordRequest) Descriptor

func (*WordRequest) Descriptor() ([]byte, []int)

func (*WordRequest) GetType

func (m *WordRequest) GetType() WordRequestType

func (*WordRequest) ProtoMessage

func (*WordRequest) ProtoMessage()

func (*WordRequest) Reset

func (m *WordRequest) Reset()

func (*WordRequest) String

func (m *WordRequest) String() string

func (*WordRequest) XXX_DiscardUnknown

func (m *WordRequest) XXX_DiscardUnknown()

func (*WordRequest) XXX_Marshal

func (m *WordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WordRequest) XXX_Merge

func (m *WordRequest) XXX_Merge(src proto.Message)

func (*WordRequest) XXX_Size

func (m *WordRequest) XXX_Size() int

func (*WordRequest) XXX_Unmarshal

func (m *WordRequest) XXX_Unmarshal(b []byte) error

type WordRequestType

type WordRequestType int32

* Type of Recovery Word request @used_in WordRequest

const (
	WordRequestType_WordRequestType_Plain   WordRequestType = 0
	WordRequestType_WordRequestType_Matrix9 WordRequestType = 1
	WordRequestType_WordRequestType_Matrix6 WordRequestType = 2
)

func (WordRequestType) EnumDescriptor

func (WordRequestType) EnumDescriptor() ([]byte, []int)

func (WordRequestType) String

func (x WordRequestType) String() string

Jump to

Keyboard shortcuts

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