go-ethereum: github.com/axiomzen/go-ethereum/accounts/usbwallet/trezor Index | Files

package trezor

import "github.com/axiomzen/go-ethereum/accounts/usbwallet/trezor"

Package trezor contains the wire protocol.

Index

Package Files

messages-common.pb.go messages-ethereum.pb.go messages-management.pb.go messages.pb.go trezor.go

Constants

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

Variables

var ApplySettings_PassphraseSourceType_name = map[int32]string{
    0:  "ASK",
    1:  "DEVICE",
    2:  "HOST",
}
var ApplySettings_PassphraseSourceType_value = map[string]int32{
    "ASK":    0,
    "DEVICE": 1,
    "HOST":   2,
}
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",
}
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,
}
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",
}
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",
}
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",
}
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",
}
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",
}
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",
}
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",
}
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",
}
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,
}
var MessageType_name = map[int32]string{ /* 193 elements not displayed */

}
var MessageType_value = map[string]int32{ /* 193 elements not displayed */

}
var PinMatrixRequest_PinMatrixRequestType_name = map[int32]string{
    1:  "PinMatrixRequestType_Current",
    2:  "PinMatrixRequestType_NewFirst",
    3:  "PinMatrixRequestType_NewSecond",
}
var PinMatrixRequest_PinMatrixRequestType_value = map[string]int32{
    "PinMatrixRequestType_Current":   1,
    "PinMatrixRequestType_NewFirst":  2,
    "PinMatrixRequestType_NewSecond": 3,
}
var RecoveryDevice_RecoveryDeviceType_name = map[int32]string{
    0:  "RecoveryDeviceType_ScrambledWords",
    1:  "RecoveryDeviceType_Matrix",
}
var RecoveryDevice_RecoveryDeviceType_value = map[string]int32{
    "RecoveryDeviceType_ScrambledWords": 0,
    "RecoveryDeviceType_Matrix":         1,
}
var WordRequest_WordRequestType_name = map[int32]string{
    0:  "WordRequestType_Plain",
    1:  "WordRequestType_Matrix9",
    2:  "WordRequestType_Matrix6",
}
var WordRequest_WordRequestType_value = map[string]int32{
    "WordRequestType_Plain":   0,
    "WordRequestType_Matrix9": 1,
    "WordRequestType_Matrix6": 2,
}

func Name Uses

func Name(kind uint16) string

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

func Type Uses

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!

type ApplyFlags Uses

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 Uses

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

func (*ApplyFlags) GetFlags Uses

func (m *ApplyFlags) GetFlags() uint32

func (*ApplyFlags) ProtoMessage Uses

func (*ApplyFlags) ProtoMessage()

func (*ApplyFlags) Reset Uses

func (m *ApplyFlags) Reset()

func (*ApplyFlags) String Uses

func (m *ApplyFlags) String() string

func (*ApplyFlags) XXX_DiscardUnknown Uses

func (m *ApplyFlags) XXX_DiscardUnknown()

func (*ApplyFlags) XXX_Marshal Uses

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

func (*ApplyFlags) XXX_Merge Uses

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

func (*ApplyFlags) XXX_Size Uses

func (m *ApplyFlags) XXX_Size() int

func (*ApplyFlags) XXX_Unmarshal Uses

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

type ApplySettings Uses

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 `protobuf:"varint,5,opt,name=passphrase_source,json=passphraseSource,enum=hw.trezor.messages.management.ApplySettings_PassphraseSourceType" json:"passphrase_source,omitempty"`
    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 Uses

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

func (*ApplySettings) GetAutoLockDelayMs Uses

func (m *ApplySettings) GetAutoLockDelayMs() uint32

func (*ApplySettings) GetDisplayRotation Uses

func (m *ApplySettings) GetDisplayRotation() uint32

func (*ApplySettings) GetHomescreen Uses

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

func (*ApplySettings) GetLabel Uses

func (m *ApplySettings) GetLabel() string

func (*ApplySettings) GetLanguage Uses

func (m *ApplySettings) GetLanguage() string

func (*ApplySettings) GetPassphraseSource Uses

func (m *ApplySettings) GetPassphraseSource() ApplySettings_PassphraseSourceType

func (*ApplySettings) GetUsePassphrase Uses

func (m *ApplySettings) GetUsePassphrase() bool

func (*ApplySettings) ProtoMessage Uses

func (*ApplySettings) ProtoMessage()

func (*ApplySettings) Reset Uses

func (m *ApplySettings) Reset()

func (*ApplySettings) String Uses

func (m *ApplySettings) String() string

func (*ApplySettings) XXX_DiscardUnknown Uses

func (m *ApplySettings) XXX_DiscardUnknown()

func (*ApplySettings) XXX_Marshal Uses

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

func (*ApplySettings) XXX_Merge Uses

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

func (*ApplySettings) XXX_Size Uses

func (m *ApplySettings) XXX_Size() int

func (*ApplySettings) XXX_Unmarshal Uses

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

type ApplySettings_PassphraseSourceType Uses

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 Uses

func (x ApplySettings_PassphraseSourceType) Enum() *ApplySettings_PassphraseSourceType

func (ApplySettings_PassphraseSourceType) EnumDescriptor Uses

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

func (ApplySettings_PassphraseSourceType) String Uses

func (x ApplySettings_PassphraseSourceType) String() string

func (*ApplySettings_PassphraseSourceType) UnmarshalJSON Uses

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

type BackupDevice Uses

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 Uses

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

func (*BackupDevice) ProtoMessage Uses

func (*BackupDevice) ProtoMessage()

func (*BackupDevice) Reset Uses

func (m *BackupDevice) Reset()

func (*BackupDevice) String Uses

func (m *BackupDevice) String() string

func (*BackupDevice) XXX_DiscardUnknown Uses

func (m *BackupDevice) XXX_DiscardUnknown()

func (*BackupDevice) XXX_Marshal Uses

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

func (*BackupDevice) XXX_Merge Uses

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

