Documentation
¶
Index ¶
- Constants
- Variables
- type ApplyFlags
- type ApplySettings
- func (*ApplySettings) Descriptor() ([]byte, []int)deprecated
- func (x *ApplySettings) GetAutoLockDelayMs() uint32
- func (x *ApplySettings) GetDisplayRotation() uint32
- func (x *ApplySettings) GetExperimentalFeatures() bool
- func (x *ApplySettings) GetHomescreen() []byte
- func (x *ApplySettings) GetLabel() string
- func (x *ApplySettings) GetLanguage() string
- func (x *ApplySettings) GetPassphraseAlwaysOnDevice() bool
- func (x *ApplySettings) GetSafetyChecks() SafetyCheckLevel
- func (x *ApplySettings) GetUsePassphrase() bool
- func (*ApplySettings) ProtoMessage()
- func (x *ApplySettings) ProtoReflect() protoreflect.Message
- func (x *ApplySettings) Reset()
- func (x *ApplySettings) String() string
- type BackupDevice
- 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) 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 ChangePin
- type ChangeWipeCode
- type CipherKeyValue
- func (*CipherKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *CipherKeyValue) GetAddressN() []uint32
- func (x *CipherKeyValue) GetAskOnDecrypt() bool
- func (x *CipherKeyValue) GetAskOnEncrypt() bool
- func (x *CipherKeyValue) GetEncrypt() bool
- func (x *CipherKeyValue) GetIv() []byte
- func (x *CipherKeyValue) GetKey() string
- func (x *CipherKeyValue) GetValue() []byte
- func (*CipherKeyValue) ProtoMessage()
- func (x *CipherKeyValue) ProtoReflect() protoreflect.Message
- func (x *CipherKeyValue) Reset()
- func (x *CipherKeyValue) String() string
- type CipheredKeyValue
- type CosiCommit
- type CosiCommitment
- func (*CosiCommitment) Descriptor() ([]byte, []int)deprecated
- func (x *CosiCommitment) GetCommitment() []byte
- func (x *CosiCommitment) GetPubkey() []byte
- func (*CosiCommitment) ProtoMessage()
- func (x *CosiCommitment) ProtoReflect() protoreflect.Message
- func (x *CosiCommitment) Reset()
- func (x *CosiCommitment) String() string
- type CosiSign
- func (*CosiSign) Descriptor() ([]byte, []int)deprecated
- func (x *CosiSign) GetAddressN() []uint32
- func (x *CosiSign) GetData() []byte
- func (x *CosiSign) GetGlobalCommitment() []byte
- func (x *CosiSign) GetGlobalPubkey() []byte
- func (*CosiSign) ProtoMessage()
- func (x *CosiSign) ProtoReflect() protoreflect.Message
- func (x *CosiSign) Reset()
- func (x *CosiSign) String() string
- type CosiSignature
- 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 DoPreauthorized
- type ECDHSessionKey
- func (*ECDHSessionKey) Descriptor() ([]byte, []int)deprecated
- func (x *ECDHSessionKey) GetPublicKey() []byte
- func (x *ECDHSessionKey) GetSessionKey() []byte
- func (*ECDHSessionKey) ProtoMessage()
- func (x *ECDHSessionKey) ProtoReflect() protoreflect.Message
- func (x *ECDHSessionKey) Reset()
- func (x *ECDHSessionKey) String() string
- type EndSession
- type Entropy
- type EntropyAck
- type EntropyRequest
- 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 EthereumGetAddress
- func (*EthereumGetAddress) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumGetAddress) GetAddressN() []uint32
- func (x *EthereumGetAddress) GetShowDisplay() bool
- func (*EthereumGetAddress) ProtoMessage()
- func (x *EthereumGetAddress) ProtoReflect() protoreflect.Message
- func (x *EthereumGetAddress) Reset()
- func (x *EthereumGetAddress) String() string
- type EthereumGetPublicKey
- func (*EthereumGetPublicKey) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumGetPublicKey) GetAddressN() []uint32
- func (x *EthereumGetPublicKey) GetShowDisplay() bool
- func (*EthereumGetPublicKey) ProtoMessage()
- func (x *EthereumGetPublicKey) ProtoReflect() protoreflect.Message
- func (x *EthereumGetPublicKey) Reset()
- func (x *EthereumGetPublicKey) String() string
- type EthereumMessageSignature
- func (*EthereumMessageSignature) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumMessageSignature) 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) GetMessage() []byte
- func (*EthereumSignMessage) ProtoMessage()
- func (x *EthereumSignMessage) ProtoReflect() protoreflect.Message
- func (x *EthereumSignMessage) Reset()
- func (x *EthereumSignMessage) String() string
- type EthereumSignTx
- func (*EthereumSignTx) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumSignTx) GetAddressN() []uint32
- func (x *EthereumSignTx) GetChainId() uint32
- func (x *EthereumSignTx) GetDataInitialChunk() []byte
- func (x *EthereumSignTx) GetDataLength() uint32
- func (x *EthereumSignTx) GetGasLimit() []byte
- func (x *EthereumSignTx) GetGasPrice() []byte
- func (x *EthereumSignTx) GetNonce() []byte
- func (x *EthereumSignTx) 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() uint32
- func (x *EthereumSignTxEIP1559) GetDataInitialChunk() []byte
- func (x *EthereumSignTxEIP1559) GetDataLength() uint32
- 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 EthereumTxAck
- type EthereumTxRequest
- func (*EthereumTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumTxRequest) GetDataLength() uint32
- func (x *EthereumTxRequest) GetSignatureR() []byte
- func (x *EthereumTxRequest) GetSignatureS() []byte
- func (x *EthereumTxRequest) GetSignatureV() uint32
- func (*EthereumTxRequest) ProtoMessage()
- func (x *EthereumTxRequest) ProtoReflect() protoreflect.Message
- func (x *EthereumTxRequest) Reset()
- func (x *EthereumTxRequest) String() string
- type EthereumVerifyMessage
- func (*EthereumVerifyMessage) Descriptor() ([]byte, []int)deprecated
- func (x *EthereumVerifyMessage) GetAddress() string
- func (x *EthereumVerifyMessage) GetMessage() []byte
- func (x *EthereumVerifyMessage) GetSignature() []byte
- func (*EthereumVerifyMessage) ProtoMessage()
- func (x *EthereumVerifyMessage) ProtoReflect() protoreflect.Message
- func (x *EthereumVerifyMessage) Reset()
- func (x *EthereumVerifyMessage) String() string
- type Failure
- type Failure_FailureType
- func (Failure_FailureType) Descriptor() protoreflect.EnumDescriptor
- func (x Failure_FailureType) Enum() *Failure_FailureType
- func (Failure_FailureType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Failure_FailureType) Number() protoreflect.EnumNumber
- func (x Failure_FailureType) String() string
- func (Failure_FailureType) Type() protoreflect.EnumType
- func (x *Failure_FailureType) UnmarshalJSON(b []byte) errordeprecated
- type Features
- func (*Features) Descriptor() ([]byte, []int)deprecated
- func (x *Features) GetAutoLockDelayMs() uint32
- func (x *Features) GetBackupType() BackupType
- func (x *Features) GetBootloaderHash() []byte
- func (x *Features) GetBootloaderMode() bool
- func (x *Features) GetCapabilities() []Features_Capability
- func (x *Features) GetDeviceId() string
- func (x *Features) GetDisplayRotation() uint32
- 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) GetFwVendorKeys() []byte
- func (x *Features) GetImported() bool
- func (x *Features) GetInitialized() bool
- func (x *Features) GetLabel() string
- func (x *Features) GetLanguage() string
- func (x *Features) GetMajorVersion() uint32
- func (x *Features) GetMinorVersion() uint32
- func (x *Features) GetModel() string
- func (x *Features) GetNeedsBackup() bool
- func (x *Features) GetNoBackup() bool
- func (x *Features) GetPassphraseAlwaysOnDevice() bool
- func (x *Features) GetPassphraseProtection() bool
- func (x *Features) GetPatchVersion() uint32
- func (x *Features) GetPinProtection() bool
- func (x *Features) GetRecoveryMode() bool
- 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) GetUnlocked() bool
- func (x *Features) GetVendor() string
- func (x *Features) GetWipeCodeProtection() bool
- func (*Features) ProtoMessage()
- func (x *Features) ProtoReflect() protoreflect.Message
- func (x *Features) Reset()
- func (x *Features) String() string
- 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 GetECDHSessionKey
- func (*GetECDHSessionKey) Descriptor() ([]byte, []int)deprecated
- func (x *GetECDHSessionKey) GetEcdsaCurveName() string
- func (x *GetECDHSessionKey) GetIdentity() *IdentityType
- func (x *GetECDHSessionKey) GetPeerPublicKey() []byte
- func (*GetECDHSessionKey) ProtoMessage()
- func (x *GetECDHSessionKey) ProtoReflect() protoreflect.Message
- func (x *GetECDHSessionKey) Reset()
- func (x *GetECDHSessionKey) String() string
- type GetEntropy
- type GetFeatures
- type GetNextU2FCounter
- 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 IdentityType
- func (*IdentityType) Descriptor() ([]byte, []int)deprecated
- func (x *IdentityType) GetHost() string
- func (x *IdentityType) GetIndex() uint32
- func (x *IdentityType) GetPath() string
- func (x *IdentityType) GetPort() string
- func (x *IdentityType) GetProto() string
- func (x *IdentityType) GetUser() string
- func (*IdentityType) ProtoMessage()
- func (x *IdentityType) ProtoReflect() protoreflect.Message
- func (x *IdentityType) Reset()
- func (x *IdentityType) String() string
- type Initialize
- type LoadDevice
- func (*LoadDevice) Descriptor() ([]byte, []int)deprecated
- func (x *LoadDevice) GetLabel() string
- func (x *LoadDevice) GetLanguage() string
- func (x *LoadDevice) 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 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
- type RecoveryDevice
- func (*RecoveryDevice) Descriptor() ([]byte, []int)deprecated
- func (x *RecoveryDevice) GetDryRun() bool
- func (x *RecoveryDevice) GetEnforceWordlist() bool
- func (x *RecoveryDevice) GetLabel() string
- func (x *RecoveryDevice) GetLanguage() string
- func (x *RecoveryDevice) GetPassphraseProtection() bool
- func (x *RecoveryDevice) GetPinProtection() bool
- func (x *RecoveryDevice) GetType() RecoveryDevice_RecoveryDeviceType
- func (x *RecoveryDevice) GetU2FCounter() uint32
- func (x *RecoveryDevice) GetWordCount() uint32
- func (*RecoveryDevice) ProtoMessage()
- func (x *RecoveryDevice) ProtoReflect() protoreflect.Message
- func (x *RecoveryDevice) Reset()
- func (x *RecoveryDevice) String() string
- type RecoveryDevice_RecoveryDeviceType
- func (RecoveryDevice_RecoveryDeviceType) Descriptor() protoreflect.EnumDescriptor
- func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType
- func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RecoveryDevice_RecoveryDeviceType) Number() protoreflect.EnumNumber
- func (x RecoveryDevice_RecoveryDeviceType) String() string
- func (RecoveryDevice_RecoveryDeviceType) Type() protoreflect.EnumType
- func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(b []byte) errordeprecated
- type ResetDevice
- func (*ResetDevice) Descriptor() ([]byte, []int)deprecated
- func (x *ResetDevice) GetBackupType() BackupType
- func (x *ResetDevice) GetDisplayRandom() bool
- func (x *ResetDevice) GetLabel() string
- func (x *ResetDevice) GetLanguage() string
- func (x *ResetDevice) GetNoBackup() bool
- func (x *ResetDevice) GetPassphraseProtection() bool
- func (x *ResetDevice) GetPinProtection() bool
- func (x *ResetDevice) GetSkipBackup() bool
- func (x *ResetDevice) GetStrength() uint32
- func (x *ResetDevice) GetU2FCounter() uint32
- func (*ResetDevice) ProtoMessage()
- func (x *ResetDevice) ProtoReflect() protoreflect.Message
- func (x *ResetDevice) Reset()
- func (x *ResetDevice) String() string
- type 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 SetU2FCounter
- type SignIdentity
- func (*SignIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *SignIdentity) GetChallengeHidden() []byte
- func (x *SignIdentity) GetChallengeVisual() string
- func (x *SignIdentity) GetEcdsaCurveName() string
- func (x *SignIdentity) GetIdentity() *IdentityType
- func (*SignIdentity) ProtoMessage()
- func (x *SignIdentity) ProtoReflect() protoreflect.Message
- func (x *SignIdentity) Reset()
- func (x *SignIdentity) String() string
- type SignedIdentity
- func (*SignedIdentity) Descriptor() ([]byte, []int)deprecated
- func (x *SignedIdentity) GetAddress() string
- func (x *SignedIdentity) GetPublicKey() []byte
- func (x *SignedIdentity) GetSignature() []byte
- func (*SignedIdentity) ProtoMessage()
- func (x *SignedIdentity) ProtoReflect() protoreflect.Message
- func (x *SignedIdentity) Reset()
- func (x *SignedIdentity) String() string
- type Success
- type WipeDevice
- type WordAck
- type WordRequest
- type WordRequest_WordRequestType
- func (WordRequest_WordRequestType) Descriptor() protoreflect.EnumDescriptor
- func (x WordRequest_WordRequestType) Enum() *WordRequest_WordRequestType
- func (WordRequest_WordRequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x WordRequest_WordRequestType) Number() protoreflect.EnumNumber
- func (x WordRequest_WordRequestType) String() string
- func (WordRequest_WordRequestType) Type() protoreflect.EnumType
- func (x *WordRequest_WordRequestType) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_ResetDevice_Strength = uint32(256) Default_ResetDevice_Language = string("en-US") Default_ResetDevice_BackupType = BackupType_Bip39 )
Default values for ResetDevice fields.
const (
Default_EthereumSignTxEIP1559_To = string("")
)
Default values for EthereumSignTxEIP1559 fields.
const (
Default_IdentityType_Index = uint32(0)
)
Default values for IdentityType fields.
const (
Default_LoadDevice_Language = string("en-US")
)
Default values for LoadDevice fields.
const (
Default_Ping_Message = string("")
)
Default values for Ping fields.
const (
Default_SignIdentity_ChallengeVisual = string("")
)
Default values for SignIdentity 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", 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_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 ( BackupType_name = map[int32]string{ 0: "Bip39", 1: "Slip39_Basic", 2: "Slip39_Advanced", } BackupType_value = map[string]int32{ "Bip39": 0, "Slip39_Basic": 1, "Slip39_Advanced": 2, } )
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 ( 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", } 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, } )
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_RecoveryDeviceType_name = map[int32]string{ 0: "RecoveryDeviceType_ScrambledWords", 1: "RecoveryDeviceType_Matrix", } RecoveryDevice_RecoveryDeviceType_value = map[string]int32{ "RecoveryDeviceType_ScrambledWords": 0, "RecoveryDeviceType_Matrix": 1, } )
Enum value maps for RecoveryDevice_RecoveryDeviceType.
var ( WordRequest_WordRequestType_name = map[int32]string{ 0: "WordRequestType_Plain", 1: "WordRequestType_Matrix9", 2: "WordRequestType_Matrix6", } WordRequest_WordRequestType_value = map[string]int32{ "WordRequestType_Plain": 0, "WordRequestType_Matrix9": 1, "WordRequestType_Matrix6": 2, } )
Enum value maps for WordRequest_WordRequestType.
var ( MessageType_name = map[int32]string{}/* 201 elements not displayed */ MessageType_value = map[string]int32{}/* 201 elements not displayed */ )
Enum value maps for MessageType.
var ( // optional bool wire_in = 50002; E_WireIn = &file_messages_proto_extTypes[0] // message can be transmitted via wire from PC to Trezor // optional bool wire_out = 50003; E_WireOut = &file_messages_proto_extTypes[1] // message can be transmitted via wire from Trezor to PC // optional bool wire_debug_in = 50004; E_WireDebugIn = &file_messages_proto_extTypes[2] // message can be transmitted via debug wire from PC to Trezor // optional bool wire_debug_out = 50005; E_WireDebugOut = &file_messages_proto_extTypes[3] // message can be transmitted via debug wire from Trezor to PC // optional bool wire_tiny = 50006; E_WireTiny = &file_messages_proto_extTypes[4] // message is handled by Trezor when the USB stack is in tiny mode // optional bool wire_bootloader = 50007; E_WireBootloader = &file_messages_proto_extTypes[5] // message is only handled by Trezor Bootloader // optional bool wire_no_fsm = 50008; E_WireNoFsm = &file_messages_proto_extTypes[6] // message is not handled by Trezor unless the USB stack is in tiny mode // optional bool bitcoin_only = 60000; E_BitcoinOnly = &file_messages_proto_extTypes[7] // enum value is available on BITCOIN_ONLY build )
Extension fields to descriptorpb.EnumValueOptions.
var ( // optional bool unstable = 52001; E_Unstable = &file_messages_proto_extTypes[9] // indicate that a message definition might change at any time // optional uint32 wire_type = 52002; E_WireType = &file_messages_proto_extTypes[10] // override wire type specified in the MessageType enum // optional bool include_in_bitcoin_only = 60000; E_IncludeInBitcoinOnly = &file_messages_proto_extTypes[11] // message is available on BITCOIN_ONLY build )
Extension fields to descriptorpb.MessageOptions.
var (
Default_EthereumSignTxEIP1559_DataInitialChunk = []byte("")
)
Default values for EthereumSignTxEIP1559 fields.
var (
Default_SignIdentity_ChallengeHidden = []byte("")
)
Default values for SignIdentity fields.
var ( // optional bool experimental = 53001; E_Experimental = &file_messages_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_messages_proto_extTypes[8] // indicate that some values should be excluded on BITCOIN_ONLY builds )
Extension fields to descriptorpb.EnumOptions.
var File_messages_common_proto protoreflect.FileDescriptor
var File_messages_crypto_proto protoreflect.FileDescriptor
var File_messages_ethereum_proto protoreflect.FileDescriptor
var File_messages_management_proto protoreflect.FileDescriptor
var File_messages_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
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 {
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"`
// optional PassphraseSourceType passphrase_source = 5; DEPRECATED
AutoLockDelayMs *uint32 `protobuf:"varint,6,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"`
DisplayRotation *uint32 `protobuf:"varint,7,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"` // in degrees from North
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
// contains filtered or unexported fields
}
* Request: change language and/or label of the device @start @next Success @next Failure
func (*ApplySettings) Descriptor
deprecated
func (*ApplySettings) Descriptor() ([]byte, []int)
Deprecated: Use ApplySettings.ProtoReflect.Descriptor instead.
func (*ApplySettings) GetAutoLockDelayMs ¶
func (x *ApplySettings) GetAutoLockDelayMs() uint32
func (*ApplySettings) GetDisplayRotation ¶
func (x *ApplySettings) GetDisplayRotation() uint32
func (*ApplySettings) GetExperimentalFeatures ¶
func (x *ApplySettings) GetExperimentalFeatures() bool
func (*ApplySettings) GetHomescreen ¶
func (x *ApplySettings) GetHomescreen() []byte
func (*ApplySettings) GetLabel ¶
func (x *ApplySettings) GetLabel() string
func (*ApplySettings) GetLanguage ¶
func (x *ApplySettings) GetLanguage() string
func (*ApplySettings) GetPassphraseAlwaysOnDevice ¶
func (x *ApplySettings) GetPassphraseAlwaysOnDevice() bool
func (*ApplySettings) GetSafetyChecks ¶
func (x *ApplySettings) GetSafetyChecks() SafetyCheckLevel
func (*ApplySettings) GetUsePassphrase ¶
func (x *ApplySettings) GetUsePassphrase() bool
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 BackupDevice ¶
type BackupDevice struct {
// contains filtered or unexported fields
}
* Request: Perform backup of the device seed if not backed up using ResetDevice @start @next Success
func (*BackupDevice) Descriptor
deprecated
func (*BackupDevice) Descriptor() ([]byte, []int)
Deprecated: Use BackupDevice.ProtoReflect.Descriptor instead.
func (*BackupDevice) ProtoMessage ¶
func (*BackupDevice) ProtoMessage()
func (*BackupDevice) ProtoReflect ¶
func (x *BackupDevice) ProtoReflect() protoreflect.Message
func (*BackupDevice) Reset ¶
func (x *BackupDevice) Reset()
func (*BackupDevice) String ¶
func (x *BackupDevice) 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 )
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
Pages *uint32 `protobuf:"varint,2,opt,name=pages" json:"pages,omitempty"` // if the screen is paginated, number of pages
// 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) 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: Do not use. 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 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 CipherKeyValue ¶
type CipherKeyValue 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
Key *string `protobuf:"bytes,2,req,name=key" json:"key,omitempty"` // key component of key:value
Value []byte `protobuf:"bytes,3,req,name=value" json:"value,omitempty"` // value component of key:value
Encrypt *bool `protobuf:"varint,4,opt,name=encrypt" json:"encrypt,omitempty"` // are we encrypting (True) or decrypting (False)?
AskOnEncrypt *bool `protobuf:"varint,5,opt,name=ask_on_encrypt,json=askOnEncrypt" json:"ask_on_encrypt,omitempty"` // should we ask on encrypt operation?
AskOnDecrypt *bool `protobuf:"varint,6,opt,name=ask_on_decrypt,json=askOnDecrypt" json:"ask_on_decrypt,omitempty"` // should we ask on decrypt operation?
Iv []byte `protobuf:"bytes,7,opt,name=iv" json:"iv,omitempty"` // initialization vector (will be computed if not set)
// contains filtered or unexported fields
}
* Request: Ask device to encrypt or decrypt value of given key @start @next CipheredKeyValue @next Failure
func (*CipherKeyValue) Descriptor
deprecated
func (*CipherKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use CipherKeyValue.ProtoReflect.Descriptor instead.
func (*CipherKeyValue) GetAddressN ¶
func (x *CipherKeyValue) GetAddressN() []uint32
func (*CipherKeyValue) GetAskOnDecrypt ¶
func (x *CipherKeyValue) GetAskOnDecrypt() bool
func (*CipherKeyValue) GetAskOnEncrypt ¶
func (x *CipherKeyValue) GetAskOnEncrypt() bool
func (*CipherKeyValue) GetEncrypt ¶
func (x *CipherKeyValue) GetEncrypt() bool
func (*CipherKeyValue) GetIv ¶
func (x *CipherKeyValue) GetIv() []byte
func (*CipherKeyValue) GetKey ¶
func (x *CipherKeyValue) GetKey() string
func (*CipherKeyValue) GetValue ¶
func (x *CipherKeyValue) GetValue() []byte
func (*CipherKeyValue) ProtoMessage ¶
func (*CipherKeyValue) ProtoMessage()
func (*CipherKeyValue) ProtoReflect ¶
func (x *CipherKeyValue) ProtoReflect() protoreflect.Message
func (*CipherKeyValue) Reset ¶
func (x *CipherKeyValue) Reset()
func (*CipherKeyValue) String ¶
func (x *CipherKeyValue) String() string
type CipheredKeyValue ¶
type CipheredKeyValue struct {
Value []byte `protobuf:"bytes,1,req,name=value" json:"value,omitempty"` // ciphered/deciphered value
// contains filtered or unexported fields
}
* Response: Return ciphered/deciphered value @end
func (*CipheredKeyValue) Descriptor
deprecated
func (*CipheredKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use CipheredKeyValue.ProtoReflect.Descriptor instead.
func (*CipheredKeyValue) GetValue ¶
func (x *CipheredKeyValue) GetValue() []byte
func (*CipheredKeyValue) ProtoMessage ¶
func (*CipheredKeyValue) ProtoMessage()
func (*CipheredKeyValue) ProtoReflect ¶
func (x *CipheredKeyValue) ProtoReflect() protoreflect.Message
func (*CipheredKeyValue) Reset ¶
func (x *CipheredKeyValue) Reset()
func (*CipheredKeyValue) String ¶
func (x *CipheredKeyValue) String() string
type CosiCommit ¶
type CosiCommit 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
Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` // Data to be signed
// contains filtered or unexported fields
}
* Request: Ask device to commit to CoSi signing @start @next CosiCommitment @next Failure
func (*CosiCommit) Descriptor
deprecated
func (*CosiCommit) Descriptor() ([]byte, []int)
Deprecated: Use CosiCommit.ProtoReflect.Descriptor instead.
func (*CosiCommit) GetAddressN ¶
func (x *CosiCommit) GetAddressN() []uint32
func (*CosiCommit) GetData ¶
func (x *CosiCommit) GetData() []byte
func (*CosiCommit) ProtoMessage ¶
func (*CosiCommit) ProtoMessage()
func (*CosiCommit) ProtoReflect ¶
func (x *CosiCommit) ProtoReflect() protoreflect.Message
func (*CosiCommit) Reset ¶
func (x *CosiCommit) Reset()
func (*CosiCommit) String ¶
func (x *CosiCommit) String() string
type CosiCommitment ¶
type CosiCommitment struct {
Commitment []byte `protobuf:"bytes,1,opt,name=commitment" json:"commitment,omitempty"` // Commitment
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey" json:"pubkey,omitempty"` // Public key
// contains filtered or unexported fields
}
* Response: Contains a CoSi commitment @end
func (*CosiCommitment) Descriptor
deprecated
func (*CosiCommitment) Descriptor() ([]byte, []int)
Deprecated: Use CosiCommitment.ProtoReflect.Descriptor instead.
func (*CosiCommitment) GetCommitment ¶
func (x *CosiCommitment) GetCommitment() []byte
func (*CosiCommitment) GetPubkey ¶
func (x *CosiCommitment) GetPubkey() []byte
func (*CosiCommitment) ProtoMessage ¶
func (*CosiCommitment) ProtoMessage()
func (*CosiCommitment) ProtoReflect ¶
func (x *CosiCommitment) ProtoReflect() protoreflect.Message
func (*CosiCommitment) Reset ¶
func (x *CosiCommitment) Reset()
func (*CosiCommitment) String ¶
func (x *CosiCommitment) String() string
type CosiSign ¶
type CosiSign 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
Data []byte `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` // Data to be signed
GlobalCommitment []byte `protobuf:"bytes,3,opt,name=global_commitment,json=globalCommitment" json:"global_commitment,omitempty"` // Aggregated commitment
GlobalPubkey []byte `protobuf:"bytes,4,opt,name=global_pubkey,json=globalPubkey" json:"global_pubkey,omitempty"` // Aggregated public key
// contains filtered or unexported fields
}
* Request: Ask device to sign using CoSi @start @next CosiSignature @next Failure
func (*CosiSign) Descriptor
deprecated
func (*CosiSign) GetAddressN ¶
func (*CosiSign) GetGlobalCommitment ¶
func (*CosiSign) GetGlobalPubkey ¶
func (*CosiSign) ProtoMessage ¶
func (*CosiSign) ProtoMessage()
func (*CosiSign) ProtoReflect ¶
func (x *CosiSign) ProtoReflect() protoreflect.Message
type CosiSignature ¶
type CosiSignature struct {
Signature []byte `protobuf:"bytes,1,req,name=signature" json:"signature,omitempty"` // Signature
// contains filtered or unexported fields
}
* Response: Contains a CoSi signature @end
func (*CosiSignature) Descriptor
deprecated
func (*CosiSignature) Descriptor() ([]byte, []int)
Deprecated: Use CosiSignature.ProtoReflect.Descriptor instead.
func (*CosiSignature) GetSignature ¶
func (x *CosiSignature) GetSignature() []byte
func (*CosiSignature) ProtoMessage ¶
func (*CosiSignature) ProtoMessage()
func (*CosiSignature) ProtoReflect ¶
func (x *CosiSignature) ProtoReflect() protoreflect.Message
func (*CosiSignature) Reset ¶
func (x *CosiSignature) Reset()
func (*CosiSignature) String ¶
func (x *CosiSignature) 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: Do not use.
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: Do not use.
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 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 ECDHSessionKey ¶
type ECDHSessionKey struct {
SessionKey []byte `protobuf:"bytes,1,req,name=session_key,json=sessionKey" json:"session_key,omitempty"` // ECDH session key
PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey" json:"public_key,omitempty"` // identity public key
// contains filtered or unexported fields
}
* Response: Device provides ECDH session key @end
func (*ECDHSessionKey) Descriptor
deprecated
func (*ECDHSessionKey) Descriptor() ([]byte, []int)
Deprecated: Use ECDHSessionKey.ProtoReflect.Descriptor instead.
func (*ECDHSessionKey) GetPublicKey ¶
func (x *ECDHSessionKey) GetPublicKey() []byte
func (*ECDHSessionKey) GetSessionKey ¶
func (x *ECDHSessionKey) GetSessionKey() []byte
func (*ECDHSessionKey) ProtoMessage ¶
func (*ECDHSessionKey) ProtoMessage()
func (*ECDHSessionKey) ProtoReflect ¶
func (x *ECDHSessionKey) ProtoReflect() protoreflect.Message
func (*ECDHSessionKey) Reset ¶
func (x *ECDHSessionKey) Reset()
func (*ECDHSessionKey) String ¶
func (x *ECDHSessionKey) 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 random data
// contains filtered or unexported fields
}
* Request: Provide additional entropy for seed generation function @next Success
func (*EntropyAck) Descriptor
deprecated
func (*EntropyAck) Descriptor() ([]byte, []int)
Deprecated: Use EntropyAck.ProtoReflect.Descriptor instead.
func (*EntropyAck) GetEntropy ¶
func (x *EntropyAck) GetEntropy() []byte
func (*EntropyAck) ProtoMessage ¶
func (*EntropyAck) ProtoMessage()
func (*EntropyAck) ProtoReflect ¶
func (x *EntropyAck) ProtoReflect() protoreflect.Message
func (*EntropyAck) Reset ¶
func (x *EntropyAck) Reset()
func (*EntropyAck) String ¶
func (x *EntropyAck) String() string
type EntropyRequest ¶
type EntropyRequest struct {
// contains filtered or unexported fields
}
* Response: Ask for additional entropy from host computer @next EntropyAck
func (*EntropyRequest) Descriptor
deprecated
func (*EntropyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EntropyRequest.ProtoReflect.Descriptor instead.
func (*EntropyRequest) ProtoMessage ¶
func (*EntropyRequest) ProtoMessage()
func (*EntropyRequest) ProtoReflect ¶
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: Do not use.
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: Do not use.
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 EthereumGetAddress ¶
type EthereumGetAddress struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node
ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"` // optionally show on display before sending the result
// contains filtered or unexported fields
}
* Request: Ask device for Ethereum address corresponding to address_n path @start @next EthereumAddress @next Failure
func (*EthereumGetAddress) Descriptor
deprecated
func (*EthereumGetAddress) Descriptor() ([]byte, []int)
Deprecated: Use EthereumGetAddress.ProtoReflect.Descriptor instead.
func (*EthereumGetAddress) GetAddressN ¶
func (x *EthereumGetAddress) GetAddressN() []uint32
func (*EthereumGetAddress) GetShowDisplay ¶
func (x *EthereumGetAddress) GetShowDisplay() bool
func (*EthereumGetAddress) ProtoMessage ¶
func (*EthereumGetAddress) ProtoMessage()
func (*EthereumGetAddress) ProtoReflect ¶
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,opt,name=message" json:"message,omitempty"` // message to be signed
// contains filtered or unexported fields
}
* Request: Ask device to sign message @start @next EthereumMessageSignature @next Failure
func (*EthereumSignMessage) Descriptor
deprecated
func (*EthereumSignMessage) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignMessage.ProtoReflect.Descriptor instead.
func (*EthereumSignMessage) GetAddressN ¶
func (x *EthereumSignMessage) GetAddressN() []uint32
func (*EthereumSignMessage) GetMessage ¶
func (x *EthereumSignMessage) GetMessage() []byte
func (*EthereumSignMessage) ProtoMessage ¶
func (*EthereumSignMessage) ProtoMessage()
func (*EthereumSignMessage) ProtoReflect ¶
func (x *EthereumSignMessage) ProtoReflect() protoreflect.Message
func (*EthereumSignMessage) Reset ¶
func (x *EthereumSignMessage) Reset()
func (*EthereumSignMessage) String ¶
func (x *EthereumSignMessage) String() string
type EthereumSignTx ¶
type EthereumSignTx struct {
AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node
Nonce []byte `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"` // <=256 bit unsigned big endian
GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"` // <=256 bit unsigned big endian (in wei)
GasLimit []byte `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"` // <=256 bit unsigned big endian
To *string `protobuf:"bytes,11,opt,name=to" json:"to,omitempty"` // recipient address
Value []byte `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"` // <=256 bit unsigned big endian (in wei)
DataInitialChunk []byte `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"` // The initial data chunk (<= 1024 bytes)
DataLength *uint32 `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"` // Length of transaction payload
ChainId *uint32 `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"` // Chain Id for EIP 155
TxType *uint32 `protobuf:"varint,10,opt,name=tx_type,json=txType" json:"tx_type,omitempty"` // Used for Wanchain
// contains filtered or unexported fields
}
* Request: Ask device to sign transaction All fields are optional from the protocol's point of view. Each field defaults to value `0` if missing. Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. @start @next EthereumTxRequest @next Failure
func (*EthereumSignTx) Descriptor
deprecated
func (*EthereumSignTx) Descriptor() ([]byte, []int)
Deprecated: Use EthereumSignTx.ProtoReflect.Descriptor instead.
func (*EthereumSignTx) GetAddressN ¶
func (x *EthereumSignTx) GetAddressN() []uint32
func (*EthereumSignTx) GetChainId ¶
func (x *EthereumSignTx) GetChainId() uint32
func (*EthereumSignTx) GetDataInitialChunk ¶
func (x *EthereumSignTx) GetDataInitialChunk() []byte
func (*EthereumSignTx) GetDataLength ¶
func (x *EthereumSignTx) GetDataLength() uint32
func (*EthereumSignTx) GetGasLimit ¶
func (x *EthereumSignTx) GetGasLimit() []byte
func (*EthereumSignTx) GetGasPrice ¶
func (x *EthereumSignTx) GetGasPrice() []byte
func (*EthereumSignTx) GetNonce ¶
func (x *EthereumSignTx) GetNonce() []byte
func (*EthereumSignTx) 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 *uint32 `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
// 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() uint32
func (*EthereumSignTxEIP1559) GetDataInitialChunk ¶
func (x *EthereumSignTxEIP1559) GetDataInitialChunk() []byte
func (*EthereumSignTxEIP1559) GetDataLength ¶
func (x *EthereumSignTxEIP1559) GetDataLength() uint32
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 EthereumTxAck ¶
type EthereumTxAck struct {
DataChunk []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"` // Bytes from transaction payload (<= 1024 bytes)
// contains filtered or unexported fields
}
* Request: Transaction payload data. @next EthereumTxRequest
func (*EthereumTxAck) Descriptor
deprecated
func (*EthereumTxAck) Descriptor() ([]byte, []int)
Deprecated: Use EthereumTxAck.ProtoReflect.Descriptor instead.
func (*EthereumTxAck) GetDataChunk ¶
func (x *EthereumTxAck) GetDataChunk() []byte
func (*EthereumTxAck) ProtoMessage ¶
func (*EthereumTxAck) ProtoMessage()
func (*EthereumTxAck) ProtoReflect ¶
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 EthereumVerifyMessage ¶
type EthereumVerifyMessage struct {
Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` // signature to verify
Message []byte `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` // message to verify
Address *string `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` // address to verify
// 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) 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_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
// optional bool passphrase_cached = 17; // is passphrase already cached in session? DEPRECATED
FirmwarePresent *bool `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent" json:"firmware_present,omitempty"` // is valid firmware loaded?
NeedsBackup *bool `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"` // does storage need backup? (equals to Storage.needs_backup)
Flags *uint32 `protobuf:"varint,20,opt,name=flags" json:"flags,omitempty"` // device flags (equals to Storage.flags)
Model *string `protobuf:"bytes,21,opt,name=model" json:"model,omitempty"` // device hardware model
FwMajor *uint32 `protobuf:"varint,22,opt,name=fw_major,json=fwMajor" json:"fw_major,omitempty"` // reported firmware version if in bootloader mode
FwMinor *uint32 `protobuf:"varint,23,opt,name=fw_minor,json=fwMinor" json:"fw_minor,omitempty"` // reported firmware version if in bootloader mode
FwPatch *uint32 `protobuf:"varint,24,opt,name=fw_patch,json=fwPatch" json:"fw_patch,omitempty"` // reported firmware version if in bootloader mode
FwVendor *string `protobuf:"bytes,25,opt,name=fw_vendor,json=fwVendor" json:"fw_vendor,omitempty"` // reported firmware vendor if in bootloader mode
FwVendorKeys []byte `protobuf:"bytes,26,opt,name=fw_vendor_keys,json=fwVendorKeys" json:"fw_vendor_keys,omitempty"` // reported firmware vendor keys (their hash)
UnfinishedBackup *bool `protobuf:"varint,27,opt,name=unfinished_backup,json=unfinishedBackup" json:"unfinished_backup,omitempty"` // report unfinished backup (equals to Storage.unfinished_backup)
NoBackup *bool `protobuf:"varint,28,opt,name=no_backup,json=noBackup" json:"no_backup,omitempty"` // report no backup (equals to Storage.no_backup)
RecoveryMode *bool `protobuf:"varint,29,opt,name=recovery_mode,json=recoveryMode" json:"recovery_mode,omitempty"` // is recovery mode in progress
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 *uint32 `protobuf:"varint,39,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"` // in degrees from North
ExperimentalFeatures *bool `protobuf:"varint,40,opt,name=experimental_features,json=experimentalFeatures" json:"experimental_features,omitempty"` // are experimental message types enabled?
// contains filtered or unexported fields
}
* Response: Reports various information about the device @end
func (*Features) Descriptor
deprecated
func (*Features) GetAutoLockDelayMs ¶
func (*Features) GetBackupType ¶
func (x *Features) GetBackupType() BackupType
func (*Features) GetBootloaderHash ¶
func (*Features) GetBootloaderMode ¶
func (*Features) GetCapabilities ¶
func (x *Features) GetCapabilities() []Features_Capability
func (*Features) GetDeviceId ¶
func (*Features) GetDisplayRotation ¶
func (*Features) GetExperimentalFeatures ¶
func (*Features) GetFirmwarePresent ¶
func (*Features) GetFwMajor ¶
func (*Features) GetFwMinor ¶
func (*Features) GetFwPatch ¶
func (*Features) GetFwVendor ¶
func (*Features) GetFwVendorKeys ¶
func (*Features) GetImported ¶
func (*Features) GetInitialized ¶
func (*Features) GetLanguage ¶
func (*Features) GetMajorVersion ¶
func (*Features) GetMinorVersion ¶
func (*Features) GetNeedsBackup ¶
func (*Features) GetNoBackup ¶
func (*Features) GetPassphraseAlwaysOnDevice ¶
func (*Features) GetPassphraseProtection ¶
func (*Features) GetPatchVersion ¶
func (*Features) GetPinProtection ¶
func (*Features) GetRecoveryMode ¶
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) GetUnlocked ¶
func (*Features) GetWipeCodeProtection ¶
func (*Features) ProtoMessage ¶
func (*Features) ProtoMessage()
func (*Features) ProtoReflect ¶
func (x *Features) ProtoReflect() protoreflect.Message
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 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 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 )
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 GetECDHSessionKey ¶
type GetECDHSessionKey struct {
Identity *IdentityType `protobuf:"bytes,1,req,name=identity" json:"identity,omitempty"` // identity
PeerPublicKey []byte `protobuf:"bytes,2,req,name=peer_public_key,json=peerPublicKey" json:"peer_public_key,omitempty"` // peer's public key
EcdsaCurveName *string `protobuf:"bytes,3,opt,name=ecdsa_curve_name,json=ecdsaCurveName" json:"ecdsa_curve_name,omitempty"` // ECDSA curve name to use
// contains filtered or unexported fields
}
* Request: Ask device to generate ECDH session key @start @next ECDHSessionKey @next Failure
func (*GetECDHSessionKey) Descriptor
deprecated
func (*GetECDHSessionKey) Descriptor() ([]byte, []int)
Deprecated: Use GetECDHSessionKey.ProtoReflect.Descriptor instead.
func (*GetECDHSessionKey) GetEcdsaCurveName ¶
func (x *GetECDHSessionKey) GetEcdsaCurveName() string
func (*GetECDHSessionKey) GetIdentity ¶
func (x *GetECDHSessionKey) GetIdentity() *IdentityType
func (*GetECDHSessionKey) GetPeerPublicKey ¶
func (x *GetECDHSessionKey) GetPeerPublicKey() []byte
func (*GetECDHSessionKey) ProtoMessage ¶
func (*GetECDHSessionKey) ProtoMessage()
func (*GetECDHSessionKey) ProtoReflect ¶
func (x *GetECDHSessionKey) ProtoReflect() protoreflect.Message
func (*GetECDHSessionKey) Reset ¶
func (x *GetECDHSessionKey) Reset()
func (*GetECDHSessionKey) String ¶
func (x *GetECDHSessionKey) 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 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 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 IdentityType ¶
type IdentityType struct {
Proto *string `protobuf:"bytes,1,opt,name=proto" json:"proto,omitempty"` // proto part of URI
User *string `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"` // user part of URI
Host *string `protobuf:"bytes,3,opt,name=host" json:"host,omitempty"` // host part of URI
Port *string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"` // port part of URI
Path *string `protobuf:"bytes,5,opt,name=path" json:"path,omitempty"` // path part of URI
Index *uint32 `protobuf:"varint,6,opt,name=index,def=0" json:"index,omitempty"` // identity index
// contains filtered or unexported fields
}
* Structure representing identity data @embed
func (*IdentityType) Descriptor
deprecated
func (*IdentityType) Descriptor() ([]byte, []int)
Deprecated: Use IdentityType.ProtoReflect.Descriptor instead.
func (*IdentityType) GetHost ¶
func (x *IdentityType) GetHost() string
func (*IdentityType) GetIndex ¶
func (x *IdentityType) GetIndex() uint32
func (*IdentityType) GetPath ¶
func (x *IdentityType) GetPath() string
func (*IdentityType) GetPort ¶
func (x *IdentityType) GetPort() string
func (*IdentityType) GetProto ¶
func (x *IdentityType) GetProto() string
func (*IdentityType) GetUser ¶
func (x *IdentityType) GetUser() string
func (*IdentityType) ProtoMessage ¶
func (*IdentityType) ProtoMessage()
func (*IdentityType) ProtoReflect ¶
func (x *IdentityType) ProtoReflect() protoreflect.Message
func (*IdentityType) Reset ¶
func (x *IdentityType) Reset()
func (*IdentityType) String ¶
func (x *IdentityType) String() string
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
// 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) GetSessionId ¶
func (x *Initialize) GetSessionId() []byte
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
Language *string `protobuf:"bytes,5,opt,name=language,def=en-US" json:"language,omitempty"` // device language (IETF BCP 47 language tag)
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 ¶
func (x *LoadDevice) GetLanguage() string
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_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_BackupDevice MessageType = 34 MessageType_MessageType_EntropyRequest MessageType = 35 MessageType_MessageType_EntropyAck MessageType = 36 MessageType_MessageType_PassphraseRequest MessageType = 41 MessageType_MessageType_PassphraseAck MessageType = 42 MessageType_MessageType_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_SetU2FCounter MessageType = 63 MessageType_MessageType_GetNextU2FCounter MessageType = 80 MessageType_MessageType_NextU2FCounter MessageType = 81 // Deprecated messages, kept for protobuf compatibility. // Both are marked wire_out so that we don't need to implement incoming handler for legacy // // Deprecated: Do not use. MessageType_MessageType_Deprecated_PassphraseStateRequest MessageType = 77 // Deprecated: Do not use. MessageType_MessageType_Deprecated_PassphraseStateAck MessageType = 78 // Bootloader MessageType_MessageType_FirmwareErase MessageType = 6 MessageType_MessageType_FirmwareUpload MessageType = 7 MessageType_MessageType_FirmwareRequest MessageType = 8 MessageType_MessageType_SelfTest MessageType = 32 // Bitcoin MessageType_MessageType_GetPublicKey MessageType = 11 MessageType_MessageType_PublicKey MessageType = 12 MessageType_MessageType_SignTx MessageType = 15 MessageType_MessageType_TxRequest MessageType = 21 MessageType_MessageType_TxAck MessageType = 22 MessageType_MessageType_GetAddress MessageType = 29 MessageType_MessageType_Address MessageType = 30 MessageType_MessageType_SignMessage MessageType = 38 MessageType_MessageType_VerifyMessage MessageType = 39 MessageType_MessageType_MessageSignature MessageType = 40 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 MessageType_MessageType_CosiCommit MessageType = 71 MessageType_MessageType_CosiCommitment MessageType = 72 MessageType_MessageType_CosiSign MessageType = 73 MessageType_MessageType_CosiSignature MessageType = 74 // Debug MessageType_MessageType_DebugLinkDecision MessageType = 100 MessageType_MessageType_DebugLinkGetState MessageType = 101 MessageType_MessageType_DebugLinkState MessageType = 102 MessageType_MessageType_DebugLinkStop MessageType = 103 MessageType_MessageType_DebugLinkLog MessageType = 104 MessageType_MessageType_DebugLinkMemoryRead MessageType = 110 MessageType_MessageType_DebugLinkMemory MessageType = 111 MessageType_MessageType_DebugLinkMemoryWrite MessageType = 112 MessageType_MessageType_DebugLinkFlashErase MessageType = 113 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 // 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 // NEM MessageType_MessageType_NEMGetAddress MessageType = 67 MessageType_MessageType_NEMAddress MessageType = 68 MessageType_MessageType_NEMSignTx MessageType = 69 MessageType_MessageType_NEMSignedTx MessageType = 70 MessageType_MessageType_NEMDecryptMessage MessageType = 75 MessageType_MessageType_NEMDecryptedMessage MessageType = 76 // Lisk MessageType_MessageType_LiskGetAddress MessageType = 114 MessageType_MessageType_LiskAddress MessageType = 115 MessageType_MessageType_LiskSignTx MessageType = 116 MessageType_MessageType_LiskSignedTx MessageType = 117 MessageType_MessageType_LiskSignMessage MessageType = 118 MessageType_MessageType_LiskMessageSignature MessageType = 119 MessageType_MessageType_LiskVerifyMessage MessageType = 120 MessageType_MessageType_LiskGetPublicKey MessageType = 121 MessageType_MessageType_LiskPublicKey MessageType = 122 // Tezos MessageType_MessageType_TezosGetAddress MessageType = 150 MessageType_MessageType_TezosAddress MessageType = 151 MessageType_MessageType_TezosSignTx MessageType = 152 MessageType_MessageType_TezosSignedTx MessageType = 153 MessageType_MessageType_TezosGetPublicKey MessageType = 154 MessageType_MessageType_TezosPublicKey MessageType = 155 // Stellar MessageType_MessageType_StellarSignTx MessageType = 202 MessageType_MessageType_StellarTxOpRequest MessageType = 203 MessageType_MessageType_StellarGetAddress MessageType = 207 MessageType_MessageType_StellarAddress MessageType = 208 MessageType_MessageType_StellarCreateAccountOp MessageType = 210 MessageType_MessageType_StellarPaymentOp MessageType = 211 MessageType_MessageType_StellarPathPaymentOp MessageType = 212 MessageType_MessageType_StellarManageOfferOp MessageType = 213 MessageType_MessageType_StellarCreatePassiveOfferOp MessageType = 214 MessageType_MessageType_StellarSetOptionsOp MessageType = 215 MessageType_MessageType_StellarChangeTrustOp MessageType = 216 MessageType_MessageType_StellarAllowTrustOp MessageType = 217 MessageType_MessageType_StellarAccountMergeOp MessageType = 218 // omitted: StellarInflationOp is not a supported operation, would be 219 MessageType_MessageType_StellarManageDataOp MessageType = 220 MessageType_MessageType_StellarBumpSequenceOp MessageType = 221 MessageType_MessageType_StellarSignedTx MessageType = 230 // Cardano // dropped Sign/VerifyMessage ids 300-302 // dropped TxRequest/TxAck ids 304 and 309 (shelley update) MessageType_MessageType_CardanoSignTx MessageType = 303 MessageType_MessageType_CardanoGetPublicKey MessageType = 305 MessageType_MessageType_CardanoPublicKey MessageType = 306 MessageType_MessageType_CardanoGetAddress MessageType = 307 MessageType_MessageType_CardanoAddress MessageType = 308 MessageType_MessageType_CardanoSignedTx MessageType = 310 MessageType_MessageType_CardanoSignedTxChunk MessageType = 311 MessageType_MessageType_CardanoSignedTxChunkAck MessageType = 312 // Ripple MessageType_MessageType_RippleGetAddress MessageType = 400 MessageType_MessageType_RippleAddress MessageType = 401 MessageType_MessageType_RippleSignTx MessageType = 402 MessageType_MessageType_RippleSignedTx MessageType = 403 // Monero MessageType_MessageType_MoneroTransactionInitRequest MessageType = 501 MessageType_MessageType_MoneroTransactionInitAck MessageType = 502 MessageType_MessageType_MoneroTransactionSetInputRequest MessageType = 503 MessageType_MessageType_MoneroTransactionSetInputAck MessageType = 504 MessageType_MessageType_MoneroTransactionInputsPermutationRequest MessageType = 505 MessageType_MessageType_MoneroTransactionInputsPermutationAck MessageType = 506 MessageType_MessageType_MoneroTransactionInputViniRequest MessageType = 507 MessageType_MessageType_MoneroTransactionInputViniAck MessageType = 508 MessageType_MessageType_MoneroTransactionAllInputsSetRequest MessageType = 509 MessageType_MessageType_MoneroTransactionAllInputsSetAck MessageType = 510 MessageType_MessageType_MoneroTransactionSetOutputRequest MessageType = 511 MessageType_MessageType_MoneroTransactionSetOutputAck MessageType = 512 MessageType_MessageType_MoneroTransactionAllOutSetRequest MessageType = 513 MessageType_MessageType_MoneroTransactionAllOutSetAck MessageType = 514 MessageType_MessageType_MoneroTransactionSignInputRequest MessageType = 515 MessageType_MessageType_MoneroTransactionSignInputAck MessageType = 516 MessageType_MessageType_MoneroTransactionFinalRequest MessageType = 517 MessageType_MessageType_MoneroTransactionFinalAck MessageType = 518 MessageType_MessageType_MoneroKeyImageExportInitRequest MessageType = 530 MessageType_MessageType_MoneroKeyImageExportInitAck MessageType = 531 MessageType_MessageType_MoneroKeyImageSyncStepRequest MessageType = 532 MessageType_MessageType_MoneroKeyImageSyncStepAck MessageType = 533 MessageType_MessageType_MoneroKeyImageSyncFinalRequest MessageType = 534 MessageType_MessageType_MoneroKeyImageSyncFinalAck MessageType = 535 MessageType_MessageType_MoneroGetAddress MessageType = 540 MessageType_MessageType_MoneroAddress MessageType = 541 MessageType_MessageType_MoneroGetWatchKey MessageType = 542 MessageType_MessageType_MoneroWatchKey MessageType = 543 MessageType_MessageType_DebugMoneroDiagRequest MessageType = 546 MessageType_MessageType_DebugMoneroDiagAck MessageType = 547 MessageType_MessageType_MoneroGetTxKeyRequest MessageType = 550 MessageType_MessageType_MoneroGetTxKeyAck MessageType = 551 MessageType_MessageType_MoneroLiveRefreshStartRequest MessageType = 552 MessageType_MessageType_MoneroLiveRefreshStartAck MessageType = 553 MessageType_MessageType_MoneroLiveRefreshStepRequest MessageType = 554 MessageType_MessageType_MoneroLiveRefreshStepAck MessageType = 555 MessageType_MessageType_MoneroLiveRefreshFinalRequest MessageType = 556 MessageType_MessageType_MoneroLiveRefreshFinalAck MessageType = 557 // EOS MessageType_MessageType_EosGetPublicKey MessageType = 600 MessageType_MessageType_EosPublicKey MessageType = 601 MessageType_MessageType_EosSignTx MessageType = 602 MessageType_MessageType_EosTxActionRequest MessageType = 603 MessageType_MessageType_EosTxActionAck MessageType = 604 MessageType_MessageType_EosSignedTx MessageType = 605 // Binance MessageType_MessageType_BinanceGetAddress MessageType = 700 MessageType_MessageType_BinanceAddress MessageType = 701 MessageType_MessageType_BinanceGetPublicKey MessageType = 702 MessageType_MessageType_BinancePublicKey MessageType = 703 MessageType_MessageType_BinanceSignTx MessageType = 704 MessageType_MessageType_BinanceTxRequest MessageType = 705 MessageType_MessageType_BinanceTransferMsg MessageType = 706 MessageType_MessageType_BinanceOrderMsg MessageType = 707 MessageType_MessageType_BinanceCancelMsg MessageType = 708 MessageType_MessageType_BinanceSignedTx MessageType = 709 // WebAuthn MessageType_MessageType_WebAuthnListResidentCredentials MessageType = 800 MessageType_MessageType_WebAuthnCredentials MessageType = 801 MessageType_MessageType_WebAuthnAddResidentCredential MessageType = 802 MessageType_MessageType_WebAuthnRemoveResidentCredential MessageType = 803 )
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 PassphraseAck ¶
type PassphraseAck struct {
Passphrase *string `protobuf:"bytes,1,opt,name=passphrase" json:"passphrase,omitempty"`
// Deprecated: Do not use.
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: Do not use.
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: Do not use.
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: Do not use.
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 {
// contains filtered or unexported fields
}
* Request: Reboot firmware to bootloader @start @next Success
func (*RebootToBootloader) Descriptor
deprecated
func (*RebootToBootloader) Descriptor() ([]byte, []int)
Deprecated: Use RebootToBootloader.ProtoReflect.Descriptor instead.
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 RecoveryDevice ¶
type RecoveryDevice struct {
WordCount *uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount" json:"word_count,omitempty"` // number of words in BIP-39 mnemonic
PassphraseProtection *bool `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // enable master node encryption using passphrase
PinProtection *bool `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // enable PIN protection
Language *string `protobuf:"bytes,4,opt,name=language" json:"language,omitempty"` // device language (IETF BCP 47 language tag)
Label *string `protobuf:"bytes,5,opt,name=label" json:"label,omitempty"` // device label
EnforceWordlist *bool `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist" json:"enforce_wordlist,omitempty"` // enforce BIP-39 wordlist during the process
// 7 reserved for unused recovery method
Type *RecoveryDevice_RecoveryDeviceType `protobuf:"varint,8,opt,name=type,enum=hw.trezor.messages.management.RecoveryDevice_RecoveryDeviceType" json:"type,omitempty"` // supported recovery type
U2FCounter *uint32 `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"` // U2F counter
DryRun *bool `protobuf:"varint,10,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"` // perform dry-run recovery workflow (for safe mnemonic validation)
// contains filtered or unexported fields
}
* Request: Start recovery workflow asking user for specific words of mnemonic Used to recovery device safely even on untrusted computer. @start @next WordRequest
func (*RecoveryDevice) Descriptor
deprecated
func (*RecoveryDevice) Descriptor() ([]byte, []int)
Deprecated: Use RecoveryDevice.ProtoReflect.Descriptor instead.
func (*RecoveryDevice) GetDryRun ¶
func (x *RecoveryDevice) GetDryRun() bool
func (*RecoveryDevice) GetEnforceWordlist ¶
func (x *RecoveryDevice) GetEnforceWordlist() bool
func (*RecoveryDevice) GetLabel ¶
func (x *RecoveryDevice) GetLabel() string
func (*RecoveryDevice) GetLanguage ¶
func (x *RecoveryDevice) GetLanguage() string
func (*RecoveryDevice) GetPassphraseProtection ¶
func (x *RecoveryDevice) GetPassphraseProtection() bool
func (*RecoveryDevice) GetPinProtection ¶
func (x *RecoveryDevice) GetPinProtection() bool
func (*RecoveryDevice) GetType ¶
func (x *RecoveryDevice) GetType() RecoveryDevice_RecoveryDeviceType
func (*RecoveryDevice) GetU2FCounter ¶
func (x *RecoveryDevice) GetU2FCounter() uint32
func (*RecoveryDevice) GetWordCount ¶
func (x *RecoveryDevice) GetWordCount() uint32
func (*RecoveryDevice) ProtoMessage ¶
func (*RecoveryDevice) ProtoMessage()
func (*RecoveryDevice) ProtoReflect ¶
func (x *RecoveryDevice) ProtoReflect() protoreflect.Message
func (*RecoveryDevice) Reset ¶
func (x *RecoveryDevice) Reset()
func (*RecoveryDevice) String ¶
func (x *RecoveryDevice) String() string
type RecoveryDevice_RecoveryDeviceType ¶
type RecoveryDevice_RecoveryDeviceType int32
* Type of recovery procedure. These should be used as bitmask, e.g., `RecoveryDeviceType_ScrambledWords | RecoveryDeviceType_Matrix` listing every method supported by the host computer.
Note that ScrambledWords must be supported by every implementation for backward compatibility; there is no way to not support it.
const ( // use powers of two when extending this field RecoveryDevice_RecoveryDeviceType_ScrambledWords RecoveryDevice_RecoveryDeviceType = 0 // words in scrambled order RecoveryDevice_RecoveryDeviceType_Matrix RecoveryDevice_RecoveryDeviceType = 1 // matrix recovery type )
func (RecoveryDevice_RecoveryDeviceType) Descriptor ¶
func (RecoveryDevice_RecoveryDeviceType) Descriptor() protoreflect.EnumDescriptor
func (RecoveryDevice_RecoveryDeviceType) Enum ¶
func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType
func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor
deprecated
func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RecoveryDevice_RecoveryDeviceType.Descriptor instead.
func (RecoveryDevice_RecoveryDeviceType) Number ¶
func (x RecoveryDevice_RecoveryDeviceType) Number() protoreflect.EnumNumber
func (RecoveryDevice_RecoveryDeviceType) String ¶
func (x RecoveryDevice_RecoveryDeviceType) String() string
func (RecoveryDevice_RecoveryDeviceType) Type ¶
func (RecoveryDevice_RecoveryDeviceType) Type() protoreflect.EnumType
func (*RecoveryDevice_RecoveryDeviceType) UnmarshalJSON
deprecated
func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type ResetDevice ¶
type ResetDevice struct {
DisplayRandom *bool `protobuf:"varint,1,opt,name=display_random,json=displayRandom" json:"display_random,omitempty"` // display entropy generated by the device before asking for additional entropy
Strength *uint32 `protobuf:"varint,2,opt,name=strength,def=256" json:"strength,omitempty"` // strength of seed in bits
PassphraseProtection *bool `protobuf:"varint,3,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // enable master node encryption using passphrase
PinProtection *bool `protobuf:"varint,4,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // enable PIN protection
Language *string `protobuf:"bytes,5,opt,name=language,def=en-US" json:"language,omitempty"` // device language (IETF BCP 47 language tag)
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 */
// 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) GetDisplayRandom ¶
func (x *ResetDevice) GetDisplayRandom() bool
func (*ResetDevice) GetLabel ¶
func (x *ResetDevice) GetLabel() string
func (*ResetDevice) GetLanguage ¶
func (x *ResetDevice) GetLanguage() string
func (*ResetDevice) GetNoBackup ¶
func (x *ResetDevice) GetNoBackup() bool
func (*ResetDevice) GetPassphraseProtection ¶
func (x *ResetDevice) GetPassphraseProtection() bool
func (*ResetDevice) GetPinProtection ¶
func (x *ResetDevice) GetPinProtection() bool
func (*ResetDevice) GetSkipBackup ¶
func (x *ResetDevice) GetSkipBackup() bool
func (*ResetDevice) GetStrength ¶
func (x *ResetDevice) GetStrength() uint32
func (*ResetDevice) GetU2FCounter ¶
func (x *ResetDevice) GetU2FCounter() uint32
func (*ResetDevice) ProtoMessage ¶
func (*ResetDevice) ProtoMessage()
func (*ResetDevice) ProtoReflect ¶
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 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 SignIdentity ¶
type SignIdentity struct {
Identity *IdentityType `protobuf:"bytes,1,req,name=identity" json:"identity,omitempty"` // identity
ChallengeHidden []byte `protobuf:"bytes,2,opt,name=challenge_hidden,json=challengeHidden,def=" json:"challenge_hidden,omitempty"` // non-visible challenge
ChallengeVisual *string `protobuf:"bytes,3,opt,name=challenge_visual,json=challengeVisual,def=" json:"challenge_visual,omitempty"` // challenge shown on display (e.g. date+time)
EcdsaCurveName *string `protobuf:"bytes,4,opt,name=ecdsa_curve_name,json=ecdsaCurveName" json:"ecdsa_curve_name,omitempty"` // ECDSA curve name to use
// contains filtered or unexported fields
}
* Request: Ask device to sign identity @start @next SignedIdentity @next Failure
func (*SignIdentity) Descriptor
deprecated
func (*SignIdentity) Descriptor() ([]byte, []int)
Deprecated: Use SignIdentity.ProtoReflect.Descriptor instead.
func (*SignIdentity) GetChallengeHidden ¶
func (x *SignIdentity) GetChallengeHidden() []byte
func (*SignIdentity) GetChallengeVisual ¶
func (x *SignIdentity) GetChallengeVisual() string
func (*SignIdentity) GetEcdsaCurveName ¶
func (x *SignIdentity) GetEcdsaCurveName() string
func (*SignIdentity) GetIdentity ¶
func (x *SignIdentity) GetIdentity() *IdentityType
func (*SignIdentity) ProtoMessage ¶
func (*SignIdentity) ProtoMessage()
func (*SignIdentity) ProtoReflect ¶
func (x *SignIdentity) ProtoReflect() protoreflect.Message
func (*SignIdentity) Reset ¶
func (x *SignIdentity) Reset()
func (*SignIdentity) String ¶
func (x *SignIdentity) String() string
type SignedIdentity ¶
type SignedIdentity struct {
Address *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` // identity address
PublicKey []byte `protobuf:"bytes,2,req,name=public_key,json=publicKey" json:"public_key,omitempty"` // identity public key
Signature []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"` // signature of the identity data
// contains filtered or unexported fields
}
* Response: Device provides signed identity @end
func (*SignedIdentity) Descriptor
deprecated
func (*SignedIdentity) Descriptor() ([]byte, []int)
Deprecated: Use SignedIdentity.ProtoReflect.Descriptor instead.
func (*SignedIdentity) GetAddress ¶
func (x *SignedIdentity) GetAddress() string
func (*SignedIdentity) GetPublicKey ¶
func (x *SignedIdentity) GetPublicKey() []byte
func (*SignedIdentity) GetSignature ¶
func (x *SignedIdentity) GetSignature() []byte
func (*SignedIdentity) ProtoMessage ¶
func (*SignedIdentity) ProtoMessage()
func (*SignedIdentity) ProtoReflect ¶
func (x *SignedIdentity) ProtoReflect() protoreflect.Message
func (*SignedIdentity) Reset ¶
func (x *SignedIdentity) Reset()
func (*SignedIdentity) String ¶
func (x *SignedIdentity) 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 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.