trezor

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package trezor contains the wire protocol.

Index

Constants

View Source
const Default_LoadDevice_Language string = "english"
View Source
const Default_RecoveryDevice_Language string = "english"
View Source
const Default_ResetDevice_Language string = "english"
View Source
const Default_ResetDevice_Strength uint32 = 256

Variables

View Source
var ApplySettings_PassphraseSourceType_name = map[int32]string{
	0: "ASK",
	1: "DEVICE",
	2: "HOST",
}
View Source
var ApplySettings_PassphraseSourceType_value = map[string]int32{
	"ASK":    0,
	"DEVICE": 1,
	"HOST":   2,
}
View Source
var ButtonRequest_ButtonRequestType_name = map[int32]string{
	1:  "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",
	12: "ButtonRequest_MnemonicWordCount",
	13: "ButtonRequest_MnemonicInput",
	14: "ButtonRequest_PassphraseType",
	15: "ButtonRequest_UnknownDerivationPath",
}
View Source
var ButtonRequest_ButtonRequestType_value = map[string]int32{
	"ButtonRequest_Other":                 1,
	"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,
	"ButtonRequest_MnemonicWordCount":     12,
	"ButtonRequest_MnemonicInput":         13,
	"ButtonRequest_PassphraseType":        14,
	"ButtonRequest_UnknownDerivationPath": 15,
}
View Source
var E_WireBootloader = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50007,
	Name:          "hw.trezor.messages.wire_bootloader",
	Tag:           "varint,50007,opt,name=wire_bootloader",
	Filename:      "messages.proto",
}
View Source
var E_WireDebugIn = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50004,
	Name:          "hw.trezor.messages.wire_debug_in",
	Tag:           "varint,50004,opt,name=wire_debug_in",
	Filename:      "messages.proto",
}
View Source
var E_WireDebugOut = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50005,
	Name:          "hw.trezor.messages.wire_debug_out",
	Tag:           "varint,50005,opt,name=wire_debug_out",
	Filename:      "messages.proto",
}
View Source
var E_WireIn = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50002,
	Name:          "hw.trezor.messages.wire_in",
	Tag:           "varint,50002,opt,name=wire_in",
	Filename:      "messages.proto",
}
View Source
var E_WireNoFsm = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50008,
	Name:          "hw.trezor.messages.wire_no_fsm",
	Tag:           "varint,50008,opt,name=wire_no_fsm",
	Filename:      "messages.proto",
}
View Source
var E_WireOut = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50003,
	Name:          "hw.trezor.messages.wire_out",
	Tag:           "varint,50003,opt,name=wire_out",
	Filename:      "messages.proto",
}
View Source
var E_WireTiny = &proto.ExtensionDesc{
	ExtendedType:  (*descriptor.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50006,
	Name:          "hw.trezor.messages.wire_tiny",
	Tag:           "varint,50006,opt,name=wire_tiny",
	Filename:      "messages.proto",
}
View Source
var Failure_FailureType_name = map[int32]string{
	1:  "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",
	12: "Failure_PinMismatch",
	99: "Failure_FirmwareError",
}
View Source
var Failure_FailureType_value = map[string]int32{
	"Failure_UnexpectedMessage": 1,
	"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_PinMismatch":       12,
	"Failure_FirmwareError":     99,
}
View Source
var MessageType_name = map[int32]string{}/* 193 elements not displayed */
View Source
var MessageType_value = map[string]int32{}/* 193 elements not displayed */
View Source
var PinMatrixRequest_PinMatrixRequestType_name = map[int32]string{
	1: "PinMatrixRequestType_Current",
	2: "PinMatrixRequestType_NewFirst",
	3: "PinMatrixRequestType_NewSecond",
}
View Source
var PinMatrixRequest_PinMatrixRequestType_value = map[string]int32{
	"PinMatrixRequestType_Current":   1,
	"PinMatrixRequestType_NewFirst":  2,
	"PinMatrixRequestType_NewSecond": 3,
}
View Source
var RecoveryDevice_RecoveryDeviceType_name = map[int32]string{
	0: "RecoveryDeviceType_ScrambledWords",
	1: "RecoveryDeviceType_Matrix",
}
View Source
var RecoveryDevice_RecoveryDeviceType_value = map[string]int32{
	"RecoveryDeviceType_ScrambledWords": 0,
	"RecoveryDeviceType_Matrix":         1,
}
View Source
var WordRequest_WordRequestType_name = map[int32]string{
	0: "WordRequestType_Plain",
	1: "WordRequestType_Matrix9",
	2: "WordRequestType_Matrix6",
}
View Source
var WordRequest_WordRequestType_value = map[string]int32{
	"WordRequestType_Plain":   0,
	"WordRequestType_Matrix9": 1,
	"WordRequestType_Matrix6": 2,
}

Functions

func Name

func Name(kind uint16) string

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

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 ApplyFlags

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

* Request: set flags of the device @start @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" json:"language,omitempty"`
	Label                *string                             `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"`
	UsePassphrase        *bool                               `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase" json:"use_passphrase,omitempty"`
	Homescreen           []byte                              `protobuf:"bytes,4,opt,name=homescreen" json:"homescreen,omitempty"`
	PassphraseSource     *ApplySettings_PassphraseSourceType `` /* 173-byte string literal not displayed */
	AutoLockDelayMs      *uint32                             `protobuf:"varint,6,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"`
	DisplayRotation      *uint32                             `protobuf:"varint,7,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

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

func (*ApplySettings) Descriptor

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

func (*ApplySettings) GetAutoLockDelayMs

func (m *ApplySettings) GetAutoLockDelayMs() uint32

func (*ApplySettings) GetDisplayRotation

func (m *ApplySettings) GetDisplayRotation() uint32

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) GetPassphraseSource

func (m *ApplySettings) GetPassphraseSource() ApplySettings_PassphraseSourceType

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 ApplySettings_PassphraseSourceType

type ApplySettings_PassphraseSourceType int32

* Structure representing passphrase source

const (
	ApplySettings_ASK    ApplySettings_PassphraseSourceType = 0
	ApplySettings_DEVICE ApplySettings_PassphraseSourceType = 1
	ApplySettings_HOST   ApplySettings_PassphraseSourceType = 2
)

func (ApplySettings_PassphraseSourceType) Enum

func (ApplySettings_PassphraseSourceType) EnumDescriptor

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

func (ApplySettings_PassphraseSourceType) String

func (*ApplySettings_PassphraseSourceType) UnmarshalJSON

func (x *ApplySettings_PassphraseSourceType) UnmarshalJSON(data []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 @start @next Success

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 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 @auxend

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                 *ButtonRequest_ButtonRequestType `protobuf:"varint,1,opt,name=code,enum=hw.trezor.messages.common.ButtonRequest_ButtonRequestType" json:"code,omitempty"`
	Data                 *string                          `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

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

func (*ButtonRequest) Descriptor

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

func (*ButtonRequest) GetCode

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 ButtonRequest_ButtonRequestType

type ButtonRequest_ButtonRequestType int32

* Type of button request

const (
	ButtonRequest_ButtonRequest_Other                 ButtonRequest_ButtonRequestType = 1
	ButtonRequest_ButtonRequest_FeeOverThreshold      ButtonRequest_ButtonRequestType = 2
	ButtonRequest_ButtonRequest_ConfirmOutput         ButtonRequest_ButtonRequestType = 3
	ButtonRequest_ButtonRequest_ResetDevice           ButtonRequest_ButtonRequestType = 4
	ButtonRequest_ButtonRequest_ConfirmWord           ButtonRequest_ButtonRequestType = 5
	ButtonRequest_ButtonRequest_WipeDevice            ButtonRequest_ButtonRequestType = 6
	ButtonRequest_ButtonRequest_ProtectCall           ButtonRequest_ButtonRequestType = 7
	ButtonRequest_ButtonRequest_SignTx                ButtonRequest_ButtonRequestType = 8
	ButtonRequest_ButtonRequest_FirmwareCheck         ButtonRequest_ButtonRequestType = 9
	ButtonRequest_ButtonRequest_Address               ButtonRequest_ButtonRequestType = 10
	ButtonRequest_ButtonRequest_PublicKey             ButtonRequest_ButtonRequestType = 11
	ButtonRequest_ButtonRequest_MnemonicWordCount     ButtonRequest_ButtonRequestType = 12
	ButtonRequest_ButtonRequest_MnemonicInput         ButtonRequest_ButtonRequestType = 13
	ButtonRequest_ButtonRequest_PassphraseType        ButtonRequest_ButtonRequestType = 14
	ButtonRequest_ButtonRequest_UnknownDerivationPath ButtonRequest_ButtonRequestType = 15
)

func (ButtonRequest_ButtonRequestType) Enum

func (ButtonRequest_ButtonRequestType) EnumDescriptor

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

func (ButtonRequest_ButtonRequestType) String

func (*ButtonRequest_ButtonRequestType) UnmarshalJSON

func (x *ButtonRequest_ButtonRequestType) UnmarshalJSON(data []byte) error

type Cancel

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

* Request: Abort last operation that required user interaction @start @next Failure

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" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Starts workflow for setting/changing/removing the PIN @start @next Success @next Failure

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 ClearSession

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

* Request: clear session (removes cached PIN, passphrase, etc). @start @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 Entropy

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

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

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" json:"entropy,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Provide additional entropy for seed generation function @next Success

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 @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 EthereumAddress

type EthereumAddress struct {
	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
	AddressHex           *string  `protobuf:"bytes,2,opt,name=addressHex" json:"addressHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Contains an Ethereum address derived from device private seed @end

func (*EthereumAddress) Descriptor

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

func (*EthereumAddress) GetAddressBin

func (m *EthereumAddress) GetAddressBin() []byte

func (*EthereumAddress) GetAddressHex

func (m *EthereumAddress) GetAddressHex() string

func (*EthereumAddress) ProtoMessage

func (*EthereumAddress) ProtoMessage()

func (*EthereumAddress) Reset

func (m *EthereumAddress) Reset()

func (*EthereumAddress) String

func (m *EthereumAddress) String() string

func (*EthereumAddress) XXX_DiscardUnknown

func (m *EthereumAddress) XXX_DiscardUnknown()

func (*EthereumAddress) XXX_Marshal

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

func (*EthereumAddress) XXX_Merge

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

func (*EthereumAddress) XXX_Size

func (m *EthereumAddress) XXX_Size() int

func (*EthereumAddress) XXX_Unmarshal

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

type EthereumGetAddress

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

* Request: Ask device for Ethereum address corresponding to address_n path @start @next EthereumAddress @next Failure

func (*EthereumGetAddress) Descriptor

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

func (*EthereumGetAddress) GetAddressN

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

func (*EthereumGetAddress) GetShowDisplay

func (m *EthereumGetAddress) GetShowDisplay() bool

func (*EthereumGetAddress) ProtoMessage

func (*EthereumGetAddress) ProtoMessage()

func (*EthereumGetAddress) Reset

func (m *EthereumGetAddress) Reset()

func (*EthereumGetAddress) String

func (m *EthereumGetAddress) String() string

func (*EthereumGetAddress) XXX_DiscardUnknown

func (m *EthereumGetAddress) XXX_DiscardUnknown()

func (*EthereumGetAddress) XXX_Marshal

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

func (*EthereumGetAddress) XXX_Merge

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

func (*EthereumGetAddress) XXX_Size

func (m *EthereumGetAddress) XXX_Size() int

func (*EthereumGetAddress) XXX_Unmarshal

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

type EthereumGetPublicKey

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

* Request: Ask device for public key corresponding to address_n path @start @next EthereumPublicKey @next Failure

func (*EthereumGetPublicKey) Descriptor

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

func (*EthereumGetPublicKey) GetAddressN

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

func (*EthereumGetPublicKey) GetShowDisplay

func (m *EthereumGetPublicKey) GetShowDisplay() bool

func (*EthereumGetPublicKey) ProtoMessage

func (*EthereumGetPublicKey) ProtoMessage()

func (*EthereumGetPublicKey) Reset

func (m *EthereumGetPublicKey) Reset()

func (*EthereumGetPublicKey) String

func (m *EthereumGetPublicKey) String() string

func (*EthereumGetPublicKey) XXX_DiscardUnknown

func (m *EthereumGetPublicKey) XXX_DiscardUnknown()

func (*EthereumGetPublicKey) XXX_Marshal

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

func (*EthereumGetPublicKey) XXX_Merge

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

func (*EthereumGetPublicKey) XXX_Size

func (m *EthereumGetPublicKey) XXX_Size() int

func (*EthereumGetPublicKey) XXX_Unmarshal

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

type EthereumMessageSignature

type EthereumMessageSignature struct {
	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	AddressHex           *string  `protobuf:"bytes,3,opt,name=addressHex" json:"addressHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Signed message @end

func (*EthereumMessageSignature) Descriptor

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

func (*EthereumMessageSignature) GetAddressBin

func (m *EthereumMessageSignature) GetAddressBin() []byte

func (*EthereumMessageSignature) GetAddressHex

func (m *EthereumMessageSignature) GetAddressHex() string

func (*EthereumMessageSignature) GetSignature

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

func (*EthereumMessageSignature) ProtoMessage

func (*EthereumMessageSignature) ProtoMessage()

func (*EthereumMessageSignature) Reset

func (m *EthereumMessageSignature) Reset()

func (*EthereumMessageSignature) String

func (m *EthereumMessageSignature) String() string

func (*EthereumMessageSignature) XXX_DiscardUnknown

func (m *EthereumMessageSignature) XXX_DiscardUnknown()

func (*EthereumMessageSignature) XXX_Marshal

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

func (*EthereumMessageSignature) XXX_Merge

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

func (*EthereumMessageSignature) XXX_Size

func (m *EthereumMessageSignature) XXX_Size() int

func (*EthereumMessageSignature) XXX_Unmarshal

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

type EthereumPublicKey

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

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

func (*EthereumPublicKey) Descriptor

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

func (*EthereumPublicKey) GetNode

func (m *EthereumPublicKey) GetNode() *HDNodeType

func (*EthereumPublicKey) GetXpub

func (m *EthereumPublicKey) GetXpub() string

func (*EthereumPublicKey) ProtoMessage

func (*EthereumPublicKey) ProtoMessage()

func (*EthereumPublicKey) Reset

func (m *EthereumPublicKey) Reset()

func (*EthereumPublicKey) String

func (m *EthereumPublicKey) String() string

func (*EthereumPublicKey) XXX_DiscardUnknown

func (m *EthereumPublicKey) XXX_DiscardUnknown()

func (*EthereumPublicKey) XXX_Marshal

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

func (*EthereumPublicKey) XXX_Merge

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

func (*EthereumPublicKey) XXX_Size

func (m *EthereumPublicKey) XXX_Size() int

func (*EthereumPublicKey) XXX_Unmarshal

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

type EthereumSignMessage

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

* Request: Ask device to sign message @start @next EthereumMessageSignature @next Failure

func (*EthereumSignMessage) Descriptor

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

func (*EthereumSignMessage) GetAddressN

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

func (*EthereumSignMessage) GetMessage

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

func (*EthereumSignMessage) ProtoMessage

func (*EthereumSignMessage) ProtoMessage()

func (*EthereumSignMessage) Reset

func (m *EthereumSignMessage) Reset()

func (*EthereumSignMessage) String

func (m *EthereumSignMessage) String() string

func (*EthereumSignMessage) XXX_DiscardUnknown

func (m *EthereumSignMessage) XXX_DiscardUnknown()

func (*EthereumSignMessage) XXX_Marshal

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

func (*EthereumSignMessage) XXX_Merge

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

func (*EthereumSignMessage) XXX_Size

func (m *EthereumSignMessage) XXX_Size() int

func (*EthereumSignMessage) XXX_Unmarshal

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

type EthereumSignTx

type EthereumSignTx struct {
	AddressN             []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Nonce                []byte   `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"`
	GasPrice             []byte   `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"`
	GasLimit             []byte   `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"`
	ToBin                []byte   `protobuf:"bytes,5,opt,name=toBin" json:"toBin,omitempty"`
	ToHex                *string  `protobuf:"bytes,11,opt,name=toHex" json:"toHex,omitempty"`
	Value                []byte   `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
	DataInitialChunk     []byte   `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"`
	DataLength           *uint32  `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
	ChainId              *uint32  `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"`
	TxType               *uint32  `protobuf:"varint,10,opt,name=tx_type,json=txType" json:"tx_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Ask device to sign transaction All fields are optional 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. @start @next EthereumTxRequest @next Failure

func (*EthereumSignTx) Descriptor

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

func (*EthereumSignTx) GetAddressN

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

func (*EthereumSignTx) GetChainId

func (m *EthereumSignTx) GetChainId() uint32

func (*EthereumSignTx) GetDataInitialChunk

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

func (*EthereumSignTx) GetDataLength

func (m *EthereumSignTx) GetDataLength() uint32

func (*EthereumSignTx) GetGasLimit

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

func (*EthereumSignTx) GetGasPrice

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

func (*EthereumSignTx) GetNonce

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

func (*EthereumSignTx) GetToBin

func (m *EthereumSignTx) GetToBin() []byte

func (*EthereumSignTx) GetToHex

func (m *EthereumSignTx) GetToHex() string

func (*EthereumSignTx) GetTxType

func (m *EthereumSignTx) GetTxType() uint32

func (*EthereumSignTx) GetValue

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

func (*EthereumSignTx) ProtoMessage

func (*EthereumSignTx) ProtoMessage()

func (*EthereumSignTx) Reset

func (m *EthereumSignTx) Reset()

func (*EthereumSignTx) String

func (m *EthereumSignTx) String() string

func (*EthereumSignTx) XXX_DiscardUnknown

func (m *EthereumSignTx) XXX_DiscardUnknown()

func (*EthereumSignTx) XXX_Marshal

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

func (*EthereumSignTx) XXX_Merge

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

func (*EthereumSignTx) XXX_Size

func (m *EthereumSignTx) XXX_Size() int

func (*EthereumSignTx) XXX_Unmarshal

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

type EthereumTxAck

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

* Request: Transaction payload data. @next EthereumTxRequest

func (*EthereumTxAck) Descriptor

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

func (*EthereumTxAck) GetDataChunk

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

func (*EthereumTxAck) ProtoMessage

func (*EthereumTxAck) ProtoMessage()

func (*EthereumTxAck) Reset

func (m *EthereumTxAck) Reset()

func (*EthereumTxAck) String

func (m *EthereumTxAck) String() string

func (*EthereumTxAck) XXX_DiscardUnknown

func (m *EthereumTxAck) XXX_DiscardUnknown()

func (*EthereumTxAck) XXX_Marshal

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

func (*EthereumTxAck) XXX_Merge

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

func (*EthereumTxAck) XXX_Size

func (m *EthereumTxAck) XXX_Size() int

func (*EthereumTxAck) XXX_Unmarshal

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

type EthereumTxRequest

type EthereumTxRequest struct {
	DataLength           *uint32  `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
	SignatureV           *uint32  `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"`
	SignatureR           []byte   `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"`
	SignatureS           []byte   `protobuf:"bytes,4,opt,name=signature_s,json=signatureS" 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. @end @next EthereumTxAck

func (*EthereumTxRequest) Descriptor

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

func (*EthereumTxRequest) GetDataLength

func (m *EthereumTxRequest) GetDataLength() uint32

func (*EthereumTxRequest) GetSignatureR

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

func (*EthereumTxRequest) GetSignatureS

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

func (*EthereumTxRequest) GetSignatureV

func (m *EthereumTxRequest) GetSignatureV() uint32

func (*EthereumTxRequest) ProtoMessage

func (*EthereumTxRequest) ProtoMessage()

func (*EthereumTxRequest) Reset

func (m *EthereumTxRequest) Reset()

func (*EthereumTxRequest) String

func (m *EthereumTxRequest) String() string

func (*EthereumTxRequest) XXX_DiscardUnknown

func (m *EthereumTxRequest) XXX_DiscardUnknown()

func (*EthereumTxRequest) XXX_Marshal

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

func (*EthereumTxRequest) XXX_Merge

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

func (*EthereumTxRequest) XXX_Size

func (m *EthereumTxRequest) XXX_Size() int

func (*EthereumTxRequest) XXX_Unmarshal

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

type EthereumVerifyMessage

type EthereumVerifyMessage struct {
	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
	Signature            []byte   `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	Message              []byte   `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	AddressHex           *string  `protobuf:"bytes,4,opt,name=addressHex" json:"addressHex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*EthereumVerifyMessage) Descriptor

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

func (*EthereumVerifyMessage) GetAddressBin

func (m *EthereumVerifyMessage) GetAddressBin() []byte

func (*EthereumVerifyMessage) GetAddressHex

func (m *EthereumVerifyMessage) GetAddressHex() string

func (*EthereumVerifyMessage) GetMessage

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

func (*EthereumVerifyMessage) GetSignature

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

func (*EthereumVerifyMessage) ProtoMessage

func (*EthereumVerifyMessage) ProtoMessage()

func (*EthereumVerifyMessage) Reset

func (m *EthereumVerifyMessage) Reset()

func (*EthereumVerifyMessage) String

func (m *EthereumVerifyMessage) String() string

func (*EthereumVerifyMessage) XXX_DiscardUnknown

func (m *EthereumVerifyMessage) XXX_DiscardUnknown()

func (*EthereumVerifyMessage) XXX_Marshal

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

func (*EthereumVerifyMessage) XXX_Merge

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

func (*EthereumVerifyMessage) XXX_Size

func (m *EthereumVerifyMessage) XXX_Size() int

func (*EthereumVerifyMessage) XXX_Unmarshal

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

type Failure

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

* Response: Failure of the previous request @end

func (*Failure) Descriptor

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

func (*Failure) GetCode

func (m *Failure) GetCode() Failure_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 Failure_FailureType

type Failure_FailureType int32
const (
	Failure_Failure_UnexpectedMessage Failure_FailureType = 1
	Failure_Failure_ButtonExpected    Failure_FailureType = 2
	Failure_Failure_DataError         Failure_FailureType = 3
	Failure_Failure_ActionCancelled   Failure_FailureType = 4
	Failure_Failure_PinExpected       Failure_FailureType = 5
	Failure_Failure_PinCancelled      Failure_FailureType = 6
	Failure_Failure_PinInvalid        Failure_FailureType = 7
	Failure_Failure_InvalidSignature  Failure_FailureType = 8
	Failure_Failure_ProcessError      Failure_FailureType = 9
	Failure_Failure_NotEnoughFunds    Failure_FailureType = 10
	Failure_Failure_NotInitialized    Failure_FailureType = 11
	Failure_Failure_PinMismatch       Failure_FailureType = 12
	Failure_Failure_FirmwareError     Failure_FailureType = 99
)

func (Failure_FailureType) Enum

func (Failure_FailureType) EnumDescriptor

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

func (Failure_FailureType) String

func (x Failure_FailureType) String() string

func (*Failure_FailureType) UnmarshalJSON

func (x *Failure_FailureType) UnmarshalJSON(data []byte) error

type Features

type Features struct {
	Vendor               *string  `protobuf:"bytes,1,opt,name=vendor" json:"vendor,omitempty"`
	MajorVersion         *uint32  `protobuf:"varint,2,opt,name=major_version,json=majorVersion" json:"major_version,omitempty"`
	MinorVersion         *uint32  `protobuf:"varint,3,opt,name=minor_version,json=minorVersion" json:"minor_version,omitempty"`
	PatchVersion         *uint32  `protobuf:"varint,4,opt,name=patch_version,json=patchVersion" json:"patch_version,omitempty"`
	BootloaderMode       *bool    `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode" json:"bootloader_mode,omitempty"`
	DeviceId             *string  `protobuf:"bytes,6,opt,name=device_id,json=deviceId" json:"device_id,omitempty"`
	PinProtection        *bool    `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	PassphraseProtection *bool    `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	Language             *string  `protobuf:"bytes,9,opt,name=language" json:"language,omitempty"`
	Label                *string  `protobuf:"bytes,10,opt,name=label" json:"label,omitempty"`
	Initialized          *bool    `protobuf:"varint,12,opt,name=initialized" json:"initialized,omitempty"`
	Revision             []byte   `protobuf:"bytes,13,opt,name=revision" json:"revision,omitempty"`
	BootloaderHash       []byte   `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash" json:"bootloader_hash,omitempty"`
	Imported             *bool    `protobuf:"varint,15,opt,name=imported" json:"imported,omitempty"`
	PinCached            *bool    `protobuf:"varint,16,opt,name=pin_cached,json=pinCached" json:"pin_cached,omitempty"`
	PassphraseCached     *bool    `protobuf:"varint,17,opt,name=passphrase_cached,json=passphraseCached" json:"passphrase_cached,omitempty"`
	FirmwarePresent      *bool    `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent" json:"firmware_present,omitempty"`
	NeedsBackup          *bool    `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"`
	Flags                *uint32  `protobuf:"varint,20,opt,name=flags" json:"flags,omitempty"`
	Model                *string  `protobuf:"bytes,21,opt,name=model" json:"model,omitempty"`
	FwMajor              *uint32  `protobuf:"varint,22,opt,name=fw_major,json=fwMajor" json:"fw_major,omitempty"`
	FwMinor              *uint32  `protobuf:"varint,23,opt,name=fw_minor,json=fwMinor" json:"fw_minor,omitempty"`
	FwPatch              *uint32  `protobuf:"varint,24,opt,name=fw_patch,json=fwPatch" json:"fw_patch,omitempty"`
	FwVendor             *string  `protobuf:"bytes,25,opt,name=fw_vendor,json=fwVendor" json:"fw_vendor,omitempty"`
	FwVendorKeys         []byte   `protobuf:"bytes,26,opt,name=fw_vendor_keys,json=fwVendorKeys" json:"fw_vendor_keys,omitempty"`
	UnfinishedBackup     *bool    `protobuf:"varint,27,opt,name=unfinished_backup,json=unfinishedBackup" json:"unfinished_backup,omitempty"`
	NoBackup             *bool    `protobuf:"varint,28,opt,name=no_backup,json=noBackup" json:"no_backup,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Response: Reports various information about the device @end

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) GetDeviceId

func (m *Features) GetDeviceId() string

func (*Features) GetFirmwarePresent

func (m *Features) GetFirmwarePresent() bool

func (*Features) GetFlags

func (m *Features) GetFlags() uint32

func (*Features) GetFwMajor

func (m *Features) GetFwMajor() uint32

func (*Features) GetFwMinor

func (m *Features) GetFwMinor() uint32

func (*Features) GetFwPatch

func (m *Features) GetFwPatch() uint32

func (*Features) GetFwVendor

func (m *Features) GetFwVendor() string

func (*Features) GetFwVendorKeys

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

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) GetModel

func (m *Features) GetModel() string

func (*Features) GetNeedsBackup

func (m *Features) GetNeedsBackup() bool

func (*Features) GetNoBackup

func (m *Features) GetNoBackup() 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) GetUnfinishedBackup

func (m *Features) GetUnfinishedBackup() bool

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 GetEntropy

type GetEntropy struct {
	Size                 *uint32  `protobuf:"varint,1,req,name=size" 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. @start @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) @start @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 HDNodeType

type HDNodeType struct {
	Depth                *uint32  `protobuf:"varint,1,req,name=depth" json:"depth,omitempty"`
	Fingerprint          *uint32  `protobuf:"varint,2,req,name=fingerprint" json:"fingerprint,omitempty"`
	ChildNum             *uint32  `protobuf:"varint,3,req,name=child_num,json=childNum" json:"child_num,omitempty"`
	ChainCode            []byte   `protobuf:"bytes,4,req,name=chain_code,json=chainCode" json:"chain_code,omitempty"`
	PrivateKey           []byte   `protobuf:"bytes,5,opt,name=private_key,json=privateKey" json:"private_key,omitempty"`
	PublicKey            []byte   `protobuf:"bytes,6,opt,name=public_key,json=publicKey" 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 @embed

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 Initialize

type Initialize struct {
	State                []byte   `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"`
	SkipPassphrase       *bool    `protobuf:"varint,2,opt,name=skip_passphrase,json=skipPassphrase" json:"skip_passphrase,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Initialize) Descriptor

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

func (*Initialize) GetSkipPassphrase

func (m *Initialize) GetSkipPassphrase() bool

func (*Initialize) GetState

func (m *Initialize) GetState() []byte

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 LoadDevice

type LoadDevice struct {
	Mnemonic             *string     `protobuf:"bytes,1,opt,name=mnemonic" json:"mnemonic,omitempty"`
	Node                 *HDNodeType `protobuf:"bytes,2,opt,name=node" json:"node,omitempty"`
	Pin                  *string     `protobuf:"bytes,3,opt,name=pin" json:"pin,omitempty"`
	PassphraseProtection *bool       `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	Language             *string     `protobuf:"bytes,5,opt,name=language,def=english" json:"language,omitempty"`
	Label                *string     `protobuf:"bytes,6,opt,name=label" json:"label,omitempty"`
	SkipChecksum         *bool       `protobuf:"varint,7,opt,name=skip_checksum,json=skipChecksum" json:"skip_checksum,omitempty"`
	U2FCounter           *uint32     `protobuf:"varint,8,opt,name=u2f_counter,json=u2fCounter" 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 @start @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 MessageType

type MessageType int32

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

const (
	// Management
	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_GetEntropy             MessageType = 9
	MessageType_MessageType_Entropy                MessageType = 10
	MessageType_MessageType_LoadDevice             MessageType = 13
	MessageType_MessageType_ResetDevice            MessageType = 14
	MessageType_MessageType_Features               MessageType = 17
	MessageType_MessageType_PinMatrixRequest       MessageType = 18
	MessageType_MessageType_PinMatrixAck           MessageType = 19
	MessageType_MessageType_Cancel                 MessageType = 20
	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_BackupDevice           MessageType = 34
	MessageType_MessageType_EntropyRequest         MessageType = 35
	MessageType_MessageType_EntropyAck             MessageType = 36
	MessageType_MessageType_PassphraseRequest      MessageType = 41
	MessageType_MessageType_PassphraseAck          MessageType = 42
	MessageType_MessageType_PassphraseStateRequest MessageType = 77
	MessageType_MessageType_PassphraseStateAck     MessageType = 78
	MessageType_MessageType_RecoveryDevice         MessageType = 45
	MessageType_MessageType_WordRequest            MessageType = 46
	MessageType_MessageType_WordAck                MessageType = 47
	MessageType_MessageType_GetFeatures            MessageType = 55
	MessageType_MessageType_SetU2FCounter          MessageType = 63
	// Bootloader
	MessageType_MessageType_FirmwareErase   MessageType = 6
	MessageType_MessageType_FirmwareUpload  MessageType = 7
	MessageType_MessageType_FirmwareRequest MessageType = 8
	MessageType_MessageType_SelfTest        MessageType = 32
	// Bitcoin
	MessageType_MessageType_GetPublicKey     MessageType = 11
	MessageType_MessageType_PublicKey        MessageType = 12
	MessageType_MessageType_SignTx           MessageType = 15
	MessageType_MessageType_TxRequest        MessageType = 21
	MessageType_MessageType_TxAck            MessageType = 22
	MessageType_MessageType_GetAddress       MessageType = 29
	MessageType_MessageType_Address          MessageType = 30
	MessageType_MessageType_SignMessage      MessageType = 38
	MessageType_MessageType_VerifyMessage    MessageType = 39
	MessageType_MessageType_MessageSignature MessageType = 40
	// Crypto
	MessageType_MessageType_CipherKeyValue    MessageType = 23
	MessageType_MessageType_CipheredKeyValue  MessageType = 48
	MessageType_MessageType_SignIdentity      MessageType = 53
	MessageType_MessageType_SignedIdentity    MessageType = 54
	MessageType_MessageType_GetECDHSessionKey MessageType = 61
	MessageType_MessageType_ECDHSessionKey    MessageType = 62
	MessageType_MessageType_CosiCommit        MessageType = 71
	MessageType_MessageType_CosiCommitment    MessageType = 72
	MessageType_MessageType_CosiSign          MessageType = 73
	MessageType_MessageType_CosiSignature     MessageType = 74
	// Debug
	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
	// Ethereum
	MessageType_MessageType_EthereumGetPublicKey     MessageType = 450
	MessageType_MessageType_EthereumPublicKey        MessageType = 451
	MessageType_MessageType_EthereumGetAddress       MessageType = 56
	MessageType_MessageType_EthereumAddress          MessageType = 57
	MessageType_MessageType_EthereumSignTx           MessageType = 58
	MessageType_MessageType_EthereumTxRequest        MessageType = 59
	MessageType_MessageType_EthereumTxAck            MessageType = 60
	MessageType_MessageType_EthereumSignMessage      MessageType = 64
	MessageType_MessageType_EthereumVerifyMessage    MessageType = 65
	MessageType_MessageType_EthereumMessageSignature MessageType = 66
	// NEM
	MessageType_MessageType_NEMGetAddress       MessageType = 67
	MessageType_MessageType_NEMAddress          MessageType = 68
	MessageType_MessageType_NEMSignTx           MessageType = 69
	MessageType_MessageType_NEMSignedTx         MessageType = 70
	MessageType_MessageType_NEMDecryptMessage   MessageType = 75
	MessageType_MessageType_NEMDecryptedMessage MessageType = 76
	// Lisk
	MessageType_MessageType_LiskGetAddress       MessageType = 114
	MessageType_MessageType_LiskAddress          MessageType = 115
	MessageType_MessageType_LiskSignTx           MessageType = 116
	MessageType_MessageType_LiskSignedTx         MessageType = 117
	MessageType_MessageType_LiskSignMessage      MessageType = 118
	MessageType_MessageType_LiskMessageSignature MessageType = 119
	MessageType_MessageType_LiskVerifyMessage    MessageType = 120
	MessageType_MessageType_LiskGetPublicKey     MessageType = 121
	MessageType_MessageType_LiskPublicKey        MessageType = 122
	// Tezos
	MessageType_MessageType_TezosGetAddress   MessageType = 150
	MessageType_MessageType_TezosAddress      MessageType = 151
	MessageType_MessageType_TezosSignTx       MessageType = 152
	MessageType_MessageType_TezosSignedTx     MessageType = 153
	MessageType_MessageType_TezosGetPublicKey MessageType = 154
	MessageType_MessageType_TezosPublicKey    MessageType = 155
	// Stellar
	MessageType_MessageType_StellarSignTx               MessageType = 202
	MessageType_MessageType_StellarTxOpRequest          MessageType = 203
	MessageType_MessageType_StellarGetAddress           MessageType = 207
	MessageType_MessageType_StellarAddress              MessageType = 208
	MessageType_MessageType_StellarCreateAccountOp      MessageType = 210
	MessageType_MessageType_StellarPaymentOp            MessageType = 211
	MessageType_MessageType_StellarPathPaymentOp        MessageType = 212
	MessageType_MessageType_StellarManageOfferOp        MessageType = 213
	MessageType_MessageType_StellarCreatePassiveOfferOp MessageType = 214
	MessageType_MessageType_StellarSetOptionsOp         MessageType = 215
	MessageType_MessageType_StellarChangeTrustOp        MessageType = 216
	MessageType_MessageType_StellarAllowTrustOp         MessageType = 217
	MessageType_MessageType_StellarAccountMergeOp       MessageType = 218
	// omitted: StellarInflationOp is not a supported operation, would be 219
	MessageType_MessageType_StellarManageDataOp   MessageType = 220
	MessageType_MessageType_StellarBumpSequenceOp MessageType = 221
	MessageType_MessageType_StellarSignedTx       MessageType = 230
	// TRON
	MessageType_MessageType_TronGetAddress MessageType = 250
	MessageType_MessageType_TronAddress    MessageType = 251
	MessageType_MessageType_TronSignTx     MessageType = 252
	MessageType_MessageType_TronSignedTx   MessageType = 253
	// Cardano
	// dropped Sign/VerifyMessage ids 300-302
	MessageType_MessageType_CardanoSignTx       MessageType = 303
	MessageType_MessageType_CardanoTxRequest    MessageType = 304
	MessageType_MessageType_CardanoGetPublicKey MessageType = 305
	MessageType_MessageType_CardanoPublicKey    MessageType = 306
	MessageType_MessageType_CardanoGetAddress   MessageType = 307
	MessageType_MessageType_CardanoAddress      MessageType = 308
	MessageType_MessageType_CardanoTxAck        MessageType = 309
	MessageType_MessageType_CardanoSignedTx     MessageType = 310
	// Ontology
	MessageType_MessageType_OntologyGetAddress               MessageType = 350
	MessageType_MessageType_OntologyAddress                  MessageType = 351
	MessageType_MessageType_OntologyGetPublicKey             MessageType = 352
	MessageType_MessageType_OntologyPublicKey                MessageType = 353
	MessageType_MessageType_OntologySignTransfer             MessageType = 354
	MessageType_MessageType_OntologySignedTransfer           MessageType = 355
	MessageType_MessageType_OntologySignWithdrawOng          MessageType = 356
	MessageType_MessageType_OntologySignedWithdrawOng        MessageType = 357
	MessageType_MessageType_OntologySignOntIdRegister        MessageType = 358
	MessageType_MessageType_OntologySignedOntIdRegister      MessageType = 359
	MessageType_MessageType_OntologySignOntIdAddAttributes   MessageType = 360
	MessageType_MessageType_OntologySignedOntIdAddAttributes MessageType = 361
	// Ripple
	MessageType_MessageType_RippleGetAddress MessageType = 400
	MessageType_MessageType_RippleAddress    MessageType = 401
	MessageType_MessageType_RippleSignTx     MessageType = 402
	MessageType_MessageType_RippleSignedTx   MessageType = 403
	// Monero
	MessageType_MessageType_MoneroTransactionInitRequest              MessageType = 501
	MessageType_MessageType_MoneroTransactionInitAck                  MessageType = 502
	MessageType_MessageType_MoneroTransactionSetInputRequest          MessageType = 503
	MessageType_MessageType_MoneroTransactionSetInputAck              MessageType = 504
	MessageType_MessageType_MoneroTransactionInputsPermutationRequest MessageType = 505
	MessageType_MessageType_MoneroTransactionInputsPermutationAck     MessageType = 506
	MessageType_MessageType_MoneroTransactionInputViniRequest         MessageType = 507
	MessageType_MessageType_MoneroTransactionInputViniAck             MessageType = 508
	MessageType_MessageType_MoneroTransactionAllInputsSetRequest      MessageType = 509
	MessageType_MessageType_MoneroTransactionAllInputsSetAck          MessageType = 510
	MessageType_MessageType_MoneroTransactionSetOutputRequest         MessageType = 511
	MessageType_MessageType_MoneroTransactionSetOutputAck             MessageType = 512
	MessageType_MessageType_MoneroTransactionAllOutSetRequest         MessageType = 513
	MessageType_MessageType_MoneroTransactionAllOutSetAck             MessageType = 514
	MessageType_MessageType_MoneroTransactionSignInputRequest         MessageType = 515
	MessageType_MessageType_MoneroTransactionSignInputAck             MessageType = 516
	MessageType_MessageType_MoneroTransactionFinalRequest             MessageType = 517
	MessageType_MessageType_MoneroTransactionFinalAck                 MessageType = 518
	MessageType_MessageType_MoneroKeyImageExportInitRequest           MessageType = 530
	MessageType_MessageType_MoneroKeyImageExportInitAck               MessageType = 531
	MessageType_MessageType_MoneroKeyImageSyncStepRequest             MessageType = 532
	MessageType_MessageType_MoneroKeyImageSyncStepAck                 MessageType = 533
	MessageType_MessageType_MoneroKeyImageSyncFinalRequest            MessageType = 534
	MessageType_MessageType_MoneroKeyImageSyncFinalAck                MessageType = 535
	MessageType_MessageType_MoneroGetAddress                          MessageType = 540
	MessageType_MessageType_MoneroAddress                             MessageType = 541
	MessageType_MessageType_MoneroGetWatchKey                         MessageType = 542
	MessageType_MessageType_MoneroWatchKey                            MessageType = 543
	MessageType_MessageType_DebugMoneroDiagRequest                    MessageType = 546
	MessageType_MessageType_DebugMoneroDiagAck                        MessageType = 547
	MessageType_MessageType_MoneroGetTxKeyRequest                     MessageType = 550
	MessageType_MessageType_MoneroGetTxKeyAck                         MessageType = 551
	MessageType_MessageType_MoneroLiveRefreshStartRequest             MessageType = 552
	MessageType_MessageType_MoneroLiveRefreshStartAck                 MessageType = 553
	MessageType_MessageType_MoneroLiveRefreshStepRequest              MessageType = 554
	MessageType_MessageType_MoneroLiveRefreshStepAck                  MessageType = 555
	MessageType_MessageType_MoneroLiveRefreshFinalRequest             MessageType = 556
	MessageType_MessageType_MoneroLiveRefreshFinalAck                 MessageType = 557
	// EOS
	MessageType_MessageType_EosGetPublicKey    MessageType = 600
	MessageType_MessageType_EosPublicKey       MessageType = 601
	MessageType_MessageType_EosSignTx          MessageType = 602
	MessageType_MessageType_EosTxActionRequest MessageType = 603
	MessageType_MessageType_EosTxActionAck     MessageType = 604
	MessageType_MessageType_EosSignedTx        MessageType = 605
	// Binance
	MessageType_MessageType_BinanceGetAddress   MessageType = 700
	MessageType_MessageType_BinanceAddress      MessageType = 701
	MessageType_MessageType_BinanceGetPublicKey MessageType = 702
	MessageType_MessageType_BinancePublicKey    MessageType = 703
	MessageType_MessageType_BinanceSignTx       MessageType = 704
	MessageType_MessageType_BinanceTxRequest    MessageType = 705
	MessageType_MessageType_BinanceTransferMsg  MessageType = 706
	MessageType_MessageType_BinanceOrderMsg     MessageType = 707
	MessageType_MessageType_BinanceCancelMsg    MessageType = 708
	MessageType_MessageType_BinanceSignedTx     MessageType = 709
)

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor

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

func (MessageType) String

func (x MessageType) String() string

func (*MessageType) UnmarshalJSON

func (x *MessageType) UnmarshalJSON(data []byte) error

type PassphraseAck

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

* Request: Send passphrase back @next PassphraseStateRequest

func (*PassphraseAck) Descriptor

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

func (*PassphraseAck) GetPassphrase

func (m *PassphraseAck) GetPassphrase() string

func (*PassphraseAck) GetState

func (m *PassphraseAck) GetState() []byte

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 {
	OnDevice             *bool    `protobuf:"varint,1,opt,name=on_device,json=onDevice" json:"on_device,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*PassphraseRequest) Descriptor

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

func (*PassphraseRequest) GetOnDevice

func (m *PassphraseRequest) GetOnDevice() bool

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 PassphraseStateAck

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

* Request: Send passphrase state back @auxend

func (*PassphraseStateAck) Descriptor

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

func (*PassphraseStateAck) ProtoMessage

func (*PassphraseStateAck) ProtoMessage()

func (*PassphraseStateAck) Reset

func (m *PassphraseStateAck) Reset()

func (*PassphraseStateAck) String

func (m *PassphraseStateAck) String() string

func (*PassphraseStateAck) XXX_DiscardUnknown

func (m *PassphraseStateAck) XXX_DiscardUnknown()

func (*PassphraseStateAck) XXX_Marshal

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

func (*PassphraseStateAck) XXX_Merge

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

func (*PassphraseStateAck) XXX_Size

func (m *PassphraseStateAck) XXX_Size() int

func (*PassphraseStateAck) XXX_Unmarshal

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

type PassphraseStateRequest

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

* Response: Device awaits passphrase state @next PassphraseStateAck

func (*PassphraseStateRequest) Descriptor

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

func (*PassphraseStateRequest) GetState

func (m *PassphraseStateRequest) GetState() []byte

func (*PassphraseStateRequest) ProtoMessage

func (*PassphraseStateRequest) ProtoMessage()

func (*PassphraseStateRequest) Reset

func (m *PassphraseStateRequest) Reset()

func (*PassphraseStateRequest) String

func (m *PassphraseStateRequest) String() string

func (*PassphraseStateRequest) XXX_DiscardUnknown

func (m *PassphraseStateRequest) XXX_DiscardUnknown()

func (*PassphraseStateRequest) XXX_Marshal

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

func (*PassphraseStateRequest) XXX_Merge

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

func (*PassphraseStateRequest) XXX_Size

func (m *PassphraseStateRequest) XXX_Size() int

func (*PassphraseStateRequest) XXX_Unmarshal

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

type PinMatrixAck

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

* Request: Computer responds with encoded PIN @auxend

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                 *PinMatrixRequest_PinMatrixRequestType `protobuf:"varint,1,opt,name=type,enum=hw.trezor.messages.common.PinMatrixRequest_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 @auxstart @next PinMatrixAck

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 PinMatrixRequest_PinMatrixRequestType

type PinMatrixRequest_PinMatrixRequestType int32

* Type of PIN request

const (
	PinMatrixRequest_PinMatrixRequestType_Current   PinMatrixRequest_PinMatrixRequestType = 1
	PinMatrixRequest_PinMatrixRequestType_NewFirst  PinMatrixRequest_PinMatrixRequestType = 2
	PinMatrixRequest_PinMatrixRequestType_NewSecond PinMatrixRequest_PinMatrixRequestType = 3
)

func (PinMatrixRequest_PinMatrixRequestType) Enum

func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor

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

func (PinMatrixRequest_PinMatrixRequestType) String

func (*PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON

func (x *PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON(data []byte) error

type Ping

type Ping struct {
	Message              *string  `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	ButtonProtection     *bool    `protobuf:"varint,2,opt,name=button_protection,json=buttonProtection" json:"button_protection,omitempty"`
	PinProtection        *bool    `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	PassphraseProtection *bool    `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" 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 @start @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 RecoveryDevice

type RecoveryDevice struct {
	WordCount            *uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount" json:"word_count,omitempty"`
	PassphraseProtection *bool   `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	PinProtection        *bool   `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	Language             *string `protobuf:"bytes,4,opt,name=language,def=english" json:"language,omitempty"`
	Label                *string `protobuf:"bytes,5,opt,name=label" json:"label,omitempty"`
	EnforceWordlist      *bool   `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist" json:"enforce_wordlist,omitempty"`
	// 7 reserved for unused recovery method
	Type                 *RecoveryDevice_RecoveryDeviceType `protobuf:"varint,8,opt,name=type,enum=hw.trezor.messages.management.RecoveryDevice_RecoveryDeviceType" json:"type,omitempty"`
	U2FCounter           *uint32                            `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
	DryRun               *bool                              `protobuf:"varint,10,opt,name=dry_run,json=dryRun" 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. @start @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 (*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 RecoveryDevice_RecoveryDeviceType

type RecoveryDevice_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.

const (
	// use powers of two when extending this field
	RecoveryDevice_RecoveryDeviceType_ScrambledWords RecoveryDevice_RecoveryDeviceType = 0
	RecoveryDevice_RecoveryDeviceType_Matrix         RecoveryDevice_RecoveryDeviceType = 1
)

func (RecoveryDevice_RecoveryDeviceType) Enum

func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor

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

func (RecoveryDevice_RecoveryDeviceType) String

func (*RecoveryDevice_RecoveryDeviceType) UnmarshalJSON

func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(data []byte) error

type ResetDevice

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

* Request: Ask device to do initialization involving user interaction @start @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) GetNoBackup

func (m *ResetDevice) GetNoBackup() bool

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 SetU2FCounter

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

* Request: Set U2F counter @start @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 Success

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

* Response: Success of the previous request @end

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 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 @start @next Success @next Failure

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,req,name=word" json:"word,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

* Request: Computer replies with word from the mnemonic @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                 *WordRequest_WordRequestType `protobuf:"varint,1,opt,name=type,enum=hw.trezor.messages.management.WordRequest_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. @next WordAck

func (*WordRequest) Descriptor

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

func (*WordRequest) GetType

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 WordRequest_WordRequestType

type WordRequest_WordRequestType int32

* Type of Recovery Word request

const (
	WordRequest_WordRequestType_Plain   WordRequest_WordRequestType = 0
	WordRequest_WordRequestType_Matrix9 WordRequest_WordRequestType = 1
	WordRequest_WordRequestType_Matrix6 WordRequest_WordRequestType = 2
)

func (WordRequest_WordRequestType) Enum

func (WordRequest_WordRequestType) EnumDescriptor

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

func (WordRequest_WordRequestType) String

func (*WordRequest_WordRequestType) UnmarshalJSON

func (x *WordRequest_WordRequestType) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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