func (*BackupDevice) XXX_Size Uses

func (m *BackupDevice) XXX_Size() int

func (*BackupDevice) XXX_Unmarshal Uses

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

type ButtonAck Uses

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 Uses

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

func (*ButtonAck) ProtoMessage Uses

func (*ButtonAck) ProtoMessage()

func (*ButtonAck) Reset Uses

func (m *ButtonAck) Reset()

func (*ButtonAck) String Uses

func (m *ButtonAck) String() string

func (*ButtonAck) XXX_DiscardUnknown Uses

func (m *ButtonAck) XXX_DiscardUnknown()

func (*ButtonAck) XXX_Marshal Uses

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

func (*ButtonAck) XXX_Merge Uses

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

func (*ButtonAck) XXX_Size Uses

func (m *ButtonAck) XXX_Size() int

func (*ButtonAck) XXX_Unmarshal Uses

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

type ButtonRequest Uses

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 Uses

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

func (*ButtonRequest) GetCode Uses

func (m *ButtonRequest) GetCode() ButtonRequest_ButtonRequestType

func (*ButtonRequest) GetData Uses

func (m *ButtonRequest) GetData() string

func (*ButtonRequest) ProtoMessage Uses

func (*ButtonRequest) ProtoMessage()

func (*ButtonRequest) Reset Uses

func (m *ButtonRequest) Reset()

func (*ButtonRequest) String Uses

func (m *ButtonRequest) String() string

func (*ButtonRequest) XXX_DiscardUnknown Uses

func (m *ButtonRequest) XXX_DiscardUnknown()

func (*ButtonRequest) XXX_Marshal Uses

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

func (*ButtonRequest) XXX_Merge Uses

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

func (*ButtonRequest) XXX_Size Uses

func (m *ButtonRequest) XXX_Size() int

func (*ButtonRequest) XXX_Unmarshal Uses

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

type ButtonRequest_ButtonRequestType Uses

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 Uses

func (x ButtonRequest_ButtonRequestType) Enum() *ButtonRequest_ButtonRequestType

func (ButtonRequest_ButtonRequestType) EnumDescriptor Uses

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

func (ButtonRequest_ButtonRequestType) String Uses

func (x ButtonRequest_ButtonRequestType) String() string

func (*ButtonRequest_ButtonRequestType) UnmarshalJSON Uses

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

type Cancel Uses

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 Uses

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

func (*Cancel) ProtoMessage Uses

func (*Cancel) ProtoMessage()

func (*Cancel) Reset Uses

func (m *Cancel) Reset()

func (*Cancel) String Uses

func (m *Cancel) String() string

func (*Cancel) XXX_DiscardUnknown Uses

func (m *Cancel) XXX_DiscardUnknown()

func (*Cancel) XXX_Marshal Uses

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

func (*Cancel) XXX_Merge Uses

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

func (*Cancel) XXX_Size Uses

func (m *Cancel) XXX_Size() int

func (*Cancel) XXX_Unmarshal Uses

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

type ChangePin Uses

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 Uses

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

func (*ChangePin) GetRemove Uses

func (m *ChangePin) GetRemove() bool

func (*ChangePin) ProtoMessage Uses

func (*ChangePin) ProtoMessage()

func (*ChangePin) Reset Uses

func (m *ChangePin) Reset()

func (*ChangePin) String Uses

func (m *ChangePin) String() string

func (*ChangePin) XXX_DiscardUnknown Uses

func (m *ChangePin) XXX_DiscardUnknown()

func (*ChangePin) XXX_Marshal Uses

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

func (*ChangePin) XXX_Merge Uses

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

func (*ChangePin) XXX_Size Uses

func (m *ChangePin) XXX_Size() int

func (*ChangePin) XXX_Unmarshal Uses

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

type ClearSession Uses

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 Uses

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

func (*ClearSession) ProtoMessage Uses

func (*ClearSession) ProtoMessage()

func (*ClearSession) Reset Uses

func (m *ClearSession) Reset()

func (*ClearSession) String Uses

func (m *ClearSession) String() string

func (*ClearSession) XXX_DiscardUnknown Uses

func (m *ClearSession) XXX_DiscardUnknown()

func (*ClearSession) XXX_Marshal Uses

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

func (*ClearSession) XXX_Merge Uses

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

func (*ClearSession) XXX_Size Uses

func (m *ClearSession) XXX_Size() int

func (*ClearSession) XXX_Unmarshal Uses

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

type Entropy Uses

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 Uses

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

func (*Entropy) GetEntropy Uses

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

func (*Entropy) ProtoMessage Uses

func (*Entropy) ProtoMessage()

func (*Entropy) Reset Uses

func (m *Entropy) Reset()

func (*Entropy) String Uses

func (m *Entropy) String() string

func (*Entropy) XXX_DiscardUnknown Uses

func (m *Entropy) XXX_DiscardUnknown()

func (*Entropy) XXX_Marshal Uses

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

func (*Entropy) XXX_Merge Uses

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

func (*Entropy) XXX_Size Uses

func (m *Entropy) XXX_Size() int

func (*Entropy) XXX_Unmarshal Uses

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

type EntropyAck Uses

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 Uses

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

func (*EntropyAck) GetEntropy Uses

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

func (*EntropyAck) ProtoMessage Uses

func (*EntropyAck) ProtoMessage()

func (*EntropyAck) Reset Uses

func (m *EntropyAck) Reset()

func (*EntropyAck) String Uses

func (m *EntropyAck) String() string

func (*EntropyAck) XXX_DiscardUnknown Uses

func (m *EntropyAck) XXX_DiscardUnknown()

func (*EntropyAck) XXX_Marshal Uses

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

func (*EntropyAck) XXX_Merge Uses

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

func (*EntropyAck) XXX_Size Uses

func (m *EntropyAck) XXX_Size() int

func (*EntropyAck) XXX_Unmarshal Uses

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

type EntropyRequest Uses

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 Uses

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

func (*EntropyRequest) ProtoMessage Uses

