Documentation ¶
Overview ¶
Package trezor contains the wire protocol.
Index ¶
- Constants
- Variables
- func Name(kind uint16) string
- func Type(msg proto.Message) uint16
- type ApplyFlags
- type ApplySettings
- func (*ApplySettings) Descriptor() ([]byte, []int)deprecated
- func (x *ApplySettings) GetAutoLockDelayMs() uint32
- func (x *ApplySettings) GetDisplayRotation() uint32
- func (x *ApplySettings) GetHomescreen() []byte
- func (x *ApplySettings) GetLabel() string
- func (x *ApplySettings) GetLanguage() string
- func (x *ApplySettings) GetPassphraseSource() ApplySettings_PassphraseSourceType
- func (x *ApplySettings) GetUsePassphrase() bool
- func (*ApplySettings) ProtoMessage()
- func (x *ApplySettings) ProtoReflect() protoreflect.Message
- func (x *ApplySettings) Reset()
- func (x *ApplySettings) String() string
- type ApplySettings_PassphraseSourceType
- func (ApplySettings_PassphraseSourceType) Descriptor() protoreflect.EnumDescriptor
- func (x ApplySettings_PassphraseSourceType) Enum() *ApplySettings_PassphraseSourceType
- func (ApplySettings_PassphraseSourceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ApplySettings_PassphraseSourceType) Number() protoreflect.EnumNumber
- func (x ApplySettings_PassphraseSourceType) String() string
- func (ApplySettings_PassphraseSourceType) Type() protoreflect.EnumType
- func (x *ApplySettings_PassphraseSourceType) UnmarshalJSON(b []byte) errordeprecated
- type BackupDevice
- type ButtonAck
- type ButtonRequest
- func (*ButtonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ButtonRequest) GetCode() ButtonRequest_ButtonRequestType
- func (x *ButtonRequest) GetData() string
- func (*ButtonRequest) ProtoMessage()
- func (x *ButtonRequest) ProtoReflect() protoreflect.Message
- func (x *ButtonRequest) Reset()
- func (x *ButtonRequest) String() string
- type ButtonRequest_ButtonRequestType
- func (ButtonRequest_ButtonRequestType) Descriptor() protoreflect.EnumDescriptor
- func (x ButtonRequest_ButtonRequestType) Enum() *ButtonRequest_ButtonRequestType
- func (ButtonRequest_ButtonRequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ButtonRequest_ButtonRequestType) Number() protoreflect.EnumNumber
- func (x ButtonRequest_ButtonRequestType) String() string
- func (ButtonRequest_ButtonRequestType) Type() protoreflect.EnumType
- func (x *ButtonRequest_ButtonRequestType) UnmarshalJSON(b []byte) errordeprecated
- type Cancel
- type ChangePin
- type ClearSession
- type Entropy
- type EntropyAck
- type EntropyRequest
- type EthereumAddress
- func (*EthereumAddress) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumAddress) GetAddressBin() []byte
- func (x *EthereumAddress) GetAddressHex() string
- func (*EthereumAddress) ProtoMessage()
- func (x *EthereumAddress) ProtoReflect() protoreflect.Message
- func (x *EthereumAddress) Reset()
- func (x *EthereumAddress) String() string
- type EthereumGetAddress
- func (*EthereumGetAddress) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumGetAddress) GetAddressN() []uint32
- func (x *EthereumGetAddress) GetShowDisplay() bool
- func (*EthereumGetAddress) ProtoMessage()
- func (x *EthereumGetAddress) ProtoReflect() protoreflect.Message
- func (x *EthereumGetAddress) Reset()
- func (x *EthereumGetAddress) String() string
- type EthereumGetPublicKey
- func (*EthereumGetPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumGetPublicKey) GetAddressN() []uint32
- func (x *EthereumGetPublicKey) GetShowDisplay() bool
- func (*EthereumGetPublicKey) ProtoMessage()
- func (x *EthereumGetPublicKey) ProtoReflect() protoreflect.Message
- func (x *EthereumGetPublicKey) Reset()
- func (x *EthereumGetPublicKey) String() string
- type EthereumMessageSignature
- func (*EthereumMessageSignature) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumMessageSignature) GetAddressBin() []byte
- func (x *EthereumMessageSignature) GetAddressHex() string
- func (x *EthereumMessageSignature) GetSignature() []byte
- func (*EthereumMessageSignature) ProtoMessage()
- func (x *EthereumMessageSignature) ProtoReflect() protoreflect.Message
- func (x *EthereumMessageSignature) Reset()
- func (x *EthereumMessageSignature) String() string
- type EthereumPublicKey
- func (*EthereumPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumPublicKey) GetNode() *HDNodeType
- func (x *EthereumPublicKey) GetXpub() string
- func (*EthereumPublicKey) ProtoMessage()
- func (x *EthereumPublicKey) ProtoReflect() protoreflect.Message
- func (x *EthereumPublicKey) Reset()
- func (x *EthereumPublicKey) String() string
- type EthereumSignMessage
- func (*EthereumSignMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignMessage) GetAddressN() []uint32
- func (x *EthereumSignMessage) GetMessage() []byte
- func (*EthereumSignMessage) ProtoMessage()
- func (x *EthereumSignMessage) ProtoReflect() protoreflect.Message
- func (x *EthereumSignMessage) Reset()
- func (x *EthereumSignMessage) String() string
- type EthereumSignTx
- func (*EthereumSignTx) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTx) GetAddressN() []uint32
- func (x *EthereumSignTx) GetChainId() uint32
- func (x *EthereumSignTx) GetDataInitialChunk() []byte
- func (x *EthereumSignTx) GetDataLength() uint32
- func (x *EthereumSignTx) GetGasLimit() []byte
- func (x *EthereumSignTx) GetGasPrice() []byte
- func (x *EthereumSignTx) GetNonce() []byte
- func (x *EthereumSignTx) GetToBin() []byte
- func (x *EthereumSignTx) GetToHex() string
- func (x *EthereumSignTx) GetTxType() uint32
- func (x *EthereumSignTx) GetValue() []byte
- func (*EthereumSignTx) ProtoMessage()
- func (x *EthereumSignTx) ProtoReflect() protoreflect.Message
- func (x *EthereumSignTx) Reset()
- func (x *EthereumSignTx) String() string
- type EthereumTxAck
- type EthereumTxRequest
- func (*EthereumTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTxRequest) GetDataLength() uint32
- func (x *EthereumTxRequest) GetSignatureR() []byte
- func (x *EthereumTxRequest) GetSignatureS() []byte
- func (x *EthereumTxRequest) GetSignatureV() uint32
- func (*EthereumTxRequest) ProtoMessage()
- func (x *EthereumTxRequest) ProtoReflect() protoreflect.Message
- func (x *EthereumTxRequest) Reset()
- func (x *EthereumTxRequest) String() string
- type EthereumVerifyMessage
- func (*EthereumVerifyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumVerifyMessage) GetAddressBin() []byte
- func (x *EthereumVerifyMessage) GetAddressHex() string
- func (x *EthereumVerifyMessage) GetMessage() []byte
- func (x *EthereumVerifyMessage) GetSignature() []byte
- func (*EthereumVerifyMessage) ProtoMessage()
- func (x *EthereumVerifyMessage) ProtoReflect() protoreflect.Message
- func (x *EthereumVerifyMessage) Reset()
- func (x *EthereumVerifyMessage) String() string
- type Failure
- type Failure_FailureType
- func (Failure_FailureType) Descriptor() protoreflect.EnumDescriptor
- func (x Failure_FailureType) Enum() *Failure_FailureType
- func (Failure_FailureType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Failure_FailureType) Number() protoreflect.EnumNumber
- func (x Failure_FailureType) String() string
- func (Failure_FailureType) Type() protoreflect.EnumType
- func (x *Failure_FailureType) UnmarshalJSON(b []byte) errordeprecated
- type Features
- func (*Features) Descriptor() ([]byte, []int)deprecated
- func (x *Features) GetBootloaderHash() []byte
- func (x *Features) GetBootloaderMode() bool
- func (x *Features) GetDeviceId() string
- func (x *Features) GetFirmwarePresent() bool
- func (x *Features) GetFlags() uint32
- func (x *Features) GetFwMajor() uint32
- func (x *Features) GetFwMinor() uint32
- func (x *Features) GetFwPatch() uint32
- func (x *Features) GetFwVendor() string
- func (x *Features) GetFwVendorKeys() []byte
- func (x *Features) GetImported() bool
- func (x *Features) GetInitialized() bool
- func (x *Features) GetLabel() string
- func (x *Features) GetLanguage() string
- func (x *Features) GetMajorVersion() uint32
- func (x *Features) GetMinorVersion() uint32
- func (x *Features) GetModel() string
- func (x *Features) GetNeedsBackup() bool
- func (x *Features) GetNoBackup() bool
- func (x *Features) GetPassphraseCached() bool
- func (x *Features) GetPassphraseProtection() bool
- func (x *Features) GetPatchVersion() uint32
- func (x *Features) GetPinCached() bool
- func (x *Features) GetPinProtection() bool
- func (x *Features) GetRevision() []byte
- func (x *Features) GetUnfinishedBackup() bool
- func (x *Features) GetVendor() string
- func (*Features) ProtoMessage()
- func (x *Features) ProtoReflect() protoreflect.Message
- func (x *Features) Reset()
- func (x *Features) String() string
- type GetEntropy
- type GetFeatures
- type HDNodeType
- func (*HDNodeType) Descriptor() ([]byte, []int)deprecated
- func (x *HDNodeType) GetChainCode() []byte
- func (x *HDNodeType) GetChildNum() uint32
- func (x *HDNodeType) GetDepth() uint32
- func (x *HDNodeType) GetFingerprint() uint32
- func (x *HDNodeType) GetPrivateKey() []byte
- func (x *HDNodeType) GetPublicKey() []byte
- func (*HDNodeType) ProtoMessage()
- func (x *HDNodeType) ProtoReflect() protoreflect.Message
- func (x *HDNodeType) Reset()
- func (x *HDNodeType) String() string
- type Initialize
- type LoadDevice
- func (*LoadDevice) Descriptor() ([]byte, []int)deprecated
- func (x *LoadDevice) GetLabel() string
- func (x *LoadDevice) GetLanguage() string
- func (x *LoadDevice) GetMnemonic() string
- func (x *LoadDevice) GetNode() *HDNodeType
- func (x *LoadDevice) GetPassphraseProtection() bool
- func (x *LoadDevice) GetPin() string
- func (x *LoadDevice) GetSkipChecksum() bool
- func (x *LoadDevice) GetU2FCounter() uint32
- func (*LoadDevice) ProtoMessage()
- func (x *LoadDevice) ProtoReflect() protoreflect.Message
- func (x *LoadDevice) Reset()
- func (x *LoadDevice) String() string
- type MessageType
- func (MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x MessageType) Enum() *MessageType
- func (MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageType) Number() protoreflect.EnumNumber
- func (x MessageType) String() string
- func (MessageType) Type() protoreflect.EnumType
- func (x *MessageType) UnmarshalJSON(b []byte) errordeprecated
- type PassphraseAck
- func (*PassphraseAck) Descriptor() ([]byte, []int)deprecated
- func (x *PassphraseAck) GetPassphrase() string
- func (x *PassphraseAck) GetState() []byte
- func (*PassphraseAck) ProtoMessage()
- func (x *PassphraseAck) ProtoReflect() protoreflect.Message
- func (x *PassphraseAck) Reset()
- func (x *PassphraseAck) String() string
- type PassphraseRequest
- type PassphraseStateAck
- type PassphraseStateRequest
- func (*PassphraseStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PassphraseStateRequest) GetState() []byte
- func (*PassphraseStateRequest) ProtoMessage()
- func (x *PassphraseStateRequest) ProtoReflect() protoreflect.Message
- func (x *PassphraseStateRequest) Reset()
- func (x *PassphraseStateRequest) String() string
- type PinMatrixAck
- type PinMatrixRequest
- func (*PinMatrixRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PinMatrixRequest) GetType() PinMatrixRequest_PinMatrixRequestType
- func (*PinMatrixRequest) ProtoMessage()
- func (x *PinMatrixRequest) ProtoReflect() protoreflect.Message
- func (x *PinMatrixRequest) Reset()
- func (x *PinMatrixRequest) String() string
- type PinMatrixRequest_PinMatrixRequestType
- func (PinMatrixRequest_PinMatrixRequestType) Descriptor() protoreflect.EnumDescriptor
- func (x PinMatrixRequest_PinMatrixRequestType) Enum() *PinMatrixRequest_PinMatrixRequestType
- func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PinMatrixRequest_PinMatrixRequestType) Number() protoreflect.EnumNumber
- func (x PinMatrixRequest_PinMatrixRequestType) String() string
- func (PinMatrixRequest_PinMatrixRequestType) Type() protoreflect.EnumType
- func (x *PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON(b []byte) errordeprecated
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)deprecated
- func (x *Ping) GetButtonProtection() bool
- func (x *Ping) GetMessage() string
- func (x *Ping) GetPassphraseProtection() bool
- func (x *Ping) GetPinProtection() bool
- func (*Ping) ProtoMessage()
- func (x *Ping) ProtoReflect() protoreflect.Message
- func (x *Ping) Reset()
- func (x *Ping) String() string
- type RecoveryDevice
- func (*RecoveryDevice) Descriptor() ([]byte, []int)deprecated
- func (x *RecoveryDevice) GetDryRun() bool
- func (x *RecoveryDevice) GetEnforceWordlist() bool
- func (x *RecoveryDevice) GetLabel() string
- func (x *RecoveryDevice) GetLanguage() string
- func (x *RecoveryDevice) GetPassphraseProtection() bool
- func (x *RecoveryDevice) GetPinProtection() bool
- func (x *RecoveryDevice) GetType() RecoveryDevice_RecoveryDeviceType
- func (x *RecoveryDevice) GetU2FCounter() uint32
- func (x *RecoveryDevice) GetWordCount() uint32
- func (*RecoveryDevice) ProtoMessage()
- func (x *RecoveryDevice) ProtoReflect() protoreflect.Message
- func (x *RecoveryDevice) Reset()
- func (x *RecoveryDevice) String() string
- type RecoveryDevice_RecoveryDeviceType
- func (RecoveryDevice_RecoveryDeviceType) Descriptor() protoreflect.EnumDescriptor
- func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType
- func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecoveryDevice_RecoveryDeviceType) Number() protoreflect.EnumNumber
- func (x RecoveryDevice_RecoveryDeviceType) String() string
- func (RecoveryDevice_RecoveryDeviceType) Type() protoreflect.EnumType
- func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(b []byte) errordeprecated
- type ResetDevice
- func (*ResetDevice) Descriptor() ([]byte, []int)deprecated
- func (x *ResetDevice) GetDisplayRandom() bool
- func (x *ResetDevice) GetLabel() string
- func (x *ResetDevice) GetLanguage() string
- func (x *ResetDevice) GetNoBackup() bool
- func (x *ResetDevice) GetPassphraseProtection() bool
- func (x *ResetDevice) GetPinProtection() bool
- func (x *ResetDevice) GetSkipBackup() bool
- func (x *ResetDevice) GetStrength() uint32
- func (x *ResetDevice) GetU2FCounter() uint32
- func (*ResetDevice) ProtoMessage()
- func (x *ResetDevice) ProtoReflect() protoreflect.Message
- func (x *ResetDevice) Reset()
- func (x *ResetDevice) String() string
- type SetU2FCounter
- type Success
- type WipeDevice
- type WordAck
- type WordRequest
- type WordRequest_WordRequestType
- func (WordRequest_WordRequestType) Descriptor() protoreflect.EnumDescriptor
- func (x WordRequest_WordRequestType) Enum() *WordRequest_WordRequestType
- func (WordRequest_WordRequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x WordRequest_WordRequestType) Number() protoreflect.EnumNumber
- func (x WordRequest_WordRequestType) String() string
- func (WordRequest_WordRequestType) Type() protoreflect.EnumType
- func (x *WordRequest_WordRequestType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_ResetDevice_Strength = uint32(256) Default_ResetDevice_Language = string("english") )
Default values for ResetDevice fields.
const (
Default_LoadDevice_Language = string("english")
)
Default values for LoadDevice fields.
const (
Default_RecoveryDevice_Language = string("english")
)
Default values for RecoveryDevice fields.
Variables ¶
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", } 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, } )
Enum value maps for Failure_FailureType.
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", } 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, } )
Enum value maps for ButtonRequest_ButtonRequestType.
var ( PinMatrixRequest_PinMatrixRequestType_name = map[int32]string{ 1: "PinMatrixRequestType_Current", 2: "PinMatrixRequestType_NewFirst", 3: "PinMatrixRequestType_NewSecond", } PinMatrixRequest_PinMatrixRequestType_value = map[string]int32{ "PinMatrixRequestType_Current": 1, "PinMatrixRequestType_NewFirst": 2, "PinMatrixRequestType_NewSecond": 3, } )
Enum value maps for PinMatrixRequest_PinMatrixRequestType.
var ( ApplySettings_PassphraseSourceType_name = map[int32]string{ 0: "ASK", 1: "DEVICE", 2: "HOST", } ApplySettings_PassphraseSourceType_value = map[string]int32{ "ASK": 0, "DEVICE": 1, "HOST": 2, } )
Enum value maps for ApplySettings_PassphraseSourceType.
var ( RecoveryDevice_RecoveryDeviceType_name = map[int32]string{ 0: "RecoveryDeviceType_ScrambledWords", 1: "RecoveryDeviceType_Matrix", } RecoveryDevice_RecoveryDeviceType_value = map[string]int32{ "RecoveryDeviceType_ScrambledWords": 0, "RecoveryDeviceType_Matrix": 1, } )
Enum value maps for RecoveryDevice_RecoveryDeviceType.
var ( WordRequest_WordRequestType_name = map[int32]string{ 0: "WordRequestType_Plain", 1: "WordRequestType_Matrix9", 2: "WordRequestType_Matrix6", } WordRequest_WordRequestType_value = map[string]int32{ "WordRequestType_Plain": 0, "WordRequestType_Matrix9": 1, "WordRequestType_Matrix6": 2, } )
Enum value maps for WordRequest_WordRequestType.
var ( MessageType_name = map[int32]string{}/* 193 elements not displayed */ MessageType_value = map[string]int32{}/* 193 elements not displayed */ )
Enum value maps for MessageType.
var ( // optional bool wire_in = 50002; E_WireIn = &file_messages_proto_extTypes[0] // message can be transmitted via wire from PC to TREZOR // optional bool wire_out = 50003; E_WireOut = &file_messages_proto_extTypes[1] // message can be transmitted via wire from TREZOR to PC // optional bool wire_debug_in = 50004; E_WireDebugIn = &file_messages_proto_extTypes[2] // message can be transmitted via debug wire from PC to TREZOR // optional bool wire_debug_out = 50005; E_WireDebugOut = &file_messages_proto_extTypes[3] // message can be transmitted via debug wire from TREZOR to PC // optional bool wire_tiny = 50006; E_WireTiny = &file_messages_proto_extTypes[4] // message is handled by TREZOR when the USB stack is in tiny mode // optional bool wire_bootloader = 50007; E_WireBootloader = &file_messages_proto_extTypes[5] // message is only handled by TREZOR Bootloader // optional bool wire_no_fsm = 50008; E_WireNoFsm = &file_messages_proto_extTypes[6] // message is not handled by TREZOR unless the USB stack is in tiny mode )
Extension fields to descriptorpb.EnumValueOptions.
var File_messages_common_proto protoreflect.FileDescriptor
var File_messages_ethereum_proto protoreflect.FileDescriptor
var File_messages_management_proto protoreflect.FileDescriptor
var File_messages_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type ApplyFlags ¶
type ApplyFlags struct { Flags *uint32 `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"` // bitmask, can only set bits, not unset // contains filtered or unexported fields }
* Request: set flags of the device @start @next Success @next Failure
func (*ApplyFlags) Descriptor
deprecated
func (*ApplyFlags) Descriptor() ([]byte, []int)
Deprecated: Use ApplyFlags.ProtoReflect.Descriptor instead.
func (*ApplyFlags) GetFlags ¶
func (x *ApplyFlags) GetFlags() uint32
func (*ApplyFlags) ProtoMessage ¶
func (*ApplyFlags) ProtoMessage()
func (*ApplyFlags) ProtoReflect ¶ added in v1.14.6
func (x *ApplyFlags) ProtoReflect() protoreflect.Message
func (*ApplyFlags) Reset ¶
func (x *ApplyFlags) Reset()
func (*ApplyFlags) String ¶
func (x *ApplyFlags) String() string
type ApplySettings ¶
type ApplySettings struct { Language *string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"` Label *string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"` UsePassphrase *bool `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase" json:"use_passphrase,omitempty"` Homescreen []byte `protobuf:"bytes,4,opt,name=homescreen" json:"homescreen,omitempty"` PassphraseSource *ApplySettings_PassphraseSourceType `` /* 173-byte string literal not displayed */ AutoLockDelayMs *uint32 `protobuf:"varint,6,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"` DisplayRotation *uint32 `protobuf:"varint,7,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"` // in degrees from North // contains filtered or unexported fields }
* Request: change language and/or label of the device @start @next Success @next Failure
func (*ApplySettings) Descriptor
deprecated
func (*ApplySettings) Descriptor() ([]byte, []int)
Deprecated: Use ApplySettings.ProtoReflect.Descriptor instead.
func (*ApplySettings) GetAutoLockDelayMs ¶
func (x *ApplySettings) GetAutoLockDelayMs() uint32
func (*ApplySettings) GetDisplayRotation ¶
func (x *ApplySettings) GetDisplayRotation() uint32
func (*ApplySettings) GetHomescreen ¶
func (x *ApplySettings) GetHomescreen() []byte
func (*ApplySettings) GetLabel ¶
func (x *ApplySettings) GetLabel() string
func (*ApplySettings) GetLanguage ¶
func (x *ApplySettings) GetLanguage() string
func (*ApplySettings) GetPassphraseSource ¶
func (x *ApplySettings) GetPassphraseSource() ApplySettings_PassphraseSourceType
func (*ApplySettings) GetUsePassphrase ¶
func (x *ApplySettings) GetUsePassphrase() bool
func (*ApplySettings) ProtoMessage ¶
func (*ApplySettings) ProtoMessage()
func (*ApplySettings) ProtoReflect ¶ added in v1.14.6
func (x *ApplySettings) ProtoReflect() protoreflect.Message
func (*ApplySettings) Reset ¶
func (x *ApplySettings) Reset()
func (*ApplySettings) String ¶
func (x *ApplySettings) String() string
type ApplySettings_PassphraseSourceType ¶
type ApplySettings_PassphraseSourceType int32
* Structure representing passphrase source
const ( ApplySettings_ASK ApplySettings_PassphraseSourceType = 0 ApplySettings_DEVICE ApplySettings_PassphraseSourceType = 1 ApplySettings_HOST ApplySettings_PassphraseSourceType = 2 )
func (ApplySettings_PassphraseSourceType) Descriptor ¶ added in v1.14.6
func (ApplySettings_PassphraseSourceType) Descriptor() protoreflect.EnumDescriptor
func (ApplySettings_PassphraseSourceType) Enum ¶
func (x ApplySettings_PassphraseSourceType) Enum() *ApplySettings_PassphraseSourceType
func (ApplySettings_PassphraseSourceType) EnumDescriptor
deprecated
func (ApplySettings_PassphraseSourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApplySettings_PassphraseSourceType.Descriptor instead.
func (ApplySettings_PassphraseSourceType) Number ¶ added in v1.14.6
func (x ApplySettings_PassphraseSourceType) Number() protoreflect.EnumNumber
func (ApplySettings_PassphraseSourceType) String ¶
func (x ApplySettings_PassphraseSourceType) String() string
func (ApplySettings_PassphraseSourceType) Type ¶ added in v1.14.6
func (ApplySettings_PassphraseSourceType) Type() protoreflect.EnumType
func (*ApplySettings_PassphraseSourceType) UnmarshalJSON
deprecated
func (x *ApplySettings_PassphraseSourceType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type BackupDevice ¶
type BackupDevice struct {
// contains filtered or unexported fields
}
* Request: Perform backup of the device seed if not backed up using ResetDevice @start @next Success
func (*BackupDevice) Descriptor
deprecated
func (*BackupDevice) Descriptor() ([]byte, []int)
Deprecated: Use BackupDevice.ProtoReflect.Descriptor instead.
func (*BackupDevice) ProtoMessage ¶
func (*BackupDevice) ProtoMessage()
func (*BackupDevice) ProtoReflect ¶ added in v1.14.6
func (x *BackupDevice) ProtoReflect() protoreflect.Message
func (*BackupDevice) Reset ¶
func (x *BackupDevice) Reset()
func (*BackupDevice) String ¶
func (x *BackupDevice) String() string
type ButtonAck ¶
type ButtonAck struct {
// contains filtered or unexported fields
}
* Request: Computer agrees to wait for HW button press @auxend
func (*ButtonAck) Descriptor
deprecated
func (*ButtonAck) ProtoMessage ¶
func (*ButtonAck) ProtoMessage()
func (*ButtonAck) ProtoReflect ¶ added in v1.14.6
func (x *ButtonAck) ProtoReflect() protoreflect.Message
type ButtonRequest ¶
type ButtonRequest struct { Code *ButtonRequest_ButtonRequestType `protobuf:"varint,1,opt,name=code,enum=hw.trezor.messages.common.ButtonRequest_ButtonRequestType" json:"code,omitempty"` Data *string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` // contains filtered or unexported fields }
* Response: Device is waiting for HW button press. @auxstart @next ButtonAck
func (*ButtonRequest) Descriptor
deprecated
func (*ButtonRequest) Descriptor() ([]byte, []int)
Deprecated: Use ButtonRequest.ProtoReflect.Descriptor instead.
func (*ButtonRequest) GetCode ¶
func (x *ButtonRequest) GetCode() ButtonRequest_ButtonRequestType
func (*ButtonRequest) GetData ¶
func (x *ButtonRequest) GetData() string
func (*ButtonRequest) ProtoMessage ¶
func (*ButtonRequest) ProtoMessage()
func (*ButtonRequest) ProtoReflect ¶ added in v1.14.6
func (x *ButtonRequest) ProtoReflect() protoreflect.Message
func (*ButtonRequest) Reset ¶
func (x *ButtonRequest) Reset()
func (*ButtonRequest) String ¶
func (x *ButtonRequest) String() string
type ButtonRequest_ButtonRequestType ¶
type ButtonRequest_ButtonRequestType int32
* Type of button request
const ( ButtonRequest_ButtonRequest_Other ButtonRequest_ButtonRequestType = 1 ButtonRequest_ButtonRequest_FeeOverThreshold ButtonRequest_ButtonRequestType = 2 ButtonRequest_ButtonRequest_ConfirmOutput ButtonRequest_ButtonRequestType = 3 ButtonRequest_ButtonRequest_ResetDevice ButtonRequest_ButtonRequestType = 4 ButtonRequest_ButtonRequest_ConfirmWord ButtonRequest_ButtonRequestType = 5 ButtonRequest_ButtonRequest_WipeDevice ButtonRequest_ButtonRequestType = 6 ButtonRequest_ButtonRequest_ProtectCall ButtonRequest_ButtonRequestType = 7 ButtonRequest_ButtonRequest_SignTx ButtonRequest_ButtonRequestType = 8 ButtonRequest_ButtonRequest_FirmwareCheck ButtonRequest_ButtonRequestType = 9 ButtonRequest_ButtonRequest_Address ButtonRequest_ButtonRequestType = 10 ButtonRequest_ButtonRequest_PublicKey ButtonRequest_ButtonRequestType = 11 ButtonRequest_ButtonRequest_MnemonicWordCount ButtonRequest_ButtonRequestType = 12 ButtonRequest_ButtonRequest_MnemonicInput ButtonRequest_ButtonRequestType = 13 ButtonRequest_ButtonRequest_PassphraseType ButtonRequest_ButtonRequestType = 14 ButtonRequest_ButtonRequest_UnknownDerivationPath ButtonRequest_ButtonRequestType = 15 )
func (ButtonRequest_ButtonRequestType) Descriptor ¶ added in v1.14.6
func (ButtonRequest_ButtonRequestType) Descriptor() protoreflect.EnumDescriptor
func (ButtonRequest_ButtonRequestType) Enum ¶
func (x ButtonRequest_ButtonRequestType) Enum() *ButtonRequest_ButtonRequestType
func (ButtonRequest_ButtonRequestType) EnumDescriptor
deprecated
func (ButtonRequest_ButtonRequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ButtonRequest_ButtonRequestType.Descriptor instead.
func (ButtonRequest_ButtonRequestType) Number ¶ added in v1.14.6
func (x ButtonRequest_ButtonRequestType) Number() protoreflect.EnumNumber
func (ButtonRequest_ButtonRequestType) String ¶
func (x ButtonRequest_ButtonRequestType) String() string
func (ButtonRequest_ButtonRequestType) Type ¶ added in v1.14.6
func (ButtonRequest_ButtonRequestType) Type() protoreflect.EnumType
func (*ButtonRequest_ButtonRequestType) UnmarshalJSON
deprecated
func (x *ButtonRequest_ButtonRequestType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Cancel ¶
type Cancel struct {
// contains filtered or unexported fields
}
* Request: Abort last operation that required user interaction @start @next Failure
func (*Cancel) Descriptor
deprecated
func (*Cancel) ProtoMessage ¶
func (*Cancel) ProtoMessage()
func (*Cancel) ProtoReflect ¶ added in v1.14.6
func (x *Cancel) ProtoReflect() protoreflect.Message
type ChangePin ¶
type ChangePin struct { Remove *bool `protobuf:"varint,1,opt,name=remove" json:"remove,omitempty"` // is PIN removal requested? // contains filtered or unexported fields }
* Request: Starts workflow for setting/changing/removing the PIN @start @next Success @next Failure
func (*ChangePin) Descriptor
deprecated
func (*ChangePin) ProtoMessage ¶
func (*ChangePin) ProtoMessage()
func (*ChangePin) ProtoReflect ¶ added in v1.14.6
func (x *ChangePin) ProtoReflect() protoreflect.Message
type ClearSession ¶
type ClearSession struct {
// contains filtered or unexported fields
}
* Request: clear session (removes cached PIN, passphrase, etc). @start @next Success
func (*ClearSession) Descriptor
deprecated
func (*ClearSession) Descriptor() ([]byte, []int)
Deprecated: Use ClearSession.ProtoReflect.Descriptor instead.
func (*ClearSession) ProtoMessage ¶
func (*ClearSession) ProtoMessage()
func (*ClearSession) ProtoReflect ¶ added in v1.14.6
func (x *ClearSession) ProtoReflect() protoreflect.Message
func (*ClearSession) Reset ¶
func (x *ClearSession) Reset()
func (*ClearSession) String ¶
func (x *ClearSession) String() string
type Entropy ¶
type Entropy struct { Entropy []byte `protobuf:"bytes,1,req,name=entropy" json:"entropy,omitempty"` // chunk of random generated bytes // contains filtered or unexported fields }
* Response: Reply with random data generated by internal RNG @end
func (*Entropy) Descriptor
deprecated
func (*Entropy) GetEntropy ¶
func (*Entropy) ProtoMessage ¶
func (*Entropy) ProtoMessage()
func (*Entropy) ProtoReflect ¶ added in v1.14.6
func (x *Entropy) ProtoReflect() protoreflect.Message
type EntropyAck ¶
type EntropyAck struct { Entropy []byte `protobuf:"bytes,1,opt,name=entropy" json:"entropy,omitempty"` // 256 bits (32 bytes) of random data // contains filtered or unexported fields }
* Request: Provide additional entropy for seed generation function @next Success
func (*EntropyAck) Descriptor
deprecated
func (*EntropyAck) Descriptor() ([]byte, []int)
Deprecated: Use EntropyAck.ProtoReflect.Descriptor instead.
func (*EntropyAck) GetEntropy ¶
func (x *EntropyAck) GetEntropy() []byte
func (*EntropyAck) ProtoMessage ¶
func (*EntropyAck) ProtoMessage()
func (*EntropyAck) ProtoReflect ¶ added in v1.14.6
func (x *EntropyAck) ProtoReflect() protoreflect.Message
func (*EntropyAck) Reset ¶
func (x *EntropyAck) Reset()
func (*EntropyAck) String ¶
func (x *EntropyAck) String() string
type EntropyRequest ¶
type EntropyRequest struct {
// contains filtered or unexported fields
}
* Response: Ask for additional entropy from host computer @next EntropyAck
func (*EntropyRequest) Descriptor
deprecated
func (*EntropyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EntropyRequest.ProtoReflect.Descriptor instead.
func (*EntropyRequest) ProtoMessage ¶
func (*EntropyRequest) ProtoMessage()
func (*EntropyRequest) ProtoReflect ¶ added in v1.14.6
func (x *EntropyRequest) ProtoReflect() protoreflect.Message
func (*EntropyRequest) Reset ¶
func (x *EntropyRequest) Reset()
func (*EntropyRequest) String ¶
func (x *EntropyRequest) String() string
type EthereumAddress ¶
type EthereumAddress struct { AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // Ethereum address as 20 bytes (legacy firmwares) AddressHex *string `protobuf:"bytes,2,opt,name=addressHex" json:"addressHex,omitempty"` // Ethereum address as hex string (newer firmwares) // contains filtered or unexported fields }
* Response: Contains an Ethereum address derived from device private seed @end
func (*EthereumAddress) Descriptor
deprecated
func (*EthereumAddress) Descriptor() ([]byte, []int)
Deprecated: Use EthereumAddress.ProtoReflect.Descriptor instead.
func (*EthereumAddress) GetAddressBin ¶
func (x *EthereumAddress) GetAddressBin() []byte
func (*EthereumAddress) GetAddressHex ¶
func (x *EthereumAddress) GetAddressHex() string
func (*EthereumAddress) ProtoMessage ¶
func (*EthereumAddress) ProtoMessage()
func (*EthereumAddress) ProtoReflect ¶ added in v1.14.6
func (x *EthereumAddress) ProtoReflect() protoreflect.Message
func (*EthereumAddress) Reset ¶
func (x *EthereumAddress) Reset()
func (*EthereumAddress) String ¶
func (x *EthereumAddress) String() string
type EthereumGetAddress ¶
type EthereumGetAddress struct { AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"` // optionally show on display before sending the result // contains filtered or unexported fields }
* Request: Ask device for Ethereum address corresponding to address_n path @start @next EthereumAddress @next Failure
func (*EthereumGetAddress) Descriptor
deprecated
func (*EthereumGetAddress) Descriptor() ([]byte, []int)
Deprecated: Use EthereumGetAddress.ProtoReflect.Descriptor instead.
func (*EthereumGetAddress) GetAddressN ¶
func (x *EthereumGetAddress) GetAddressN() []uint32
func (*EthereumGetAddress) GetShowDisplay ¶
func (x *EthereumGetAddress) GetShowDisplay() bool
func (*EthereumGetAddress) ProtoMessage ¶
func (*EthereumGetAddress) ProtoMessage()
func (*EthereumGetAddress) ProtoReflect ¶ added in v1.14.6
func (x *EthereumGetAddress) ProtoReflect() protoreflect.Message
func (*EthereumGetAddress) Reset ¶
func (x *EthereumGetAddress) Reset()
func (*EthereumGetAddress) String ¶
func (x *EthereumGetAddress) String() string
type EthereumGetPublicKey ¶
type EthereumGetPublicKey struct { AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"` // optionally show on display before sending the result // contains filtered or unexported fields }
* Request: Ask device for public key corresponding to address_n path @start @next EthereumPublicKey @next Failure
func (*EthereumGetPublicKey) Descriptor
deprecated
func (*EthereumGetPublicKey) Descriptor() ([]byte, []int)
Deprecated: Use EthereumGetPublicKey.ProtoReflect.Descriptor instead.
func (*EthereumGetPublicKey) GetAddressN ¶
func (x *EthereumGetPublicKey) GetAddressN() []uint32
func (*EthereumGetPublicKey) GetShowDisplay ¶
func (x *EthereumGetPublicKey) GetShowDisplay() bool
func (*EthereumGetPublicKey) ProtoMessage ¶
func (*EthereumGetPublicKey) ProtoMessage()
func (*EthereumGetPublicKey) ProtoReflect ¶ added in v1.14.6
func (x *EthereumGetPublicKey) ProtoReflect() protoreflect.Message
func (*EthereumGetPublicKey) Reset ¶
func (x *EthereumGetPublicKey) Reset()
func (*EthereumGetPublicKey) String ¶
func (x *EthereumGetPublicKey) String() string
type EthereumMessageSignature ¶
type EthereumMessageSignature struct { AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // address used to sign the message (20 bytes, legacy firmware) Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` // signature of the message AddressHex *string `protobuf:"bytes,3,opt,name=addressHex" json:"addressHex,omitempty"` // address used to sign the message (hex string, newer firmware) // contains filtered or unexported fields }
* Response: Signed message @end
func (*EthereumMessageSignature) Descriptor
deprecated
func (*EthereumMessageSignature) Descriptor() ([]byte, []int)
Deprecated: Use EthereumMessageSignature.ProtoReflect.Descriptor instead.
func (*EthereumMessageSignature) GetAddressBin ¶
func (x *EthereumMessageSignature) GetAddressBin() []byte
func (*EthereumMessageSignature) GetAddressHex ¶
func (x *EthereumMessageSignature) GetAddressHex() string
func (*EthereumMessageSignature) GetSignature ¶
func (x *EthereumMessageSignature) GetSignature() []byte
func (*EthereumMessageSignature) ProtoMessage ¶
func (*EthereumMessageSignature) ProtoMessage()
func (*EthereumMessageSignature) ProtoReflect ¶ added in v1.14.6
func (x *EthereumMessageSignature) ProtoReflect() protoreflect.Message
func (*EthereumMessageSignature) Reset ¶
func (x *EthereumMessageSignature) Reset()
func (*EthereumMessageSignature) String ¶
func (x *EthereumMessageSignature) String() string
type EthereumPublicKey ¶
type EthereumPublicKey struct { Node *HDNodeType `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"` // BIP32 public node Xpub *string `protobuf:"bytes,2,opt,name=xpub" json:"xpub,omitempty"` // serialized form of public node // contains filtered or unexported fields }
* Response: Contains public key derived from device private seed @end
func (*EthereumPublicKey) Descriptor
deprecated
func (*EthereumPublicKey) Descriptor() ([]byte, []int)
Deprecated: Use EthereumPublicKey.ProtoReflect.Descriptor instead.
func (*EthereumPublicKey) GetNode ¶
func (x *EthereumPublicKey) GetNode() *HDNodeType
func (*EthereumPublicKey) GetXpub ¶
func (x *EthereumPublicKey) GetXpub() string
func (*EthereumPublicKey) ProtoMessage ¶
func (*EthereumPublicKey) ProtoMessage()
func (*EthereumPublicKey) ProtoReflect ¶ added in v1.14.6
func (x *EthereumPublicKey) ProtoReflect() protoreflect.Message
func (*EthereumPublicKey) Reset ¶
func (x *EthereumPublicKey) Reset()
func (*EthereumPublicKey) String ¶
func (x *EthereumPublicKey) String() string
type EthereumSignMessage ¶
type EthereumSignMessage struct { AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node Message []byte `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // message to be signed // contains filtered or unexported fields }
* Request: Ask device to sign message @start @next EthereumMessageSignature @next Failure
func (*EthereumSignMessage) Descriptor
deprecated
func (*EthereumSignMessage) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignMessage.ProtoReflect.Descriptor instead.
func (*EthereumSignMessage) GetAddressN ¶
func (x *EthereumSignMessage) GetAddressN() []uint32
func (*EthereumSignMessage) GetMessage ¶
func (x *EthereumSignMessage) GetMessage() []byte
func (*EthereumSignMessage) ProtoMessage ¶
func (*EthereumSignMessage) ProtoMessage()
func (*EthereumSignMessage) ProtoReflect ¶ added in v1.14.6
func (x *EthereumSignMessage) ProtoReflect() protoreflect.Message
func (*EthereumSignMessage) Reset ¶
func (x *EthereumSignMessage) Reset()
func (*EthereumSignMessage) String ¶
func (x *EthereumSignMessage) String() string
type EthereumSignTx ¶
type EthereumSignTx struct { AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node Nonce []byte `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"` // <=256 bit unsigned big endian GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"` // <=256 bit unsigned big endian (in wei) GasLimit []byte `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"` // <=256 bit unsigned big endian ToBin []byte `protobuf:"bytes,5,opt,name=toBin" json:"toBin,omitempty"` // recipient address (20 bytes, legacy firmware) ToHex *string `protobuf:"bytes,11,opt,name=toHex" json:"toHex,omitempty"` // recipient address (hex string, newer firmware) Value []byte `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"` // <=256 bit unsigned big endian (in wei) DataInitialChunk []byte `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"` // The initial data chunk (<= 1024 bytes) DataLength *uint32 `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"` // Length of transaction payload ChainId *uint32 `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"` // Chain Id for EIP 155 TxType *uint32 `protobuf:"varint,10,opt,name=tx_type,json=txType" json:"tx_type,omitempty"` // (only for Wanchain) // contains filtered or unexported fields }
* 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
deprecated
func (*EthereumSignTx) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTx.ProtoReflect.Descriptor instead.
func (*EthereumSignTx) GetAddressN ¶
func (x *EthereumSignTx) GetAddressN() []uint32
func (*EthereumSignTx) GetChainId ¶
func (x *EthereumSignTx) GetChainId() uint32
func (*EthereumSignTx) GetDataInitialChunk ¶
func (x *EthereumSignTx) GetDataInitialChunk() []byte
func (*EthereumSignTx) GetDataLength ¶
func (x *EthereumSignTx) GetDataLength() uint32
func (*EthereumSignTx) GetGasLimit ¶
func (x *EthereumSignTx) GetGasLimit() []byte
func (*EthereumSignTx) GetGasPrice ¶
func (x *EthereumSignTx) GetGasPrice() []byte
func (*EthereumSignTx) GetNonce ¶
func (x *EthereumSignTx) GetNonce() []byte
func (*EthereumSignTx) GetToBin ¶
func (x *EthereumSignTx) GetToBin() []byte
func (*EthereumSignTx) GetToHex ¶
func (x *EthereumSignTx) GetToHex() string
func (*EthereumSignTx) GetTxType ¶
func (x *EthereumSignTx) GetTxType() uint32
func (*EthereumSignTx) GetValue ¶
func (x *EthereumSignTx) GetValue() []byte
func (*EthereumSignTx) ProtoMessage ¶
func (*EthereumSignTx) ProtoMessage()
func (*EthereumSignTx) ProtoReflect ¶ added in v1.14.6
func (x *EthereumSignTx) ProtoReflect() protoreflect.Message
func (*EthereumSignTx) Reset ¶
func (x *EthereumSignTx) Reset()
func (*EthereumSignTx) String ¶
func (x *EthereumSignTx) String() string
type EthereumTxAck ¶
type EthereumTxAck struct { DataChunk []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"` // Bytes from transaction payload (<= 1024 bytes) // contains filtered or unexported fields }
* Request: Transaction payload data. @next EthereumTxRequest
func (*EthereumTxAck) Descriptor
deprecated
func (*EthereumTxAck) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTxAck.ProtoReflect.Descriptor instead.
func (*EthereumTxAck) GetDataChunk ¶
func (x *EthereumTxAck) GetDataChunk() []byte
func (*EthereumTxAck) ProtoMessage ¶
func (*EthereumTxAck) ProtoMessage()
func (*EthereumTxAck) ProtoReflect ¶ added in v1.14.6
func (x *EthereumTxAck) ProtoReflect() protoreflect.Message
func (*EthereumTxAck) Reset ¶
func (x *EthereumTxAck) Reset()
func (*EthereumTxAck) String ¶
func (x *EthereumTxAck) String() string
type EthereumTxRequest ¶
type EthereumTxRequest struct { DataLength *uint32 `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"` // Number of bytes being requested (<= 1024) SignatureV *uint32 `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"` // Computed signature (recovery parameter, limited to 27 or 28) SignatureR []byte `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"` // Computed signature R component (256 bit) SignatureS []byte `protobuf:"bytes,4,opt,name=signature_s,json=signatureS" json:"signature_s,omitempty"` // Computed signature S component (256 bit) // contains filtered or unexported fields }
* 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
deprecated
func (*EthereumTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTxRequest.ProtoReflect.Descriptor instead.
func (*EthereumTxRequest) GetDataLength ¶
func (x *EthereumTxRequest) GetDataLength() uint32
func (*EthereumTxRequest) GetSignatureR ¶
func (x *EthereumTxRequest) GetSignatureR() []byte
func (*EthereumTxRequest) GetSignatureS ¶
func (x *EthereumTxRequest) GetSignatureS() []byte
func (*EthereumTxRequest) GetSignatureV ¶
func (x *EthereumTxRequest) GetSignatureV() uint32
func (*EthereumTxRequest) ProtoMessage ¶
func (*EthereumTxRequest) ProtoMessage()
func (*EthereumTxRequest) ProtoReflect ¶ added in v1.14.6
func (x *EthereumTxRequest) ProtoReflect() protoreflect.Message
func (*EthereumTxRequest) Reset ¶
func (x *EthereumTxRequest) Reset()
func (*EthereumTxRequest) String ¶
func (x *EthereumTxRequest) String() string
type EthereumVerifyMessage ¶
type EthereumVerifyMessage struct { AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // address to verify (20 bytes, legacy firmware) Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` // signature to verify Message []byte `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` // message to verify AddressHex *string `protobuf:"bytes,4,opt,name=addressHex" json:"addressHex,omitempty"` // address to verify (hex string, newer firmware) // contains filtered or unexported fields }
* Request: Ask device to verify message @start @next Success @next Failure
func (*EthereumVerifyMessage) Descriptor
deprecated
func (*EthereumVerifyMessage) Descriptor() ([]byte, []int)
Deprecated: Use EthereumVerifyMessage.ProtoReflect.Descriptor instead.
func (*EthereumVerifyMessage) GetAddressBin ¶
func (x *EthereumVerifyMessage) GetAddressBin() []byte
func (*EthereumVerifyMessage) GetAddressHex ¶
func (x *EthereumVerifyMessage) GetAddressHex() string
func (*EthereumVerifyMessage) GetMessage ¶
func (x *EthereumVerifyMessage) GetMessage() []byte
func (*EthereumVerifyMessage) GetSignature ¶
func (x *EthereumVerifyMessage) GetSignature() []byte
func (*EthereumVerifyMessage) ProtoMessage ¶
func (*EthereumVerifyMessage) ProtoMessage()
func (*EthereumVerifyMessage) ProtoReflect ¶ added in v1.14.6
func (x *EthereumVerifyMessage) ProtoReflect() protoreflect.Message
func (*EthereumVerifyMessage) Reset ¶
func (x *EthereumVerifyMessage) Reset()
func (*EthereumVerifyMessage) String ¶
func (x *EthereumVerifyMessage) String() string
type Failure ¶
type Failure struct { Code *Failure_FailureType `protobuf:"varint,1,opt,name=code,enum=hw.trezor.messages.common.Failure_FailureType" json:"code,omitempty"` // computer-readable definition of the error state Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // human-readable message of the error state // contains filtered or unexported fields }
* Response: Failure of the previous request @end
func (*Failure) Descriptor
deprecated
func (*Failure) GetCode ¶
func (x *Failure) GetCode() Failure_FailureType
func (*Failure) GetMessage ¶
func (*Failure) ProtoMessage ¶
func (*Failure) ProtoMessage()
func (*Failure) ProtoReflect ¶ added in v1.14.6
func (x *Failure) ProtoReflect() protoreflect.Message
type Failure_FailureType ¶
type Failure_FailureType int32
const ( Failure_Failure_UnexpectedMessage Failure_FailureType = 1 Failure_Failure_ButtonExpected Failure_FailureType = 2 Failure_Failure_DataError Failure_FailureType = 3 Failure_Failure_ActionCancelled Failure_FailureType = 4 Failure_Failure_PinExpected Failure_FailureType = 5 Failure_Failure_PinCancelled Failure_FailureType = 6 Failure_Failure_PinInvalid Failure_FailureType = 7 Failure_Failure_InvalidSignature Failure_FailureType = 8 Failure_Failure_ProcessError Failure_FailureType = 9 Failure_Failure_NotEnoughFunds Failure_FailureType = 10 Failure_Failure_NotInitialized Failure_FailureType = 11 Failure_Failure_PinMismatch Failure_FailureType = 12 Failure_Failure_FirmwareError Failure_FailureType = 99 )
func (Failure_FailureType) Descriptor ¶ added in v1.14.6
func (Failure_FailureType) Descriptor() protoreflect.EnumDescriptor
func (Failure_FailureType) Enum ¶
func (x Failure_FailureType) Enum() *Failure_FailureType
func (Failure_FailureType) EnumDescriptor
deprecated
func (Failure_FailureType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Failure_FailureType.Descriptor instead.
func (Failure_FailureType) Number ¶ added in v1.14.6
func (x Failure_FailureType) Number() protoreflect.EnumNumber
func (Failure_FailureType) String ¶
func (x Failure_FailureType) String() string
func (Failure_FailureType) Type ¶ added in v1.14.6
func (Failure_FailureType) Type() protoreflect.EnumType
func (*Failure_FailureType) UnmarshalJSON
deprecated
func (x *Failure_FailureType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Features ¶
type Features struct { Vendor *string `protobuf:"bytes,1,opt,name=vendor" json:"vendor,omitempty"` // name of the manufacturer, e.g. "trezor.io" MajorVersion *uint32 `protobuf:"varint,2,opt,name=major_version,json=majorVersion" json:"major_version,omitempty"` // major version of the firmware/bootloader, e.g. 1 MinorVersion *uint32 `protobuf:"varint,3,opt,name=minor_version,json=minorVersion" json:"minor_version,omitempty"` // minor version of the firmware/bootloader, e.g. 0 PatchVersion *uint32 `protobuf:"varint,4,opt,name=patch_version,json=patchVersion" json:"patch_version,omitempty"` // patch version of the firmware/bootloader, e.g. 0 BootloaderMode *bool `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode" json:"bootloader_mode,omitempty"` // is device in bootloader mode? DeviceId *string `protobuf:"bytes,6,opt,name=device_id,json=deviceId" json:"device_id,omitempty"` // device's unique identifier PinProtection *bool `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // is device protected by PIN? PassphraseProtection *bool `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // is node/mnemonic encrypted using passphrase? Language *string `protobuf:"bytes,9,opt,name=language" json:"language,omitempty"` // device language Label *string `protobuf:"bytes,10,opt,name=label" json:"label,omitempty"` // device description label Initialized *bool `protobuf:"varint,12,opt,name=initialized" json:"initialized,omitempty"` // does device contain seed? Revision []byte `protobuf:"bytes,13,opt,name=revision" json:"revision,omitempty"` // SCM revision of firmware BootloaderHash []byte `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash" json:"bootloader_hash,omitempty"` // hash of the bootloader Imported *bool `protobuf:"varint,15,opt,name=imported" json:"imported,omitempty"` // was storage imported from an external source? PinCached *bool `protobuf:"varint,16,opt,name=pin_cached,json=pinCached" json:"pin_cached,omitempty"` // is PIN already cached in session? PassphraseCached *bool `protobuf:"varint,17,opt,name=passphrase_cached,json=passphraseCached" json:"passphrase_cached,omitempty"` // is passphrase already cached in session? FirmwarePresent *bool `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent" json:"firmware_present,omitempty"` // is valid firmware loaded? NeedsBackup *bool `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"` // does storage need backup? (equals to Storage.needs_backup) Flags *uint32 `protobuf:"varint,20,opt,name=flags" json:"flags,omitempty"` // device flags (equals to Storage.flags) Model *string `protobuf:"bytes,21,opt,name=model" json:"model,omitempty"` // device hardware model FwMajor *uint32 `protobuf:"varint,22,opt,name=fw_major,json=fwMajor" json:"fw_major,omitempty"` // reported firmware version if in bootloader mode FwMinor *uint32 `protobuf:"varint,23,opt,name=fw_minor,json=fwMinor" json:"fw_minor,omitempty"` // reported firmware version if in bootloader mode FwPatch *uint32 `protobuf:"varint,24,opt,name=fw_patch,json=fwPatch" json:"fw_patch,omitempty"` // reported firmware version if in bootloader mode FwVendor *string `protobuf:"bytes,25,opt,name=fw_vendor,json=fwVendor" json:"fw_vendor,omitempty"` // reported firmware vendor if in bootloader mode FwVendorKeys []byte `protobuf:"bytes,26,opt,name=fw_vendor_keys,json=fwVendorKeys" json:"fw_vendor_keys,omitempty"` // reported firmware vendor keys (their hash) UnfinishedBackup *bool `protobuf:"varint,27,opt,name=unfinished_backup,json=unfinishedBackup" json:"unfinished_backup,omitempty"` // report unfinished backup (equals to Storage.unfinished_backup) NoBackup *bool `protobuf:"varint,28,opt,name=no_backup,json=noBackup" json:"no_backup,omitempty"` // report no backup (equals to Storage.no_backup) // contains filtered or unexported fields }
* Response: Reports various information about the device @end
func (*Features) Descriptor
deprecated
func (*Features) GetBootloaderHash ¶
func (*Features) GetBootloaderMode ¶
func (*Features) GetDeviceId ¶
func (*Features) GetFirmwarePresent ¶
func (*Features) GetFwMajor ¶
func (*Features) GetFwMinor ¶
func (*Features) GetFwPatch ¶
func (*Features) GetFwVendor ¶
func (*Features) GetFwVendorKeys ¶
func (*Features) GetImported ¶
func (*Features) GetInitialized ¶
func (*Features) GetLanguage ¶
func (*Features) GetMajorVersion ¶
func (*Features) GetMinorVersion ¶
func (*Features) GetNeedsBackup ¶
func (*Features) GetNoBackup ¶
func (*Features) GetPassphraseCached ¶
func (*Features) GetPassphraseProtection ¶
func (*Features) GetPatchVersion ¶
func (*Features) GetPinCached ¶
func (*Features) GetPinProtection ¶
func (*Features) GetRevision ¶
func (*Features) GetUnfinishedBackup ¶
func (*Features) ProtoMessage ¶
func (*Features) ProtoMessage()
func (*Features) ProtoReflect ¶ added in v1.14.6
func (x *Features) ProtoReflect() protoreflect.Message
type GetEntropy ¶
type GetEntropy struct { Size *uint32 `protobuf:"varint,1,req,name=size" json:"size,omitempty"` // size of requested entropy // contains filtered or unexported fields }
* Request: Request a sample of random data generated by hardware RNG. May be used for testing. @start @next Entropy @next Failure
func (*GetEntropy) Descriptor
deprecated
func (*GetEntropy) Descriptor() ([]byte, []int)
Deprecated: Use GetEntropy.ProtoReflect.Descriptor instead.
func (*GetEntropy) GetSize ¶
func (x *GetEntropy) GetSize() uint32
func (*GetEntropy) ProtoMessage ¶
func (*GetEntropy) ProtoMessage()
func (*GetEntropy) ProtoReflect ¶ added in v1.14.6
func (x *GetEntropy) ProtoReflect() protoreflect.Message
func (*GetEntropy) Reset ¶
func (x *GetEntropy) Reset()
func (*GetEntropy) String ¶
func (x *GetEntropy) String() string
type GetFeatures ¶
type GetFeatures struct {
// contains filtered or unexported fields
}
* Request: Ask for device details (no device reset) @start @next Features
func (*GetFeatures) Descriptor
deprecated
func (*GetFeatures) Descriptor() ([]byte, []int)
Deprecated: Use GetFeatures.ProtoReflect.Descriptor instead.
func (*GetFeatures) ProtoMessage ¶
func (*GetFeatures) ProtoMessage()
func (*GetFeatures) ProtoReflect ¶ added in v1.14.6
func (x *GetFeatures) ProtoReflect() protoreflect.Message
func (*GetFeatures) Reset ¶
func (x *GetFeatures) Reset()
func (*GetFeatures) String ¶
func (x *GetFeatures) String() string
type HDNodeType ¶
type HDNodeType struct { Depth *uint32 `protobuf:"varint,1,req,name=depth" json:"depth,omitempty"` Fingerprint *uint32 `protobuf:"varint,2,req,name=fingerprint" json:"fingerprint,omitempty"` ChildNum *uint32 `protobuf:"varint,3,req,name=child_num,json=childNum" json:"child_num,omitempty"` ChainCode []byte `protobuf:"bytes,4,req,name=chain_code,json=chainCode" json:"chain_code,omitempty"` PrivateKey []byte `protobuf:"bytes,5,opt,name=private_key,json=privateKey" json:"private_key,omitempty"` PublicKey []byte `protobuf:"bytes,6,opt,name=public_key,json=publicKey" json:"public_key,omitempty"` // contains filtered or unexported fields }
* 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
deprecated
func (*HDNodeType) Descriptor() ([]byte, []int)
Deprecated: Use HDNodeType.ProtoReflect.Descriptor instead.
func (*HDNodeType) GetChainCode ¶
func (x *HDNodeType) GetChainCode() []byte
func (*HDNodeType) GetChildNum ¶
func (x *HDNodeType) GetChildNum() uint32
func (*HDNodeType) GetDepth ¶
func (x *HDNodeType) GetDepth() uint32
func (*HDNodeType) GetFingerprint ¶
func (x *HDNodeType) GetFingerprint() uint32
func (*HDNodeType) GetPrivateKey ¶
func (x *HDNodeType) GetPrivateKey() []byte
func (*HDNodeType) GetPublicKey ¶
func (x *HDNodeType) GetPublicKey() []byte
func (*HDNodeType) ProtoMessage ¶
func (*HDNodeType) ProtoMessage()
func (*HDNodeType) ProtoReflect ¶ added in v1.14.6
func (x *HDNodeType) ProtoReflect() protoreflect.Message
func (*HDNodeType) Reset ¶
func (x *HDNodeType) Reset()
func (*HDNodeType) String ¶
func (x *HDNodeType) String() string
type Initialize ¶
type Initialize struct { State []byte `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` // assumed device state, clear session if set and different SkipPassphrase *bool `protobuf:"varint,2,opt,name=skip_passphrase,json=skipPassphrase" json:"skip_passphrase,omitempty"` // this session should always assume empty passphrase // contains filtered or unexported fields }
* Request: Reset device to default state and ask for device details @start @next Features
func (*Initialize) Descriptor
deprecated
func (*Initialize) Descriptor() ([]byte, []int)
Deprecated: Use Initialize.ProtoReflect.Descriptor instead.
func (*Initialize) GetSkipPassphrase ¶
func (x *Initialize) GetSkipPassphrase() bool
func (*Initialize) GetState ¶
func (x *Initialize) GetState() []byte
func (*Initialize) ProtoMessage ¶
func (*Initialize) ProtoMessage()
func (*Initialize) ProtoReflect ¶ added in v1.14.6
func (x *Initialize) ProtoReflect() protoreflect.Message
func (*Initialize) Reset ¶
func (x *Initialize) Reset()
func (*Initialize) String ¶
func (x *Initialize) String() string
type LoadDevice ¶
type LoadDevice struct { Mnemonic *string `protobuf:"bytes,1,opt,name=mnemonic" json:"mnemonic,omitempty"` // seed encoded as BIP-39 mnemonic (12, 18 or 24 words) Node *HDNodeType `protobuf:"bytes,2,opt,name=node" json:"node,omitempty"` // BIP-32 node Pin *string `protobuf:"bytes,3,opt,name=pin" json:"pin,omitempty"` // set PIN protection PassphraseProtection *bool `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // enable master node encryption using passphrase Language *string `protobuf:"bytes,5,opt,name=language,def=english" json:"language,omitempty"` // device language Label *string `protobuf:"bytes,6,opt,name=label" json:"label,omitempty"` // device label SkipChecksum *bool `protobuf:"varint,7,opt,name=skip_checksum,json=skipChecksum" json:"skip_checksum,omitempty"` // do not test mnemonic for valid BIP-39 checksum U2FCounter *uint32 `protobuf:"varint,8,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // U2F counter // contains filtered or unexported fields }
* Request: Load seed and related internal settings from the computer @start @next Success @next Failure
func (*LoadDevice) Descriptor
deprecated
func (*LoadDevice) Descriptor() ([]byte, []int)
Deprecated: Use LoadDevice.ProtoReflect.Descriptor instead.
func (*LoadDevice) GetLabel ¶
func (x *LoadDevice) GetLabel() string
func (*LoadDevice) GetLanguage ¶
func (x *LoadDevice) GetLanguage() string
func (*LoadDevice) GetMnemonic ¶
func (x *LoadDevice) GetMnemonic() string
func (*LoadDevice) GetNode ¶
func (x *LoadDevice) GetNode() *HDNodeType
func (*LoadDevice) GetPassphraseProtection ¶
func (x *LoadDevice) GetPassphraseProtection() bool
func (*LoadDevice) GetPin ¶
func (x *LoadDevice) GetPin() string
func (*LoadDevice) GetSkipChecksum ¶
func (x *LoadDevice) GetSkipChecksum() bool
func (*LoadDevice) GetU2FCounter ¶
func (x *LoadDevice) GetU2FCounter() uint32
func (*LoadDevice) ProtoMessage ¶
func (*LoadDevice) ProtoMessage()
func (*LoadDevice) ProtoReflect ¶ added in v1.14.6
func (x *LoadDevice) ProtoReflect() protoreflect.Message
func (*LoadDevice) Reset ¶
func (x *LoadDevice) Reset()
func (*LoadDevice) String ¶
func (x *LoadDevice) String() string
type MessageType ¶
type MessageType int32
* Mapping between TREZOR wire identifier (uint) and a protobuf message
const ( // Management MessageType_MessageType_Initialize MessageType = 0 MessageType_MessageType_Ping MessageType = 1 MessageType_MessageType_Success MessageType = 2 MessageType_MessageType_Failure MessageType = 3 MessageType_MessageType_ChangePin MessageType = 4 MessageType_MessageType_WipeDevice MessageType = 5 MessageType_MessageType_GetEntropy MessageType = 9 MessageType_MessageType_Entropy MessageType = 10 MessageType_MessageType_LoadDevice MessageType = 13 MessageType_MessageType_ResetDevice MessageType = 14 MessageType_MessageType_Features MessageType = 17 MessageType_MessageType_PinMatrixRequest MessageType = 18 MessageType_MessageType_PinMatrixAck MessageType = 19 MessageType_MessageType_Cancel MessageType = 20 MessageType_MessageType_ClearSession MessageType = 24 MessageType_MessageType_ApplySettings MessageType = 25 MessageType_MessageType_ButtonRequest MessageType = 26 MessageType_MessageType_ButtonAck MessageType = 27 MessageType_MessageType_ApplyFlags MessageType = 28 MessageType_MessageType_BackupDevice MessageType = 34 MessageType_MessageType_EntropyRequest MessageType = 35 MessageType_MessageType_EntropyAck MessageType = 36 MessageType_MessageType_PassphraseRequest MessageType = 41 MessageType_MessageType_PassphraseAck MessageType = 42 MessageType_MessageType_PassphraseStateRequest MessageType = 77 MessageType_MessageType_PassphraseStateAck MessageType = 78 MessageType_MessageType_RecoveryDevice MessageType = 45 MessageType_MessageType_WordRequest MessageType = 46 MessageType_MessageType_WordAck MessageType = 47 MessageType_MessageType_GetFeatures MessageType = 55 MessageType_MessageType_SetU2FCounter MessageType = 63 // Bootloader MessageType_MessageType_FirmwareErase MessageType = 6 MessageType_MessageType_FirmwareUpload MessageType = 7 MessageType_MessageType_FirmwareRequest MessageType = 8 MessageType_MessageType_SelfTest MessageType = 32 // Bitcoin MessageType_MessageType_GetPublicKey MessageType = 11 MessageType_MessageType_PublicKey MessageType = 12 MessageType_MessageType_SignTx MessageType = 15 MessageType_MessageType_TxRequest MessageType = 21 MessageType_MessageType_TxAck MessageType = 22 MessageType_MessageType_GetAddress MessageType = 29 MessageType_MessageType_Address MessageType = 30 MessageType_MessageType_SignMessage MessageType = 38 MessageType_MessageType_VerifyMessage MessageType = 39 MessageType_MessageType_MessageSignature MessageType = 40 // Crypto MessageType_MessageType_CipherKeyValue MessageType = 23 MessageType_MessageType_CipheredKeyValue MessageType = 48 MessageType_MessageType_SignIdentity MessageType = 53 MessageType_MessageType_SignedIdentity MessageType = 54 MessageType_MessageType_GetECDHSessionKey MessageType = 61 MessageType_MessageType_ECDHSessionKey MessageType = 62 MessageType_MessageType_CosiCommit MessageType = 71 MessageType_MessageType_CosiCommitment MessageType = 72 MessageType_MessageType_CosiSign MessageType = 73 MessageType_MessageType_CosiSignature MessageType = 74 // Debug MessageType_MessageType_DebugLinkDecision MessageType = 100 MessageType_MessageType_DebugLinkGetState MessageType = 101 MessageType_MessageType_DebugLinkState MessageType = 102 MessageType_MessageType_DebugLinkStop MessageType = 103 MessageType_MessageType_DebugLinkLog MessageType = 104 MessageType_MessageType_DebugLinkMemoryRead MessageType = 110 MessageType_MessageType_DebugLinkMemory MessageType = 111 MessageType_MessageType_DebugLinkMemoryWrite MessageType = 112 MessageType_MessageType_DebugLinkFlashErase MessageType = 113 // Ethereum MessageType_MessageType_EthereumGetPublicKey MessageType = 450 MessageType_MessageType_EthereumPublicKey MessageType = 451 MessageType_MessageType_EthereumGetAddress MessageType = 56 MessageType_MessageType_EthereumAddress MessageType = 57 MessageType_MessageType_EthereumSignTx MessageType = 58 MessageType_MessageType_EthereumTxRequest MessageType = 59 MessageType_MessageType_EthereumTxAck MessageType = 60 MessageType_MessageType_EthereumSignMessage MessageType = 64 MessageType_MessageType_EthereumVerifyMessage MessageType = 65 MessageType_MessageType_EthereumMessageSignature MessageType = 66 // NEM MessageType_MessageType_NEMGetAddress MessageType = 67 MessageType_MessageType_NEMAddress MessageType = 68 MessageType_MessageType_NEMSignTx MessageType = 69 MessageType_MessageType_NEMSignedTx MessageType = 70 MessageType_MessageType_NEMDecryptMessage MessageType = 75 MessageType_MessageType_NEMDecryptedMessage MessageType = 76 // Lisk MessageType_MessageType_LiskGetAddress MessageType = 114 MessageType_MessageType_LiskAddress MessageType = 115 MessageType_MessageType_LiskSignTx MessageType = 116 MessageType_MessageType_LiskSignedTx MessageType = 117 MessageType_MessageType_LiskSignMessage MessageType = 118 MessageType_MessageType_LiskMessageSignature MessageType = 119 MessageType_MessageType_LiskVerifyMessage MessageType = 120 MessageType_MessageType_LiskGetPublicKey MessageType = 121 MessageType_MessageType_LiskPublicKey MessageType = 122 // Tezos MessageType_MessageType_TezosGetAddress MessageType = 150 MessageType_MessageType_TezosAddress MessageType = 151 MessageType_MessageType_TezosSignTx MessageType = 152 MessageType_MessageType_TezosSignedTx MessageType = 153 MessageType_MessageType_TezosGetPublicKey MessageType = 154 MessageType_MessageType_TezosPublicKey MessageType = 155 // Stellar MessageType_MessageType_StellarSignTx MessageType = 202 MessageType_MessageType_StellarTxOpRequest MessageType = 203 MessageType_MessageType_StellarGetAddress MessageType = 207 MessageType_MessageType_StellarAddress MessageType = 208 MessageType_MessageType_StellarCreateAccountOp MessageType = 210 MessageType_MessageType_StellarPaymentOp MessageType = 211 MessageType_MessageType_StellarPathPaymentOp MessageType = 212 MessageType_MessageType_StellarManageOfferOp MessageType = 213 MessageType_MessageType_StellarCreatePassiveOfferOp MessageType = 214 MessageType_MessageType_StellarSetOptionsOp MessageType = 215 MessageType_MessageType_StellarChangeTrustOp MessageType = 216 MessageType_MessageType_StellarAllowTrustOp MessageType = 217 MessageType_MessageType_StellarAccountMergeOp MessageType = 218 // omitted: StellarInflationOp is not a supported operation, would be 219 MessageType_MessageType_StellarManageDataOp MessageType = 220 MessageType_MessageType_StellarBumpSequenceOp MessageType = 221 MessageType_MessageType_StellarSignedTx MessageType = 230 // TRON MessageType_MessageType_TronGetAddress MessageType = 250 MessageType_MessageType_TronAddress MessageType = 251 MessageType_MessageType_TronSignTx MessageType = 252 MessageType_MessageType_TronSignedTx MessageType = 253 // Cardano // dropped Sign/VerifyMessage ids 300-302 MessageType_MessageType_CardanoSignTx MessageType = 303 MessageType_MessageType_CardanoTxRequest MessageType = 304 MessageType_MessageType_CardanoGetPublicKey MessageType = 305 MessageType_MessageType_CardanoPublicKey MessageType = 306 MessageType_MessageType_CardanoGetAddress MessageType = 307 MessageType_MessageType_CardanoAddress MessageType = 308 MessageType_MessageType_CardanoTxAck MessageType = 309 MessageType_MessageType_CardanoSignedTx MessageType = 310 // Ontology MessageType_MessageType_OntologyGetAddress MessageType = 350 MessageType_MessageType_OntologyAddress MessageType = 351 MessageType_MessageType_OntologyGetPublicKey MessageType = 352 MessageType_MessageType_OntologyPublicKey MessageType = 353 MessageType_MessageType_OntologySignTransfer MessageType = 354 MessageType_MessageType_OntologySignedTransfer MessageType = 355 MessageType_MessageType_OntologySignWithdrawOng MessageType = 356 MessageType_MessageType_OntologySignedWithdrawOng MessageType = 357 MessageType_MessageType_OntologySignOntIdRegister MessageType = 358 MessageType_MessageType_OntologySignedOntIdRegister MessageType = 359 MessageType_MessageType_OntologySignOntIdAddAttributes MessageType = 360 MessageType_MessageType_OntologySignedOntIdAddAttributes MessageType = 361 // Ripple MessageType_MessageType_RippleGetAddress MessageType = 400 MessageType_MessageType_RippleAddress MessageType = 401 MessageType_MessageType_RippleSignTx MessageType = 402 MessageType_MessageType_RippleSignedTx MessageType = 403 // Monero MessageType_MessageType_MoneroTransactionInitRequest MessageType = 501 MessageType_MessageType_MoneroTransactionInitAck MessageType = 502 MessageType_MessageType_MoneroTransactionSetInputRequest MessageType = 503 MessageType_MessageType_MoneroTransactionSetInputAck MessageType = 504 MessageType_MessageType_MoneroTransactionInputsPermutationRequest MessageType = 505 MessageType_MessageType_MoneroTransactionInputsPermutationAck MessageType = 506 MessageType_MessageType_MoneroTransactionInputViniRequest MessageType = 507 MessageType_MessageType_MoneroTransactionInputViniAck MessageType = 508 MessageType_MessageType_MoneroTransactionAllInputsSetRequest MessageType = 509 MessageType_MessageType_MoneroTransactionAllInputsSetAck MessageType = 510 MessageType_MessageType_MoneroTransactionSetOutputRequest MessageType = 511 MessageType_MessageType_MoneroTransactionSetOutputAck MessageType = 512 MessageType_MessageType_MoneroTransactionAllOutSetRequest MessageType = 513 MessageType_MessageType_MoneroTransactionAllOutSetAck MessageType = 514 MessageType_MessageType_MoneroTransactionSignInputRequest MessageType = 515 MessageType_MessageType_MoneroTransactionSignInputAck MessageType = 516 MessageType_MessageType_MoneroTransactionFinalRequest MessageType = 517 MessageType_MessageType_MoneroTransactionFinalAck MessageType = 518 MessageType_MessageType_MoneroKeyImageExportInitRequest MessageType = 530 MessageType_MessageType_MoneroKeyImageExportInitAck MessageType = 531 MessageType_MessageType_MoneroKeyImageSyncStepRequest MessageType = 532 MessageType_MessageType_MoneroKeyImageSyncStepAck MessageType = 533 MessageType_MessageType_MoneroKeyImageSyncFinalRequest MessageType = 534 MessageType_MessageType_MoneroKeyImageSyncFinalAck MessageType = 535 MessageType_MessageType_MoneroGetAddress MessageType = 540 MessageType_MessageType_MoneroAddress MessageType = 541 MessageType_MessageType_MoneroGetWatchKey MessageType = 542 MessageType_MessageType_MoneroWatchKey MessageType = 543 MessageType_MessageType_DebugMoneroDiagRequest MessageType = 546 MessageType_MessageType_DebugMoneroDiagAck MessageType = 547 MessageType_MessageType_MoneroGetTxKeyRequest MessageType = 550 MessageType_MessageType_MoneroGetTxKeyAck MessageType = 551 MessageType_MessageType_MoneroLiveRefreshStartRequest MessageType = 552 MessageType_MessageType_MoneroLiveRefreshStartAck MessageType = 553 MessageType_MessageType_MoneroLiveRefreshStepRequest MessageType = 554 MessageType_MessageType_MoneroLiveRefreshStepAck MessageType = 555 MessageType_MessageType_MoneroLiveRefreshFinalRequest MessageType = 556 MessageType_MessageType_MoneroLiveRefreshFinalAck MessageType = 557 // EOS MessageType_MessageType_EosGetPublicKey MessageType = 600 MessageType_MessageType_EosPublicKey MessageType = 601 MessageType_MessageType_EosSignTx MessageType = 602 MessageType_MessageType_EosTxActionRequest MessageType = 603 MessageType_MessageType_EosTxActionAck MessageType = 604 MessageType_MessageType_EosSignedTx MessageType = 605 // Binance MessageType_MessageType_BinanceGetAddress MessageType = 700 MessageType_MessageType_BinanceAddress MessageType = 701 MessageType_MessageType_BinanceGetPublicKey MessageType = 702 MessageType_MessageType_BinancePublicKey MessageType = 703 MessageType_MessageType_BinanceSignTx MessageType = 704 MessageType_MessageType_BinanceTxRequest MessageType = 705 MessageType_MessageType_BinanceTransferMsg MessageType = 706 MessageType_MessageType_BinanceOrderMsg MessageType = 707 MessageType_MessageType_BinanceCancelMsg MessageType = 708 MessageType_MessageType_BinanceSignedTx MessageType = 709 )
func (MessageType) Descriptor ¶ added in v1.14.6
func (MessageType) Descriptor() protoreflect.EnumDescriptor
func (MessageType) Enum ¶
func (x MessageType) Enum() *MessageType
func (MessageType) EnumDescriptor
deprecated
func (MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageType.Descriptor instead.
func (MessageType) Number ¶ added in v1.14.6
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶ added in v1.14.6
func (MessageType) Type() protoreflect.EnumType
func (*MessageType) UnmarshalJSON
deprecated
func (x *MessageType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type PassphraseAck ¶
type PassphraseAck struct { Passphrase *string `protobuf:"bytes,1,opt,name=passphrase" json:"passphrase,omitempty"` State []byte `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"` // expected device state // contains filtered or unexported fields }
* Request: Send passphrase back @next PassphraseStateRequest
func (*PassphraseAck) Descriptor
deprecated
func (*PassphraseAck) Descriptor() ([]byte, []int)
Deprecated: Use PassphraseAck.ProtoReflect.Descriptor instead.
func (*PassphraseAck) GetPassphrase ¶
func (x *PassphraseAck) GetPassphrase() string
func (*PassphraseAck) GetState ¶
func (x *PassphraseAck) GetState() []byte
func (*PassphraseAck) ProtoMessage ¶
func (*PassphraseAck) ProtoMessage()
func (*PassphraseAck) ProtoReflect ¶ added in v1.14.6
func (x *PassphraseAck) ProtoReflect() protoreflect.Message
func (*PassphraseAck) Reset ¶
func (x *PassphraseAck) Reset()
func (*PassphraseAck) String ¶
func (x *PassphraseAck) String() string
type PassphraseRequest ¶
type PassphraseRequest struct { OnDevice *bool `protobuf:"varint,1,opt,name=on_device,json=onDevice" json:"on_device,omitempty"` // passphrase is being entered on the device // contains filtered or unexported fields }
* Response: Device awaits encryption passphrase @auxstart @next PassphraseAck
func (*PassphraseRequest) Descriptor
deprecated
func (*PassphraseRequest) Descriptor() ([]byte, []int)
Deprecated: Use PassphraseRequest.ProtoReflect.Descriptor instead.
func (*PassphraseRequest) GetOnDevice ¶
func (x *PassphraseRequest) GetOnDevice() bool
func (*PassphraseRequest) ProtoMessage ¶
func (*PassphraseRequest) ProtoMessage()
func (*PassphraseRequest) ProtoReflect ¶ added in v1.14.6
func (x *PassphraseRequest) ProtoReflect() protoreflect.Message
func (*PassphraseRequest) Reset ¶
func (x *PassphraseRequest) Reset()
func (*PassphraseRequest) String ¶
func (x *PassphraseRequest) String() string
type PassphraseStateAck ¶
type PassphraseStateAck struct {
// contains filtered or unexported fields
}
* Request: Send passphrase state back @auxend
func (*PassphraseStateAck) Descriptor
deprecated
func (*PassphraseStateAck) Descriptor() ([]byte, []int)
Deprecated: Use PassphraseStateAck.ProtoReflect.Descriptor instead.
func (*PassphraseStateAck) ProtoMessage ¶
func (*PassphraseStateAck) ProtoMessage()
func (*PassphraseStateAck) ProtoReflect ¶ added in v1.14.6
func (x *PassphraseStateAck) ProtoReflect() protoreflect.Message
func (*PassphraseStateAck) Reset ¶
func (x *PassphraseStateAck) Reset()
func (*PassphraseStateAck) String ¶
func (x *PassphraseStateAck) String() string
type PassphraseStateRequest ¶
type PassphraseStateRequest struct { State []byte `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` // actual device state // contains filtered or unexported fields }
* Response: Device awaits passphrase state @next PassphraseStateAck
func (*PassphraseStateRequest) Descriptor
deprecated
func (*PassphraseStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use PassphraseStateRequest.ProtoReflect.Descriptor instead.
func (*PassphraseStateRequest) GetState ¶
func (x *PassphraseStateRequest) GetState() []byte
func (*PassphraseStateRequest) ProtoMessage ¶
func (*PassphraseStateRequest) ProtoMessage()
func (*PassphraseStateRequest) ProtoReflect ¶ added in v1.14.6
func (x *PassphraseStateRequest) ProtoReflect() protoreflect.Message
func (*PassphraseStateRequest) Reset ¶
func (x *PassphraseStateRequest) Reset()
func (*PassphraseStateRequest) String ¶
func (x *PassphraseStateRequest) String() string
type PinMatrixAck ¶
type PinMatrixAck struct { Pin *string `protobuf:"bytes,1,req,name=pin" json:"pin,omitempty"` // matrix encoded PIN entered by user // contains filtered or unexported fields }
* Request: Computer responds with encoded PIN @auxend
func (*PinMatrixAck) Descriptor
deprecated
func (*PinMatrixAck) Descriptor() ([]byte, []int)
Deprecated: Use PinMatrixAck.ProtoReflect.Descriptor instead.
func (*PinMatrixAck) GetPin ¶
func (x *PinMatrixAck) GetPin() string
func (*PinMatrixAck) ProtoMessage ¶
func (*PinMatrixAck) ProtoMessage()
func (*PinMatrixAck) ProtoReflect ¶ added in v1.14.6
func (x *PinMatrixAck) ProtoReflect() protoreflect.Message
func (*PinMatrixAck) Reset ¶
func (x *PinMatrixAck) Reset()
func (*PinMatrixAck) String ¶
func (x *PinMatrixAck) String() string
type PinMatrixRequest ¶
type PinMatrixRequest struct { Type *PinMatrixRequest_PinMatrixRequestType `protobuf:"varint,1,opt,name=type,enum=hw.trezor.messages.common.PinMatrixRequest_PinMatrixRequestType" json:"type,omitempty"` // contains filtered or unexported fields }
* Response: Device is asking computer to show PIN matrix and awaits PIN encoded using this matrix scheme @auxstart @next PinMatrixAck
func (*PinMatrixRequest) Descriptor
deprecated
func (*PinMatrixRequest) Descriptor() ([]byte, []int)
Deprecated: Use PinMatrixRequest.ProtoReflect.Descriptor instead.
func (*PinMatrixRequest) GetType ¶
func (x *PinMatrixRequest) GetType() PinMatrixRequest_PinMatrixRequestType
func (*PinMatrixRequest) ProtoMessage ¶
func (*PinMatrixRequest) ProtoMessage()
func (*PinMatrixRequest) ProtoReflect ¶ added in v1.14.6
func (x *PinMatrixRequest) ProtoReflect() protoreflect.Message
func (*PinMatrixRequest) Reset ¶
func (x *PinMatrixRequest) Reset()
func (*PinMatrixRequest) String ¶
func (x *PinMatrixRequest) String() string
type PinMatrixRequest_PinMatrixRequestType ¶
type PinMatrixRequest_PinMatrixRequestType int32
* Type of PIN request
const ( PinMatrixRequest_PinMatrixRequestType_Current PinMatrixRequest_PinMatrixRequestType = 1 PinMatrixRequest_PinMatrixRequestType_NewFirst PinMatrixRequest_PinMatrixRequestType = 2 PinMatrixRequest_PinMatrixRequestType_NewSecond PinMatrixRequest_PinMatrixRequestType = 3 )
func (PinMatrixRequest_PinMatrixRequestType) Descriptor ¶ added in v1.14.6
func (PinMatrixRequest_PinMatrixRequestType) Descriptor() protoreflect.EnumDescriptor
func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor
deprecated
func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PinMatrixRequest_PinMatrixRequestType.Descriptor instead.
func (PinMatrixRequest_PinMatrixRequestType) Number ¶ added in v1.14.6
func (x PinMatrixRequest_PinMatrixRequestType) Number() protoreflect.EnumNumber
func (PinMatrixRequest_PinMatrixRequestType) String ¶
func (x PinMatrixRequest_PinMatrixRequestType) String() string
func (PinMatrixRequest_PinMatrixRequestType) Type ¶ added in v1.14.6
func (PinMatrixRequest_PinMatrixRequestType) Type() protoreflect.EnumType
func (*PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON
deprecated
func (x *PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Ping ¶
type Ping struct { Message *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` // message to send back in Success message ButtonProtection *bool `protobuf:"varint,2,opt,name=button_protection,json=buttonProtection" json:"button_protection,omitempty"` // ask for button press PinProtection *bool `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // ask for PIN if set in device PassphraseProtection *bool `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // ask for passphrase if set in device // contains filtered or unexported fields }
* Request: Test if the device is alive, device sends back the message in Success response @start @next Success
func (*Ping) Descriptor
deprecated
func (*Ping) GetButtonProtection ¶
func (*Ping) GetMessage ¶
func (*Ping) GetPassphraseProtection ¶
func (*Ping) GetPinProtection ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶ added in v1.14.6
func (x *Ping) ProtoReflect() protoreflect.Message
type RecoveryDevice ¶
type RecoveryDevice struct { WordCount *uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount" json:"word_count,omitempty"` // number of words in BIP-39 mnemonic PassphraseProtection *bool `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // enable master node encryption using passphrase PinProtection *bool `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // enable PIN protection Language *string `protobuf:"bytes,4,opt,name=language,def=english" json:"language,omitempty"` // device language Label *string `protobuf:"bytes,5,opt,name=label" json:"label,omitempty"` // device label EnforceWordlist *bool `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist" json:"enforce_wordlist,omitempty"` // enforce BIP-39 wordlist during the process // 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"` // supported recovery type U2FCounter *uint32 `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // U2F counter DryRun *bool `protobuf:"varint,10,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"` // perform dry-run recovery workflow (for safe mnemonic validation) // contains filtered or unexported fields }
* 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
deprecated
func (*RecoveryDevice) Descriptor() ([]byte, []int)
Deprecated: Use RecoveryDevice.ProtoReflect.Descriptor instead.
func (*RecoveryDevice) GetDryRun ¶
func (x *RecoveryDevice) GetDryRun() bool
func (*RecoveryDevice) GetEnforceWordlist ¶
func (x *RecoveryDevice) GetEnforceWordlist() bool
func (*RecoveryDevice) GetLabel ¶
func (x *RecoveryDevice) GetLabel() string
func (*RecoveryDevice) GetLanguage ¶
func (x *RecoveryDevice) GetLanguage() string
func (*RecoveryDevice) GetPassphraseProtection ¶
func (x *RecoveryDevice) GetPassphraseProtection() bool
func (*RecoveryDevice) GetPinProtection ¶
func (x *RecoveryDevice) GetPinProtection() bool
func (*RecoveryDevice) GetType ¶
func (x *RecoveryDevice) GetType() RecoveryDevice_RecoveryDeviceType
func (*RecoveryDevice) GetU2FCounter ¶
func (x *RecoveryDevice) GetU2FCounter() uint32
func (*RecoveryDevice) GetWordCount ¶
func (x *RecoveryDevice) GetWordCount() uint32
func (*RecoveryDevice) ProtoMessage ¶
func (*RecoveryDevice) ProtoMessage()
func (*RecoveryDevice) ProtoReflect ¶ added in v1.14.6
func (x *RecoveryDevice) ProtoReflect() protoreflect.Message
func (*RecoveryDevice) Reset ¶
func (x *RecoveryDevice) Reset()
func (*RecoveryDevice) String ¶
func (x *RecoveryDevice) String() string
type RecoveryDevice_RecoveryDeviceType ¶
type RecoveryDevice_RecoveryDeviceType int32
* Type of recovery procedure. These should be used as bitmask, e.g., `RecoveryDeviceType_ScrambledWords | RecoveryDeviceType_Matrix` listing every method supported by the host computer.
Note that ScrambledWords must be supported by every implementation for backward compatibility; there is no way to not support it.
const ( // use powers of two when extending this field RecoveryDevice_RecoveryDeviceType_ScrambledWords RecoveryDevice_RecoveryDeviceType = 0 // words in scrambled order RecoveryDevice_RecoveryDeviceType_Matrix RecoveryDevice_RecoveryDeviceType = 1 // matrix recovery type )
func (RecoveryDevice_RecoveryDeviceType) Descriptor ¶ added in v1.14.6
func (RecoveryDevice_RecoveryDeviceType) Descriptor() protoreflect.EnumDescriptor
func (RecoveryDevice_RecoveryDeviceType) Enum ¶
func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType
func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor
deprecated
func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecoveryDevice_RecoveryDeviceType.Descriptor instead.
func (RecoveryDevice_RecoveryDeviceType) Number ¶ added in v1.14.6
func (x RecoveryDevice_RecoveryDeviceType) Number() protoreflect.EnumNumber
func (RecoveryDevice_RecoveryDeviceType) String ¶
func (x RecoveryDevice_RecoveryDeviceType) String() string
func (RecoveryDevice_RecoveryDeviceType) Type ¶ added in v1.14.6
func (RecoveryDevice_RecoveryDeviceType) Type() protoreflect.EnumType
func (*RecoveryDevice_RecoveryDeviceType) UnmarshalJSON
deprecated
func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ResetDevice ¶
type ResetDevice struct { DisplayRandom *bool `protobuf:"varint,1,opt,name=display_random,json=displayRandom" json:"display_random,omitempty"` // display entropy generated by the device before asking for additional entropy Strength *uint32 `protobuf:"varint,2,opt,name=strength,def=256" json:"strength,omitempty"` // strength of seed in bits PassphraseProtection *bool `protobuf:"varint,3,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // enable master node encryption using passphrase PinProtection *bool `protobuf:"varint,4,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // enable PIN protection Language *string `protobuf:"bytes,5,opt,name=language,def=english" json:"language,omitempty"` // device language Label *string `protobuf:"bytes,6,opt,name=label" json:"label,omitempty"` // device label U2FCounter *uint32 `protobuf:"varint,7,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // U2F counter SkipBackup *bool `protobuf:"varint,8,opt,name=skip_backup,json=skipBackup" json:"skip_backup,omitempty"` // postpone seed backup to BackupDevice workflow NoBackup *bool `protobuf:"varint,9,opt,name=no_backup,json=noBackup" json:"no_backup,omitempty"` // indicate that no backup is going to be made // contains filtered or unexported fields }
* Request: Ask device to do initialization involving user interaction @start @next EntropyRequest @next Failure
func (*ResetDevice) Descriptor
deprecated
func (*ResetDevice) Descriptor() ([]byte, []int)
Deprecated: Use ResetDevice.ProtoReflect.Descriptor instead.
func (*ResetDevice) GetDisplayRandom ¶
func (x *ResetDevice) GetDisplayRandom() bool
func (*ResetDevice) GetLabel ¶
func (x *ResetDevice) GetLabel() string
func (*ResetDevice) GetLanguage ¶
func (x *ResetDevice) GetLanguage() string
func (*ResetDevice) GetNoBackup ¶
func (x *ResetDevice) GetNoBackup() bool
func (*ResetDevice) GetPassphraseProtection ¶
func (x *ResetDevice) GetPassphraseProtection() bool
func (*ResetDevice) GetPinProtection ¶
func (x *ResetDevice) GetPinProtection() bool
func (*ResetDevice) GetSkipBackup ¶
func (x *ResetDevice) GetSkipBackup() bool
func (*ResetDevice) GetStrength ¶
func (x *ResetDevice) GetStrength() uint32
func (*ResetDevice) GetU2FCounter ¶
func (x *ResetDevice) GetU2FCounter() uint32
func (*ResetDevice) ProtoMessage ¶
func (*ResetDevice) ProtoMessage()
func (*ResetDevice) ProtoReflect ¶ added in v1.14.6
func (x *ResetDevice) ProtoReflect() protoreflect.Message
func (*ResetDevice) Reset ¶
func (x *ResetDevice) Reset()
func (*ResetDevice) String ¶
func (x *ResetDevice) String() string
type SetU2FCounter ¶
type SetU2FCounter struct { U2FCounter *uint32 `protobuf:"varint,1,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // counter // contains filtered or unexported fields }
* Request: Set U2F counter @start @next Success
func (*SetU2FCounter) Descriptor
deprecated
func (*SetU2FCounter) Descriptor() ([]byte, []int)
Deprecated: Use SetU2FCounter.ProtoReflect.Descriptor instead.
func (*SetU2FCounter) GetU2FCounter ¶
func (x *SetU2FCounter) GetU2FCounter() uint32
func (*SetU2FCounter) ProtoMessage ¶
func (*SetU2FCounter) ProtoMessage()
func (*SetU2FCounter) ProtoReflect ¶ added in v1.14.6
func (x *SetU2FCounter) ProtoReflect() protoreflect.Message
func (*SetU2FCounter) Reset ¶
func (x *SetU2FCounter) Reset()
func (*SetU2FCounter) String ¶
func (x *SetU2FCounter) String() string
type Success ¶
type Success struct { Message *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` // human readable description of action or request-specific payload // contains filtered or unexported fields }
* Response: Success of the previous request @end
func (*Success) Descriptor
deprecated
func (*Success) GetMessage ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) ProtoReflect ¶ added in v1.14.6
func (x *Success) ProtoReflect() protoreflect.Message
type WipeDevice ¶
type WipeDevice struct {
// contains filtered or unexported fields
}
* Request: Request device to wipe all sensitive data and settings @start @next Success @next Failure
func (*WipeDevice) Descriptor
deprecated
func (*WipeDevice) Descriptor() ([]byte, []int)
Deprecated: Use WipeDevice.ProtoReflect.Descriptor instead.
func (*WipeDevice) ProtoMessage ¶
func (*WipeDevice) ProtoMessage()
func (*WipeDevice) ProtoReflect ¶ added in v1.14.6
func (x *WipeDevice) ProtoReflect() protoreflect.Message
func (*WipeDevice) Reset ¶
func (x *WipeDevice) Reset()
func (*WipeDevice) String ¶
func (x *WipeDevice) String() string
type WordAck ¶
type WordAck struct { Word *string `protobuf:"bytes,1,req,name=word" json:"word,omitempty"` // one word of mnemonic on asked position // contains filtered or unexported fields }
* Request: Computer replies with word from the mnemonic @next WordRequest @next Success @next Failure
func (*WordAck) Descriptor
deprecated
func (*WordAck) ProtoMessage ¶
func (*WordAck) ProtoMessage()
func (*WordAck) ProtoReflect ¶ added in v1.14.6
func (x *WordAck) ProtoReflect() protoreflect.Message
type WordRequest ¶
type WordRequest struct { Type *WordRequest_WordRequestType `protobuf:"varint,1,opt,name=type,enum=hw.trezor.messages.management.WordRequest_WordRequestType" json:"type,omitempty"` // contains filtered or unexported fields }
* 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
deprecated
func (*WordRequest) Descriptor() ([]byte, []int)
Deprecated: Use WordRequest.ProtoReflect.Descriptor instead.
func (*WordRequest) GetType ¶
func (x *WordRequest) GetType() WordRequest_WordRequestType
func (*WordRequest) ProtoMessage ¶
func (*WordRequest) ProtoMessage()
func (*WordRequest) ProtoReflect ¶ added in v1.14.6
func (x *WordRequest) ProtoReflect() protoreflect.Message
func (*WordRequest) Reset ¶
func (x *WordRequest) Reset()
func (*WordRequest) String ¶
func (x *WordRequest) String() string
type WordRequest_WordRequestType ¶
type WordRequest_WordRequestType int32
* Type of Recovery Word request
const ( WordRequest_WordRequestType_Plain WordRequest_WordRequestType = 0 WordRequest_WordRequestType_Matrix9 WordRequest_WordRequestType = 1 WordRequest_WordRequestType_Matrix6 WordRequest_WordRequestType = 2 )
func (WordRequest_WordRequestType) Descriptor ¶ added in v1.14.6
func (WordRequest_WordRequestType) Descriptor() protoreflect.EnumDescriptor
func (WordRequest_WordRequestType) Enum ¶
func (x WordRequest_WordRequestType) Enum() *WordRequest_WordRequestType
func (WordRequest_WordRequestType) EnumDescriptor
deprecated
func (WordRequest_WordRequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use WordRequest_WordRequestType.Descriptor instead.
func (WordRequest_WordRequestType) Number ¶ added in v1.14.6
func (x WordRequest_WordRequestType) Number() protoreflect.EnumNumber
func (WordRequest_WordRequestType) String ¶
func (x WordRequest_WordRequestType) String() string
func (WordRequest_WordRequestType) Type ¶ added in v1.14.6
func (WordRequest_WordRequestType) Type() protoreflect.EnumType
func (*WordRequest_WordRequestType) UnmarshalJSON
deprecated
func (x *WordRequest_WordRequestType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.