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() DisplayRotation
- func (x *ApplySettings) GetExperimentalFeatures() bool
- func (x *ApplySettings) GetHapticFeedback() bool
- func (x *ApplySettings) GetHidePassphraseFromHost() bool
- func (x *ApplySettings) GetHomescreen() []byte
- func (x *ApplySettings) GetHomescreenLength() uint32
- func (x *ApplySettings) GetLabel() string
- func (x *ApplySettings) GetLanguage() stringdeprecated
- func (x *ApplySettings) GetPassphraseAlwaysOnDevice() bool
- func (x *ApplySettings) GetSafetyChecks() SafetyCheckLevel
- func (x *ApplySettings) GetUsePassphrase() bool
- func (x *ApplySettings) GetXPassphraseSource() uint32deprecated
- func (*ApplySettings) ProtoMessage()
- func (x *ApplySettings) ProtoReflect() protoreflect.Message
- func (x *ApplySettings) Reset()
- func (x *ApplySettings) String() string
- type AuthenticateDevice
- func (*AuthenticateDevice) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateDevice) GetChallenge() []byte
- func (*AuthenticateDevice) ProtoMessage()
- func (x *AuthenticateDevice) ProtoReflect() protoreflect.Message
- func (x *AuthenticateDevice) Reset()
- func (x *AuthenticateDevice) String() string
- type AuthenticityProof
- func (*AuthenticityProof) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticityProof) GetCertificates() [][]byte
- func (x *AuthenticityProof) GetSignature() []byte
- func (*AuthenticityProof) ProtoMessage()
- func (x *AuthenticityProof) ProtoReflect() protoreflect.Message
- func (x *AuthenticityProof) Reset()
- func (x *AuthenticityProof) String() string
- type BackupDevice
- func (*BackupDevice) Descriptor() ([]byte, []int)deprecated
- func (x *BackupDevice) GetGroupThreshold() uint32
- func (x *BackupDevice) GetGroups() []*BackupDevice_Slip39Group
- func (*BackupDevice) ProtoMessage()
- func (x *BackupDevice) ProtoReflect() protoreflect.Message
- func (x *BackupDevice) Reset()
- func (x *BackupDevice) String() string
- type BackupDevice_Slip39Group
- func (*BackupDevice_Slip39Group) Descriptor() ([]byte, []int)deprecated
- func (x *BackupDevice_Slip39Group) GetMemberCount() uint32
- func (x *BackupDevice_Slip39Group) GetMemberThreshold() uint32
- func (*BackupDevice_Slip39Group) ProtoMessage()
- func (x *BackupDevice_Slip39Group) ProtoReflect() protoreflect.Message
- func (x *BackupDevice_Slip39Group) Reset()
- func (x *BackupDevice_Slip39Group) String() string
- type BackupType
- func (BackupType) Descriptor() protoreflect.EnumDescriptor
- func (x BackupType) Enum() *BackupType
- func (BackupType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BackupType) Number() protoreflect.EnumNumber
- func (x BackupType) String() string
- func (BackupType) Type() protoreflect.EnumType
- func (x *BackupType) UnmarshalJSON(b []byte) errordeprecated
- type ButtonAck
- type ButtonRequest
- func (*ButtonRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ButtonRequest) GetCode() ButtonRequest_ButtonRequestType
- func (x *ButtonRequest) GetName() string
- func (x *ButtonRequest) GetPages() uint32
- 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 CancelAuthorization
- type ChangeLanguage
- func (*ChangeLanguage) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeLanguage) GetDataLength() uint32
- func (x *ChangeLanguage) GetShowDisplay() bool
- func (*ChangeLanguage) ProtoMessage()
- func (x *ChangeLanguage) ProtoReflect() protoreflect.Message
- func (x *ChangeLanguage) Reset()
- func (x *ChangeLanguage) String() string
- type ChangePin
- type ChangeWipeCode
- type DataChunkAck
- type DataChunkRequest
- func (*DataChunkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DataChunkRequest) GetDataLength() uint32
- func (x *DataChunkRequest) GetDataOffset() uint32
- func (*DataChunkRequest) ProtoMessage()
- func (x *DataChunkRequest) ProtoReflect() protoreflect.Message
- func (x *DataChunkRequest) Reset()
- func (x *DataChunkRequest) String() string
- type Deprecated_PassphraseStateAckdeprecated
- func (*Deprecated_PassphraseStateAck) Descriptor() ([]byte, []int)deprecated
- func (*Deprecated_PassphraseStateAck) ProtoMessage()
- func (x *Deprecated_PassphraseStateAck) ProtoReflect() protoreflect.Message
- func (x *Deprecated_PassphraseStateAck) Reset()
- func (x *Deprecated_PassphraseStateAck) String() string
- type Deprecated_PassphraseStateRequestdeprecated
- func (*Deprecated_PassphraseStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *Deprecated_PassphraseStateRequest) GetState() []byte
- func (*Deprecated_PassphraseStateRequest) ProtoMessage()
- func (x *Deprecated_PassphraseStateRequest) ProtoReflect() protoreflect.Message
- func (x *Deprecated_PassphraseStateRequest) Reset()
- func (x *Deprecated_PassphraseStateRequest) String() string
- type DisplayRotation
- func (DisplayRotation) Descriptor() protoreflect.EnumDescriptor
- func (x DisplayRotation) Enum() *DisplayRotation
- func (DisplayRotation) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisplayRotation) Number() protoreflect.EnumNumber
- func (x DisplayRotation) String() string
- func (DisplayRotation) Type() protoreflect.EnumType
- func (x *DisplayRotation) UnmarshalJSON(b []byte) errordeprecated
- type DoPreauthorized
- type EndSession
- type Entropy
- type EntropyAck
- type EntropyCheckContinue
- func (*EntropyCheckContinue) Descriptor() ([]byte, []int)deprecated
- func (x *EntropyCheckContinue) GetFinish() bool
- func (*EntropyCheckContinue) ProtoMessage()
- func (x *EntropyCheckContinue) ProtoReflect() protoreflect.Message
- func (x *EntropyCheckContinue) Reset()
- func (x *EntropyCheckContinue) String() string
- type EntropyCheckReady
- type EntropyRequest
- func (*EntropyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EntropyRequest) GetEntropyCommitment() []byte
- func (x *EntropyRequest) GetPrevEntropy() []byte
- func (*EntropyRequest) ProtoMessage()
- func (x *EntropyRequest) ProtoReflect() protoreflect.Message
- func (x *EntropyRequest) Reset()
- func (x *EntropyRequest) String() string
- type EthereumAddress
- func (*EthereumAddress) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumAddress) GetAddress() string
- func (x *EthereumAddress) GetXOldAddress() []bytedeprecated
- func (*EthereumAddress) ProtoMessage()
- func (x *EthereumAddress) ProtoReflect() protoreflect.Message
- func (x *EthereumAddress) Reset()
- func (x *EthereumAddress) String() string
- type EthereumDefinitions
- func (*EthereumDefinitions) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumDefinitions) GetEncodedNetwork() []byte
- func (x *EthereumDefinitions) GetEncodedToken() []byte
- func (*EthereumDefinitions) ProtoMessage()
- func (x *EthereumDefinitions) ProtoReflect() protoreflect.Message
- func (x *EthereumDefinitions) Reset()
- func (x *EthereumDefinitions) String() string
- type EthereumGetAddress
- func (*EthereumGetAddress) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumGetAddress) GetAddressN() []uint32
- func (x *EthereumGetAddress) GetChunkify() bool
- func (x *EthereumGetAddress) GetEncodedNetwork() []byte
- 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) GetAddress() 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) GetChunkify() bool
- func (x *EthereumSignMessage) GetEncodedNetwork() []byte
- 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() uint64
- func (x *EthereumSignTx) GetChunkify() bool
- func (x *EthereumSignTx) GetDataInitialChunk() []byte
- func (x *EthereumSignTx) GetDataLength() uint32
- func (x *EthereumSignTx) GetDefinitions() *EthereumDefinitions
- func (x *EthereumSignTx) GetGasLimit() []byte
- func (x *EthereumSignTx) GetGasPrice() []byte
- func (x *EthereumSignTx) GetNonce() []byte
- func (x *EthereumSignTx) GetTo() 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 EthereumSignTxEIP1559
- func (*EthereumSignTxEIP1559) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTxEIP1559) GetAccessList() []*EthereumSignTxEIP1559_EthereumAccessList
- func (x *EthereumSignTxEIP1559) GetAddressN() []uint32
- func (x *EthereumSignTxEIP1559) GetChainId() uint64
- func (x *EthereumSignTxEIP1559) GetChunkify() bool
- func (x *EthereumSignTxEIP1559) GetDataInitialChunk() []byte
- func (x *EthereumSignTxEIP1559) GetDataLength() uint32
- func (x *EthereumSignTxEIP1559) GetDefinitions() *EthereumDefinitions
- func (x *EthereumSignTxEIP1559) GetGasLimit() []byte
- func (x *EthereumSignTxEIP1559) GetMaxGasFee() []byte
- func (x *EthereumSignTxEIP1559) GetMaxPriorityFee() []byte
- func (x *EthereumSignTxEIP1559) GetNonce() []byte
- func (x *EthereumSignTxEIP1559) GetTo() string
- func (x *EthereumSignTxEIP1559) GetValue() []byte
- func (*EthereumSignTxEIP1559) ProtoMessage()
- func (x *EthereumSignTxEIP1559) ProtoReflect() protoreflect.Message
- func (x *EthereumSignTxEIP1559) Reset()
- func (x *EthereumSignTxEIP1559) String() string
- type EthereumSignTxEIP1559_EthereumAccessList
- func (*EthereumSignTxEIP1559_EthereumAccessList) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTxEIP1559_EthereumAccessList) GetAddress() string
- func (x *EthereumSignTxEIP1559_EthereumAccessList) GetStorageKeys() [][]byte
- func (*EthereumSignTxEIP1559_EthereumAccessList) ProtoMessage()
- func (x *EthereumSignTxEIP1559_EthereumAccessList) ProtoReflect() protoreflect.Message
- func (x *EthereumSignTxEIP1559_EthereumAccessList) Reset()
- func (x *EthereumSignTxEIP1559_EthereumAccessList) String() string
- type EthereumSignTypedData
- func (*EthereumSignTypedData) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTypedData) GetAddressN() []uint32
- func (x *EthereumSignTypedData) GetDefinitions() *EthereumDefinitions
- func (x *EthereumSignTypedData) GetMetamaskV4Compat() bool
- func (x *EthereumSignTypedData) GetPrimaryType() string
- func (x *EthereumSignTypedData) GetShowMessageHash() []byte
- func (*EthereumSignTypedData) ProtoMessage()
- func (x *EthereumSignTypedData) ProtoReflect() protoreflect.Message
- func (x *EthereumSignTypedData) Reset()
- func (x *EthereumSignTypedData) String() string
- type EthereumSignTypedHash
- func (*EthereumSignTypedHash) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTypedHash) GetAddressN() []uint32
- func (x *EthereumSignTypedHash) GetDomainSeparatorHash() []byte
- func (x *EthereumSignTypedHash) GetEncodedNetwork() []byte
- func (x *EthereumSignTypedHash) GetMessageHash() []byte
- func (*EthereumSignTypedHash) ProtoMessage()
- func (x *EthereumSignTypedHash) ProtoReflect() protoreflect.Message
- func (x *EthereumSignTypedHash) Reset()
- func (x *EthereumSignTypedHash) 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 EthereumTypedDataSignature
- func (*EthereumTypedDataSignature) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataSignature) GetAddress() string
- func (x *EthereumTypedDataSignature) GetSignature() []byte
- func (*EthereumTypedDataSignature) ProtoMessage()
- func (x *EthereumTypedDataSignature) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataSignature) Reset()
- func (x *EthereumTypedDataSignature) String() string
- type EthereumTypedDataStructAck
- func (*EthereumTypedDataStructAck) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataStructAck) GetMembers() []*EthereumTypedDataStructAck_EthereumStructMember
- func (*EthereumTypedDataStructAck) ProtoMessage()
- func (x *EthereumTypedDataStructAck) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataStructAck) Reset()
- func (x *EthereumTypedDataStructAck) String() string
- type EthereumTypedDataStructAck_EthereumDataType
- func (EthereumTypedDataStructAck_EthereumDataType) Descriptor() protoreflect.EnumDescriptor
- func (x EthereumTypedDataStructAck_EthereumDataType) Enum() *EthereumTypedDataStructAck_EthereumDataType
- func (EthereumTypedDataStructAck_EthereumDataType) EnumDescriptor() ([]byte, []int)deprecated
- func (x EthereumTypedDataStructAck_EthereumDataType) Number() protoreflect.EnumNumber
- func (x EthereumTypedDataStructAck_EthereumDataType) String() string
- func (EthereumTypedDataStructAck_EthereumDataType) Type() protoreflect.EnumType
- func (x *EthereumTypedDataStructAck_EthereumDataType) UnmarshalJSON(b []byte) errordeprecated
- type EthereumTypedDataStructAck_EthereumFieldType
- func (*EthereumTypedDataStructAck_EthereumFieldType) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataStructAck_EthereumFieldType) GetDataType() EthereumTypedDataStructAck_EthereumDataType
- func (x *EthereumTypedDataStructAck_EthereumFieldType) GetEntryType() *EthereumTypedDataStructAck_EthereumFieldType
- func (x *EthereumTypedDataStructAck_EthereumFieldType) GetSize() uint32
- func (x *EthereumTypedDataStructAck_EthereumFieldType) GetStructName() string
- func (*EthereumTypedDataStructAck_EthereumFieldType) ProtoMessage()
- func (x *EthereumTypedDataStructAck_EthereumFieldType) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataStructAck_EthereumFieldType) Reset()
- func (x *EthereumTypedDataStructAck_EthereumFieldType) String() string
- type EthereumTypedDataStructAck_EthereumStructMember
- func (*EthereumTypedDataStructAck_EthereumStructMember) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataStructAck_EthereumStructMember) GetName() string
- func (x *EthereumTypedDataStructAck_EthereumStructMember) GetType() *EthereumTypedDataStructAck_EthereumFieldType
- func (*EthereumTypedDataStructAck_EthereumStructMember) ProtoMessage()
- func (x *EthereumTypedDataStructAck_EthereumStructMember) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataStructAck_EthereumStructMember) Reset()
- func (x *EthereumTypedDataStructAck_EthereumStructMember) String() string
- type EthereumTypedDataStructRequest
- func (*EthereumTypedDataStructRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataStructRequest) GetName() string
- func (*EthereumTypedDataStructRequest) ProtoMessage()
- func (x *EthereumTypedDataStructRequest) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataStructRequest) Reset()
- func (x *EthereumTypedDataStructRequest) String() string
- type EthereumTypedDataValueAck
- func (*EthereumTypedDataValueAck) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataValueAck) GetValue() []byte
- func (*EthereumTypedDataValueAck) ProtoMessage()
- func (x *EthereumTypedDataValueAck) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataValueAck) Reset()
- func (x *EthereumTypedDataValueAck) String() string
- type EthereumTypedDataValueRequest
- func (*EthereumTypedDataValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTypedDataValueRequest) GetMemberPath() []uint32
- func (*EthereumTypedDataValueRequest) ProtoMessage()
- func (x *EthereumTypedDataValueRequest) ProtoReflect() protoreflect.Message
- func (x *EthereumTypedDataValueRequest) Reset()
- func (x *EthereumTypedDataValueRequest) String() string
- type EthereumVerifyMessage
- func (*EthereumVerifyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumVerifyMessage) GetAddress() string
- func (x *EthereumVerifyMessage) GetChunkify() bool
- 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) GetAutoLockDelayMs() uint32
- func (x *Features) GetBackupAvailability() Features_BackupAvailability
- func (x *Features) GetBackupType() BackupType
- func (x *Features) GetBootloaderHash() []byte
- func (x *Features) GetBootloaderLocked() bool
- func (x *Features) GetBootloaderMode() bool
- func (x *Features) GetBusy() bool
- func (x *Features) GetCapabilities() []Features_Capability
- func (x *Features) GetDeviceId() string
- func (x *Features) GetDisplayRotation() DisplayRotation
- func (x *Features) GetExperimentalFeatures() bool
- 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) GetHapticFeedback() bool
- func (x *Features) GetHidePassphraseFromHost() bool
- func (x *Features) GetHomescreenFormat() HomescreenFormat
- func (x *Features) GetHomescreenHeight() uint32
- func (x *Features) GetHomescreenWidth() uint32
- func (x *Features) GetImported() bool
- func (x *Features) GetInitialized() bool
- func (x *Features) GetInternalModel() string
- func (x *Features) GetLabel() string
- func (x *Features) GetLanguage() string
- func (x *Features) GetLanguageVersionMatches() bool
- func (x *Features) GetMajorVersion() uint32
- func (x *Features) GetMinorVersion() uint32
- func (x *Features) GetModel() string
- func (x *Features) GetNoBackup() bool
- func (x *Features) GetOptigaSec() uint32
- func (x *Features) GetPassphraseAlwaysOnDevice() bool
- func (x *Features) GetPassphraseProtection() bool
- func (x *Features) GetPatchVersion() uint32
- func (x *Features) GetPinProtection() bool
- func (x *Features) GetRecoveryStatus() Features_RecoveryStatus
- func (x *Features) GetRecoveryType() RecoveryType
- func (x *Features) GetRevision() []byte
- func (x *Features) GetSafetyChecks() SafetyCheckLevel
- func (x *Features) GetSdCardPresent() bool
- func (x *Features) GetSdProtection() bool
- func (x *Features) GetSessionId() []byte
- func (x *Features) GetUnfinishedBackup() bool
- func (x *Features) GetUnitBtconly() bool
- func (x *Features) GetUnitColor() uint32
- func (x *Features) GetUnitPackaging() uint32
- func (x *Features) GetUnlocked() bool
- func (x *Features) GetVendor() string
- func (x *Features) GetWipeCodeProtection() bool
- func (x *Features) GetXPassphraseCached() booldeprecated
- func (*Features) ProtoMessage()
- func (x *Features) ProtoReflect() protoreflect.Message
- func (x *Features) Reset()
- func (x *Features) String() string
- type Features_BackupAvailability
- func (Features_BackupAvailability) Descriptor() protoreflect.EnumDescriptor
- func (x Features_BackupAvailability) Enum() *Features_BackupAvailability
- func (Features_BackupAvailability) EnumDescriptor() ([]byte, []int)deprecated
- func (x Features_BackupAvailability) Number() protoreflect.EnumNumber
- func (x Features_BackupAvailability) String() string
- func (Features_BackupAvailability) Type() protoreflect.EnumType
- func (x *Features_BackupAvailability) UnmarshalJSON(b []byte) errordeprecated
- type Features_Capability
- func (Features_Capability) Descriptor() protoreflect.EnumDescriptor
- func (x Features_Capability) Enum() *Features_Capability
- func (Features_Capability) EnumDescriptor() ([]byte, []int)deprecated
- func (x Features_Capability) Number() protoreflect.EnumNumber
- func (x Features_Capability) String() string
- func (Features_Capability) Type() protoreflect.EnumType
- func (x *Features_Capability) UnmarshalJSON(b []byte) errordeprecated
- type Features_RecoveryStatus
- func (Features_RecoveryStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Features_RecoveryStatus) Enum() *Features_RecoveryStatus
- func (Features_RecoveryStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Features_RecoveryStatus) Number() protoreflect.EnumNumber
- func (x Features_RecoveryStatus) String() string
- func (Features_RecoveryStatus) Type() protoreflect.EnumType
- func (x *Features_RecoveryStatus) UnmarshalJSON(b []byte) errordeprecated
- type FirmwareHash
- type GetEntropy
- type GetFeatures
- type GetFirmwareHash
- type GetNextU2FCounter
- type GetNonce
- 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 HomescreenFormat
- func (HomescreenFormat) Descriptor() protoreflect.EnumDescriptor
- func (x HomescreenFormat) Enum() *HomescreenFormat
- func (HomescreenFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x HomescreenFormat) Number() protoreflect.EnumNumber
- func (x HomescreenFormat) String() string
- func (HomescreenFormat) Type() protoreflect.EnumType
- func (x *HomescreenFormat) UnmarshalJSON(b []byte) errordeprecated
- type Initialize
- func (*Initialize) Descriptor() ([]byte, []int)deprecated
- func (x *Initialize) GetDeriveCardano() bool
- func (x *Initialize) GetSessionId() []byte
- func (x *Initialize) GetXSkipPassphrase() booldeprecated
- func (*Initialize) ProtoMessage()
- func (x *Initialize) ProtoReflect() protoreflect.Message
- func (x *Initialize) Reset()
- func (x *Initialize) String() string
- type LoadDevice
- func (*LoadDevice) Descriptor() ([]byte, []int)deprecated
- func (x *LoadDevice) GetLabel() string
- func (x *LoadDevice) GetLanguage() stringdeprecated
- func (x *LoadDevice) GetMnemonics() []string
- func (x *LoadDevice) GetNeedsBackup() bool
- func (x *LoadDevice) GetNoBackup() bool
- 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 LockDevice
- 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 NextU2FCounter
- type Nonce
- type PassphraseAck
- func (*PassphraseAck) Descriptor() ([]byte, []int)deprecated
- func (x *PassphraseAck) GetOnDevice() bool
- func (x *PassphraseAck) GetPassphrase() string
- func (x *PassphraseAck) GetXState() []bytedeprecated
- func (*PassphraseAck) ProtoMessage()
- func (x *PassphraseAck) ProtoReflect() protoreflect.Message
- func (x *PassphraseAck) Reset()
- func (x *PassphraseAck) String() string
- type PassphraseRequest
- func (*PassphraseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PassphraseRequest) GetXOnDevice() booldeprecated
- func (*PassphraseRequest) ProtoMessage()
- func (x *PassphraseRequest) ProtoReflect() protoreflect.Message
- func (x *PassphraseRequest) Reset()
- func (x *PassphraseRequest) 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
- type PreauthorizedRequest
- type RebootToBootloader
- func (*RebootToBootloader) Descriptor() ([]byte, []int)deprecated
- func (x *RebootToBootloader) GetBootCommand() RebootToBootloader_BootCommand
- func (x *RebootToBootloader) GetFirmwareHeader() []byte
- func (x *RebootToBootloader) GetLanguageDataLength() uint32
- func (*RebootToBootloader) ProtoMessage()
- func (x *RebootToBootloader) ProtoReflect() protoreflect.Message
- func (x *RebootToBootloader) Reset()
- func (x *RebootToBootloader) String() string
- type RebootToBootloader_BootCommand
- func (RebootToBootloader_BootCommand) Descriptor() protoreflect.EnumDescriptor
- func (x RebootToBootloader_BootCommand) Enum() *RebootToBootloader_BootCommand
- func (RebootToBootloader_BootCommand) EnumDescriptor() ([]byte, []int)deprecated
- func (x RebootToBootloader_BootCommand) Number() protoreflect.EnumNumber
- func (x RebootToBootloader_BootCommand) String() string
- func (RebootToBootloader_BootCommand) Type() protoreflect.EnumType
- func (x *RebootToBootloader_BootCommand) UnmarshalJSON(b []byte) errordeprecated
- type RecoveryDevice
- func (*RecoveryDevice) Descriptor() ([]byte, []int)deprecated
- func (x *RecoveryDevice) GetEnforceWordlist() bool
- func (x *RecoveryDevice) GetInputMethod() RecoveryDevice_RecoveryDeviceInputMethod
- func (x *RecoveryDevice) GetLabel() string
- func (x *RecoveryDevice) GetLanguage() stringdeprecated
- func (x *RecoveryDevice) GetPassphraseProtection() bool
- func (x *RecoveryDevice) GetPinProtection() bool
- func (x *RecoveryDevice) GetType() RecoveryType
- 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_RecoveryDeviceInputMethod
- func (RecoveryDevice_RecoveryDeviceInputMethod) Descriptor() protoreflect.EnumDescriptor
- func (x RecoveryDevice_RecoveryDeviceInputMethod) Enum() *RecoveryDevice_RecoveryDeviceInputMethod
- func (RecoveryDevice_RecoveryDeviceInputMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecoveryDevice_RecoveryDeviceInputMethod) Number() protoreflect.EnumNumber
- func (x RecoveryDevice_RecoveryDeviceInputMethod) String() string
- func (RecoveryDevice_RecoveryDeviceInputMethod) Type() protoreflect.EnumType
- func (x *RecoveryDevice_RecoveryDeviceInputMethod) UnmarshalJSON(b []byte) errordeprecated
- type RecoveryType
- func (RecoveryType) Descriptor() protoreflect.EnumDescriptor
- func (x RecoveryType) Enum() *RecoveryType
- func (RecoveryType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecoveryType) Number() protoreflect.EnumNumber
- func (x RecoveryType) String() string
- func (RecoveryType) Type() protoreflect.EnumType
- func (x *RecoveryType) UnmarshalJSON(b []byte) errordeprecated
- type ResetDevice
- func (*ResetDevice) Descriptor() ([]byte, []int)deprecated
- func (x *ResetDevice) GetBackupType() BackupType
- func (x *ResetDevice) GetEntropyCheck() bool
- func (x *ResetDevice) GetLabel() string
- func (x *ResetDevice) GetLanguage() stringdeprecated
- 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 SafetyCheckLevel
- func (SafetyCheckLevel) Descriptor() protoreflect.EnumDescriptor
- func (x SafetyCheckLevel) Enum() *SafetyCheckLevel
- func (SafetyCheckLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x SafetyCheckLevel) Number() protoreflect.EnumNumber
- func (x SafetyCheckLevel) String() string
- func (SafetyCheckLevel) Type() protoreflect.EnumType
- func (x *SafetyCheckLevel) UnmarshalJSON(b []byte) errordeprecated
- type SdProtect
- type SdProtect_SdProtectOperationType
- func (SdProtect_SdProtectOperationType) Descriptor() protoreflect.EnumDescriptor
- func (x SdProtect_SdProtectOperationType) Enum() *SdProtect_SdProtectOperationType
- func (SdProtect_SdProtectOperationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SdProtect_SdProtectOperationType) Number() protoreflect.EnumNumber
- func (x SdProtect_SdProtectOperationType) String() string
- func (SdProtect_SdProtectOperationType) Type() protoreflect.EnumType
- func (x *SdProtect_SdProtectOperationType) UnmarshalJSON(b []byte) errordeprecated
- type SetBrightness
- type SetBusy
- type SetU2FCounter
- type ShowDeviceTutorial
- type Success
- type UnlockBootloader
- type UnlockPath
- type UnlockedPathRequest
- func (*UnlockedPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockedPathRequest) GetMac() []byte
- func (*UnlockedPathRequest) ProtoMessage()
- func (x *UnlockedPathRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockedPathRequest) Reset()
- func (x *UnlockedPathRequest) String() string
- 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_EthereumSignTx_To = string("") Default_EthereumSignTx_DataLength = uint32(0) )
Default values for EthereumSignTx fields.
const ( Default_ResetDevice_Strength = uint32(256) Default_ResetDevice_BackupType = BackupType_Bip39 )
Default values for ResetDevice fields.
const ( Default_RebootToBootloader_BootCommand = RebootToBootloader_STOP_AND_WAIT Default_RebootToBootloader_LanguageDataLength = uint32(0) )
Default values for RebootToBootloader fields.
const (
Default_EntropyCheckContinue_Finish = bool(false)
)
Default values for EntropyCheckContinue fields.
const (
Default_EthereumSignTxEIP1559_To = string("")
)
Default values for EthereumSignTxEIP1559 fields.
const (
Default_EthereumSignTypedData_MetamaskV4Compat = bool(true)
)
Default values for EthereumSignTypedData fields.
const (
Default_Features_LanguageVersionMatches = bool(true)
)
Default values for Features fields.
const (
Default_Ping_Message = string("")
)
Default values for Ping fields.
const (
Default_RecoveryDevice_Type = RecoveryType_NormalRecovery
)
Default values for RecoveryDevice fields.
const (
Default_Success_Message = string("")
)
Default values for Success 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", 13: "Failure_WipeCodeMismatch", 14: "Failure_InvalidSession", 15: "Failure_Busy", 16: "Failure_ThpUnallocatedSession", 17: "Failure_InvalidProtocol", 18: "Failure_BufferError", 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_WipeCodeMismatch": 13, "Failure_InvalidSession": 14, "Failure_Busy": 15, "Failure_ThpUnallocatedSession": 16, "Failure_InvalidProtocol": 17, "Failure_BufferError": 18, "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: "_Deprecated_ButtonRequest_PassphraseType", 15: "ButtonRequest_UnknownDerivationPath", 16: "ButtonRequest_RecoveryHomepage", 17: "ButtonRequest_Success", 18: "ButtonRequest_Warning", 19: "ButtonRequest_PassphraseEntry", 20: "ButtonRequest_PinEntry", } 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, "_Deprecated_ButtonRequest_PassphraseType": 14, "ButtonRequest_UnknownDerivationPath": 15, "ButtonRequest_RecoveryHomepage": 16, "ButtonRequest_Success": 17, "ButtonRequest_Warning": 18, "ButtonRequest_PassphraseEntry": 19, "ButtonRequest_PinEntry": 20, } )
Enum value maps for ButtonRequest_ButtonRequestType.
var ( PinMatrixRequest_PinMatrixRequestType_name = map[int32]string{ 1: "PinMatrixRequestType_Current", 2: "PinMatrixRequestType_NewFirst", 3: "PinMatrixRequestType_NewSecond", 4: "PinMatrixRequestType_WipeCodeFirst", 5: "PinMatrixRequestType_WipeCodeSecond", } PinMatrixRequest_PinMatrixRequestType_value = map[string]int32{ "PinMatrixRequestType_Current": 1, "PinMatrixRequestType_NewFirst": 2, "PinMatrixRequestType_NewSecond": 3, "PinMatrixRequestType_WipeCodeFirst": 4, "PinMatrixRequestType_WipeCodeSecond": 5, } )
Enum value maps for PinMatrixRequest_PinMatrixRequestType.
var ( EthereumTypedDataStructAck_EthereumDataType_name = map[int32]string{ 1: "UINT", 2: "INT", 3: "BYTES", 4: "STRING", 5: "BOOL", 6: "ADDRESS", 7: "ARRAY", 8: "STRUCT", } EthereumTypedDataStructAck_EthereumDataType_value = map[string]int32{ "UINT": 1, "INT": 2, "BYTES": 3, "STRING": 4, "BOOL": 5, "ADDRESS": 6, "ARRAY": 7, "STRUCT": 8, } )
Enum value maps for EthereumTypedDataStructAck_EthereumDataType.
var ( Default_EthereumSignTx_Nonce = []byte("") Default_EthereumSignTx_Value = []byte("") Default_EthereumSignTx_DataInitialChunk = []byte("") )
Default values for EthereumSignTx fields.
var ( BackupType_name = map[int32]string{ 0: "Bip39", 1: "Slip39_Basic", 2: "Slip39_Advanced", 3: "Slip39_Single_Extendable", 4: "Slip39_Basic_Extendable", 5: "Slip39_Advanced_Extendable", } BackupType_value = map[string]int32{ "Bip39": 0, "Slip39_Basic": 1, "Slip39_Advanced": 2, "Slip39_Single_Extendable": 3, "Slip39_Basic_Extendable": 4, "Slip39_Advanced_Extendable": 5, } )
Enum value maps for BackupType.
var ( SafetyCheckLevel_name = map[int32]string{ 0: "Strict", 1: "PromptAlways", 2: "PromptTemporarily", } SafetyCheckLevel_value = map[string]int32{ "Strict": 0, "PromptAlways": 1, "PromptTemporarily": 2, } )
Enum value maps for SafetyCheckLevel.
var ( DisplayRotation_name = map[int32]string{ 0: "North", 90: "East", 180: "South", 270: "West", } DisplayRotation_value = map[string]int32{ "North": 0, "East": 90, "South": 180, "West": 270, } )
Enum value maps for DisplayRotation.
var ( HomescreenFormat_name = map[int32]string{ 1: "Toif", 2: "Jpeg", 3: "ToiG", } HomescreenFormat_value = map[string]int32{ "Toif": 1, "Jpeg": 2, "ToiG": 3, } )
Enum value maps for HomescreenFormat.
var ( RecoveryType_name = map[int32]string{ 0: "NormalRecovery", 1: "DryRun", 2: "UnlockRepeatedBackup", } RecoveryType_value = map[string]int32{ "NormalRecovery": 0, "DryRun": 1, "UnlockRepeatedBackup": 2, } )
Enum value maps for RecoveryType.
var ( Features_BackupAvailability_name = map[int32]string{ 0: "NotAvailable", 1: "Required", 2: "Available", } Features_BackupAvailability_value = map[string]int32{ "NotAvailable": 0, "Required": 1, "Available": 2, } )
Enum value maps for Features_BackupAvailability.
var ( Features_RecoveryStatus_name = map[int32]string{ 0: "Nothing", 1: "Recovery", 2: "Backup", } Features_RecoveryStatus_value = map[string]int32{ "Nothing": 0, "Recovery": 1, "Backup": 2, } )
Enum value maps for Features_RecoveryStatus.
var ( Features_Capability_name = map[int32]string{ 1: "Capability_Bitcoin", 2: "Capability_Bitcoin_like", 3: "Capability_Binance", 4: "Capability_Cardano", 5: "Capability_Crypto", 6: "Capability_EOS", 7: "Capability_Ethereum", 8: "Capability_Lisk", 9: "Capability_Monero", 10: "Capability_NEM", 11: "Capability_Ripple", 12: "Capability_Stellar", 13: "Capability_Tezos", 14: "Capability_U2F", 15: "Capability_Shamir", 16: "Capability_ShamirGroups", 17: "Capability_PassphraseEntry", 18: "Capability_Solana", 19: "Capability_Translations", 20: "Capability_Brightness", 21: "Capability_Haptic", 22: "Capability_BLE", 23: "Capability_NFC", } Features_Capability_value = map[string]int32{ "Capability_Bitcoin": 1, "Capability_Bitcoin_like": 2, "Capability_Binance": 3, "Capability_Cardano": 4, "Capability_Crypto": 5, "Capability_EOS": 6, "Capability_Ethereum": 7, "Capability_Lisk": 8, "Capability_Monero": 9, "Capability_NEM": 10, "Capability_Ripple": 11, "Capability_Stellar": 12, "Capability_Tezos": 13, "Capability_U2F": 14, "Capability_Shamir": 15, "Capability_ShamirGroups": 16, "Capability_PassphraseEntry": 17, "Capability_Solana": 18, "Capability_Translations": 19, "Capability_Brightness": 20, "Capability_Haptic": 21, "Capability_BLE": 22, "Capability_NFC": 23, } )
Enum value maps for Features_Capability.
var ( SdProtect_SdProtectOperationType_name = map[int32]string{ 0: "DISABLE", 1: "ENABLE", 2: "REFRESH", } SdProtect_SdProtectOperationType_value = map[string]int32{ "DISABLE": 0, "ENABLE": 1, "REFRESH": 2, } )
Enum value maps for SdProtect_SdProtectOperationType.
var ( RecoveryDevice_RecoveryDeviceInputMethod_name = map[int32]string{ 0: "ScrambledWords", 1: "Matrix", } RecoveryDevice_RecoveryDeviceInputMethod_value = map[string]int32{ "ScrambledWords": 0, "Matrix": 1, } )
Enum value maps for RecoveryDevice_RecoveryDeviceInputMethod.
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 ( RebootToBootloader_BootCommand_name = map[int32]string{ 0: "STOP_AND_WAIT", 1: "INSTALL_UPGRADE", } RebootToBootloader_BootCommand_value = map[string]int32{ "STOP_AND_WAIT": 0, "INSTALL_UPGRADE": 1, } )
Enum value maps for RebootToBootloader_BootCommand.
var ( MessageType_name = map[int32]string{}/* 264 elements not displayed */ MessageType_value = map[string]int32{}/* 264 elements not displayed */ )
Enum value maps for MessageType.
var ( // optional bool wire_in = 50002; E_WireIn = &file_options_proto_extTypes[0] // message can be transmitted via wire from PC to Trezor // optional bool wire_out = 50003; E_WireOut = &file_options_proto_extTypes[1] // message can be transmitted via wire from Trezor to PC // optional bool wire_debug_in = 50004; E_WireDebugIn = &file_options_proto_extTypes[2] // message can be transmitted via debug wire from PC to Trezor // optional bool wire_debug_out = 50005; E_WireDebugOut = &file_options_proto_extTypes[3] // message can be transmitted via debug wire from Trezor to PC // optional bool wire_tiny = 50006; E_WireTiny = &file_options_proto_extTypes[4] // message is handled by Trezor when the USB stack is in tiny mode // optional bool wire_bootloader = 50007; E_WireBootloader = &file_options_proto_extTypes[5] // message is only handled by Trezor Bootloader // optional bool wire_no_fsm = 50008; E_WireNoFsm = &file_options_proto_extTypes[6] // message is not handled by Trezor unless the USB stack is in tiny mode // optional bool bitcoin_only = 60000; E_BitcoinOnly = &file_options_proto_extTypes[7] // enum value is available on BITCOIN_ONLY build )
Extension fields to descriptorpb.EnumValueOptions.
var ( // optional bool experimental_message = 52001; E_ExperimentalMessage = &file_options_proto_extTypes[9] // indicate that a message is intended for development and beta testing only and its definition may change at any time // optional uint32 wire_type = 52002; E_WireType = &file_options_proto_extTypes[10] // override wire type specified in the MessageType enum // optional bool internal_only = 52003; E_InternalOnly = &file_options_proto_extTypes[11] // indicate that a message is intended for internal use only and should not be transmitted via the wire )
Extension fields to descriptorpb.MessageOptions.
var (
Default_EthereumSignTxEIP1559_DataInitialChunk = []byte("")
)
Default values for EthereumSignTxEIP1559 fields.
var ( // optional bool experimental_field = 53001; E_ExperimentalField = &file_options_proto_extTypes[12] // indicate that a field is intended for development and beta testing only )
Extension fields to descriptorpb.FieldOptions.
var ( // optional bool has_bitcoin_only_values = 51001; E_HasBitcoinOnlyValues = &file_options_proto_extTypes[8] // indicate that some values should be excluded on BITCOIN_ONLY builds )
Extension fields to descriptorpb.EnumOptions.
var ( // optional bool include_in_bitcoin_only = 60000; E_IncludeInBitcoinOnly = &file_options_proto_extTypes[13] // definitions are available on BITCOIN_ONLY build )
Extension fields to descriptorpb.FileOptions.
var File_messages_common_proto protoreflect.FileDescriptor
var File_messages_ethereum_eip712_proto protoreflect.FileDescriptor
var File_messages_ethereum_proto protoreflect.FileDescriptor
var File_messages_management_proto protoreflect.FileDescriptor
var File_messages_proto protoreflect.FileDescriptor
var File_options_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type ApplyFlags ¶
type ApplyFlags struct {
Flags *uint32 `protobuf:"varint,1,req,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 ¶
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 {
// Deprecated: Marked as deprecated in messages-management.proto.
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"` // homescreen image in single array, deprecated for 14
// Deprecated: Marked as deprecated in messages-management.proto.
XPassphraseSource *uint32 `protobuf:"varint,5,opt,name=_passphrase_source,json=PassphraseSource" json:"_passphrase_source,omitempty"` // ASK = 0; DEVICE = 1; HOST = 2;
AutoLockDelayMs *uint32 `protobuf:"varint,6,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"`
DisplayRotation *DisplayRotation `` // rotation of display (in degrees from North)
/* 151-byte string literal not displayed */
PassphraseAlwaysOnDevice *bool `` // do not prompt for passphrase, enforce device entry
/* 131-byte string literal not displayed */
SafetyChecks *SafetyCheckLevel `` // Safety check level, set to Prompt to limit path namespace enforcement
/* 143-byte string literal not displayed */
ExperimentalFeatures *bool `protobuf:"varint,10,opt,name=experimental_features,json=experimentalFeatures" json:"experimental_features,omitempty"` // enable experimental message types
HidePassphraseFromHost *bool `` // do not show passphrase coming from host
/* 126-byte string literal not displayed */
HapticFeedback *bool `protobuf:"varint,13,opt,name=haptic_feedback,json=hapticFeedback" json:"haptic_feedback,omitempty"` // enable haptic feedback
HomescreenLength *uint32 `protobuf:"varint,14,opt,name=homescreen_length,json=homescreenLength" json:"homescreen_length,omitempty"` // byte length of new homescreen, device will request chunks
// contains filtered or unexported fields
}
* Request: change some property of the device, e.g. label or homescreen @start @next Success @next DataChunkRequest @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() DisplayRotation
func (*ApplySettings) GetExperimentalFeatures ¶
func (x *ApplySettings) GetExperimentalFeatures() bool
func (*ApplySettings) GetHapticFeedback ¶
func (x *ApplySettings) GetHapticFeedback() bool
func (*ApplySettings) GetHidePassphraseFromHost ¶
func (x *ApplySettings) GetHidePassphraseFromHost() bool
func (*ApplySettings) GetHomescreen ¶
func (x *ApplySettings) GetHomescreen() []byte
func (*ApplySettings) GetHomescreenLength ¶
func (x *ApplySettings) GetHomescreenLength() uint32
func (*ApplySettings) GetLabel ¶
func (x *ApplySettings) GetLabel() string
func (*ApplySettings) GetLanguage
deprecated
func (x *ApplySettings) GetLanguage() string
Deprecated: Marked as deprecated in messages-management.proto.
func (*ApplySettings) GetPassphraseAlwaysOnDevice ¶
func (x *ApplySettings) GetPassphraseAlwaysOnDevice() bool
func (*ApplySettings) GetSafetyChecks ¶
func (x *ApplySettings) GetSafetyChecks() SafetyCheckLevel
func (*ApplySettings) GetUsePassphrase ¶
func (x *ApplySettings) GetUsePassphrase() bool
func (*ApplySettings) GetXPassphraseSource
deprecated
func (x *ApplySettings) GetXPassphraseSource() uint32
Deprecated: Marked as deprecated in messages-management.proto.
func (*ApplySettings) ProtoMessage ¶
func (*ApplySettings) ProtoMessage()
func (*ApplySettings) ProtoReflect ¶
func (x *ApplySettings) ProtoReflect() protoreflect.Message
func (*ApplySettings) Reset ¶
func (x *ApplySettings) Reset()
func (*ApplySettings) String ¶
func (x *ApplySettings) String() string
type AuthenticateDevice ¶
type AuthenticateDevice struct {
Challenge []byte `protobuf:"bytes,1,req,name=challenge" json:"challenge,omitempty"` // A random challenge to sign.
// contains filtered or unexported fields
}
* Request: Request a signature of the provided challenge. @start @next AuthenticityProof @next Failure
func (*AuthenticateDevice) Descriptor
deprecated
func (*AuthenticateDevice) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateDevice.ProtoReflect.Descriptor instead.
func (*AuthenticateDevice) GetChallenge ¶
func (x *AuthenticateDevice) GetChallenge() []byte
func (*AuthenticateDevice) ProtoMessage ¶
func (*AuthenticateDevice) ProtoMessage()
func (*AuthenticateDevice) ProtoReflect ¶
func (x *AuthenticateDevice) ProtoReflect() protoreflect.Message
func (*AuthenticateDevice) Reset ¶
func (x *AuthenticateDevice) Reset()
func (*AuthenticateDevice) String ¶
func (x *AuthenticateDevice) String() string
type AuthenticityProof ¶
type AuthenticityProof struct {
Certificates [][]byte `protobuf:"bytes,1,rep,name=certificates" json:"certificates,omitempty"` // A certificate chain starting with the device certificate, followed by intermediate CA certificates, the last of which is signed by Trezor company's root CA.
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"` // A DER-encoded signature of "\0x13AuthenticateDevice:" + length-prefixed challenge that should be verified using the device certificate.
// contains filtered or unexported fields
}
* Response: Signature of the provided challenge along with a certificate issued by the Trezor company. @end
func (*AuthenticityProof) Descriptor
deprecated
func (*AuthenticityProof) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticityProof.ProtoReflect.Descriptor instead.
func (*AuthenticityProof) GetCertificates ¶
func (x *AuthenticityProof) GetCertificates() [][]byte
func (*AuthenticityProof) GetSignature ¶
func (x *AuthenticityProof) GetSignature() []byte
func (*AuthenticityProof) ProtoMessage ¶
func (*AuthenticityProof) ProtoMessage()
func (*AuthenticityProof) ProtoReflect ¶
func (x *AuthenticityProof) ProtoReflect() protoreflect.Message
func (*AuthenticityProof) Reset ¶
func (x *AuthenticityProof) Reset()
func (*AuthenticityProof) String ¶
func (x *AuthenticityProof) String() string
type BackupDevice ¶
type BackupDevice struct {
GroupThreshold *uint32 `protobuf:"varint,1,opt,name=group_threshold,json=groupThreshold" json:"group_threshold,omitempty"`
Groups []*BackupDevice_Slip39Group `protobuf:"bytes,2,rep,name=groups" json:"groups,omitempty"`
// 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) GetGroupThreshold ¶
func (x *BackupDevice) GetGroupThreshold() uint32
func (*BackupDevice) GetGroups ¶
func (x *BackupDevice) GetGroups() []*BackupDevice_Slip39Group
func (*BackupDevice) ProtoMessage ¶
func (*BackupDevice) ProtoMessage()
func (*BackupDevice) ProtoReflect ¶
func (x *BackupDevice) ProtoReflect() protoreflect.Message
func (*BackupDevice) Reset ¶
func (x *BackupDevice) Reset()
func (*BackupDevice) String ¶
func (x *BackupDevice) String() string
type BackupDevice_Slip39Group ¶
type BackupDevice_Slip39Group struct {
MemberThreshold *uint32 `protobuf:"varint,1,req,name=member_threshold,json=memberThreshold" json:"member_threshold,omitempty"`
MemberCount *uint32 `protobuf:"varint,2,req,name=member_count,json=memberCount" json:"member_count,omitempty"`
// contains filtered or unexported fields
}
func (*BackupDevice_Slip39Group) Descriptor
deprecated
func (*BackupDevice_Slip39Group) Descriptor() ([]byte, []int)
Deprecated: Use BackupDevice_Slip39Group.ProtoReflect.Descriptor instead.
func (*BackupDevice_Slip39Group) GetMemberCount ¶
func (x *BackupDevice_Slip39Group) GetMemberCount() uint32
func (*BackupDevice_Slip39Group) GetMemberThreshold ¶
func (x *BackupDevice_Slip39Group) GetMemberThreshold() uint32
func (*BackupDevice_Slip39Group) ProtoMessage ¶
func (*BackupDevice_Slip39Group) ProtoMessage()
func (*BackupDevice_Slip39Group) ProtoReflect ¶
func (x *BackupDevice_Slip39Group) ProtoReflect() protoreflect.Message
func (*BackupDevice_Slip39Group) Reset ¶
func (x *BackupDevice_Slip39Group) Reset()
func (*BackupDevice_Slip39Group) String ¶
func (x *BackupDevice_Slip39Group) String() string
type BackupType ¶
type BackupType int32
* Type of the mnemonic backup given/received by the device during reset/recovery.
const ( BackupType_Bip39 BackupType = 0 // also called "Single Backup", see BIP-0039 BackupType_Slip39_Basic BackupType = 1 // also called "Shamir Backup", see SLIP-0039 BackupType_Slip39_Advanced BackupType = 2 // also called "Super Shamir" or "Shamir with Groups", see SLIP-0039#two-level-scheme BackupType_Slip39_Single_Extendable BackupType = 3 // extendable single-share Shamir backup BackupType_Slip39_Basic_Extendable BackupType = 4 // extendable multi-share Shamir backup BackupType_Slip39_Advanced_Extendable BackupType = 5 // extendable multi-share Shamir backup with groups )
func (BackupType) Descriptor ¶
func (BackupType) Descriptor() protoreflect.EnumDescriptor
func (BackupType) Enum ¶
func (x BackupType) Enum() *BackupType
func (BackupType) EnumDescriptor
deprecated
func (BackupType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BackupType.Descriptor instead.
func (BackupType) Number ¶
func (x BackupType) Number() protoreflect.EnumNumber
func (BackupType) String ¶
func (x BackupType) String() string
func (BackupType) Type ¶
func (BackupType) Type() protoreflect.EnumType
func (*BackupType) UnmarshalJSON
deprecated
func (x *BackupType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
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 ¶
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"` // enum identifier of the screen (deprecated)
Pages *uint32 `protobuf:"varint,2,opt,name=pages" json:"pages,omitempty"` // if the screen is paginated, number of pages
Name *string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` // name of the screen
// 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) GetName ¶
func (x *ButtonRequest) GetName() string
func (*ButtonRequest) GetPages ¶
func (x *ButtonRequest) GetPages() uint32
func (*ButtonRequest) ProtoMessage ¶
func (*ButtonRequest) ProtoMessage()
func (*ButtonRequest) ProtoReflect ¶
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 // Deprecated: Marked as deprecated in messages-common.proto. ButtonRequest__Deprecated_ButtonRequest_PassphraseType ButtonRequest_ButtonRequestType = 14 ButtonRequest_ButtonRequest_UnknownDerivationPath ButtonRequest_ButtonRequestType = 15 ButtonRequest_ButtonRequest_RecoveryHomepage ButtonRequest_ButtonRequestType = 16 ButtonRequest_ButtonRequest_Success ButtonRequest_ButtonRequestType = 17 ButtonRequest_ButtonRequest_Warning ButtonRequest_ButtonRequestType = 18 ButtonRequest_ButtonRequest_PassphraseEntry ButtonRequest_ButtonRequestType = 19 ButtonRequest_ButtonRequest_PinEntry ButtonRequest_ButtonRequestType = 20 )
func (ButtonRequest_ButtonRequestType) Descriptor ¶
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 ¶
func (x ButtonRequest_ButtonRequestType) Number() protoreflect.EnumNumber
func (ButtonRequest_ButtonRequestType) String ¶
func (x ButtonRequest_ButtonRequestType) String() string
func (ButtonRequest_ButtonRequestType) Type ¶
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 ¶
func (x *Cancel) ProtoReflect() protoreflect.Message
type CancelAuthorization ¶
type CancelAuthorization struct {
// contains filtered or unexported fields
}
* Request: Cancel any outstanding authorization in the current session. @start @next Success @next Failure
func (*CancelAuthorization) Descriptor
deprecated
func (*CancelAuthorization) Descriptor() ([]byte, []int)
Deprecated: Use CancelAuthorization.ProtoReflect.Descriptor instead.
func (*CancelAuthorization) ProtoMessage ¶
func (*CancelAuthorization) ProtoMessage()
func (*CancelAuthorization) ProtoReflect ¶
func (x *CancelAuthorization) ProtoReflect() protoreflect.Message
func (*CancelAuthorization) Reset ¶
func (x *CancelAuthorization) Reset()
func (*CancelAuthorization) String ¶
func (x *CancelAuthorization) String() string
type ChangeLanguage ¶
type ChangeLanguage struct {
// byte length of the whole translation blob (set to 0 for default language - english)
DataLength *uint32 `protobuf:"varint,1,req,name=data_length,json=dataLength" json:"data_length,omitempty"`
// Prompt the user on screen.
// In certain conditions (such as freshly installed device), the confirmation prompt
// is not mandatory. Setting show_display=false will skip the prompt if that's
// the case. If the device does not allow skipping the prompt, a request with
// show_display=false will return a failure. (This way the host can safely try
// to change the language without invoking a prompt.)
// Setting show_display to true will always show the prompt.
// Leaving the option unset will show the prompt only when necessary.
ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
// contains filtered or unexported fields
}
* Request: change the device language via translation data. Does not send the translation data itself, as they are too large for one message. Device will request the translation data in chunks. @start @next DataChunkRequest @next Failure
func (*ChangeLanguage) Descriptor
deprecated
func (*ChangeLanguage) Descriptor() ([]byte, []int)
Deprecated: Use ChangeLanguage.ProtoReflect.Descriptor instead.
func (*ChangeLanguage) GetDataLength ¶
func (x *ChangeLanguage) GetDataLength() uint32
func (*ChangeLanguage) GetShowDisplay ¶
func (x *ChangeLanguage) GetShowDisplay() bool
func (*ChangeLanguage) ProtoMessage ¶
func (*ChangeLanguage) ProtoMessage()
func (*ChangeLanguage) ProtoReflect ¶
func (x *ChangeLanguage) ProtoReflect() protoreflect.Message
func (*ChangeLanguage) Reset ¶
func (x *ChangeLanguage) Reset()
func (*ChangeLanguage) String ¶
func (x *ChangeLanguage) String() string
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 ¶
func (x *ChangePin) ProtoReflect() protoreflect.Message
type ChangeWipeCode ¶
type ChangeWipeCode struct {
Remove *bool `protobuf:"varint,1,opt,name=remove" json:"remove,omitempty"` // is wipe code removal requested?
// contains filtered or unexported fields
}
* Request: Starts workflow for setting/removing the wipe code @start @next Success @next Failure
func (*ChangeWipeCode) Descriptor
deprecated
func (*ChangeWipeCode) Descriptor() ([]byte, []int)
Deprecated: Use ChangeWipeCode.ProtoReflect.Descriptor instead.
func (*ChangeWipeCode) GetRemove ¶
func (x *ChangeWipeCode) GetRemove() bool
func (*ChangeWipeCode) ProtoMessage ¶
func (*ChangeWipeCode) ProtoMessage()
func (*ChangeWipeCode) ProtoReflect ¶
func (x *ChangeWipeCode) ProtoReflect() protoreflect.Message
func (*ChangeWipeCode) Reset ¶
func (x *ChangeWipeCode) Reset()
func (*ChangeWipeCode) String ¶
func (x *ChangeWipeCode) String() string
type DataChunkAck ¶
type DataChunkAck struct {
DataChunk []byte `protobuf:"bytes,1,req,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"` // Bytes from translation/homescreen payload
// contains filtered or unexported fields
}
* Request: Translation/homescreen payload data. @next DataChunkRequest @next Success
func (*DataChunkAck) Descriptor
deprecated
func (*DataChunkAck) Descriptor() ([]byte, []int)
Deprecated: Use DataChunkAck.ProtoReflect.Descriptor instead.
func (*DataChunkAck) GetDataChunk ¶
func (x *DataChunkAck) GetDataChunk() []byte
func (*DataChunkAck) ProtoMessage ¶
func (*DataChunkAck) ProtoMessage()
func (*DataChunkAck) ProtoReflect ¶
func (x *DataChunkAck) ProtoReflect() protoreflect.Message
func (*DataChunkAck) Reset ¶
func (x *DataChunkAck) Reset()
func (*DataChunkAck) String ¶
func (x *DataChunkAck) String() string
type DataChunkRequest ¶
type DataChunkRequest struct {
DataLength *uint32 `protobuf:"varint,1,req,name=data_length,json=dataLength" json:"data_length,omitempty"` // Number of bytes being requested
DataOffset *uint32 `protobuf:"varint,2,req,name=data_offset,json=dataOffset" json:"data_offset,omitempty"` // Offset of the first byte being requested
// contains filtered or unexported fields
}
* Response: Device asks for more data from translation/homescreen image. @end @next DataChunkAck
func (*DataChunkRequest) Descriptor
deprecated
func (*DataChunkRequest) Descriptor() ([]byte, []int)
Deprecated: Use DataChunkRequest.ProtoReflect.Descriptor instead.
func (*DataChunkRequest) GetDataLength ¶
func (x *DataChunkRequest) GetDataLength() uint32
func (*DataChunkRequest) GetDataOffset ¶
func (x *DataChunkRequest) GetDataOffset() uint32
func (*DataChunkRequest) ProtoMessage ¶
func (*DataChunkRequest) ProtoMessage()
func (*DataChunkRequest) ProtoReflect ¶
func (x *DataChunkRequest) ProtoReflect() protoreflect.Message
func (*DataChunkRequest) Reset ¶
func (x *DataChunkRequest) Reset()
func (*DataChunkRequest) String ¶
func (x *DataChunkRequest) String() string
type Deprecated_PassphraseStateAck
deprecated
type Deprecated_PassphraseStateAck struct {
// contains filtered or unexported fields
}
* Request: Send passphrase state back Deprecated in 2.3.0 @auxend
Deprecated: Marked as deprecated in messages-common.proto.
func (*Deprecated_PassphraseStateAck) Descriptor
deprecated
func (*Deprecated_PassphraseStateAck) Descriptor() ([]byte, []int)
Deprecated: Use Deprecated_PassphraseStateAck.ProtoReflect.Descriptor instead.
func (*Deprecated_PassphraseStateAck) ProtoMessage ¶
func (*Deprecated_PassphraseStateAck) ProtoMessage()
func (*Deprecated_PassphraseStateAck) ProtoReflect ¶
func (x *Deprecated_PassphraseStateAck) ProtoReflect() protoreflect.Message
func (*Deprecated_PassphraseStateAck) Reset ¶
func (x *Deprecated_PassphraseStateAck) Reset()
func (*Deprecated_PassphraseStateAck) String ¶
func (x *Deprecated_PassphraseStateAck) String() string
type Deprecated_PassphraseStateRequest
deprecated
type Deprecated_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 Deprecated in 2.3.0 @next Deprecated_PassphraseStateAck
Deprecated: Marked as deprecated in messages-common.proto.
func (*Deprecated_PassphraseStateRequest) Descriptor
deprecated
func (*Deprecated_PassphraseStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use Deprecated_PassphraseStateRequest.ProtoReflect.Descriptor instead.
func (*Deprecated_PassphraseStateRequest) GetState ¶
func (x *Deprecated_PassphraseStateRequest) GetState() []byte
func (*Deprecated_PassphraseStateRequest) ProtoMessage ¶
func (*Deprecated_PassphraseStateRequest) ProtoMessage()
func (*Deprecated_PassphraseStateRequest) ProtoReflect ¶
func (x *Deprecated_PassphraseStateRequest) ProtoReflect() protoreflect.Message
func (*Deprecated_PassphraseStateRequest) Reset ¶
func (x *Deprecated_PassphraseStateRequest) Reset()
func (*Deprecated_PassphraseStateRequest) String ¶
func (x *Deprecated_PassphraseStateRequest) String() string
type DisplayRotation ¶
type DisplayRotation int32
* Allowed display rotation angles (in degrees from North)
const ( DisplayRotation_North DisplayRotation = 0 DisplayRotation_East DisplayRotation = 90 DisplayRotation_South DisplayRotation = 180 DisplayRotation_West DisplayRotation = 270 )
func (DisplayRotation) Descriptor ¶
func (DisplayRotation) Descriptor() protoreflect.EnumDescriptor
func (DisplayRotation) Enum ¶
func (x DisplayRotation) Enum() *DisplayRotation
func (DisplayRotation) EnumDescriptor
deprecated
func (DisplayRotation) EnumDescriptor() ([]byte, []int)
Deprecated: Use DisplayRotation.Descriptor instead.
func (DisplayRotation) Number ¶
func (x DisplayRotation) Number() protoreflect.EnumNumber
func (DisplayRotation) String ¶
func (x DisplayRotation) String() string
func (DisplayRotation) Type ¶
func (DisplayRotation) Type() protoreflect.EnumType
func (*DisplayRotation) UnmarshalJSON
deprecated
func (x *DisplayRotation) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type DoPreauthorized ¶
type DoPreauthorized struct {
// contains filtered or unexported fields
}
* Request: Ask device to prepare for a preauthorized operation. @start @next PreauthorizedRequest @next Failure
func (*DoPreauthorized) Descriptor
deprecated
func (*DoPreauthorized) Descriptor() ([]byte, []int)
Deprecated: Use DoPreauthorized.ProtoReflect.Descriptor instead.
func (*DoPreauthorized) ProtoMessage ¶
func (*DoPreauthorized) ProtoMessage()
func (*DoPreauthorized) ProtoReflect ¶
func (x *DoPreauthorized) ProtoReflect() protoreflect.Message
func (*DoPreauthorized) Reset ¶
func (x *DoPreauthorized) Reset()
func (*DoPreauthorized) String ¶
func (x *DoPreauthorized) String() string
type EndSession ¶
type EndSession struct {
// contains filtered or unexported fields
}
* Request: end the current sesson. Following actions must call Initialize again. Cache for the current session is discarded, other sessions remain intact. Device is not PIN-locked. @start @next Success
func (*EndSession) Descriptor
deprecated
func (*EndSession) Descriptor() ([]byte, []int)
Deprecated: Use EndSession.ProtoReflect.Descriptor instead.
func (*EndSession) ProtoMessage ¶
func (*EndSession) ProtoMessage()
func (*EndSession) ProtoReflect ¶
func (x *EndSession) ProtoReflect() protoreflect.Message
func (*EndSession) Reset ¶
func (x *EndSession) Reset()
func (*EndSession) String ¶
func (x *EndSession) 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 ¶
func (x *Entropy) ProtoReflect() protoreflect.Message
type EntropyAck ¶
type EntropyAck struct {
Entropy []byte `protobuf:"bytes,1,req,name=entropy" json:"entropy,omitempty"` // 256 bits (32 bytes) of the host's random data
// contains filtered or unexported fields
}
* Request: Provide additional entropy for seed generation function @next Success @next EntropyCheckReady
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 ¶
func (x *EntropyAck) ProtoReflect() protoreflect.Message
func (*EntropyAck) Reset ¶
func (x *EntropyAck) Reset()
func (*EntropyAck) String ¶
func (x *EntropyAck) String() string
type EntropyCheckContinue ¶
type EntropyCheckContinue struct {
Finish *bool `protobuf:"varint,1,opt,name=finish,def=0" json:"finish,omitempty"` // finish the entropy check protocol, store the seed
// contains filtered or unexported fields
}
* Request: Proceed with the next phase of the entropy check protocol, asking Trezor to either reveal its internal entropy or to finish and store the seed. @next Success @next EntropyRequest
func (*EntropyCheckContinue) Descriptor
deprecated
func (*EntropyCheckContinue) Descriptor() ([]byte, []int)
Deprecated: Use EntropyCheckContinue.ProtoReflect.Descriptor instead.
func (*EntropyCheckContinue) GetFinish ¶
func (x *EntropyCheckContinue) GetFinish() bool
func (*EntropyCheckContinue) ProtoMessage ¶
func (*EntropyCheckContinue) ProtoMessage()
func (*EntropyCheckContinue) ProtoReflect ¶
func (x *EntropyCheckContinue) ProtoReflect() protoreflect.Message
func (*EntropyCheckContinue) Reset ¶
func (x *EntropyCheckContinue) Reset()
func (*EntropyCheckContinue) String ¶
func (x *EntropyCheckContinue) String() string
type EntropyCheckReady ¶
type EntropyCheckReady struct {
// contains filtered or unexported fields
}
* Response: Trezor is ready for the next phase of the entropy check protocol. @next EntropyCheckContinue @next GetPublicKey
func (*EntropyCheckReady) Descriptor
deprecated
func (*EntropyCheckReady) Descriptor() ([]byte, []int)
Deprecated: Use EntropyCheckReady.ProtoReflect.Descriptor instead.
func (*EntropyCheckReady) ProtoMessage ¶
func (*EntropyCheckReady) ProtoMessage()
func (*EntropyCheckReady) ProtoReflect ¶
func (x *EntropyCheckReady) ProtoReflect() protoreflect.Message
func (*EntropyCheckReady) Reset ¶
func (x *EntropyCheckReady) Reset()
func (*EntropyCheckReady) String ¶
func (x *EntropyCheckReady) String() string
type EntropyRequest ¶
type EntropyRequest struct {
EntropyCommitment []byte `protobuf:"bytes,1,opt,name=entropy_commitment,json=entropyCommitment" json:"entropy_commitment,omitempty"` // HMAC-SHA256 of Trezor's internal entropy used in entropy check.
PrevEntropy []byte `protobuf:"bytes,2,opt,name=prev_entropy,json=prevEntropy" json:"prev_entropy,omitempty"` // Trezor's internal entropy from the previous round of entropy check.
// 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) GetEntropyCommitment ¶
func (x *EntropyRequest) GetEntropyCommitment() []byte
func (*EntropyRequest) GetPrevEntropy ¶
func (x *EntropyRequest) GetPrevEntropy() []byte
func (*EntropyRequest) ProtoMessage ¶
func (*EntropyRequest) ProtoMessage()
func (*EntropyRequest) ProtoReflect ¶
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 {
// Deprecated: Marked as deprecated in messages-ethereum.proto.
XOldAddress []byte `protobuf:"bytes,1,opt,name=_old_address,json=OldAddress" json:"_old_address,omitempty"` // trezor <1.8.0, <2.1.0 - raw bytes of Ethereum address
Address *string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` // Ethereum address as hex-encoded string
// 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) GetAddress ¶
func (x *EthereumAddress) GetAddress() string
func (*EthereumAddress) GetXOldAddress
deprecated
func (x *EthereumAddress) GetXOldAddress() []byte
Deprecated: Marked as deprecated in messages-ethereum.proto.
func (*EthereumAddress) ProtoMessage ¶
func (*EthereumAddress) ProtoMessage()
func (*EthereumAddress) ProtoReflect ¶
func (x *EthereumAddress) ProtoReflect() protoreflect.Message
func (*EthereumAddress) Reset ¶
func (x *EthereumAddress) Reset()
func (*EthereumAddress) String ¶
func (x *EthereumAddress) String() string
type EthereumDefinitions ¶
type EthereumDefinitions struct {
EncodedNetwork []byte `protobuf:"bytes,1,opt,name=encoded_network,json=encodedNetwork" json:"encoded_network,omitempty"` // encoded ethereum network
EncodedToken []byte `protobuf:"bytes,2,opt,name=encoded_token,json=encodedToken" json:"encoded_token,omitempty"` // encoded ethereum token
// contains filtered or unexported fields
}
* Contains an encoded network and/or token definition. See external-definitions.md for details. @embed
func (*EthereumDefinitions) Descriptor
deprecated
func (*EthereumDefinitions) Descriptor() ([]byte, []int)
Deprecated: Use EthereumDefinitions.ProtoReflect.Descriptor instead.
func (*EthereumDefinitions) GetEncodedNetwork ¶
func (x *EthereumDefinitions) GetEncodedNetwork() []byte
func (*EthereumDefinitions) GetEncodedToken ¶
func (x *EthereumDefinitions) GetEncodedToken() []byte
func (*EthereumDefinitions) ProtoMessage ¶
func (*EthereumDefinitions) ProtoMessage()
func (*EthereumDefinitions) ProtoReflect ¶
func (x *EthereumDefinitions) ProtoReflect() protoreflect.Message
func (*EthereumDefinitions) Reset ¶
func (x *EthereumDefinitions) Reset()
func (*EthereumDefinitions) String ¶
func (x *EthereumDefinitions) 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
EncodedNetwork []byte `protobuf:"bytes,3,opt,name=encoded_network,json=encodedNetwork" json:"encoded_network,omitempty"` // encoded Ethereum network, see external-definitions.md for details
Chunkify *bool `protobuf:"varint,4,opt,name=chunkify" json:"chunkify,omitempty"` // display the address in chunks of 4 characters
// 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) GetChunkify ¶
func (x *EthereumGetAddress) GetChunkify() bool
func (*EthereumGetAddress) GetEncodedNetwork ¶
func (x *EthereumGetAddress) GetEncodedNetwork() []byte
func (*EthereumGetAddress) GetShowDisplay ¶
func (x *EthereumGetAddress) GetShowDisplay() bool
func (*EthereumGetAddress) ProtoMessage ¶
func (*EthereumGetAddress) ProtoMessage()
func (*EthereumGetAddress) ProtoReflect ¶
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 ¶
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 {
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"` // signature of the message
Address *string `protobuf:"bytes,3,req,name=address" json:"address,omitempty"` // address used to sign the message
// 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) GetAddress ¶
func (x *EthereumMessageSignature) GetAddress() string
func (*EthereumMessageSignature) GetSignature ¶
func (x *EthereumMessageSignature) GetSignature() []byte
func (*EthereumMessageSignature) ProtoMessage ¶
func (*EthereumMessageSignature) ProtoMessage()
func (*EthereumMessageSignature) ProtoReflect ¶
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,req,name=node" json:"node,omitempty"` // BIP32 public node
Xpub *string `protobuf:"bytes,2,req,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 ¶
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,req,name=message" json:"message,omitempty"` // message to be signed
EncodedNetwork []byte `protobuf:"bytes,3,opt,name=encoded_network,json=encodedNetwork" json:"encoded_network,omitempty"` // encoded Ethereum network, see external-definitions.md for details
Chunkify *bool `protobuf:"varint,4,opt,name=chunkify" json:"chunkify,omitempty"` // display the address in chunks of 4 characters
// 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) GetChunkify ¶
func (x *EthereumSignMessage) GetChunkify() bool
func (*EthereumSignMessage) GetEncodedNetwork ¶
func (x *EthereumSignMessage) GetEncodedNetwork() []byte
func (*EthereumSignMessage) GetMessage ¶
func (x *EthereumSignMessage) GetMessage() []byte
func (*EthereumSignMessage) ProtoMessage ¶
func (*EthereumSignMessage) ProtoMessage()
func (*EthereumSignMessage) ProtoReflect ¶
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,def=" json:"nonce,omitempty"` // <=256 bit unsigned big endian
GasPrice []byte `protobuf:"bytes,3,req,name=gas_price,json=gasPrice" json:"gas_price,omitempty"` // <=256 bit unsigned big endian (in wei)
GasLimit []byte `protobuf:"bytes,4,req,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"` // <=256 bit unsigned big endian
To *string `protobuf:"bytes,11,opt,name=to,def=" json:"to,omitempty"` // recipient address
Value []byte `protobuf:"bytes,6,opt,name=value,def=" json:"value,omitempty"` // <=256 bit unsigned big endian (in wei)
DataInitialChunk []byte `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk,def=" json:"data_initial_chunk,omitempty"` // The initial data chunk (<= 1024 bytes)
DataLength *uint32 `protobuf:"varint,8,opt,name=data_length,json=dataLength,def=0" json:"data_length,omitempty"` // Length of transaction payload
ChainId *uint64 `protobuf:"varint,9,req,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"` // Used for Wanchain
Definitions *EthereumDefinitions `protobuf:"bytes,12,opt,name=definitions" json:"definitions,omitempty"` // network and/or token definitions for tx
Chunkify *bool `protobuf:"varint,13,opt,name=chunkify" json:"chunkify,omitempty"` // display the address in chunks of 4 characters
// contains filtered or unexported fields
}
* Request: Ask device to sign transaction gas_price, gas_limit and chain_id must be provided and non-zero. All other fields are optional and default 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() uint64
func (*EthereumSignTx) GetChunkify ¶
func (x *EthereumSignTx) GetChunkify() bool
func (*EthereumSignTx) GetDataInitialChunk ¶
func (x *EthereumSignTx) GetDataInitialChunk() []byte
func (*EthereumSignTx) GetDataLength ¶
func (x *EthereumSignTx) GetDataLength() uint32
func (*EthereumSignTx) GetDefinitions ¶
func (x *EthereumSignTx) GetDefinitions() *EthereumDefinitions
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) GetTo ¶
func (x *EthereumSignTx) GetTo() 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 ¶
func (x *EthereumSignTx) ProtoReflect() protoreflect.Message
func (*EthereumSignTx) Reset ¶
func (x *EthereumSignTx) Reset()
func (*EthereumSignTx) String ¶
func (x *EthereumSignTx) String() string
type EthereumSignTxEIP1559 ¶
type EthereumSignTxEIP1559 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,req,name=nonce" json:"nonce,omitempty"` // <=256 bit unsigned big endian
MaxGasFee []byte `protobuf:"bytes,3,req,name=max_gas_fee,json=maxGasFee" json:"max_gas_fee,omitempty"` // <=256 bit unsigned big endian (in wei)
MaxPriorityFee []byte `protobuf:"bytes,4,req,name=max_priority_fee,json=maxPriorityFee" json:"max_priority_fee,omitempty"` // <=256 bit unsigned big endian (in wei)
GasLimit []byte `protobuf:"bytes,5,req,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"` // <=256 bit unsigned big endian
To *string `protobuf:"bytes,6,opt,name=to,def=" json:"to,omitempty"` // recipient address
Value []byte `protobuf:"bytes,7,req,name=value" json:"value,omitempty"` // <=256 bit unsigned big endian (in wei)
DataInitialChunk []byte `protobuf:"bytes,8,opt,name=data_initial_chunk,json=dataInitialChunk,def=" json:"data_initial_chunk,omitempty"` // The initial data chunk (<= 1024 bytes)
DataLength *uint32 `protobuf:"varint,9,req,name=data_length,json=dataLength" json:"data_length,omitempty"` // Length of transaction payload
ChainId *uint64 `protobuf:"varint,10,req,name=chain_id,json=chainId" json:"chain_id,omitempty"` // Chain Id for EIP 155
AccessList []*EthereumSignTxEIP1559_EthereumAccessList `protobuf:"bytes,11,rep,name=access_list,json=accessList" json:"access_list,omitempty"` // Access List
Definitions *EthereumDefinitions `protobuf:"bytes,12,opt,name=definitions" json:"definitions,omitempty"` // network and/or token definitions for tx
Chunkify *bool `protobuf:"varint,13,opt,name=chunkify" json:"chunkify,omitempty"` // display the address in chunks of 4 characters
// contains filtered or unexported fields
}
* Request: Ask device to sign EIP1559 transaction Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. @start @next EthereumTxRequest @next Failure
func (*EthereumSignTxEIP1559) Descriptor
deprecated
func (*EthereumSignTxEIP1559) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTxEIP1559.ProtoReflect.Descriptor instead.
func (*EthereumSignTxEIP1559) GetAccessList ¶
func (x *EthereumSignTxEIP1559) GetAccessList() []*EthereumSignTxEIP1559_EthereumAccessList
func (*EthereumSignTxEIP1559) GetAddressN ¶
func (x *EthereumSignTxEIP1559) GetAddressN() []uint32
func (*EthereumSignTxEIP1559) GetChainId ¶
func (x *EthereumSignTxEIP1559) GetChainId() uint64
func (*EthereumSignTxEIP1559) GetChunkify ¶
func (x *EthereumSignTxEIP1559) GetChunkify() bool
func (*EthereumSignTxEIP1559) GetDataInitialChunk ¶
func (x *EthereumSignTxEIP1559) GetDataInitialChunk() []byte
func (*EthereumSignTxEIP1559) GetDataLength ¶
func (x *EthereumSignTxEIP1559) GetDataLength() uint32
func (*EthereumSignTxEIP1559) GetDefinitions ¶
func (x *EthereumSignTxEIP1559) GetDefinitions() *EthereumDefinitions
func (*EthereumSignTxEIP1559) GetGasLimit ¶
func (x *EthereumSignTxEIP1559) GetGasLimit() []byte
func (*EthereumSignTxEIP1559) GetMaxGasFee ¶
func (x *EthereumSignTxEIP1559) GetMaxGasFee() []byte
func (*EthereumSignTxEIP1559) GetMaxPriorityFee ¶
func (x *EthereumSignTxEIP1559) GetMaxPriorityFee() []byte
func (*EthereumSignTxEIP1559) GetNonce ¶
func (x *EthereumSignTxEIP1559) GetNonce() []byte
func (*EthereumSignTxEIP1559) GetTo ¶
func (x *EthereumSignTxEIP1559) GetTo() string
func (*EthereumSignTxEIP1559) GetValue ¶
func (x *EthereumSignTxEIP1559) GetValue() []byte
func (*EthereumSignTxEIP1559) ProtoMessage ¶
func (*EthereumSignTxEIP1559) ProtoMessage()
func (*EthereumSignTxEIP1559) ProtoReflect ¶
func (x *EthereumSignTxEIP1559) ProtoReflect() protoreflect.Message
func (*EthereumSignTxEIP1559) Reset ¶
func (x *EthereumSignTxEIP1559) Reset()
func (*EthereumSignTxEIP1559) String ¶
func (x *EthereumSignTxEIP1559) String() string
type EthereumSignTxEIP1559_EthereumAccessList ¶
type EthereumSignTxEIP1559_EthereumAccessList struct {
Address *string `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
StorageKeys [][]byte `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys" json:"storage_keys,omitempty"`
// contains filtered or unexported fields
}
func (*EthereumSignTxEIP1559_EthereumAccessList) Descriptor
deprecated
func (*EthereumSignTxEIP1559_EthereumAccessList) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTxEIP1559_EthereumAccessList.ProtoReflect.Descriptor instead.
func (*EthereumSignTxEIP1559_EthereumAccessList) GetAddress ¶
func (x *EthereumSignTxEIP1559_EthereumAccessList) GetAddress() string
func (*EthereumSignTxEIP1559_EthereumAccessList) GetStorageKeys ¶
func (x *EthereumSignTxEIP1559_EthereumAccessList) GetStorageKeys() [][]byte
func (*EthereumSignTxEIP1559_EthereumAccessList) ProtoMessage ¶
func (*EthereumSignTxEIP1559_EthereumAccessList) ProtoMessage()
func (*EthereumSignTxEIP1559_EthereumAccessList) ProtoReflect ¶
func (x *EthereumSignTxEIP1559_EthereumAccessList) ProtoReflect() protoreflect.Message
func (*EthereumSignTxEIP1559_EthereumAccessList) Reset ¶
func (x *EthereumSignTxEIP1559_EthereumAccessList) Reset()
func (*EthereumSignTxEIP1559_EthereumAccessList) String ¶
func (x *EthereumSignTxEIP1559_EthereumAccessList) String() string
type EthereumSignTypedData ¶
type EthereumSignTypedData 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
PrimaryType *string `protobuf:"bytes,2,req,name=primary_type,json=primaryType" json:"primary_type,omitempty"` // name of the root message struct
MetamaskV4Compat *bool `protobuf:"varint,3,opt,name=metamask_v4_compat,json=metamaskV4Compat,def=1" json:"metamask_v4_compat,omitempty"` // use MetaMask v4 (see https://github.com/MetaMask/eth-sig-util/issues/106)
Definitions *EthereumDefinitions `protobuf:"bytes,4,opt,name=definitions" json:"definitions,omitempty"` // network and/or token definitions
ShowMessageHash []byte `protobuf:"bytes,5,opt,name=show_message_hash,json=showMessageHash" json:"show_message_hash,omitempty"` // hash of the typed data to be signed (if set, user will be asked to confirm before signing)
// contains filtered or unexported fields
}
* Request: Ask device to sign typed data @start @next EthereumTypedDataStructRequest @next EthereumTypedDataValueRequest @next EthereumTypedDataSignature @next Failure
func (*EthereumSignTypedData) Descriptor
deprecated
func (*EthereumSignTypedData) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTypedData.ProtoReflect.Descriptor instead.
func (*EthereumSignTypedData) GetAddressN ¶
func (x *EthereumSignTypedData) GetAddressN() []uint32
func (*EthereumSignTypedData) GetDefinitions ¶
func (x *EthereumSignTypedData) GetDefinitions() *EthereumDefinitions
func (*EthereumSignTypedData) GetMetamaskV4Compat ¶
func (x *EthereumSignTypedData) GetMetamaskV4Compat() bool
func (*EthereumSignTypedData) GetPrimaryType ¶
func (x *EthereumSignTypedData) GetPrimaryType() string
func (*EthereumSignTypedData) GetShowMessageHash ¶ added in v0.0.2
func (x *EthereumSignTypedData) GetShowMessageHash() []byte
func (*EthereumSignTypedData) ProtoMessage ¶
func (*EthereumSignTypedData) ProtoMessage()
func (*EthereumSignTypedData) ProtoReflect ¶
func (x *EthereumSignTypedData) ProtoReflect() protoreflect.Message
func (*EthereumSignTypedData) Reset ¶
func (x *EthereumSignTypedData) Reset()
func (*EthereumSignTypedData) String ¶
func (x *EthereumSignTypedData) String() string
type EthereumSignTypedHash ¶
type EthereumSignTypedHash 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
DomainSeparatorHash []byte `protobuf:"bytes,2,req,name=domain_separator_hash,json=domainSeparatorHash" json:"domain_separator_hash,omitempty"` // Hash of domainSeparator of typed data to be signed
MessageHash []byte `protobuf:"bytes,3,opt,name=message_hash,json=messageHash" json:"message_hash,omitempty"` // Hash of the data of typed data to be signed (empty if domain-only data)
EncodedNetwork []byte `protobuf:"bytes,4,opt,name=encoded_network,json=encodedNetwork" json:"encoded_network,omitempty"` // encoded Ethereum network, see external-definitions.md for details
// contains filtered or unexported fields
}
* Request: Ask device to sign hash of typed data @start @next EthereumTypedDataSignature @next Failure
func (*EthereumSignTypedHash) Descriptor
deprecated
func (*EthereumSignTypedHash) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTypedHash.ProtoReflect.Descriptor instead.
func (*EthereumSignTypedHash) GetAddressN ¶
func (x *EthereumSignTypedHash) GetAddressN() []uint32
func (*EthereumSignTypedHash) GetDomainSeparatorHash ¶
func (x *EthereumSignTypedHash) GetDomainSeparatorHash() []byte
func (*EthereumSignTypedHash) GetEncodedNetwork ¶
func (x *EthereumSignTypedHash) GetEncodedNetwork() []byte
func (*EthereumSignTypedHash) GetMessageHash ¶
func (x *EthereumSignTypedHash) GetMessageHash() []byte
func (*EthereumSignTypedHash) ProtoMessage ¶
func (*EthereumSignTypedHash) ProtoMessage()
func (*EthereumSignTypedHash) ProtoReflect ¶
func (x *EthereumSignTypedHash) ProtoReflect() protoreflect.Message
func (*EthereumSignTypedHash) Reset ¶
func (x *EthereumSignTypedHash) Reset()
func (*EthereumSignTypedHash) String ¶
func (x *EthereumSignTypedHash) String() string
type EthereumTxAck ¶
type EthereumTxAck struct {
DataChunk []byte `protobuf:"bytes,1,req,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 ¶
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 ¶
func (x *EthereumTxRequest) ProtoReflect() protoreflect.Message
func (*EthereumTxRequest) Reset ¶
func (x *EthereumTxRequest) Reset()
func (*EthereumTxRequest) String ¶
func (x *EthereumTxRequest) String() string
type EthereumTypedDataSignature ¶
type EthereumTypedDataSignature struct {
Signature []byte `protobuf:"bytes,1,req,name=signature" json:"signature,omitempty"` // signature of the typed data
Address *string `protobuf:"bytes,2,req,name=address" json:"address,omitempty"` // address used to sign the typed data
// contains filtered or unexported fields
}
* Response: Signed typed data @end
func (*EthereumTypedDataSignature) Descriptor
deprecated
func (*EthereumTypedDataSignature) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataSignature.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataSignature) GetAddress ¶
func (x *EthereumTypedDataSignature) GetAddress() string
func (*EthereumTypedDataSignature) GetSignature ¶
func (x *EthereumTypedDataSignature) GetSignature() []byte
func (*EthereumTypedDataSignature) ProtoMessage ¶
func (*EthereumTypedDataSignature) ProtoMessage()
func (*EthereumTypedDataSignature) ProtoReflect ¶
func (x *EthereumTypedDataSignature) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataSignature) Reset ¶
func (x *EthereumTypedDataSignature) Reset()
func (*EthereumTypedDataSignature) String ¶
func (x *EthereumTypedDataSignature) String() string
type EthereumTypedDataStructAck ¶
type EthereumTypedDataStructAck struct {
Members []*EthereumTypedDataStructAck_EthereumStructMember `protobuf:"bytes,1,rep,name=members" json:"members,omitempty"`
// contains filtered or unexported fields
}
* Request: Type information about a struct. @next EthereumTypedDataStructRequest
func (*EthereumTypedDataStructAck) Descriptor
deprecated
func (*EthereumTypedDataStructAck) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataStructAck.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataStructAck) GetMembers ¶
func (x *EthereumTypedDataStructAck) GetMembers() []*EthereumTypedDataStructAck_EthereumStructMember
func (*EthereumTypedDataStructAck) ProtoMessage ¶
func (*EthereumTypedDataStructAck) ProtoMessage()
func (*EthereumTypedDataStructAck) ProtoReflect ¶
func (x *EthereumTypedDataStructAck) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataStructAck) Reset ¶
func (x *EthereumTypedDataStructAck) Reset()
func (*EthereumTypedDataStructAck) String ¶
func (x *EthereumTypedDataStructAck) String() string
type EthereumTypedDataStructAck_EthereumDataType ¶
type EthereumTypedDataStructAck_EthereumDataType int32
const ( EthereumTypedDataStructAck_UINT EthereumTypedDataStructAck_EthereumDataType = 1 EthereumTypedDataStructAck_INT EthereumTypedDataStructAck_EthereumDataType = 2 EthereumTypedDataStructAck_BYTES EthereumTypedDataStructAck_EthereumDataType = 3 EthereumTypedDataStructAck_STRING EthereumTypedDataStructAck_EthereumDataType = 4 EthereumTypedDataStructAck_BOOL EthereumTypedDataStructAck_EthereumDataType = 5 EthereumTypedDataStructAck_ADDRESS EthereumTypedDataStructAck_EthereumDataType = 6 EthereumTypedDataStructAck_ARRAY EthereumTypedDataStructAck_EthereumDataType = 7 EthereumTypedDataStructAck_STRUCT EthereumTypedDataStructAck_EthereumDataType = 8 )
func (EthereumTypedDataStructAck_EthereumDataType) Descriptor ¶
func (EthereumTypedDataStructAck_EthereumDataType) Descriptor() protoreflect.EnumDescriptor
func (EthereumTypedDataStructAck_EthereumDataType) EnumDescriptor
deprecated
func (EthereumTypedDataStructAck_EthereumDataType) EnumDescriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataStructAck_EthereumDataType.Descriptor instead.
func (EthereumTypedDataStructAck_EthereumDataType) Number ¶
func (x EthereumTypedDataStructAck_EthereumDataType) Number() protoreflect.EnumNumber
func (EthereumTypedDataStructAck_EthereumDataType) String ¶
func (x EthereumTypedDataStructAck_EthereumDataType) String() string
func (EthereumTypedDataStructAck_EthereumDataType) Type ¶
func (EthereumTypedDataStructAck_EthereumDataType) Type() protoreflect.EnumType
func (*EthereumTypedDataStructAck_EthereumDataType) UnmarshalJSON
deprecated
func (x *EthereumTypedDataStructAck_EthereumDataType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type EthereumTypedDataStructAck_EthereumFieldType ¶
type EthereumTypedDataStructAck_EthereumFieldType struct {
DataType *EthereumTypedDataStructAck_EthereumDataType `` /* 163-byte string literal not displayed */
Size *uint32 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` // for integer types: size in bytes (uint8 has size 1, uint256 has size 32)
// for bytes types: size in bytes, or unset for dynamic
// for arrays: size in elements, or unset for dynamic
// for structs: number of members
// for string, bool and address: unset
EntryType *EthereumTypedDataStructAck_EthereumFieldType `protobuf:"bytes,3,opt,name=entry_type,json=entryType" json:"entry_type,omitempty"` // for array types, type of single entry
StructName *string `protobuf:"bytes,4,opt,name=struct_name,json=structName" json:"struct_name,omitempty"` // for structs: its name
// contains filtered or unexported fields
}
func (*EthereumTypedDataStructAck_EthereumFieldType) Descriptor
deprecated
func (*EthereumTypedDataStructAck_EthereumFieldType) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataStructAck_EthereumFieldType.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataStructAck_EthereumFieldType) GetDataType ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) GetDataType() EthereumTypedDataStructAck_EthereumDataType
func (*EthereumTypedDataStructAck_EthereumFieldType) GetEntryType ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) GetEntryType() *EthereumTypedDataStructAck_EthereumFieldType
func (*EthereumTypedDataStructAck_EthereumFieldType) GetSize ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) GetSize() uint32
func (*EthereumTypedDataStructAck_EthereumFieldType) GetStructName ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) GetStructName() string
func (*EthereumTypedDataStructAck_EthereumFieldType) ProtoMessage ¶
func (*EthereumTypedDataStructAck_EthereumFieldType) ProtoMessage()
func (*EthereumTypedDataStructAck_EthereumFieldType) ProtoReflect ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataStructAck_EthereumFieldType) Reset ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) Reset()
func (*EthereumTypedDataStructAck_EthereumFieldType) String ¶
func (x *EthereumTypedDataStructAck_EthereumFieldType) String() string
type EthereumTypedDataStructAck_EthereumStructMember ¶
type EthereumTypedDataStructAck_EthereumStructMember struct {
Type *EthereumTypedDataStructAck_EthereumFieldType `protobuf:"bytes,1,req,name=type" json:"type,omitempty"`
Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*EthereumTypedDataStructAck_EthereumStructMember) Descriptor
deprecated
func (*EthereumTypedDataStructAck_EthereumStructMember) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataStructAck_EthereumStructMember.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataStructAck_EthereumStructMember) GetName ¶
func (x *EthereumTypedDataStructAck_EthereumStructMember) GetName() string
func (*EthereumTypedDataStructAck_EthereumStructMember) ProtoMessage ¶
func (*EthereumTypedDataStructAck_EthereumStructMember) ProtoMessage()
func (*EthereumTypedDataStructAck_EthereumStructMember) ProtoReflect ¶
func (x *EthereumTypedDataStructAck_EthereumStructMember) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataStructAck_EthereumStructMember) Reset ¶
func (x *EthereumTypedDataStructAck_EthereumStructMember) Reset()
func (*EthereumTypedDataStructAck_EthereumStructMember) String ¶
func (x *EthereumTypedDataStructAck_EthereumStructMember) String() string
type EthereumTypedDataStructRequest ¶
type EthereumTypedDataStructRequest struct {
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` // name of the requested struct
// contains filtered or unexported fields
}
* Response: Device asks for type information about a struct. @next EthereumTypedDataStructAck
func (*EthereumTypedDataStructRequest) Descriptor
deprecated
func (*EthereumTypedDataStructRequest) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataStructRequest.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataStructRequest) GetName ¶
func (x *EthereumTypedDataStructRequest) GetName() string
func (*EthereumTypedDataStructRequest) ProtoMessage ¶
func (*EthereumTypedDataStructRequest) ProtoMessage()
func (*EthereumTypedDataStructRequest) ProtoReflect ¶
func (x *EthereumTypedDataStructRequest) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataStructRequest) Reset ¶
func (x *EthereumTypedDataStructRequest) Reset()
func (*EthereumTypedDataStructRequest) String ¶
func (x *EthereumTypedDataStructRequest) String() string
type EthereumTypedDataValueAck ¶
type EthereumTypedDataValueAck struct {
Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
// contains filtered or unexported fields
}
* Request: Single value of a specific atomic field. @next EthereumTypedDataValueRequest
func (*EthereumTypedDataValueAck) Descriptor
deprecated
func (*EthereumTypedDataValueAck) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataValueAck.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataValueAck) GetValue ¶
func (x *EthereumTypedDataValueAck) GetValue() []byte
func (*EthereumTypedDataValueAck) ProtoMessage ¶
func (*EthereumTypedDataValueAck) ProtoMessage()
func (*EthereumTypedDataValueAck) ProtoReflect ¶
func (x *EthereumTypedDataValueAck) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataValueAck) Reset ¶
func (x *EthereumTypedDataValueAck) Reset()
func (*EthereumTypedDataValueAck) String ¶
func (x *EthereumTypedDataValueAck) String() string
type EthereumTypedDataValueRequest ¶
type EthereumTypedDataValueRequest struct {
MemberPath []uint32 `protobuf:"varint,1,rep,name=member_path,json=memberPath" json:"member_path,omitempty"` // member path requested by device
// contains filtered or unexported fields
}
* Response: Device asks for data at the specific member path. @next EthereumTypedDataValueAck
func (*EthereumTypedDataValueRequest) Descriptor
deprecated
func (*EthereumTypedDataValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTypedDataValueRequest.ProtoReflect.Descriptor instead.
func (*EthereumTypedDataValueRequest) GetMemberPath ¶
func (x *EthereumTypedDataValueRequest) GetMemberPath() []uint32
func (*EthereumTypedDataValueRequest) ProtoMessage ¶
func (*EthereumTypedDataValueRequest) ProtoMessage()
func (*EthereumTypedDataValueRequest) ProtoReflect ¶
func (x *EthereumTypedDataValueRequest) ProtoReflect() protoreflect.Message
func (*EthereumTypedDataValueRequest) Reset ¶
func (x *EthereumTypedDataValueRequest) Reset()
func (*EthereumTypedDataValueRequest) String ¶
func (x *EthereumTypedDataValueRequest) String() string
type EthereumVerifyMessage ¶
type EthereumVerifyMessage struct {
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"` // signature to verify
Message []byte `protobuf:"bytes,3,req,name=message" json:"message,omitempty"` // message to verify
Address *string `protobuf:"bytes,4,req,name=address" json:"address,omitempty"` // address to verify
Chunkify *bool `protobuf:"varint,5,opt,name=chunkify" json:"chunkify,omitempty"` // display the address in chunks of 4 characters
// 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) GetAddress ¶
func (x *EthereumVerifyMessage) GetAddress() string
func (*EthereumVerifyMessage) GetChunkify ¶
func (x *EthereumVerifyMessage) GetChunkify() bool
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 ¶
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 ¶
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_WipeCodeMismatch Failure_FailureType = 13 Failure_Failure_InvalidSession Failure_FailureType = 14 Failure_Failure_Busy Failure_FailureType = 15 Failure_Failure_ThpUnallocatedSession Failure_FailureType = 16 Failure_Failure_InvalidProtocol Failure_FailureType = 17 Failure_Failure_BufferError Failure_FailureType = 18 Failure_Failure_FirmwareError Failure_FailureType = 99 )
func (Failure_FailureType) Descriptor ¶
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 ¶
func (x Failure_FailureType) Number() protoreflect.EnumNumber
func (Failure_FailureType) String ¶
func (x Failure_FailureType) String() string
func (Failure_FailureType) Type ¶
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,req,name=major_version,json=majorVersion" json:"major_version,omitempty"` // major version of the firmware/bootloader, e.g. 1
MinorVersion *uint32 `protobuf:"varint,3,req,name=minor_version,json=minorVersion" json:"minor_version,omitempty"` // minor version of the firmware/bootloader, e.g. 0
PatchVersion *uint32 `protobuf:"varint,4,req,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?
Unlocked *bool `protobuf:"varint,16,opt,name=unlocked" json:"unlocked,omitempty"` // is the device unlocked? called "pin_cached" previously
// Deprecated: Marked as deprecated in messages-management.proto.
XPassphraseCached *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?
BackupAvailability *Features_BackupAvailability `` // does storage need backup? is repeated backup unlocked?
/* 173-byte string literal not displayed */
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
// optional bytes fw_vendor_keys = 26; // obsoleted, use fw_vendor
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)
RecoveryStatus *Features_RecoveryStatus `` // whether or not we are in recovery mode and of what kind
/* 157-byte string literal not displayed */
Capabilities []Features_Capability `` // list of supported capabilities
/* 127-byte string literal not displayed */
BackupType *BackupType `` // type of device backup (BIP-39 / SLIP-39 basic / SLIP-39 advanced)
/* 132-byte string literal not displayed */
SdCardPresent *bool `protobuf:"varint,32,opt,name=sd_card_present,json=sdCardPresent" json:"sd_card_present,omitempty"` // is SD card present
SdProtection *bool `protobuf:"varint,33,opt,name=sd_protection,json=sdProtection" json:"sd_protection,omitempty"` // is SD Protect enabled
WipeCodeProtection *bool `protobuf:"varint,34,opt,name=wipe_code_protection,json=wipeCodeProtection" json:"wipe_code_protection,omitempty"` // is wipe code protection enabled
SessionId []byte `protobuf:"bytes,35,opt,name=session_id,json=sessionId" json:"session_id,omitempty"`
PassphraseAlwaysOnDevice *bool `` // device enforces passphrase entry on Trezor
/* 132-byte string literal not displayed */
SafetyChecks *SafetyCheckLevel `` // safety check level, set to Prompt to limit path namespace enforcement
/* 144-byte string literal not displayed */
AutoLockDelayMs *uint32 `protobuf:"varint,38,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"` // number of milliseconds after which the device locks itself
DisplayRotation *DisplayRotation `` // rotation of display (in degrees from North)
/* 152-byte string literal not displayed */
ExperimentalFeatures *bool `protobuf:"varint,40,opt,name=experimental_features,json=experimentalFeatures" json:"experimental_features,omitempty"` // are experimental message types enabled?
Busy *bool `protobuf:"varint,41,opt,name=busy" json:"busy,omitempty"` // is the device busy, showing "Do not disconnect"?
HomescreenFormat *HomescreenFormat `` // format of the homescreen, 1 = TOIf, 2 = jpg, 3 = TOIG
/* 156-byte string literal not displayed */
HidePassphraseFromHost *bool `` // should we hide the passphrase when it comes from host?
/* 126-byte string literal not displayed */
InternalModel *string `protobuf:"bytes,44,opt,name=internal_model,json=internalModel" json:"internal_model,omitempty"` // internal model name
UnitColor *uint32 `protobuf:"varint,45,opt,name=unit_color,json=unitColor" json:"unit_color,omitempty"` // color of the unit/device
UnitBtconly *bool `protobuf:"varint,46,opt,name=unit_btconly,json=unitBtconly" json:"unit_btconly,omitempty"` // unit/device is intended as bitcoin only
HomescreenWidth *uint32 `protobuf:"varint,47,opt,name=homescreen_width,json=homescreenWidth" json:"homescreen_width,omitempty"` // homescreen width in pixels
HomescreenHeight *uint32 `protobuf:"varint,48,opt,name=homescreen_height,json=homescreenHeight" json:"homescreen_height,omitempty"` // homescreen height in pixels
BootloaderLocked *bool `protobuf:"varint,49,opt,name=bootloader_locked,json=bootloaderLocked" json:"bootloader_locked,omitempty"` // bootloader is locked
LanguageVersionMatches *bool `` // translation blob version matches firmware version
/* 130-byte string literal not displayed */
UnitPackaging *uint32 `protobuf:"varint,51,opt,name=unit_packaging,json=unitPackaging" json:"unit_packaging,omitempty"` // unit/device packaging version
HapticFeedback *bool `protobuf:"varint,52,opt,name=haptic_feedback,json=hapticFeedback" json:"haptic_feedback,omitempty"` // haptic feedback is enabled
RecoveryType *RecoveryType `` // what type of recovery we are in. NB: this works in conjunction with recovery_status
/* 140-byte string literal not displayed */
OptigaSec *uint32 `protobuf:"varint,54,opt,name=optiga_sec,json=optigaSec" json:"optiga_sec,omitempty"` // Optiga's security event counter.
// contains filtered or unexported fields
}
* Response: Reports various information about the device @end
func (*Features) Descriptor
deprecated
func (*Features) GetAutoLockDelayMs ¶
func (*Features) GetBackupAvailability ¶
func (x *Features) GetBackupAvailability() Features_BackupAvailability
func (*Features) GetBackupType ¶
func (x *Features) GetBackupType() BackupType
func (*Features) GetBootloaderHash ¶
func (*Features) GetBootloaderLocked ¶
func (*Features) GetBootloaderMode ¶
func (*Features) GetCapabilities ¶
func (x *Features) GetCapabilities() []Features_Capability
func (*Features) GetDeviceId ¶
func (*Features) GetDisplayRotation ¶
func (x *Features) GetDisplayRotation() DisplayRotation
func (*Features) GetExperimentalFeatures ¶
func (*Features) GetFirmwarePresent ¶
func (*Features) GetFwMajor ¶
func (*Features) GetFwMinor ¶
func (*Features) GetFwPatch ¶
func (*Features) GetFwVendor ¶
func (*Features) GetHapticFeedback ¶
func (*Features) GetHidePassphraseFromHost ¶
func (*Features) GetHomescreenFormat ¶
func (x *Features) GetHomescreenFormat() HomescreenFormat
func (*Features) GetHomescreenHeight ¶
func (*Features) GetHomescreenWidth ¶
func (*Features) GetImported ¶
func (*Features) GetInitialized ¶
func (*Features) GetInternalModel ¶
func (*Features) GetLanguage ¶
func (*Features) GetLanguageVersionMatches ¶
func (*Features) GetMajorVersion ¶
func (*Features) GetMinorVersion ¶
func (*Features) GetNoBackup ¶
func (*Features) GetOptigaSec ¶
func (*Features) GetPassphraseAlwaysOnDevice ¶
func (*Features) GetPassphraseProtection ¶
func (*Features) GetPatchVersion ¶
func (*Features) GetPinProtection ¶
func (*Features) GetRecoveryStatus ¶
func (x *Features) GetRecoveryStatus() Features_RecoveryStatus
func (*Features) GetRecoveryType ¶
func (x *Features) GetRecoveryType() RecoveryType
func (*Features) GetRevision ¶
func (*Features) GetSafetyChecks ¶
func (x *Features) GetSafetyChecks() SafetyCheckLevel
func (*Features) GetSdCardPresent ¶
func (*Features) GetSdProtection ¶
func (*Features) GetSessionId ¶
func (*Features) GetUnfinishedBackup ¶
func (*Features) GetUnitBtconly ¶
func (*Features) GetUnitColor ¶
func (*Features) GetUnitPackaging ¶
func (*Features) GetUnlocked ¶
func (*Features) GetWipeCodeProtection ¶
func (*Features) GetXPassphraseCached
deprecated
func (*Features) ProtoMessage ¶
func (*Features) ProtoMessage()
func (*Features) ProtoReflect ¶
func (x *Features) ProtoReflect() protoreflect.Message
type Features_BackupAvailability ¶
type Features_BackupAvailability int32
const ( // / Device is already backed up, or a previous backup has failed. Features_NotAvailable Features_BackupAvailability = 0 // / Device is not backed up. Backup is required. Features_Required Features_BackupAvailability = 1 // / Device is already backed up and can be backed up again. Features_Available Features_BackupAvailability = 2 )
func (Features_BackupAvailability) Descriptor ¶
func (Features_BackupAvailability) Descriptor() protoreflect.EnumDescriptor
func (Features_BackupAvailability) Enum ¶
func (x Features_BackupAvailability) Enum() *Features_BackupAvailability
func (Features_BackupAvailability) EnumDescriptor
deprecated
func (Features_BackupAvailability) EnumDescriptor() ([]byte, []int)
Deprecated: Use Features_BackupAvailability.Descriptor instead.
func (Features_BackupAvailability) Number ¶
func (x Features_BackupAvailability) Number() protoreflect.EnumNumber
func (Features_BackupAvailability) String ¶
func (x Features_BackupAvailability) String() string
func (Features_BackupAvailability) Type ¶
func (Features_BackupAvailability) Type() protoreflect.EnumType
func (*Features_BackupAvailability) UnmarshalJSON
deprecated
func (x *Features_BackupAvailability) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Features_Capability ¶
type Features_Capability int32
const ( Features_Capability_Bitcoin Features_Capability = 1 Features_Capability_Bitcoin_like Features_Capability = 2 // Altcoins based on the Bitcoin source code Features_Capability_Binance Features_Capability = 3 // BNB Smart Chain Features_Capability_Cardano Features_Capability = 4 Features_Capability_Crypto Features_Capability = 5 // generic crypto operations for GPG, SSH, etc. Features_Capability_EOS Features_Capability = 6 Features_Capability_Ethereum Features_Capability = 7 // Deprecated: Marked as deprecated in messages-management.proto. Features_Capability_Lisk Features_Capability = 8 Features_Capability_Monero Features_Capability = 9 Features_Capability_NEM Features_Capability = 10 Features_Capability_Ripple Features_Capability = 11 Features_Capability_Stellar Features_Capability = 12 Features_Capability_Tezos Features_Capability = 13 Features_Capability_U2F Features_Capability = 14 Features_Capability_Shamir Features_Capability = 15 Features_Capability_ShamirGroups Features_Capability = 16 Features_Capability_PassphraseEntry Features_Capability = 17 // the device is capable of passphrase entry directly on the device Features_Capability_Solana Features_Capability = 18 Features_Capability_Translations Features_Capability = 19 Features_Capability_Brightness Features_Capability = 20 Features_Capability_Haptic Features_Capability = 21 Features_Capability_BLE Features_Capability = 22 // Bluetooth Low Energy Features_Capability_NFC Features_Capability = 23 // Near Field Communications )
func (Features_Capability) Descriptor ¶
func (Features_Capability) Descriptor() protoreflect.EnumDescriptor
func (Features_Capability) Enum ¶
func (x Features_Capability) Enum() *Features_Capability
func (Features_Capability) EnumDescriptor
deprecated
func (Features_Capability) EnumDescriptor() ([]byte, []int)
Deprecated: Use Features_Capability.Descriptor instead.
func (Features_Capability) Number ¶
func (x Features_Capability) Number() protoreflect.EnumNumber
func (Features_Capability) String ¶
func (x Features_Capability) String() string
func (Features_Capability) Type ¶
func (Features_Capability) Type() protoreflect.EnumType
func (*Features_Capability) UnmarshalJSON
deprecated
func (x *Features_Capability) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Features_RecoveryStatus ¶
type Features_RecoveryStatus int32
const ( Features_Nothing Features_RecoveryStatus = 0 // we are not in recovery mode Features_Recovery Features_RecoveryStatus = 1 // we are in "Normal" or "DryRun" recovery Features_Backup Features_RecoveryStatus = 2 // we are in repeated backup mode )
func (Features_RecoveryStatus) Descriptor ¶
func (Features_RecoveryStatus) Descriptor() protoreflect.EnumDescriptor
func (Features_RecoveryStatus) Enum ¶
func (x Features_RecoveryStatus) Enum() *Features_RecoveryStatus
func (Features_RecoveryStatus) EnumDescriptor
deprecated
func (Features_RecoveryStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Features_RecoveryStatus.Descriptor instead.
func (Features_RecoveryStatus) Number ¶
func (x Features_RecoveryStatus) Number() protoreflect.EnumNumber
func (Features_RecoveryStatus) String ¶
func (x Features_RecoveryStatus) String() string
func (Features_RecoveryStatus) Type ¶
func (Features_RecoveryStatus) Type() protoreflect.EnumType
func (*Features_RecoveryStatus) UnmarshalJSON
deprecated
func (x *Features_RecoveryStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FirmwareHash ¶
type FirmwareHash struct {
Hash []byte `protobuf:"bytes,1,req,name=hash" json:"hash,omitempty"`
// contains filtered or unexported fields
}
* Response: Hash of the installed firmware combined with the optional challenge. @end
func (*FirmwareHash) Descriptor
deprecated
func (*FirmwareHash) Descriptor() ([]byte, []int)
Deprecated: Use FirmwareHash.ProtoReflect.Descriptor instead.
func (*FirmwareHash) GetHash ¶
func (x *FirmwareHash) GetHash() []byte
func (*FirmwareHash) ProtoMessage ¶
func (*FirmwareHash) ProtoMessage()
func (*FirmwareHash) ProtoReflect ¶
func (x *FirmwareHash) ProtoReflect() protoreflect.Message
func (*FirmwareHash) Reset ¶
func (x *FirmwareHash) Reset()
func (*FirmwareHash) String ¶
func (x *FirmwareHash) String() string
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 ¶
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 ¶
func (x *GetFeatures) ProtoReflect() protoreflect.Message
func (*GetFeatures) Reset ¶
func (x *GetFeatures) Reset()
func (*GetFeatures) String ¶
func (x *GetFeatures) String() string
type GetFirmwareHash ¶
type GetFirmwareHash struct {
Challenge []byte `protobuf:"bytes,1,opt,name=challenge" json:"challenge,omitempty"` // Blake2s key up to 32 bytes in length.
// contains filtered or unexported fields
}
* Request: Get a hash of the installed firmware combined with an optional challenge. @start @next FirmwareHash @next Failure
func (*GetFirmwareHash) Descriptor
deprecated
func (*GetFirmwareHash) Descriptor() ([]byte, []int)
Deprecated: Use GetFirmwareHash.ProtoReflect.Descriptor instead.
func (*GetFirmwareHash) GetChallenge ¶
func (x *GetFirmwareHash) GetChallenge() []byte
func (*GetFirmwareHash) ProtoMessage ¶
func (*GetFirmwareHash) ProtoMessage()
func (*GetFirmwareHash) ProtoReflect ¶
func (x *GetFirmwareHash) ProtoReflect() protoreflect.Message
func (*GetFirmwareHash) Reset ¶
func (x *GetFirmwareHash) Reset()
func (*GetFirmwareHash) String ¶
func (x *GetFirmwareHash) String() string
type GetNextU2FCounter ¶
type GetNextU2FCounter struct {
// contains filtered or unexported fields
}
* Request: Set U2F counter @start @next NextU2FCounter
func (*GetNextU2FCounter) Descriptor
deprecated
func (*GetNextU2FCounter) Descriptor() ([]byte, []int)
Deprecated: Use GetNextU2FCounter.ProtoReflect.Descriptor instead.
func (*GetNextU2FCounter) ProtoMessage ¶
func (*GetNextU2FCounter) ProtoMessage()
func (*GetNextU2FCounter) ProtoReflect ¶
func (x *GetNextU2FCounter) ProtoReflect() protoreflect.Message
func (*GetNextU2FCounter) Reset ¶
func (x *GetNextU2FCounter) Reset()
func (*GetNextU2FCounter) String ¶
func (x *GetNextU2FCounter) String() string
type GetNonce ¶
type GetNonce struct {
// contains filtered or unexported fields
}
* Request: Ask device to generate a random nonce and store it in the session's cache @start @next Nonce
func (*GetNonce) Descriptor
deprecated
func (*GetNonce) ProtoMessage ¶
func (*GetNonce) ProtoMessage()
func (*GetNonce) ProtoReflect ¶
func (x *GetNonce) ProtoReflect() protoreflect.Message
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,req,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 ¶
func (x *HDNodeType) ProtoReflect() protoreflect.Message
func (*HDNodeType) Reset ¶
func (x *HDNodeType) Reset()
func (*HDNodeType) String ¶
func (x *HDNodeType) String() string
type HomescreenFormat ¶
type HomescreenFormat int32
* Format of the homescreen image
const ( HomescreenFormat_Toif HomescreenFormat = 1 // full-color toif HomescreenFormat_Jpeg HomescreenFormat = 2 // jpeg HomescreenFormat_ToiG HomescreenFormat = 3 // greyscale toif )
func (HomescreenFormat) Descriptor ¶
func (HomescreenFormat) Descriptor() protoreflect.EnumDescriptor
func (HomescreenFormat) Enum ¶
func (x HomescreenFormat) Enum() *HomescreenFormat
func (HomescreenFormat) EnumDescriptor
deprecated
func (HomescreenFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use HomescreenFormat.Descriptor instead.
func (HomescreenFormat) Number ¶
func (x HomescreenFormat) Number() protoreflect.EnumNumber
func (HomescreenFormat) String ¶
func (x HomescreenFormat) String() string
func (HomescreenFormat) Type ¶
func (HomescreenFormat) Type() protoreflect.EnumType
func (*HomescreenFormat) UnmarshalJSON
deprecated
func (x *HomescreenFormat) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Initialize ¶
type Initialize struct {
SessionId []byte `protobuf:"bytes,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` // assumed device session id; Trezor clears caches if it is different or empty
// Deprecated: Marked as deprecated in messages-management.proto.
XSkipPassphrase *bool `protobuf:"varint,2,opt,name=_skip_passphrase,json=SkipPassphrase" json:"_skip_passphrase,omitempty"` // removed as part of passphrase redesign
DeriveCardano *bool `protobuf:"varint,3,opt,name=derive_cardano,json=deriveCardano" json:"derive_cardano,omitempty"` // whether to derive Cardano Icarus root keys in this session
// 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) GetDeriveCardano ¶
func (x *Initialize) GetDeriveCardano() bool
func (*Initialize) GetSessionId ¶
func (x *Initialize) GetSessionId() []byte
func (*Initialize) GetXSkipPassphrase
deprecated
func (x *Initialize) GetXSkipPassphrase() bool
Deprecated: Marked as deprecated in messages-management.proto.
func (*Initialize) ProtoMessage ¶
func (*Initialize) ProtoMessage()
func (*Initialize) ProtoReflect ¶
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 {
Mnemonics []string `protobuf:"bytes,1,rep,name=mnemonics" json:"mnemonics,omitempty"` // seed encoded as mnemonic (12, 18 or 24 words for BIP39, 20 or 33 for SLIP39)
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
// Deprecated: Marked as deprecated in messages-management.proto.
Language *string `protobuf:"bytes,5,opt,name=language" json:"language,omitempty"` // deprecated (use ChangeLanguage)
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
NeedsBackup *bool `protobuf:"varint,9,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"` // set "needs backup" flag
NoBackup *bool `protobuf:"varint,10,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: 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
deprecated
func (x *LoadDevice) GetLanguage() string
Deprecated: Marked as deprecated in messages-management.proto.
func (*LoadDevice) GetMnemonics ¶
func (x *LoadDevice) GetMnemonics() []string
func (*LoadDevice) GetNeedsBackup ¶
func (x *LoadDevice) GetNeedsBackup() bool
func (*LoadDevice) GetNoBackup ¶
func (x *LoadDevice) GetNoBackup() bool
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 ¶
func (x *LoadDevice) ProtoReflect() protoreflect.Message
func (*LoadDevice) Reset ¶
func (x *LoadDevice) Reset()
func (*LoadDevice) String ¶
func (x *LoadDevice) String() string
type LockDevice ¶
type LockDevice struct {
// contains filtered or unexported fields
}
* Request: soft-lock the device. Following actions will require PIN. Passphrases remain cached. @start @next Success
func (*LockDevice) Descriptor
deprecated
func (*LockDevice) Descriptor() ([]byte, []int)
Deprecated: Use LockDevice.ProtoReflect.Descriptor instead.
func (*LockDevice) ProtoMessage ¶
func (*LockDevice) ProtoMessage()
func (*LockDevice) ProtoReflect ¶
func (x *LockDevice) ProtoReflect() protoreflect.Message
func (*LockDevice) Reset ¶
func (x *LockDevice) Reset()
func (*LockDevice) String ¶
func (x *LockDevice) 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_SetBusy MessageType = 16 MessageType_MessageType_Features MessageType = 17 MessageType_MessageType_PinMatrixRequest MessageType = 18 MessageType_MessageType_PinMatrixAck MessageType = 19 MessageType_MessageType_Cancel MessageType = 20 MessageType_MessageType_LockDevice MessageType = 24 MessageType_MessageType_ApplySettings MessageType = 25 MessageType_MessageType_ButtonRequest MessageType = 26 MessageType_MessageType_ButtonAck MessageType = 27 MessageType_MessageType_ApplyFlags MessageType = 28 MessageType_MessageType_GetNonce MessageType = 31 MessageType_MessageType_Nonce MessageType = 33 MessageType_MessageType_BackupDevice MessageType = 34 MessageType_MessageType_EntropyRequest MessageType = 35 MessageType_MessageType_EntropyAck MessageType = 36 MessageType_MessageType_EntropyCheckReady MessageType = 994 MessageType_MessageType_EntropyCheckContinue MessageType = 995 MessageType_MessageType_PassphraseRequest MessageType = 41 MessageType_MessageType_PassphraseAck MessageType = 42 MessageType_MessageType_RecoveryDevice MessageType = 45 MessageType_MessageType_WordRequest MessageType = 46 MessageType_MessageType_WordAck MessageType = 47 MessageType_MessageType_GetFeatures MessageType = 55 MessageType_MessageType_SdProtect MessageType = 79 MessageType_MessageType_ChangeWipeCode MessageType = 82 MessageType_MessageType_EndSession MessageType = 83 MessageType_MessageType_CancelAuthorization MessageType = 86 MessageType_MessageType_RebootToBootloader MessageType = 87 MessageType_MessageType_GetFirmwareHash MessageType = 88 MessageType_MessageType_FirmwareHash MessageType = 89 MessageType_MessageType_UnlockPath MessageType = 93 MessageType_MessageType_UnlockedPathRequest MessageType = 94 MessageType_MessageType_ShowDeviceTutorial MessageType = 95 MessageType_MessageType_UnlockBootloader MessageType = 96 MessageType_MessageType_AuthenticateDevice MessageType = 97 MessageType_MessageType_AuthenticityProof MessageType = 98 MessageType_MessageType_ChangeLanguage MessageType = 990 MessageType_MessageType_DataChunkRequest MessageType = 991 MessageType_MessageType_DataChunkAck MessageType = 992 MessageType_MessageType_SetBrightness MessageType = 993 MessageType_MessageType_SetU2FCounter MessageType = 63 MessageType_MessageType_GetNextU2FCounter MessageType = 80 MessageType_MessageType_NextU2FCounter MessageType = 81 // Deprecated messages, kept for protobuf compatibility. // // Deprecated: Marked as deprecated in messages.proto. MessageType_MessageType_Deprecated_PassphraseStateRequest MessageType = 77 // Deprecated: Marked as deprecated in messages.proto. MessageType_MessageType_Deprecated_PassphraseStateAck MessageType = 78 // Bootloader MessageType_MessageType_FirmwareErase MessageType = 6 MessageType_MessageType_FirmwareUpload MessageType = 7 MessageType_MessageType_FirmwareRequest MessageType = 8 MessageType_MessageType_ProdTestT1 MessageType = 32 // BLE MessageType_MessageType_BleUnpair MessageType = 8001 // 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_TxAckPaymentRequest MessageType = 37 MessageType_MessageType_SignMessage MessageType = 38 MessageType_MessageType_VerifyMessage MessageType = 39 MessageType_MessageType_MessageSignature MessageType = 40 MessageType_MessageType_GetOwnershipId MessageType = 43 MessageType_MessageType_OwnershipId MessageType = 44 MessageType_MessageType_GetOwnershipProof MessageType = 49 MessageType_MessageType_OwnershipProof MessageType = 50 MessageType_MessageType_AuthorizeCoinJoin MessageType = 51 // 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 // 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 MessageType_MessageType_DebugLinkLayout MessageType = 9001 MessageType_MessageType_DebugLinkReseedRandom MessageType = 9002 MessageType_MessageType_DebugLinkRecordScreen MessageType = 9003 MessageType_MessageType_DebugLinkEraseSdCard MessageType = 9005 MessageType_MessageType_DebugLinkWatchLayout MessageType = 9006 MessageType_MessageType_DebugLinkResetDebugEvents MessageType = 9007 MessageType_MessageType_DebugLinkOptigaSetSecMax MessageType = 9008 MessageType_MessageType_DebugLinkGetGcInfo MessageType = 9009 MessageType_MessageType_DebugLinkGcInfo MessageType = 9010 MessageType_MessageType_DebugLinkGetPairingInfo MessageType = 9011 MessageType_MessageType_DebugLinkPairingInfo MessageType = 9012 // 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_EthereumSignTxEIP1559 MessageType = 452 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 MessageType_MessageType_EthereumSignTypedData MessageType = 464 MessageType_MessageType_EthereumTypedDataStructRequest MessageType = 465 MessageType_MessageType_EthereumTypedDataStructAck MessageType = 466 MessageType_MessageType_EthereumTypedDataValueRequest MessageType = 467 MessageType_MessageType_EthereumTypedDataValueAck MessageType = 468 MessageType_MessageType_EthereumTypedDataSignature MessageType = 469 MessageType_MessageType_EthereumSignTypedHash MessageType = 470 // 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 // 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_StellarPathPaymentStrictReceiveOp MessageType = 212 MessageType_MessageType_StellarManageSellOfferOp MessageType = 213 MessageType_MessageType_StellarCreatePassiveSellOfferOp MessageType = 214 MessageType_MessageType_StellarSetOptionsOp MessageType = 215 MessageType_MessageType_StellarChangeTrustOp MessageType = 216 MessageType_MessageType_StellarAllowTrustOp MessageType = 217 MessageType_MessageType_StellarAccountMergeOp MessageType = 218 MessageType_MessageType_StellarManageDataOp MessageType = 220 MessageType_MessageType_StellarBumpSequenceOp MessageType = 221 MessageType_MessageType_StellarManageBuyOfferOp MessageType = 222 MessageType_MessageType_StellarPathPaymentStrictSendOp MessageType = 223 MessageType_MessageType_StellarClaimClaimableBalanceOp MessageType = 225 MessageType_MessageType_StellarSignedTx MessageType = 230 MessageType_MessageType_CardanoGetPublicKey MessageType = 305 MessageType_MessageType_CardanoPublicKey MessageType = 306 MessageType_MessageType_CardanoGetAddress MessageType = 307 MessageType_MessageType_CardanoAddress MessageType = 308 MessageType_MessageType_CardanoTxItemAck MessageType = 313 MessageType_MessageType_CardanoTxAuxiliaryDataSupplement MessageType = 314 MessageType_MessageType_CardanoTxWitnessRequest MessageType = 315 MessageType_MessageType_CardanoTxWitnessResponse MessageType = 316 MessageType_MessageType_CardanoTxHostAck MessageType = 317 MessageType_MessageType_CardanoTxBodyHash MessageType = 318 MessageType_MessageType_CardanoSignTxFinished MessageType = 319 MessageType_MessageType_CardanoSignTxInit MessageType = 320 MessageType_MessageType_CardanoTxInput MessageType = 321 MessageType_MessageType_CardanoTxOutput MessageType = 322 MessageType_MessageType_CardanoAssetGroup MessageType = 323 MessageType_MessageType_CardanoToken MessageType = 324 MessageType_MessageType_CardanoTxCertificate MessageType = 325 MessageType_MessageType_CardanoTxWithdrawal MessageType = 326 MessageType_MessageType_CardanoTxAuxiliaryData MessageType = 327 MessageType_MessageType_CardanoPoolOwner MessageType = 328 MessageType_MessageType_CardanoPoolRelayParameters MessageType = 329 MessageType_MessageType_CardanoGetNativeScriptHash MessageType = 330 MessageType_MessageType_CardanoNativeScriptHash MessageType = 331 MessageType_MessageType_CardanoTxMint MessageType = 332 MessageType_MessageType_CardanoTxCollateralInput MessageType = 333 MessageType_MessageType_CardanoTxRequiredSigner MessageType = 334 MessageType_MessageType_CardanoTxInlineDatumChunk MessageType = 335 MessageType_MessageType_CardanoTxReferenceScriptChunk MessageType = 336 MessageType_MessageType_CardanoTxReferenceInput MessageType = 337 // 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_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 // WebAuthn MessageType_MessageType_WebAuthnListResidentCredentials MessageType = 800 MessageType_MessageType_WebAuthnCredentials MessageType = 801 MessageType_MessageType_WebAuthnAddResidentCredential MessageType = 802 MessageType_MessageType_WebAuthnRemoveResidentCredential MessageType = 803 // Solana MessageType_MessageType_SolanaGetPublicKey MessageType = 900 MessageType_MessageType_SolanaPublicKey MessageType = 901 MessageType_MessageType_SolanaGetAddress MessageType = 902 MessageType_MessageType_SolanaAddress MessageType = 903 MessageType_MessageType_SolanaSignTx MessageType = 904 MessageType_MessageType_SolanaTxSignature MessageType = 905 // THP MessageType_MessageType_ThpCreateNewSession MessageType = 1000 MessageType_MessageType_ThpPairingRequest MessageType = 1006 MessageType_MessageType_ThpPairingRequestApproved MessageType = 1007 MessageType_MessageType_ThpSelectMethod MessageType = 1008 MessageType_MessageType_ThpPairingPreparationsFinished MessageType = 1009 MessageType_MessageType_ThpCredentialRequest MessageType = 1010 MessageType_MessageType_ThpCredentialResponse MessageType = 1011 MessageType_MessageType_ThpEndRequest MessageType = 1012 MessageType_MessageType_ThpEndResponse MessageType = 1013 MessageType_MessageType_ThpCodeEntryCommitment MessageType = 1016 MessageType_MessageType_ThpCodeEntryChallenge MessageType = 1017 MessageType_MessageType_ThpCodeEntryCpaceTrezor MessageType = 1018 MessageType_MessageType_ThpCodeEntryCpaceHostTag MessageType = 1019 MessageType_MessageType_ThpCodeEntrySecret MessageType = 1020 MessageType_MessageType_ThpQrCodeTag MessageType = 1024 MessageType_MessageType_ThpQrCodeSecret MessageType = 1025 MessageType_MessageType_ThpNfcTagHost MessageType = 1032 MessageType_MessageType_ThpNfcTagTrezor MessageType = 1033 // Nostr MessageType_MessageType_NostrGetPubkey MessageType = 2001 MessageType_MessageType_NostrPubkey MessageType = 2002 MessageType_MessageType_NostrSignEvent MessageType = 2003 MessageType_MessageType_NostrEventSignature MessageType = 2004 // Benchmark MessageType_MessageType_BenchmarkListNames MessageType = 9100 MessageType_MessageType_BenchmarkNames MessageType = 9101 MessageType_MessageType_BenchmarkRun MessageType = 9102 MessageType_MessageType_BenchmarkResult MessageType = 9103 )
func (MessageType) Descriptor ¶
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 ¶
func (x MessageType) Number() protoreflect.EnumNumber
func (MessageType) String ¶
func (x MessageType) String() string
func (MessageType) Type ¶
func (MessageType) Type() protoreflect.EnumType
func (*MessageType) UnmarshalJSON
deprecated
func (x *MessageType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type NextU2FCounter ¶
type NextU2FCounter struct {
U2FCounter *uint32 `protobuf:"varint,1,req,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
// contains filtered or unexported fields
}
* Request: Set U2F counter @end
func (*NextU2FCounter) Descriptor
deprecated
func (*NextU2FCounter) Descriptor() ([]byte, []int)
Deprecated: Use NextU2FCounter.ProtoReflect.Descriptor instead.
func (*NextU2FCounter) GetU2FCounter ¶
func (x *NextU2FCounter) GetU2FCounter() uint32
func (*NextU2FCounter) ProtoMessage ¶
func (*NextU2FCounter) ProtoMessage()
func (*NextU2FCounter) ProtoReflect ¶
func (x *NextU2FCounter) ProtoReflect() protoreflect.Message
func (*NextU2FCounter) Reset ¶
func (x *NextU2FCounter) Reset()
func (*NextU2FCounter) String ¶
func (x *NextU2FCounter) String() string
type Nonce ¶
type Nonce struct {
Nonce []byte `protobuf:"bytes,1,req,name=nonce" json:"nonce,omitempty"` // a 32-byte random value generated by Trezor
// contains filtered or unexported fields
}
* Response: Contains a random nonce @end
func (*Nonce) Descriptor
deprecated
func (*Nonce) ProtoMessage ¶
func (*Nonce) ProtoMessage()
func (*Nonce) ProtoReflect ¶
func (x *Nonce) ProtoReflect() protoreflect.Message
type PassphraseAck ¶
type PassphraseAck struct {
Passphrase *string `protobuf:"bytes,1,opt,name=passphrase" json:"passphrase,omitempty"`
// Deprecated: Marked as deprecated in messages-common.proto.
XState []byte `protobuf:"bytes,2,opt,name=_state,json=State" json:"_state,omitempty"` // <2.3.0
OnDevice *bool `protobuf:"varint,3,opt,name=on_device,json=onDevice" json:"on_device,omitempty"` // user wants to enter passphrase on the device
// contains filtered or unexported fields
}
* Request: Send passphrase back @auxend
func (*PassphraseAck) Descriptor
deprecated
func (*PassphraseAck) Descriptor() ([]byte, []int)
Deprecated: Use PassphraseAck.ProtoReflect.Descriptor instead.
func (*PassphraseAck) GetOnDevice ¶
func (x *PassphraseAck) GetOnDevice() bool
func (*PassphraseAck) GetPassphrase ¶
func (x *PassphraseAck) GetPassphrase() string
func (*PassphraseAck) GetXState
deprecated
func (x *PassphraseAck) GetXState() []byte
Deprecated: Marked as deprecated in messages-common.proto.
func (*PassphraseAck) ProtoMessage ¶
func (*PassphraseAck) ProtoMessage()
func (*PassphraseAck) ProtoReflect ¶
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 {
// Deprecated: Marked as deprecated in messages-common.proto.
XOnDevice *bool `protobuf:"varint,1,opt,name=_on_device,json=OnDevice" json:"_on_device,omitempty"` // <2.3.0
// 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) GetXOnDevice
deprecated
func (x *PassphraseRequest) GetXOnDevice() bool
Deprecated: Marked as deprecated in messages-common.proto.
func (*PassphraseRequest) ProtoMessage ¶
func (*PassphraseRequest) ProtoMessage()
func (*PassphraseRequest) ProtoReflect ¶
func (x *PassphraseRequest) ProtoReflect() protoreflect.Message
func (*PassphraseRequest) Reset ¶
func (x *PassphraseRequest) Reset()
func (*PassphraseRequest) String ¶
func (x *PassphraseRequest) 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 ¶
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 ¶
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 PinMatrixRequest_PinMatrixRequestType_WipeCodeFirst PinMatrixRequest_PinMatrixRequestType = 4 PinMatrixRequest_PinMatrixRequestType_WipeCodeSecond PinMatrixRequest_PinMatrixRequestType = 5 )
func (PinMatrixRequest_PinMatrixRequestType) Descriptor ¶
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 ¶
func (x PinMatrixRequest_PinMatrixRequestType) Number() protoreflect.EnumNumber
func (PinMatrixRequest_PinMatrixRequestType) String ¶
func (x PinMatrixRequest_PinMatrixRequestType) String() string
func (PinMatrixRequest_PinMatrixRequestType) Type ¶
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,def=" 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
// 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) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type PreauthorizedRequest ¶
type PreauthorizedRequest struct {
// contains filtered or unexported fields
}
* Request: Device awaits a preauthorized operation. @start @next SignTx @next GetOwnershipProof
func (*PreauthorizedRequest) Descriptor
deprecated
func (*PreauthorizedRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreauthorizedRequest.ProtoReflect.Descriptor instead.
func (*PreauthorizedRequest) ProtoMessage ¶
func (*PreauthorizedRequest) ProtoMessage()
func (*PreauthorizedRequest) ProtoReflect ¶
func (x *PreauthorizedRequest) ProtoReflect() protoreflect.Message
func (*PreauthorizedRequest) Reset ¶
func (x *PreauthorizedRequest) Reset()
func (*PreauthorizedRequest) String ¶
func (x *PreauthorizedRequest) String() string
type RebootToBootloader ¶
type RebootToBootloader struct {
// Action to be performed after rebooting to bootloader
BootCommand *RebootToBootloader_BootCommand `` /* 160-byte string literal not displayed */
// Firmware header to be flashed after rebooting to bootloader
FirmwareHeader []byte `protobuf:"bytes,2,opt,name=firmware_header,json=firmwareHeader" json:"firmware_header,omitempty"`
// Length of language blob to be installed before upgrading firmware
LanguageDataLength *uint32 `protobuf:"varint,3,opt,name=language_data_length,json=languageDataLength,def=0" json:"language_data_length,omitempty"`
// contains filtered or unexported fields
}
* Request: Reboot firmware to bootloader @start @next Success @next DataChunkRequest
func (*RebootToBootloader) Descriptor
deprecated
func (*RebootToBootloader) Descriptor() ([]byte, []int)
Deprecated: Use RebootToBootloader.ProtoReflect.Descriptor instead.
func (*RebootToBootloader) GetBootCommand ¶
func (x *RebootToBootloader) GetBootCommand() RebootToBootloader_BootCommand
func (*RebootToBootloader) GetFirmwareHeader ¶
func (x *RebootToBootloader) GetFirmwareHeader() []byte
func (*RebootToBootloader) GetLanguageDataLength ¶
func (x *RebootToBootloader) GetLanguageDataLength() uint32
func (*RebootToBootloader) ProtoMessage ¶
func (*RebootToBootloader) ProtoMessage()
func (*RebootToBootloader) ProtoReflect ¶
func (x *RebootToBootloader) ProtoReflect() protoreflect.Message
func (*RebootToBootloader) Reset ¶
func (x *RebootToBootloader) Reset()
func (*RebootToBootloader) String ¶
func (x *RebootToBootloader) String() string
type RebootToBootloader_BootCommand ¶
type RebootToBootloader_BootCommand int32
const ( // Go to bootloader menu RebootToBootloader_STOP_AND_WAIT RebootToBootloader_BootCommand = 0 // Connect to host and wait for firmware update RebootToBootloader_INSTALL_UPGRADE RebootToBootloader_BootCommand = 1 )
func (RebootToBootloader_BootCommand) Descriptor ¶
func (RebootToBootloader_BootCommand) Descriptor() protoreflect.EnumDescriptor
func (RebootToBootloader_BootCommand) Enum ¶
func (x RebootToBootloader_BootCommand) Enum() *RebootToBootloader_BootCommand
func (RebootToBootloader_BootCommand) EnumDescriptor
deprecated
func (RebootToBootloader_BootCommand) EnumDescriptor() ([]byte, []int)
Deprecated: Use RebootToBootloader_BootCommand.Descriptor instead.
func (RebootToBootloader_BootCommand) Number ¶
func (x RebootToBootloader_BootCommand) Number() protoreflect.EnumNumber
func (RebootToBootloader_BootCommand) String ¶
func (x RebootToBootloader_BootCommand) String() string
func (RebootToBootloader_BootCommand) Type ¶
func (RebootToBootloader_BootCommand) Type() protoreflect.EnumType
func (*RebootToBootloader_BootCommand) UnmarshalJSON
deprecated
func (x *RebootToBootloader_BootCommand) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
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 (T1 only)
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
// Deprecated: Marked as deprecated in messages-management.proto.
Language *string `protobuf:"bytes,4,opt,name=language" json:"language,omitempty"` // deprecated (use ChangeLanguage)
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 (T1 only)
InputMethod *RecoveryDevice_RecoveryDeviceInputMethod `` // supported recovery input method (T1 only)
/* 164-byte string literal not displayed */
U2FCounter *uint32 `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // U2F counter
Type *RecoveryType `protobuf:"varint,10,opt,name=type,enum=hw.trezor.messages.management.RecoveryType,def=0" json:"type,omitempty"` // the type of recovery to perform
// 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) GetEnforceWordlist ¶
func (x *RecoveryDevice) GetEnforceWordlist() bool
func (*RecoveryDevice) GetInputMethod ¶
func (x *RecoveryDevice) GetInputMethod() RecoveryDevice_RecoveryDeviceInputMethod
func (*RecoveryDevice) GetLabel ¶
func (x *RecoveryDevice) GetLabel() string
func (*RecoveryDevice) GetLanguage
deprecated
func (x *RecoveryDevice) GetLanguage() string
Deprecated: Marked as deprecated in messages-management.proto.
func (*RecoveryDevice) GetPassphraseProtection ¶
func (x *RecoveryDevice) GetPassphraseProtection() bool
func (*RecoveryDevice) GetPinProtection ¶
func (x *RecoveryDevice) GetPinProtection() bool
func (*RecoveryDevice) GetType ¶
func (x *RecoveryDevice) GetType() RecoveryType
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 ¶
func (x *RecoveryDevice) ProtoReflect() protoreflect.Message
func (*RecoveryDevice) Reset ¶
func (x *RecoveryDevice) Reset()
func (*RecoveryDevice) String ¶
func (x *RecoveryDevice) String() string
type RecoveryDevice_RecoveryDeviceInputMethod ¶
type RecoveryDevice_RecoveryDeviceInputMethod int32
* Type of recovery procedure. These should be used as bitmask, e.g., `RecoveryDeviceInputMethod_ScrambledWords | RecoveryDeviceInputMethod_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_ScrambledWords RecoveryDevice_RecoveryDeviceInputMethod = 0 // words in scrambled order RecoveryDevice_Matrix RecoveryDevice_RecoveryDeviceInputMethod = 1 // matrix recovery type )
func (RecoveryDevice_RecoveryDeviceInputMethod) Descriptor ¶
func (RecoveryDevice_RecoveryDeviceInputMethod) Descriptor() protoreflect.EnumDescriptor
func (RecoveryDevice_RecoveryDeviceInputMethod) EnumDescriptor
deprecated
func (RecoveryDevice_RecoveryDeviceInputMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecoveryDevice_RecoveryDeviceInputMethod.Descriptor instead.
func (RecoveryDevice_RecoveryDeviceInputMethod) Number ¶
func (x RecoveryDevice_RecoveryDeviceInputMethod) Number() protoreflect.EnumNumber
func (RecoveryDevice_RecoveryDeviceInputMethod) String ¶
func (x RecoveryDevice_RecoveryDeviceInputMethod) String() string
func (RecoveryDevice_RecoveryDeviceInputMethod) Type ¶
func (RecoveryDevice_RecoveryDeviceInputMethod) Type() protoreflect.EnumType
func (*RecoveryDevice_RecoveryDeviceInputMethod) UnmarshalJSON
deprecated
func (x *RecoveryDevice_RecoveryDeviceInputMethod) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type RecoveryType ¶
type RecoveryType int32
const ( RecoveryType_NormalRecovery RecoveryType = 0 // recovery from seedphrase on an uninitialized device RecoveryType_DryRun RecoveryType = 1 // mnemonic validation RecoveryType_UnlockRepeatedBackup RecoveryType = 2 // unlock SLIP-39 repeated backup )
func (RecoveryType) Descriptor ¶
func (RecoveryType) Descriptor() protoreflect.EnumDescriptor
func (RecoveryType) Enum ¶
func (x RecoveryType) Enum() *RecoveryType
func (RecoveryType) EnumDescriptor
deprecated
func (RecoveryType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecoveryType.Descriptor instead.
func (RecoveryType) Number ¶
func (x RecoveryType) Number() protoreflect.EnumNumber
func (RecoveryType) String ¶
func (x RecoveryType) String() string
func (RecoveryType) Type ¶
func (RecoveryType) Type() protoreflect.EnumType
func (*RecoveryType) UnmarshalJSON
deprecated
func (x *RecoveryType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ResetDevice ¶
type ResetDevice struct {
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
// Deprecated: Marked as deprecated in messages-management.proto.
Language *string `protobuf:"bytes,5,opt,name=language" json:"language,omitempty"` // deprecated (use ChangeLanguage)
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
BackupType *BackupType `` // type of the mnemonic backup
/* 138-byte string literal not displayed */
EntropyCheck *bool `protobuf:"varint,11,opt,name=entropy_check,json=entropyCheck" json:"entropy_check,omitempty"` // run with entropy check protocol
// 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) GetBackupType ¶
func (x *ResetDevice) GetBackupType() BackupType
func (*ResetDevice) GetEntropyCheck ¶
func (x *ResetDevice) GetEntropyCheck() bool
func (*ResetDevice) GetLabel ¶
func (x *ResetDevice) GetLabel() string
func (*ResetDevice) GetLanguage
deprecated
func (x *ResetDevice) GetLanguage() string
Deprecated: Marked as deprecated in messages-management.proto.
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 ¶
func (x *ResetDevice) ProtoReflect() protoreflect.Message
func (*ResetDevice) Reset ¶
func (x *ResetDevice) Reset()
func (*ResetDevice) String ¶
func (x *ResetDevice) String() string
type SafetyCheckLevel ¶
type SafetyCheckLevel int32
* Level of safety checks for unsafe actions like spending from invalid path namespace or setting high transaction fee.
const ( SafetyCheckLevel_Strict SafetyCheckLevel = 0 // disallow unsafe actions, this is the default SafetyCheckLevel_PromptAlways SafetyCheckLevel = 1 // ask user before unsafe action SafetyCheckLevel_PromptTemporarily SafetyCheckLevel = 2 // like PromptAlways but reverts to Strict after reboot )
func (SafetyCheckLevel) Descriptor ¶
func (SafetyCheckLevel) Descriptor() protoreflect.EnumDescriptor
func (SafetyCheckLevel) Enum ¶
func (x SafetyCheckLevel) Enum() *SafetyCheckLevel
func (SafetyCheckLevel) EnumDescriptor
deprecated
func (SafetyCheckLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use SafetyCheckLevel.Descriptor instead.
func (SafetyCheckLevel) Number ¶
func (x SafetyCheckLevel) Number() protoreflect.EnumNumber
func (SafetyCheckLevel) String ¶
func (x SafetyCheckLevel) String() string
func (SafetyCheckLevel) Type ¶
func (SafetyCheckLevel) Type() protoreflect.EnumType
func (*SafetyCheckLevel) UnmarshalJSON
deprecated
func (x *SafetyCheckLevel) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SdProtect ¶
type SdProtect struct {
Operation *SdProtect_SdProtectOperationType `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
* Request: Starts workflow for enabling/regenerating/disabling SD card protection @start @next Success @next Failure
func (*SdProtect) Descriptor
deprecated
func (*SdProtect) GetOperation ¶
func (x *SdProtect) GetOperation() SdProtect_SdProtectOperationType
func (*SdProtect) ProtoMessage ¶
func (*SdProtect) ProtoMessage()
func (*SdProtect) ProtoReflect ¶
func (x *SdProtect) ProtoReflect() protoreflect.Message
type SdProtect_SdProtectOperationType ¶
type SdProtect_SdProtectOperationType int32
* Structure representing SD card protection operation
const ( SdProtect_DISABLE SdProtect_SdProtectOperationType = 0 SdProtect_ENABLE SdProtect_SdProtectOperationType = 1 SdProtect_REFRESH SdProtect_SdProtectOperationType = 2 )
func (SdProtect_SdProtectOperationType) Descriptor ¶
func (SdProtect_SdProtectOperationType) Descriptor() protoreflect.EnumDescriptor
func (SdProtect_SdProtectOperationType) Enum ¶
func (x SdProtect_SdProtectOperationType) Enum() *SdProtect_SdProtectOperationType
func (SdProtect_SdProtectOperationType) EnumDescriptor
deprecated
func (SdProtect_SdProtectOperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SdProtect_SdProtectOperationType.Descriptor instead.
func (SdProtect_SdProtectOperationType) Number ¶
func (x SdProtect_SdProtectOperationType) Number() protoreflect.EnumNumber
func (SdProtect_SdProtectOperationType) String ¶
func (x SdProtect_SdProtectOperationType) String() string
func (SdProtect_SdProtectOperationType) Type ¶
func (SdProtect_SdProtectOperationType) Type() protoreflect.EnumType
func (*SdProtect_SdProtectOperationType) UnmarshalJSON
deprecated
func (x *SdProtect_SdProtectOperationType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SetBrightness ¶
type SetBrightness struct {
Value *uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` // if not specified, let the user choose
// contains filtered or unexported fields
}
* Request: Set device brightness @start @next Success
func (*SetBrightness) Descriptor
deprecated
func (*SetBrightness) Descriptor() ([]byte, []int)
Deprecated: Use SetBrightness.ProtoReflect.Descriptor instead.
func (*SetBrightness) GetValue ¶
func (x *SetBrightness) GetValue() uint32
func (*SetBrightness) ProtoMessage ¶
func (*SetBrightness) ProtoMessage()
func (*SetBrightness) ProtoReflect ¶
func (x *SetBrightness) ProtoReflect() protoreflect.Message
func (*SetBrightness) Reset ¶
func (x *SetBrightness) Reset()
func (*SetBrightness) String ¶
func (x *SetBrightness) String() string
type SetBusy ¶
type SetBusy struct {
ExpiryMs *uint32 `protobuf:"varint,1,opt,name=expiry_ms,json=expiryMs" json:"expiry_ms,omitempty"` // The time in milliseconds after which the dialog will automatically disappear. Overrides any previously set expiry. If not set, then the dialog is hidden.
// contains filtered or unexported fields
}
* Request: Show a "Do not disconnect" dialog instead of the standard homescreen. @start @next Success
func (*SetBusy) Descriptor
deprecated
func (*SetBusy) GetExpiryMs ¶
func (*SetBusy) ProtoMessage ¶
func (*SetBusy) ProtoMessage()
func (*SetBusy) ProtoReflect ¶
func (x *SetBusy) ProtoReflect() protoreflect.Message
type SetU2FCounter ¶
type SetU2FCounter struct {
U2FCounter *uint32 `protobuf:"varint,1,req,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
// 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 ¶
func (x *SetU2FCounter) ProtoReflect() protoreflect.Message
func (*SetU2FCounter) Reset ¶
func (x *SetU2FCounter) Reset()
func (*SetU2FCounter) String ¶
func (x *SetU2FCounter) String() string
type ShowDeviceTutorial ¶
type ShowDeviceTutorial struct {
// contains filtered or unexported fields
}
* Request: Show tutorial screens on the device @start @next Success
func (*ShowDeviceTutorial) Descriptor
deprecated
func (*ShowDeviceTutorial) Descriptor() ([]byte, []int)
Deprecated: Use ShowDeviceTutorial.ProtoReflect.Descriptor instead.
func (*ShowDeviceTutorial) ProtoMessage ¶
func (*ShowDeviceTutorial) ProtoMessage()
func (*ShowDeviceTutorial) ProtoReflect ¶
func (x *ShowDeviceTutorial) ProtoReflect() protoreflect.Message
func (*ShowDeviceTutorial) Reset ¶
func (x *ShowDeviceTutorial) Reset()
func (*ShowDeviceTutorial) String ¶
func (x *ShowDeviceTutorial) String() string
type Success ¶
type Success struct {
Message *string `protobuf:"bytes,1,opt,name=message,def=" 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 ¶
func (x *Success) ProtoReflect() protoreflect.Message
type UnlockBootloader ¶
type UnlockBootloader struct {
// contains filtered or unexported fields
}
* Request: Unlocks bootloader, !irreversible! @start @next Success @next Failure
func (*UnlockBootloader) Descriptor
deprecated
func (*UnlockBootloader) Descriptor() ([]byte, []int)
Deprecated: Use UnlockBootloader.ProtoReflect.Descriptor instead.
func (*UnlockBootloader) ProtoMessage ¶
func (*UnlockBootloader) ProtoMessage()
func (*UnlockBootloader) ProtoReflect ¶
func (x *UnlockBootloader) ProtoReflect() protoreflect.Message
func (*UnlockBootloader) Reset ¶
func (x *UnlockBootloader) Reset()
func (*UnlockBootloader) String ¶
func (x *UnlockBootloader) String() string
type UnlockPath ¶
type UnlockPath struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // prefix of the BIP-32 path leading to the account (m / purpose')
Mac []byte `protobuf:"bytes,2,opt,name=mac" json:"mac,omitempty"` // the MAC returned by UnlockedPathRequest
// contains filtered or unexported fields
}
* Request: Ask device to unlock a subtree of the keychain. @start @next UnlockedPathRequest @next Failure
func (*UnlockPath) Descriptor
deprecated
func (*UnlockPath) Descriptor() ([]byte, []int)
Deprecated: Use UnlockPath.ProtoReflect.Descriptor instead.
func (*UnlockPath) GetAddressN ¶
func (x *UnlockPath) GetAddressN() []uint32
func (*UnlockPath) GetMac ¶
func (x *UnlockPath) GetMac() []byte
func (*UnlockPath) ProtoMessage ¶
func (*UnlockPath) ProtoMessage()
func (*UnlockPath) ProtoReflect ¶
func (x *UnlockPath) ProtoReflect() protoreflect.Message
func (*UnlockPath) Reset ¶
func (x *UnlockPath) Reset()
func (*UnlockPath) String ¶
func (x *UnlockPath) String() string
type UnlockedPathRequest ¶
type UnlockedPathRequest struct {
Mac []byte `protobuf:"bytes,1,req,name=mac" json:"mac,omitempty"` // authentication code for future UnlockPath calls
// contains filtered or unexported fields
}
* Request: Device awaits an operation. @start @next SignTx @next GetPublicKey @next GetAddress
func (*UnlockedPathRequest) Descriptor
deprecated
func (*UnlockedPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockedPathRequest.ProtoReflect.Descriptor instead.
func (*UnlockedPathRequest) GetMac ¶
func (x *UnlockedPathRequest) GetMac() []byte
func (*UnlockedPathRequest) ProtoMessage ¶
func (*UnlockedPathRequest) ProtoMessage()
func (*UnlockedPathRequest) ProtoReflect ¶
func (x *UnlockedPathRequest) ProtoReflect() protoreflect.Message
func (*UnlockedPathRequest) Reset ¶
func (x *UnlockedPathRequest) Reset()
func (*UnlockedPathRequest) String ¶
func (x *UnlockedPathRequest) String() string
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 ¶
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 ¶
func (x *WordAck) ProtoReflect() protoreflect.Message
type WordRequest ¶
type WordRequest struct {
Type *WordRequest_WordRequestType `protobuf:"varint,1,req,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 ¶
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 ¶
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 ¶
func (x WordRequest_WordRequestType) Number() protoreflect.EnumNumber
func (WordRequest_WordRequestType) String ¶
func (x WordRequest_WordRequestType) String() string
func (WordRequest_WordRequestType) Type ¶
func (WordRequest_WordRequestType) Type() protoreflect.EnumType
func (*WordRequest_WordRequestType) UnmarshalJSON
deprecated
func (x *WordRequest_WordRequestType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.