func (*EntropyRequest) ProtoMessage()

func (*EntropyRequest) Reset Uses

func (m *EntropyRequest) Reset()

func (*EntropyRequest) String Uses

func (m *EntropyRequest) String() string

func (*EntropyRequest) XXX_DiscardUnknown Uses

func (m *EntropyRequest) XXX_DiscardUnknown()

func (*EntropyRequest) XXX_Marshal Uses

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

func (*EntropyRequest) XXX_Merge Uses

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

func (*EntropyRequest) XXX_Size Uses

func (m *EntropyRequest) XXX_Size() int

func (*EntropyRequest) XXX_Unmarshal Uses

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

type EthereumAddress Uses

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 Uses

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

func (*EthereumAddress) GetAddressBin Uses

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

func (*EthereumAddress) GetAddressHex Uses

func (m *EthereumAddress) GetAddressHex() string

func (*EthereumAddress) ProtoMessage Uses

func (*EthereumAddress) ProtoMessage()

func (*EthereumAddress) Reset Uses

func (m *EthereumAddress) Reset()

func (*EthereumAddress) String Uses

func (m *EthereumAddress) String() string

func (*EthereumAddress) XXX_DiscardUnknown Uses

func (m *EthereumAddress) XXX_DiscardUnknown()

func (*EthereumAddress) XXX_Marshal Uses

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

func (*EthereumAddress) XXX_Merge Uses

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

func (*EthereumAddress) XXX_Size Uses

func (m *EthereumAddress) XXX_Size() int

func (*EthereumAddress) XXX_Unmarshal Uses

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

type EthereumGetAddress Uses

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 Uses

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

func (*EthereumGetAddress) GetAddressN Uses

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

func (*EthereumGetAddress) GetShowDisplay Uses

func (m *EthereumGetAddress) GetShowDisplay() bool

func (*EthereumGetAddress) ProtoMessage Uses

func (*EthereumGetAddress) ProtoMessage()

func (*EthereumGetAddress) Reset Uses

func (m *EthereumGetAddress) Reset()

func (*EthereumGetAddress) String Uses

func (m *EthereumGetAddress) String() string

func (*EthereumGetAddress) XXX_DiscardUnknown Uses

func (m *EthereumGetAddress) XXX_DiscardUnknown()

func (*EthereumGetAddress) XXX_Marshal Uses

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

func (*EthereumGetAddress) XXX_Merge Uses

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

func (*EthereumGetAddress) XXX_Size Uses

func (m *EthereumGetAddress) XXX_Size() int

func (*EthereumGetAddress) XXX_Unmarshal Uses

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

type EthereumGetPublicKey Uses

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 Uses

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

func (*EthereumGetPublicKey) GetAddressN Uses

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

func (*EthereumGetPublicKey) GetShowDisplay Uses

func (m *EthereumGetPublicKey) GetShowDisplay() bool

func (*EthereumGetPublicKey) ProtoMessage Uses

func (*EthereumGetPublicKey) ProtoMessage()

func (*EthereumGetPublicKey) Reset Uses

func (m *EthereumGetPublicKey) Reset()

func (*EthereumGetPublicKey) String Uses

func (m *EthereumGetPublicKey) String() string

func (*EthereumGetPublicKey) XXX_DiscardUnknown Uses

func (m *EthereumGetPublicKey) XXX_DiscardUnknown()

func (*EthereumGetPublicKey) XXX_Marshal Uses

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

func (*EthereumGetPublicKey) XXX_Merge Uses

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

func (*EthereumGetPublicKey) XXX_Size Uses

func (m *EthereumGetPublicKey) XXX_Size() int

func (*EthereumGetPublicKey) XXX_Unmarshal Uses

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

type EthereumMessageSignature Uses

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 Uses

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

func (*EthereumMessageSignature) GetAddressBin Uses

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

func (*EthereumMessageSignature) GetAddressHex Uses

func (m *EthereumMessageSignature) GetAddressHex() string

func (*EthereumMessageSignature) GetSignature Uses

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

func (*EthereumMessageSignature) ProtoMessage Uses

func (*EthereumMessageSignature) ProtoMessage()

func (*EthereumMessageSignature) Reset Uses

func (m *EthereumMessageSignature) Reset()

func (*EthereumMessageSignature) String Uses

func (m *EthereumMessageSignature) String() string

func (*EthereumMessageSignature) XXX_DiscardUnknown Uses

func (m *EthereumMessageSignature) XXX_DiscardUnknown()

func (*EthereumMessageSignature) XXX_Marshal Uses

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

func (*EthereumMessageSignature) XXX_Merge Uses

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

func (*EthereumMessageSignature) XXX_Size Uses

func (m *EthereumMessageSignature) XXX_Size() int

func (*EthereumMessageSignature) XXX_Unmarshal Uses

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

type EthereumPublicKey Uses

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 Uses

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

func (*EthereumPublicKey) GetNode Uses

func (m *EthereumPublicKey) GetNode() *HDNodeType

func (*EthereumPublicKey) GetXpub Uses

func (m *EthereumPublicKey) GetXpub() string

func (*EthereumPublicKey) ProtoMessage Uses

func (*EthereumPublicKey) ProtoMessage()

func (*EthereumPublicKey) Reset Uses

func (m *EthereumPublicKey) Reset()

func (*EthereumPublicKey) String Uses

func (m *EthereumPublicKey) String() string

func (*EthereumPublicKey) XXX_DiscardUnknown Uses

func (m *EthereumPublicKey) XXX_DiscardUnknown()

func (*EthereumPublicKey) XXX_Marshal Uses

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

func (*EthereumPublicKey) XXX_Merge Uses

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

func (*EthereumPublicKey) XXX_Size Uses

func (m *EthereumPublicKey) XXX_Size() int

func (*EthereumPublicKey) XXX_Unmarshal Uses

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

type EthereumSignMessage Uses

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 Uses

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

func (*EthereumSignMessage) GetAddressN Uses

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

func (*EthereumSignMessage) GetMessage Uses

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

func (*EthereumSignMessage) ProtoMessage Uses

func (*EthereumSignMessage) ProtoMessage()

func (*EthereumSignMessage) Reset Uses

func (m *EthereumSignMessage) Reset()

func (*EthereumSignMessage) String Uses

func (m *EthereumSignMessage) String() string

func (*EthereumSignMessage) XXX_DiscardUnknown Uses

func (m *EthereumSignMessage) XXX_DiscardUnknown()

func (*EthereumSignMessage) XXX_Marshal Uses

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

func (*EthereumSignMessage) XXX_Merge Uses

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

func (*EthereumSignMessage) XXX_Size Uses

func (m *EthereumSignMessage) XXX_Size() int

func (*EthereumSignMessage) XXX_Unmarshal Uses

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

type EthereumSignTx Uses

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 Uses

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

func (*EthereumSignTx) GetAddressN Uses

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

func (*EthereumSignTx) GetChainId Uses

func (m *EthereumSignTx) GetChainId() uint32

func (*EthereumSignTx) GetDataInitialChunk Uses

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

func (*EthereumSignTx) GetDataLength Uses

func (m *EthereumSignTx) GetDataLength() uint32

func (*EthereumSignTx) GetGasLimit Uses

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

func (*EthereumSignTx) GetGasPrice Uses

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

func (*EthereumSignTx) GetNonce Uses

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

func (*EthereumSignTx) GetToBin Uses

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

func (*EthereumSignTx) GetToHex Uses

func (m *EthereumSignTx) GetToHex() string

func (*EthereumSignTx) GetTxType Uses

func (m *EthereumSignTx) GetTxType() uint32

func (*EthereumSignTx) GetValue Uses

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

func (*EthereumSignTx) ProtoMessage Uses

func (*EthereumSignTx) ProtoMessage()

func (*EthereumSignTx) Reset Uses

func (m *EthereumSignTx) Reset()

func (*EthereumSignTx) String Uses

func (m *EthereumSignTx) String() string

func (*EthereumSignTx) XXX_DiscardUnknown Uses

func (m *EthereumSignTx) XXX_DiscardUnknown()

func (*EthereumSignTx) XXX_Marshal Uses

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

func (*EthereumSignTx) XXX_Merge Uses

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

func (*EthereumSignTx) XXX_Size Uses

func (m *EthereumSignTx) XXX_Size() int

func (*EthereumSignTx) XXX_Unmarshal Uses

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

type EthereumTxAck Uses

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 Uses

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

func (*EthereumTxAck) GetDataChunk Uses

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

func (*EthereumTxAck) ProtoMessage Uses

func (*EthereumTxAck) ProtoMessage()

func (*EthereumTxAck) Reset Uses

func (m *EthereumTxAck) Reset()

func (*EthereumTxAck) String Uses

func (m *EthereumTxAck) String() string

func (*EthereumTxAck) XXX_DiscardUnknown Uses

func (m *EthereumTxAck) XXX_DiscardUnknown()

func (*EthereumTxAck) XXX_Marshal Uses

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

func (*EthereumTxAck) XXX_Merge Uses

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

func (*EthereumTxAck) XXX_Size Uses

func (m *EthereumTxAck) XXX_Size() int

func (*EthereumTxAck) XXX_Unmarshal Uses

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

type EthereumTxRequest Uses

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 Uses

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

func (*EthereumTxRequest) GetDataLength Uses

func (m *EthereumTxRequest) GetDataLength() uint32

func (*EthereumTxRequest) GetSignatureR Uses

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

func (*EthereumTxRequest) GetSignatureS Uses

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

func (*EthereumTxRequest) GetSignatureV Uses

func (m *EthereumTxRequest) GetSignatureV() uint32

func (*EthereumTxRequest) ProtoMessage Uses

func (*EthereumTxRequest) ProtoMessage()

func (*EthereumTxRequest) Reset Uses

func (m *EthereumTxRequest) Reset()

func (*EthereumTxRequest) String Uses

func (m *EthereumTxRequest) String() string

func (*EthereumTxRequest) XXX_DiscardUnknown Uses

func (m *EthereumTxRequest) XXX_DiscardUnknown()

func (*EthereumTxRequest) XXX_Marshal Uses

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

func (*EthereumTxRequest) XXX_Merge Uses

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

func (*EthereumTxRequest) XXX_Size Uses

func (m *EthereumTxRequest) XXX_Size() int

func (*EthereumTxRequest) XXX_Unmarshal Uses

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

type EthereumVerifyMessage Uses

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 Uses

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

func (*EthereumVerifyMessage) GetAddressBin Uses

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

func (*EthereumVerifyMessage) GetAddressHex Uses

func (m *EthereumVerifyMessage) GetAddressHex() string

func (*EthereumVerifyMessage) GetMessage Uses

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

func (*EthereumVerifyMessage) GetSignature Uses

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

func (*EthereumVerifyMessage) ProtoMessage Uses

func (*EthereumVerifyMessage) ProtoMessage()

func (*EthereumVerifyMessage) Reset Uses

func (m *EthereumVerifyMessage) Reset()

func (*EthereumVerifyMessage) String Uses

func (m *EthereumVerifyMessage) String() string

func (*EthereumVerifyMessage) XXX_DiscardUnknown Uses

func (m *EthereumVerifyMessage) XXX_DiscardUnknown()

func (*EthereumVerifyMessage) XXX_Marshal Uses

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

func (*EthereumVerifyMessage) XXX_Merge Uses

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

func (*EthereumVerifyMessage) XXX_Size Uses

func (m *EthereumVerifyMessage) XXX_Size() int

func (*EthereumVerifyMessage) XXX_Unmarshal Uses

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

type Failure Uses

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 Uses

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

func (*Failure) GetCode Uses

func (m *Failure) GetCode() Failure_FailureType

func (*Failure) GetMessage Uses

func (m *Failure) GetMessage() string

func (*Failure) ProtoMessage Uses

func (*Failure) ProtoMessage()

func (*Failure) Reset Uses

func (m *Failure) Reset()

func (*Failure) String Uses

func (m *Failure) String() string

func (*Failure) XXX_DiscardUnknown Uses

func (m *Failure) XXX_DiscardUnknown()

func (*Failure) XXX_Marshal Uses

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

func (*Failure) XXX_Merge Uses

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

func (*Failure) XXX_Size Uses

func (m *Failure) XXX_Size() int

func (*Failure) XXX_Unmarshal Uses

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

type Failure_FailureType Uses

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 Uses

func (x Failure_FailureType) Enum() *Failure_FailureType

func (Failure_FailureType) EnumDescriptor Uses

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

func (Failure_FailureType) String Uses

func (x Failure_FailureType) String() string

func (*Failure_FailureType) UnmarshalJSON Uses

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

type Features Uses

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 Uses

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

func (*Features) GetBootloaderHash Uses

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

func (*Features) GetBootloaderMode Uses

func (m *Features) GetBootloaderMode() bool

func (*Features) GetDeviceId Uses

func (m *Features) GetDeviceId() string

func (*Features) GetFirmwarePresent Uses

func (m *Features) GetFirmwarePresent() bool

func (*Features) GetFlags Uses

func (m *Features) GetFlags() uint32

func (*Features) GetFwMajor Uses

func (m *Features) GetFwMajor() uint32

func (*Features) GetFwMinor Uses

func (m *Features) GetFwMinor() uint32

func (*Features) GetFwPatch Uses

func (m *Features) GetFwPatch() uint32

func (*Features) GetFwVendor Uses

func (m *Features) GetFwVendor() string

func (*Features) GetFwVendorKeys Uses

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

func (*Features) GetImported Uses

func (m *Features) GetImported() bool

func (*Features) GetInitialized Uses

func (m *Features) GetInitialized() bool

func (*Features) GetLabel Uses

func (m *Features) GetLabel() string

func (*Features) GetLanguage Uses

func (m *Features) GetLanguage() string

func (*Features) GetMajorVersion Uses

func (m *Features) GetMajorVersion() uint32

func (*Features) GetMinorVersion Uses

func (m *Features) GetMinorVersion() uint32

func (*Features) GetModel Uses

func (m *Features) GetModel() string

func (*Features) GetNeedsBackup Uses

func (m *Features) GetNeedsBackup() bool

func (*Features) GetNoBackup Uses

func (m *Features) GetNoBackup() bool

func (*Features) GetPassphraseCached Uses

func (m *Features) GetPassphraseCached() bool

func (*Features) GetPassphraseProtection Uses

func (m *Features) GetPassphraseProtection() bool

func (*Features) GetPatchVersion Uses

func (m *Features) GetPatchVersion() uint32

func (*Features) GetPinCached Uses

func (m *Features) GetPinCached() bool

func (*Features) GetPinProtection Uses

func (m *Features) GetPinProtection() bool

func (*Features) GetRevision Uses

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

func (*Features) GetUnfinishedBackup Uses

func (m *Features) GetUnfinishedBackup() bool

func (*Features) GetVendor Uses

func (m *Features) GetVendor() string

func (*Features) ProtoMessage Uses

func (*Features) ProtoMessage()

func (*Features) Reset Uses

func (m *Features) Reset()

func (*Features) String Uses

func (m *Features) String() string

func (*Features) XXX_DiscardUnknown Uses

func (m *Features) XXX_DiscardUnknown()

func (*Features) XXX_Marshal Uses

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

func (*Features) XXX_Merge Uses

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

func (*Features) XXX_Size Uses

func (m *Features) XXX_Size() int

func (*Features) XXX_Unmarshal Uses

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

type GetEntropy Uses

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 Uses

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

func (*GetEntropy) GetSize Uses

func (m *GetEntropy) GetSize() uint32

func (*GetEntropy) ProtoMessage Uses

func (*GetEntropy) ProtoMessage()

func (*GetEntropy) Reset Uses

func (m *GetEntropy) Reset()

func (*GetEntropy) String Uses

func (m *GetEntropy) String() string

func (*GetEntropy) XXX_DiscardUnknown Uses

func (m *GetEntropy) XXX_DiscardUnknown()

func (*GetEntropy) XXX_Marshal Uses

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

func (*GetEntropy) XXX_Merge Uses

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

func (*GetEntropy) XXX_Size Uses

func (m *GetEntropy) XXX_Size() int

func (*GetEntropy) XXX_Unmarshal Uses

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

type GetFeatures Uses

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 Uses

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

func (*GetFeatures) ProtoMessage Uses

func (*GetFeatures) ProtoMessage()

func (*GetFeatures) Reset Uses

func (m *GetFeatures) Reset()

func (*GetFeatures) String Uses

func (m *GetFeatures) String() string

func (*GetFeatures) XXX_DiscardUnknown Uses

func (m *GetFeatures) XXX_DiscardUnknown()

func (*GetFeatures) XXX_Marshal Uses

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

func (*GetFeatures) XXX_Merge Uses

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

func (*GetFeatures) XXX_Size Uses

func (m *GetFeatures) XXX_Size() int

func (*GetFeatures) XXX_Unmarshal Uses

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

type HDNodeType Uses

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 Uses

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

func (*HDNodeType) GetChainCode Uses

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

func (*HDNodeType) GetChildNum Uses

func (m *HDNodeType) GetChildNum() uint32

func (*HDNodeType) GetDepth Uses

func (m *HDNodeType) GetDepth() uint32

func (*HDNodeType) GetFingerprint Uses

func (m *HDNodeType) GetFingerprint() uint32

func (*HDNodeType) GetPrivateKey Uses

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

func (*HDNodeType) GetPublicKey Uses

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

func (*HDNodeType) ProtoMessage Uses

func (*HDNodeType) ProtoMessage()

func (*HDNodeType) Reset Uses

func (m *HDNodeType) Reset()

func (*HDNodeType) String Uses

func (m *HDNodeType) String() string

func (*HDNodeType) XXX_DiscardUnknown Uses

func (m *HDNodeType) XXX_DiscardUnknown()

func (*HDNodeType) XXX_Marshal Uses

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

func (*HDNodeType) XXX_Merge Uses

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

func (*HDNodeType) XXX_Size Uses

func (m *HDNodeType) XXX_Size() int

func (*HDNodeType) XXX_Unmarshal Uses

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

type Initialize Uses

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 Uses

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

func (*Initialize) GetSkipPassphrase Uses

func (m *Initialize) GetSkipPassphrase() bool

func (*Initialize) GetState Uses

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

func (*Initialize) ProtoMessage Uses

func (*Initialize) ProtoMessage()

func (*Initialize) Reset Uses

func (m *Initialize) Reset()

func (*Initialize) String Uses

func (m *Initialize) String() string

func (*Initialize) XXX_DiscardUnknown Uses

func (m *Initialize) XXX_DiscardUnknown()

func (*Initialize) XXX_Marshal Uses

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

func (*Initialize) XXX_Merge Uses

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

func (*Initialize) XXX_Size Uses

func (m *Initialize) XXX_Size() int

func (*Initialize) XXX_Unmarshal Uses

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

type LoadDevice Uses

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 Uses

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

func (*LoadDevice) GetLabel Uses

func (m *LoadDevice) GetLabel() string

func (*LoadDevice) GetLanguage Uses

func (m *LoadDevice) GetLanguage() string

func (*LoadDevice) GetMnemonic Uses

func (m *LoadDevice) GetMnemonic() string

func (*LoadDevice) GetNode Uses

func (m *LoadDevice) GetNode() *HDNodeType

func (*LoadDevice) GetPassphraseProtection Uses

func (m *LoadDevice) GetPassphraseProtection() bool

func (*LoadDevice) GetPin Uses

func (m *LoadDevice) GetPin() string

func (*LoadDevice) GetSkipChecksum Uses

func (m *LoadDevice) GetSkipChecksum() bool

func (*LoadDevice) GetU2FCounter Uses

func (m *LoadDevice) GetU2FCounter() uint32

func (*LoadDevice) ProtoMessage Uses

func (*LoadDevice) ProtoMessage()

func (*LoadDevice) Reset Uses

func (m *LoadDevice) Reset()

func (*LoadDevice) String Uses

func (m *LoadDevice) String() string

func (*LoadDevice) XXX_DiscardUnknown Uses

func (m *LoadDevice) XXX_DiscardUnknown()

func (*LoadDevice) XXX_Marshal Uses

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

func (*LoadDevice) XXX_Merge Uses

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

func (*LoadDevice) XXX_Size Uses

func (m *LoadDevice) XXX_Size() int

func (*LoadDevice) XXX_Unmarshal Uses

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

type MessageType Uses

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 Uses

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor Uses

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

func (MessageType) String Uses

func (x MessageType) String() string

func (*MessageType) UnmarshalJSON Uses

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

type PassphraseAck Uses

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 Uses

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

func (*PassphraseAck) GetPassphrase Uses

func (m *PassphraseAck) GetPassphrase() string

func (*PassphraseAck) GetState Uses

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

func (*PassphraseAck) ProtoMessage Uses

func (*PassphraseAck) ProtoMessage()

func (*PassphraseAck) Reset Uses

func (m *PassphraseAck) Reset()

func (*PassphraseAck) String Uses

func (m *PassphraseAck) String() string

func (*PassphraseAck) XXX_DiscardUnknown Uses

func (m *PassphraseAck) XXX_DiscardUnknown()

func (*PassphraseAck) XXX_Marshal Uses

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

func (*PassphraseAck) XXX_Merge Uses

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

func (*PassphraseAck) XXX_Size Uses

func (m *PassphraseAck) XXX_Size() int

func (*PassphraseAck) XXX_Unmarshal Uses

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

type PassphraseRequest Uses

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 Uses

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

func (*PassphraseRequest) GetOnDevice Uses

func (m *PassphraseRequest) GetOnDevice() bool

func (*PassphraseRequest) ProtoMessage Uses

func (*PassphraseRequest) ProtoMessage()

func (*PassphraseRequest) Reset Uses

func (m *PassphraseRequest) Reset()

func (*PassphraseRequest) String Uses

func (m *PassphraseRequest) String() string

func (*PassphraseRequest) XXX_DiscardUnknown Uses

func (m *PassphraseRequest) XXX_DiscardUnknown()

func (*PassphraseRequest) XXX_Marshal Uses

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

func (*PassphraseRequest) XXX_Merge Uses

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

func (*PassphraseRequest) XXX_Size Uses

func (m *PassphraseRequest) XXX_Size() int

func (*PassphraseRequest) XXX_Unmarshal Uses

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

type PassphraseStateAck Uses

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

* Request: Send passphrase state back @auxend

func (*PassphraseStateAck) Descriptor Uses

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

func (*PassphraseStateAck) ProtoMessage Uses

func (*PassphraseStateAck) ProtoMessage()

func (*PassphraseStateAck) Reset Uses

func (m *PassphraseStateAck) Reset()

func (*PassphraseStateAck) String Uses

func (m *PassphraseStateAck) String() string

func (*PassphraseStateAck) XXX_DiscardUnknown Uses

func (m *PassphraseStateAck) XXX_DiscardUnknown()

func (*PassphraseStateAck) XXX_Marshal Uses

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

func (*PassphraseStateAck) XXX_Merge Uses

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

func (*PassphraseStateAck) XXX_Size Uses

func (m *PassphraseStateAck) XXX_Size() int

func (*PassphraseStateAck) XXX_Unmarshal Uses

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

type PassphraseStateRequest Uses

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 Uses

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

func (*PassphraseStateRequest) GetState Uses

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

func (*PassphraseStateRequest) ProtoMessage Uses

func (*PassphraseStateRequest) ProtoMessage()

func (*PassphraseStateRequest) Reset Uses

func (m *PassphraseStateRequest) Reset()

func (*PassphraseStateRequest) String Uses

func (m *PassphraseStateRequest) String() string

func (*PassphraseStateRequest) XXX_DiscardUnknown Uses

func (m *PassphraseStateRequest) XXX_DiscardUnknown()

func (*PassphraseStateRequest) XXX_Marshal Uses

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

func (*PassphraseStateRequest) XXX_Merge Uses

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

func (*PassphraseStateRequest) XXX_Size Uses

func (m *PassphraseStateRequest) XXX_Size() int

func (*PassphraseStateRequest) XXX_Unmarshal Uses

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

type PinMatrixAck Uses

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 Uses

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

func (*PinMatrixAck) GetPin Uses

func (m *PinMatrixAck) GetPin() string

func (*PinMatrixAck) ProtoMessage Uses

func (*PinMatrixAck) ProtoMessage()

func (*PinMatrixAck) Reset Uses

func (m *PinMatrixAck) Reset()

func (*PinMatrixAck) String Uses

func (m *PinMatrixAck) String() string

func (*PinMatrixAck) XXX_DiscardUnknown Uses

func (m *PinMatrixAck) XXX_DiscardUnknown()

func (*PinMatrixAck) XXX_Marshal Uses

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

func (*PinMatrixAck) XXX_Merge Uses

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

func (*PinMatrixAck) XXX_Size Uses

func (m *PinMatrixAck) XXX_Size() int

func (*PinMatrixAck) XXX_Unmarshal Uses

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

type PinMatrixRequest Uses

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 Uses

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

func (*PinMatrixRequest) GetType Uses

func (m *PinMatrixRequest) GetType() PinMatrixRequest_PinMatrixRequestType

func (*PinMatrixRequest) ProtoMessage Uses

func (*PinMatrixRequest) ProtoMessage()

func (*PinMatrixRequest) Reset Uses

func (m *PinMatrixRequest) Reset()

func (*PinMatrixRequest) String Uses

func (m *PinMatrixRequest) String() string

func (*PinMatrixRequest) XXX_DiscardUnknown Uses

func (m *PinMatrixRequest) XXX_DiscardUnknown()

func (*PinMatrixRequest) XXX_Marshal Uses

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

func (*PinMatrixRequest) XXX_Merge Uses

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

func (*PinMatrixRequest) XXX_Size Uses

func (m *PinMatrixRequest) XXX_Size() int

func (*PinMatrixRequest) XXX_Unmarshal Uses

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

type PinMatrixRequest_PinMatrixRequestType Uses

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 Uses

func (x PinMatrixRequest_PinMatrixRequestType) Enum() *PinMatrixRequest_PinMatrixRequestType

func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor Uses

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

func (PinMatrixRequest_PinMatrixRequestType) String Uses

func (x PinMatrixRequest_PinMatrixRequestType) String() string

func (*PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON Uses

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

type Ping Uses

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 Uses

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

func (*Ping) GetButtonProtection Uses

func (m *Ping) GetButtonProtection() bool

func (*Ping) GetMessage Uses

func (m *Ping) GetMessage() string

func (*Ping) GetPassphraseProtection Uses

func (m *Ping) GetPassphraseProtection() bool

func (*Ping) GetPinProtection Uses

func (m *Ping) GetPinProtection() bool

func (*Ping) ProtoMessage Uses

func (*Ping) ProtoMessage()

func (*Ping) Reset Uses

func (m *Ping) Reset()

func (*Ping) String Uses

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown Uses

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal Uses

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

func (*Ping) XXX_Merge Uses

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

func (*Ping) XXX_Size Uses

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal Uses

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

type RecoveryDevice Uses

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 Uses

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

func (*RecoveryDevice) GetDryRun Uses

func (m *RecoveryDevice) GetDryRun() bool

func (*RecoveryDevice) GetEnforceWordlist Uses

func (m *RecoveryDevice) GetEnforceWordlist() bool

func (*RecoveryDevice) GetLabel Uses

func (m *RecoveryDevice) GetLabel() string

func (*RecoveryDevice) GetLanguage Uses

func (m *RecoveryDevice) GetLanguage() string

func (*RecoveryDevice) GetPassphraseProtection Uses

func (m *RecoveryDevice) GetPassphraseProtection() bool

func (*RecoveryDevice) GetPinProtection Uses

func (m *RecoveryDevice) GetPinProtection() bool

func (*RecoveryDevice) GetType Uses

func (m *RecoveryDevice) GetType() RecoveryDevice_RecoveryDeviceType

func (*RecoveryDevice) GetU2FCounter Uses

func (m *RecoveryDevice) GetU2FCounter() uint32

func (*RecoveryDevice) GetWordCount Uses

func (m *RecoveryDevice) GetWordCount() uint32

func (*RecoveryDevice) ProtoMessage Uses

func (*RecoveryDevice) ProtoMessage()

func (*RecoveryDevice) Reset Uses

func (m *RecoveryDevice) Reset()

func (*RecoveryDevice) String Uses

func (m *RecoveryDevice) String() string

func (*RecoveryDevice) XXX_DiscardUnknown Uses

func (m *RecoveryDevice) XXX_DiscardUnknown()

func (*RecoveryDevice) XXX_Marshal Uses

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

func (*RecoveryDevice) XXX_Merge Uses

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

func (*RecoveryDevice) XXX_Size Uses

func (m *RecoveryDevice) XXX_Size() int

func (*RecoveryDevice) XXX_Unmarshal Uses

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

type RecoveryDevice_RecoveryDeviceType Uses

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 Uses

func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType

func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor Uses

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

func (RecoveryDevice_RecoveryDeviceType) String Uses

func (x RecoveryDevice_RecoveryDeviceType) String() string

func (*RecoveryDevice_RecoveryDeviceType) UnmarshalJSON Uses

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

type ResetDevice Uses

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 Uses

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

func (*ResetDevice) GetDisplayRandom Uses

func (m *ResetDevice) GetDisplayRandom() bool

func (*ResetDevice) GetLabel Uses

func (m *ResetDevice) GetLabel() string

func (*ResetDevice) GetLanguage Uses

func (m *ResetDevice) GetLanguage() string

func (*ResetDevice) GetNoBackup Uses

func (m *ResetDevice) GetNoBackup() bool

func (*ResetDevice) GetPassphraseProtection Uses

func (m *ResetDevice) GetPassphraseProtection() bool

func (*ResetDevice) GetPinProtection Uses

func (m *ResetDevice) GetPinProtection() bool

func (*ResetDevice) GetSkipBackup Uses

func (m *ResetDevice) GetSkipBackup() bool

func (*ResetDevice) GetStrength Uses

func (m *ResetDevice) GetStrength() uint32

func (*ResetDevice) GetU2FCounter Uses

func (m *ResetDevice) GetU2FCounter() uint32

func (*ResetDevice) ProtoMessage Uses

func (*ResetDevice) ProtoMessage()

func (*ResetDevice) Reset Uses

func (m *ResetDevice) Reset()

func (*ResetDevice) String Uses

func (m *ResetDevice) String() string

func (*ResetDevice) XXX_DiscardUnknown Uses

func (m *ResetDevice) XXX_DiscardUnknown()

func (*ResetDevice) XXX_Marshal Uses

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

func (*ResetDevice) XXX_Merge Uses

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

func (*ResetDevice) XXX_Size Uses

func (m *ResetDevice) XXX_Size() int

func (*ResetDevice) XXX_Unmarshal Uses

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

type SetU2FCounter Uses

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 Uses

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

func (*SetU2FCounter) GetU2FCounter Uses

func (m *SetU2FCounter) GetU2FCounter() uint32

func (*SetU2FCounter) ProtoMessage Uses

func (*SetU2FCounter) ProtoMessage()

func (*SetU2FCounter) Reset Uses

func (m *SetU2FCounter) Reset()

func (*SetU2FCounter) String Uses

func (m *SetU2FCounter) String() string

func (*SetU2FCounter) XXX_DiscardUnknown Uses

func (m *SetU2FCounter) XXX_DiscardUnknown()

func (*SetU2FCounter) XXX_Marshal Uses

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

func (*SetU2FCounter) XXX_Merge Uses

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

func (*SetU2FCounter) XXX_Size Uses

func (m *SetU2FCounter) XXX_Size() int

func (*SetU2FCounter) XXX_Unmarshal Uses

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

type Success Uses

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 Uses

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

func (*Success) GetMessage Uses

func (m *Success) GetMessage() string

func (*Success) ProtoMessage Uses

func (*Success) ProtoMessage()

func (*Success) Reset Uses

func (m *Success) Reset()

func (*Success) String Uses

func (m *Success) String() string

func (*Success) XXX_DiscardUnknown Uses

func (m *Success) XXX_DiscardUnknown()

func (*Success) XXX_Marshal Uses

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

func (*Success) XXX_Merge Uses

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

func (*Success) XXX_Size Uses

func (m *Success) XXX_Size() int

func (*Success) XXX_Unmarshal Uses

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

type WipeDevice Uses

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 Uses

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

func (*WipeDevice) ProtoMessage Uses

func (*WipeDevice) ProtoMessage()

func (*WipeDevice) Reset Uses

func (m *WipeDevice) Reset()

func (*WipeDevice) String Uses

func (m *WipeDevice) String() string

func (*WipeDevice) XXX_DiscardUnknown Uses

func (m *WipeDevice) XXX_DiscardUnknown()

func (*WipeDevice) XXX_Marshal Uses

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

func (*WipeDevice) XXX_Merge Uses

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

func (*WipeDevice) XXX_Size Uses

func (m *WipeDevice) XXX_Size() int

func (*WipeDevice) XXX_Unmarshal Uses

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

type WordAck Uses

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 Uses

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

func (*WordAck) GetWord Uses

func (m *WordAck) GetWord() string

func (*WordAck) ProtoMessage Uses

func (*WordAck) ProtoMessage()

func (*WordAck) Reset Uses

func (m *WordAck) Reset()

func (*WordAck) String Uses

func (m *WordAck) String() string

func (*WordAck) XXX_DiscardUnknown Uses

func (m *WordAck) XXX_DiscardUnknown()

func (*WordAck) XXX_Marshal Uses

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

func (*WordAck) XXX_Merge Uses

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

func (*WordAck) XXX_Size Uses

func (m *WordAck) XXX_Size() int

func (*WordAck) XXX_Unmarshal Uses

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

type WordRequest Uses

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 Uses

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

func (*WordRequest) GetType Uses

func (m *WordRequest) GetType() WordRequest_WordRequestType

func (*WordRequest) ProtoMessage Uses

func (*WordRequest) ProtoMessage()

func (*WordRequest) Reset Uses

func (m *WordRequest) Reset()

func (*WordRequest) String Uses

func (m *WordRequest) String() string

func (*WordRequest) XXX_DiscardUnknown Uses

func (m *WordRequest) XXX_DiscardUnknown()

func (*WordRequest) XXX_Marshal Uses

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

func (*WordRequest) XXX_Merge Uses

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

func (*WordRequest) XXX_Size Uses

func (m *WordRequest) XXX_Size() int

func (*WordRequest) XXX_Unmarshal Uses

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

type WordRequest_WordRequestType Uses

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 Uses

func (x WordRequest_WordRequestType) Enum() *WordRequest_WordRequestType

func (WordRequest_WordRequestType) EnumDescriptor Uses

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

func (WordRequest_WordRequestType) String Uses

func (x WordRequest_WordRequestType) String() string

func (*WordRequest_WordRequestType) UnmarshalJSON Uses

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

Package trezor imports 5 packages (graph). Updated 2019-07-06. Refresh now. Tools for package owners.