Documentation ¶
Overview ¶
Package trezor contains the wire protocol wrapper in Go.
Index ¶
- Constants
- Variables
- func ConvertBytes(bytes []byte) (res []byte)
- func DumpMessage(writer io.Writer, msg interface{}) error
- func GetEmptyObj(msgType MessageType) interface{}
- func LoadMessage(reader io.Reader, target interface{}, limit *int32) (interface{}, error)
- func Name(kind uint16) string
- func Pack(packed *[6]byte, msgType uint16, serLen uint32)
- func RevertBytes(bytes []byte) (res []byte)
- func Type(msg proto.Message) uint16
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetAddress() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type ApplyFlags
- func (*ApplyFlags) Descriptor() ([]byte, []int)
- func (m *ApplyFlags) GetFlags() uint32
- func (*ApplyFlags) ProtoMessage()
- func (m *ApplyFlags) Reset()
- func (m *ApplyFlags) String() string
- func (m *ApplyFlags) XXX_DiscardUnknown()
- func (m *ApplyFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplyFlags) XXX_Merge(src proto.Message)
- func (m *ApplyFlags) XXX_Size() int
- func (m *ApplyFlags) XXX_Unmarshal(b []byte) error
- type ApplySettings
- func (*ApplySettings) Descriptor() ([]byte, []int)
- func (m *ApplySettings) GetHomescreen() []byte
- func (m *ApplySettings) GetLabel() string
- func (m *ApplySettings) GetLanguage() string
- func (m *ApplySettings) GetUsePassphrase() bool
- func (*ApplySettings) ProtoMessage()
- func (m *ApplySettings) Reset()
- func (m *ApplySettings) String() string
- func (m *ApplySettings) XXX_DiscardUnknown()
- func (m *ApplySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplySettings) XXX_Merge(src proto.Message)
- func (m *ApplySettings) XXX_Size() int
- func (m *ApplySettings) XXX_Unmarshal(b []byte) error
- type BackupDevice
- func (*BackupDevice) Descriptor() ([]byte, []int)
- func (*BackupDevice) ProtoMessage()
- func (m *BackupDevice) Reset()
- func (m *BackupDevice) String() string
- func (m *BackupDevice) XXX_DiscardUnknown()
- func (m *BackupDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BackupDevice) XXX_Merge(src proto.Message)
- func (m *BackupDevice) XXX_Size() int
- func (m *BackupDevice) XXX_Unmarshal(b []byte) error
- type BridgeTransport
- func (b *BridgeTransport) BeginSession() error
- func (b *BridgeTransport) CallRaw(data []byte) (interface{}, MessageType, error)
- func (b *BridgeTransport) CheckFirmwareVersion(version [3]uint32, warnOnly bool) error
- func (b *BridgeTransport) EndSession()
- func (b *BridgeTransport) ReadRaw() (interface{}, MessageType, error)
- func (b *BridgeTransport) WriteRaw(data []byte) error
- type ButtonAck
- func (*ButtonAck) Descriptor() ([]byte, []int)
- func (*ButtonAck) ProtoMessage()
- func (m *ButtonAck) Reset()
- func (m *ButtonAck) String() string
- func (m *ButtonAck) XXX_DiscardUnknown()
- func (m *ButtonAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ButtonAck) XXX_Merge(src proto.Message)
- func (m *ButtonAck) XXX_Size() int
- func (m *ButtonAck) XXX_Unmarshal(b []byte) error
- type ButtonRequest
- func (*ButtonRequest) Descriptor() ([]byte, []int)
- func (m *ButtonRequest) GetCode() ButtonRequestType
- func (m *ButtonRequest) GetData() string
- func (*ButtonRequest) ProtoMessage()
- func (m *ButtonRequest) Reset()
- func (m *ButtonRequest) String() string
- func (m *ButtonRequest) XXX_DiscardUnknown()
- func (m *ButtonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ButtonRequest) XXX_Merge(src proto.Message)
- func (m *ButtonRequest) XXX_Size() int
- func (m *ButtonRequest) XXX_Unmarshal(b []byte) error
- type ButtonRequestType
- type Cancel
- func (*Cancel) Descriptor() ([]byte, []int)
- func (*Cancel) ProtoMessage()
- func (m *Cancel) Reset()
- func (m *Cancel) String() string
- func (m *Cancel) XXX_DiscardUnknown()
- func (m *Cancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cancel) XXX_Merge(src proto.Message)
- func (m *Cancel) XXX_Size() int
- func (m *Cancel) XXX_Unmarshal(b []byte) error
- type ChangePin
- func (*ChangePin) Descriptor() ([]byte, []int)
- func (m *ChangePin) GetRemove() bool
- func (*ChangePin) ProtoMessage()
- func (m *ChangePin) Reset()
- func (m *ChangePin) String() string
- func (m *ChangePin) XXX_DiscardUnknown()
- func (m *ChangePin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChangePin) XXX_Merge(src proto.Message)
- func (m *ChangePin) XXX_Size() int
- func (m *ChangePin) XXX_Unmarshal(b []byte) error
- type CipherKeyValue
- func (*CipherKeyValue) Descriptor() ([]byte, []int)
- func (m *CipherKeyValue) GetAddressN() []uint32
- func (m *CipherKeyValue) GetAskOnDecrypt() bool
- func (m *CipherKeyValue) GetAskOnEncrypt() bool
- func (m *CipherKeyValue) GetEncrypt() bool
- func (m *CipherKeyValue) GetIv() []byte
- func (m *CipherKeyValue) GetKey() string
- func (m *CipherKeyValue) GetValue() []byte
- func (*CipherKeyValue) ProtoMessage()
- func (m *CipherKeyValue) Reset()
- func (m *CipherKeyValue) String() string
- func (m *CipherKeyValue) XXX_DiscardUnknown()
- func (m *CipherKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CipherKeyValue) XXX_Merge(src proto.Message)
- func (m *CipherKeyValue) XXX_Size() int
- func (m *CipherKeyValue) XXX_Unmarshal(b []byte) error
- type CipheredKeyValue
- func (*CipheredKeyValue) Descriptor() ([]byte, []int)
- func (m *CipheredKeyValue) GetValue() []byte
- func (*CipheredKeyValue) ProtoMessage()
- func (m *CipheredKeyValue) Reset()
- func (m *CipheredKeyValue) String() string
- func (m *CipheredKeyValue) XXX_DiscardUnknown()
- func (m *CipheredKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CipheredKeyValue) XXX_Merge(src proto.Message)
- func (m *CipheredKeyValue) XXX_Size() int
- func (m *CipheredKeyValue) XXX_Unmarshal(b []byte) error
- type ClearSession
- func (*ClearSession) Descriptor() ([]byte, []int)
- func (*ClearSession) ProtoMessage()
- func (m *ClearSession) Reset()
- func (m *ClearSession) String() string
- func (m *ClearSession) XXX_DiscardUnknown()
- func (m *ClearSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClearSession) XXX_Merge(src proto.Message)
- func (m *ClearSession) XXX_Size() int
- func (m *ClearSession) XXX_Unmarshal(b []byte) error
- type CoinType
- func (*CoinType) Descriptor() ([]byte, []int)
- func (m *CoinType) GetAddressType() uint32
- func (m *CoinType) GetAddressTypeP2Sh() uint32
- func (m *CoinType) GetCoinName() string
- func (m *CoinType) GetCoinShortcut() string
- func (m *CoinType) GetForkid() uint32
- func (m *CoinType) GetMaxfeeKb() uint64
- func (m *CoinType) GetSegwit() bool
- func (m *CoinType) GetSignedMessageHeader() string
- func (m *CoinType) GetXprvMagic() uint32
- func (m *CoinType) GetXpubMagic() uint32
- func (*CoinType) ProtoMessage()
- func (m *CoinType) Reset()
- func (m *CoinType) String() string
- func (m *CoinType) XXX_DiscardUnknown()
- func (m *CoinType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CoinType) XXX_Merge(src proto.Message)
- func (m *CoinType) XXX_Size() int
- func (m *CoinType) XXX_Unmarshal(b []byte) error
- type Config
- type DebugLinkDecision
- func (*DebugLinkDecision) Descriptor() ([]byte, []int)
- func (m *DebugLinkDecision) GetYesNo() bool
- func (*DebugLinkDecision) ProtoMessage()
- func (m *DebugLinkDecision) Reset()
- func (m *DebugLinkDecision) String() string
- func (m *DebugLinkDecision) XXX_DiscardUnknown()
- func (m *DebugLinkDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkDecision) XXX_Merge(src proto.Message)
- func (m *DebugLinkDecision) XXX_Size() int
- func (m *DebugLinkDecision) XXX_Unmarshal(b []byte) error
- type DebugLinkFlashErase
- func (*DebugLinkFlashErase) Descriptor() ([]byte, []int)
- func (m *DebugLinkFlashErase) GetSector() uint32
- func (*DebugLinkFlashErase) ProtoMessage()
- func (m *DebugLinkFlashErase) Reset()
- func (m *DebugLinkFlashErase) String() string
- func (m *DebugLinkFlashErase) XXX_DiscardUnknown()
- func (m *DebugLinkFlashErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkFlashErase) XXX_Merge(src proto.Message)
- func (m *DebugLinkFlashErase) XXX_Size() int
- func (m *DebugLinkFlashErase) XXX_Unmarshal(b []byte) error
- type DebugLinkGetState
- func (*DebugLinkGetState) Descriptor() ([]byte, []int)
- func (*DebugLinkGetState) ProtoMessage()
- func (m *DebugLinkGetState) Reset()
- func (m *DebugLinkGetState) String() string
- func (m *DebugLinkGetState) XXX_DiscardUnknown()
- func (m *DebugLinkGetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkGetState) XXX_Merge(src proto.Message)
- func (m *DebugLinkGetState) XXX_Size() int
- func (m *DebugLinkGetState) XXX_Unmarshal(b []byte) error
- type DebugLinkLog
- func (*DebugLinkLog) Descriptor() ([]byte, []int)
- func (m *DebugLinkLog) GetBucket() string
- func (m *DebugLinkLog) GetLevel() uint32
- func (m *DebugLinkLog) GetText() string
- func (*DebugLinkLog) ProtoMessage()
- func (m *DebugLinkLog) Reset()
- func (m *DebugLinkLog) String() string
- func (m *DebugLinkLog) XXX_DiscardUnknown()
- func (m *DebugLinkLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkLog) XXX_Merge(src proto.Message)
- func (m *DebugLinkLog) XXX_Size() int
- func (m *DebugLinkLog) XXX_Unmarshal(b []byte) error
- type DebugLinkMemory
- func (*DebugLinkMemory) Descriptor() ([]byte, []int)
- func (m *DebugLinkMemory) GetMemory() []byte
- func (*DebugLinkMemory) ProtoMessage()
- func (m *DebugLinkMemory) Reset()
- func (m *DebugLinkMemory) String() string
- func (m *DebugLinkMemory) XXX_DiscardUnknown()
- func (m *DebugLinkMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkMemory) XXX_Merge(src proto.Message)
- func (m *DebugLinkMemory) XXX_Size() int
- func (m *DebugLinkMemory) XXX_Unmarshal(b []byte) error
- type DebugLinkMemoryRead
- func (*DebugLinkMemoryRead) Descriptor() ([]byte, []int)
- func (m *DebugLinkMemoryRead) GetAddress() uint32
- func (m *DebugLinkMemoryRead) GetLength() uint32
- func (*DebugLinkMemoryRead) ProtoMessage()
- func (m *DebugLinkMemoryRead) Reset()
- func (m *DebugLinkMemoryRead) String() string
- func (m *DebugLinkMemoryRead) XXX_DiscardUnknown()
- func (m *DebugLinkMemoryRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkMemoryRead) XXX_Merge(src proto.Message)
- func (m *DebugLinkMemoryRead) XXX_Size() int
- func (m *DebugLinkMemoryRead) XXX_Unmarshal(b []byte) error
- type DebugLinkMemoryWrite
- func (*DebugLinkMemoryWrite) Descriptor() ([]byte, []int)
- func (m *DebugLinkMemoryWrite) GetAddress() uint32
- func (m *DebugLinkMemoryWrite) GetFlash() bool
- func (m *DebugLinkMemoryWrite) GetMemory() []byte
- func (*DebugLinkMemoryWrite) ProtoMessage()
- func (m *DebugLinkMemoryWrite) Reset()
- func (m *DebugLinkMemoryWrite) String() string
- func (m *DebugLinkMemoryWrite) XXX_DiscardUnknown()
- func (m *DebugLinkMemoryWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkMemoryWrite) XXX_Merge(src proto.Message)
- func (m *DebugLinkMemoryWrite) XXX_Size() int
- func (m *DebugLinkMemoryWrite) XXX_Unmarshal(b []byte) error
- type DebugLinkState
- func (*DebugLinkState) Descriptor() ([]byte, []int)
- func (m *DebugLinkState) GetLayout() []byte
- func (m *DebugLinkState) GetMatrix() string
- func (m *DebugLinkState) GetMnemonic() string
- func (m *DebugLinkState) GetNode() *HDNodeType
- func (m *DebugLinkState) GetPassphraseProtection() bool
- func (m *DebugLinkState) GetPin() string
- func (m *DebugLinkState) GetRecoveryFakeWord() string
- func (m *DebugLinkState) GetRecoveryWordPos() uint32
- func (m *DebugLinkState) GetResetEntropy() []byte
- func (m *DebugLinkState) GetResetWord() string
- func (*DebugLinkState) ProtoMessage()
- func (m *DebugLinkState) Reset()
- func (m *DebugLinkState) String() string
- func (m *DebugLinkState) XXX_DiscardUnknown()
- func (m *DebugLinkState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkState) XXX_Merge(src proto.Message)
- func (m *DebugLinkState) XXX_Size() int
- func (m *DebugLinkState) XXX_Unmarshal(b []byte) error
- type DebugLinkStop
- func (*DebugLinkStop) Descriptor() ([]byte, []int)
- func (*DebugLinkStop) ProtoMessage()
- func (m *DebugLinkStop) Reset()
- func (m *DebugLinkStop) String() string
- func (m *DebugLinkStop) XXX_DiscardUnknown()
- func (m *DebugLinkStop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugLinkStop) XXX_Merge(src proto.Message)
- func (m *DebugLinkStop) XXX_Size() int
- func (m *DebugLinkStop) XXX_Unmarshal(b []byte) error
- type DecryptMessage
- func (*DecryptMessage) Descriptor() ([]byte, []int)
- func (m *DecryptMessage) GetAddressN() []uint32
- func (m *DecryptMessage) GetHmac() []byte
- func (m *DecryptMessage) GetMessage() []byte
- func (m *DecryptMessage) GetNonce() []byte
- func (*DecryptMessage) ProtoMessage()
- func (m *DecryptMessage) Reset()
- func (m *DecryptMessage) String() string
- func (m *DecryptMessage) XXX_DiscardUnknown()
- func (m *DecryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptMessage) XXX_Merge(src proto.Message)
- func (m *DecryptMessage) XXX_Size() int
- func (m *DecryptMessage) XXX_Unmarshal(b []byte) error
- type DecryptedMessage
- func (*DecryptedMessage) Descriptor() ([]byte, []int)
- func (m *DecryptedMessage) GetAddress() string
- func (m *DecryptedMessage) GetMessage() []byte
- func (*DecryptedMessage) ProtoMessage()
- func (m *DecryptedMessage) Reset()
- func (m *DecryptedMessage) String() string
- func (m *DecryptedMessage) XXX_DiscardUnknown()
- func (m *DecryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptedMessage) XXX_Merge(src proto.Message)
- func (m *DecryptedMessage) XXX_Size() int
- func (m *DecryptedMessage) XXX_Unmarshal(b []byte) error
- type Device
- type ECDHSessionKey
- func (*ECDHSessionKey) Descriptor() ([]byte, []int)
- func (m *ECDHSessionKey) GetSessionKey() []byte
- func (*ECDHSessionKey) ProtoMessage()
- func (m *ECDHSessionKey) Reset()
- func (m *ECDHSessionKey) String() string
- func (m *ECDHSessionKey) XXX_DiscardUnknown()
- func (m *ECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ECDHSessionKey) XXX_Merge(src proto.Message)
- func (m *ECDHSessionKey) XXX_Size() int
- func (m *ECDHSessionKey) XXX_Unmarshal(b []byte) error
- type EncryptMessage
- func (*EncryptMessage) Descriptor() ([]byte, []int)
- func (m *EncryptMessage) GetAddressN() []uint32
- func (m *EncryptMessage) GetCoinName() string
- func (m *EncryptMessage) GetDisplayOnly() bool
- func (m *EncryptMessage) GetMessage() []byte
- func (m *EncryptMessage) GetPubkey() []byte
- func (*EncryptMessage) ProtoMessage()
- func (m *EncryptMessage) Reset()
- func (m *EncryptMessage) String() string
- func (m *EncryptMessage) XXX_DiscardUnknown()
- func (m *EncryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptMessage) XXX_Merge(src proto.Message)
- func (m *EncryptMessage) XXX_Size() int
- func (m *EncryptMessage) XXX_Unmarshal(b []byte) error
- type EncryptedMessage
- func (*EncryptedMessage) Descriptor() ([]byte, []int)
- func (m *EncryptedMessage) GetHmac() []byte
- func (m *EncryptedMessage) GetMessage() []byte
- func (m *EncryptedMessage) GetNonce() []byte
- func (*EncryptedMessage) ProtoMessage()
- func (m *EncryptedMessage) Reset()
- func (m *EncryptedMessage) String() string
- func (m *EncryptedMessage) XXX_DiscardUnknown()
- func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EncryptedMessage) XXX_Merge(src proto.Message)
- func (m *EncryptedMessage) XXX_Size() int
- func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error
- type Entropy
- func (*Entropy) Descriptor() ([]byte, []int)
- func (m *Entropy) GetEntropy() []byte
- func (*Entropy) ProtoMessage()
- func (m *Entropy) Reset()
- func (m *Entropy) String() string
- func (m *Entropy) XXX_DiscardUnknown()
- func (m *Entropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entropy) XXX_Merge(src proto.Message)
- func (m *Entropy) XXX_Size() int
- func (m *Entropy) XXX_Unmarshal(b []byte) error
- type EntropyAck
- func (*EntropyAck) Descriptor() ([]byte, []int)
- func (m *EntropyAck) GetEntropy() []byte
- func (*EntropyAck) ProtoMessage()
- func (m *EntropyAck) Reset()
- func (m *EntropyAck) String() string
- func (m *EntropyAck) XXX_DiscardUnknown()
- func (m *EntropyAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EntropyAck) XXX_Merge(src proto.Message)
- func (m *EntropyAck) XXX_Size() int
- func (m *EntropyAck) XXX_Unmarshal(b []byte) error
- type EntropyRequest
- func (*EntropyRequest) Descriptor() ([]byte, []int)
- func (*EntropyRequest) ProtoMessage()
- func (m *EntropyRequest) Reset()
- func (m *EntropyRequest) String() string
- func (m *EntropyRequest) XXX_DiscardUnknown()
- func (m *EntropyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EntropyRequest) XXX_Merge(src proto.Message)
- func (m *EntropyRequest) XXX_Size() int
- func (m *EntropyRequest) XXX_Unmarshal(b []byte) error
- type EstimateTxSize
- func (*EstimateTxSize) Descriptor() ([]byte, []int)
- func (m *EstimateTxSize) GetCoinName() string
- func (m *EstimateTxSize) GetInputsCount() uint32
- func (m *EstimateTxSize) GetOutputsCount() uint32
- func (*EstimateTxSize) ProtoMessage()
- func (m *EstimateTxSize) Reset()
- func (m *EstimateTxSize) String() string
- func (m *EstimateTxSize) XXX_DiscardUnknown()
- func (m *EstimateTxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimateTxSize) XXX_Merge(src proto.Message)
- func (m *EstimateTxSize) XXX_Size() int
- func (m *EstimateTxSize) XXX_Unmarshal(b []byte) error
- type Failure
- func (*Failure) Descriptor() ([]byte, []int)
- func (m *Failure) GetCode() FailureType
- func (m *Failure) GetMessage() string
- func (*Failure) ProtoMessage()
- func (m *Failure) Reset()
- func (m *Failure) String() string
- func (m *Failure) XXX_DiscardUnknown()
- func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Failure) XXX_Merge(src proto.Message)
- func (m *Failure) XXX_Size() int
- func (m *Failure) XXX_Unmarshal(b []byte) error
- type FailureType
- type Features
- func (*Features) Descriptor() ([]byte, []int)
- func (m *Features) GetBootloaderHash() []byte
- func (m *Features) GetBootloaderMode() bool
- func (m *Features) GetCoins() []*CoinType
- func (m *Features) GetDeviceId() string
- func (m *Features) GetFirmwarePresent() bool
- func (m *Features) GetFlags() uint32
- func (m *Features) GetImported() bool
- func (m *Features) GetInitialized() bool
- func (m *Features) GetLabel() string
- func (m *Features) GetLanguage() string
- func (m *Features) GetMajorVersion() uint32
- func (m *Features) GetMinorVersion() uint32
- func (m *Features) GetNeedsBackup() bool
- func (m *Features) GetPassphraseCached() bool
- func (m *Features) GetPassphraseProtection() bool
- func (m *Features) GetPatchVersion() uint32
- func (m *Features) GetPinCached() bool
- func (m *Features) GetPinProtection() bool
- func (m *Features) GetRevision() []byte
- func (m *Features) GetVendor() string
- func (*Features) ProtoMessage()
- func (m *Features) Reset()
- func (m *Features) String() string
- func (m *Features) XXX_DiscardUnknown()
- func (m *Features) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Features) XXX_Merge(src proto.Message)
- func (m *Features) XXX_Size() int
- func (m *Features) XXX_Unmarshal(b []byte) error
- type FirmwareErase
- func (*FirmwareErase) Descriptor() ([]byte, []int)
- func (m *FirmwareErase) GetLength() uint32
- func (*FirmwareErase) ProtoMessage()
- func (m *FirmwareErase) Reset()
- func (m *FirmwareErase) String() string
- func (m *FirmwareErase) XXX_DiscardUnknown()
- func (m *FirmwareErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FirmwareErase) XXX_Merge(src proto.Message)
- func (m *FirmwareErase) XXX_Size() int
- func (m *FirmwareErase) XXX_Unmarshal(b []byte) error
- type FirmwareRequest
- func (*FirmwareRequest) Descriptor() ([]byte, []int)
- func (m *FirmwareRequest) GetLength() uint32
- func (m *FirmwareRequest) GetOffset() uint32
- func (*FirmwareRequest) ProtoMessage()
- func (m *FirmwareRequest) Reset()
- func (m *FirmwareRequest) String() string
- func (m *FirmwareRequest) XXX_DiscardUnknown()
- func (m *FirmwareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FirmwareRequest) XXX_Merge(src proto.Message)
- func (m *FirmwareRequest) XXX_Size() int
- func (m *FirmwareRequest) XXX_Unmarshal(b []byte) error
- type FirmwareUpload
- func (*FirmwareUpload) Descriptor() ([]byte, []int)
- func (m *FirmwareUpload) GetHash() []byte
- func (m *FirmwareUpload) GetPayload() []byte
- func (*FirmwareUpload) ProtoMessage()
- func (m *FirmwareUpload) Reset()
- func (m *FirmwareUpload) String() string
- func (m *FirmwareUpload) XXX_DiscardUnknown()
- func (m *FirmwareUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FirmwareUpload) XXX_Merge(src proto.Message)
- func (m *FirmwareUpload) XXX_Size() int
- func (m *FirmwareUpload) XXX_Unmarshal(b []byte) error
- type GetAddress
- func (*GetAddress) Descriptor() ([]byte, []int)
- func (m *GetAddress) GetAddressN() []uint32
- func (m *GetAddress) GetCoinName() string
- func (m *GetAddress) GetMultisig() *MultisigRedeemScriptType
- func (m *GetAddress) GetScriptType() InputScriptType
- func (m *GetAddress) GetShowDisplay() bool
- func (*GetAddress) ProtoMessage()
- func (m *GetAddress) Reset()
- func (m *GetAddress) String() string
- func (m *GetAddress) XXX_DiscardUnknown()
- func (m *GetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAddress) XXX_Merge(src proto.Message)
- func (m *GetAddress) XXX_Size() int
- func (m *GetAddress) XXX_Unmarshal(b []byte) error
- type GetECDHSessionKey
- func (*GetECDHSessionKey) Descriptor() ([]byte, []int)
- func (m *GetECDHSessionKey) GetEcdsaCurveName() string
- func (m *GetECDHSessionKey) GetIdentity() *IdentityType
- func (m *GetECDHSessionKey) GetPeerPublicKey() []byte
- func (*GetECDHSessionKey) ProtoMessage()
- func (m *GetECDHSessionKey) Reset()
- func (m *GetECDHSessionKey) String() string
- func (m *GetECDHSessionKey) XXX_DiscardUnknown()
- func (m *GetECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetECDHSessionKey) XXX_Merge(src proto.Message)
- func (m *GetECDHSessionKey) XXX_Size() int
- func (m *GetECDHSessionKey) XXX_Unmarshal(b []byte) error
- type GetEntropy
- func (*GetEntropy) Descriptor() ([]byte, []int)
- func (m *GetEntropy) GetSize() uint32
- func (*GetEntropy) ProtoMessage()
- func (m *GetEntropy) Reset()
- func (m *GetEntropy) String() string
- func (m *GetEntropy) XXX_DiscardUnknown()
- func (m *GetEntropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEntropy) XXX_Merge(src proto.Message)
- func (m *GetEntropy) XXX_Size() int
- func (m *GetEntropy) XXX_Unmarshal(b []byte) error
- type GetFeatures
- func (*GetFeatures) Descriptor() ([]byte, []int)
- func (*GetFeatures) ProtoMessage()
- func (m *GetFeatures) Reset()
- func (m *GetFeatures) String() string
- func (m *GetFeatures) XXX_DiscardUnknown()
- func (m *GetFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFeatures) XXX_Merge(src proto.Message)
- func (m *GetFeatures) XXX_Size() int
- func (m *GetFeatures) XXX_Unmarshal(b []byte) error
- type GetPublicKey
- func (*GetPublicKey) Descriptor() ([]byte, []int)
- func (m *GetPublicKey) GetAddressN() []uint32
- func (m *GetPublicKey) GetCoinName() string
- func (m *GetPublicKey) GetEcdsaCurveName() string
- func (m *GetPublicKey) GetShowDisplay() bool
- func (*GetPublicKey) ProtoMessage()
- func (m *GetPublicKey) Reset()
- func (m *GetPublicKey) String() string
- func (m *GetPublicKey) XXX_DiscardUnknown()
- func (m *GetPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetPublicKey) XXX_Merge(src proto.Message)
- func (m *GetPublicKey) XXX_Size() int
- func (m *GetPublicKey) XXX_Unmarshal(b []byte) error
- type HDNodePathType
- func (*HDNodePathType) Descriptor() ([]byte, []int)
- func (m *HDNodePathType) GetAddressN() []uint32
- func (m *HDNodePathType) GetNode() *HDNodeType
- func (*HDNodePathType) ProtoMessage()
- func (m *HDNodePathType) Reset()
- func (m *HDNodePathType) String() string
- func (m *HDNodePathType) XXX_DiscardUnknown()
- func (m *HDNodePathType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HDNodePathType) XXX_Merge(src proto.Message)
- func (m *HDNodePathType) XXX_Size() int
- func (m *HDNodePathType) XXX_Unmarshal(b []byte) error
- type HDNodeType
- func (*HDNodeType) Descriptor() ([]byte, []int)
- func (m *HDNodeType) GetChainCode() []byte
- func (m *HDNodeType) GetChildNum() uint32
- func (m *HDNodeType) GetDepth() uint32
- func (m *HDNodeType) GetFingerprint() uint32
- func (m *HDNodeType) GetPrivateKey() []byte
- func (m *HDNodeType) GetPublicKey() []byte
- func (*HDNodeType) ProtoMessage()
- func (m *HDNodeType) Reset()
- func (m *HDNodeType) String() string
- func (m *HDNodeType) XXX_DiscardUnknown()
- func (m *HDNodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HDNodeType) XXX_Merge(src proto.Message)
- func (m *HDNodeType) XXX_Size() int
- func (m *HDNodeType) XXX_Unmarshal(b []byte) error
- type IdentityType
- func (*IdentityType) Descriptor() ([]byte, []int)
- func (m *IdentityType) GetHost() string
- func (m *IdentityType) GetIndex() uint32
- func (m *IdentityType) GetPath() string
- func (m *IdentityType) GetPort() string
- func (m *IdentityType) GetProto() string
- func (m *IdentityType) GetUser() string
- func (*IdentityType) ProtoMessage()
- func (m *IdentityType) Reset()
- func (m *IdentityType) String() string
- func (m *IdentityType) XXX_DiscardUnknown()
- func (m *IdentityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IdentityType) XXX_Merge(src proto.Message)
- func (m *IdentityType) XXX_Size() int
- func (m *IdentityType) XXX_Unmarshal(b []byte) error
- type Initialize
- func (*Initialize) Descriptor() ([]byte, []int)
- func (*Initialize) ProtoMessage()
- func (m *Initialize) Reset()
- func (m *Initialize) String() string
- func (m *Initialize) XXX_DiscardUnknown()
- func (m *Initialize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Initialize) XXX_Merge(src proto.Message)
- func (m *Initialize) XXX_Size() int
- func (m *Initialize) XXX_Unmarshal(b []byte) error
- type InputScriptType
- type LoadDevice
- func (*LoadDevice) Descriptor() ([]byte, []int)
- func (m *LoadDevice) GetLabel() string
- func (m *LoadDevice) GetLanguage() string
- func (m *LoadDevice) GetMnemonic() string
- func (m *LoadDevice) GetNode() *HDNodeType
- func (m *LoadDevice) GetPassphraseProtection() bool
- func (m *LoadDevice) GetPin() string
- func (m *LoadDevice) GetSkipChecksum() bool
- func (m *LoadDevice) GetU2FCounter() uint32
- func (*LoadDevice) ProtoMessage()
- func (m *LoadDevice) Reset()
- func (m *LoadDevice) String() string
- func (m *LoadDevice) XXX_DiscardUnknown()
- func (m *LoadDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoadDevice) XXX_Merge(src proto.Message)
- func (m *LoadDevice) XXX_Size() int
- func (m *LoadDevice) XXX_Unmarshal(b []byte) error
- type MessageSignature
- func (*MessageSignature) Descriptor() ([]byte, []int)
- func (m *MessageSignature) GetAddress() string
- func (m *MessageSignature) GetSignature() []byte
- func (*MessageSignature) ProtoMessage()
- func (m *MessageSignature) Reset()
- func (m *MessageSignature) String() string
- func (m *MessageSignature) XXX_DiscardUnknown()
- func (m *MessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MessageSignature) XXX_Merge(src proto.Message)
- func (m *MessageSignature) XXX_Size() int
- func (m *MessageSignature) XXX_Unmarshal(b []byte) error
- type MessageType
- type MultisigRedeemScriptType
- func (*MultisigRedeemScriptType) Descriptor() ([]byte, []int)
- func (m *MultisigRedeemScriptType) GetM() uint32
- func (m *MultisigRedeemScriptType) GetPubkeys() []*HDNodePathType
- func (m *MultisigRedeemScriptType) GetSignatures() [][]byte
- func (*MultisigRedeemScriptType) ProtoMessage()
- func (m *MultisigRedeemScriptType) Reset()
- func (m *MultisigRedeemScriptType) String() string
- func (m *MultisigRedeemScriptType) XXX_DiscardUnknown()
- func (m *MultisigRedeemScriptType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultisigRedeemScriptType) XXX_Merge(src proto.Message)
- func (m *MultisigRedeemScriptType) XXX_Size() int
- func (m *MultisigRedeemScriptType) XXX_Unmarshal(b []byte) error
- type OutputScriptType
- type PassphraseAck
- func (*PassphraseAck) Descriptor() ([]byte, []int)
- func (m *PassphraseAck) GetPassphrase() string
- func (*PassphraseAck) ProtoMessage()
- func (m *PassphraseAck) Reset()
- func (m *PassphraseAck) String() string
- func (m *PassphraseAck) XXX_DiscardUnknown()
- func (m *PassphraseAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PassphraseAck) XXX_Merge(src proto.Message)
- func (m *PassphraseAck) XXX_Size() int
- func (m *PassphraseAck) XXX_Unmarshal(b []byte) error
- type PassphraseRequest
- func (*PassphraseRequest) Descriptor() ([]byte, []int)
- func (*PassphraseRequest) ProtoMessage()
- func (m *PassphraseRequest) Reset()
- func (m *PassphraseRequest) String() string
- func (m *PassphraseRequest) XXX_DiscardUnknown()
- func (m *PassphraseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PassphraseRequest) XXX_Merge(src proto.Message)
- func (m *PassphraseRequest) XXX_Size() int
- func (m *PassphraseRequest) XXX_Unmarshal(b []byte) error
- type PinMatrixAck
- func (*PinMatrixAck) Descriptor() ([]byte, []int)
- func (m *PinMatrixAck) GetPin() string
- func (*PinMatrixAck) ProtoMessage()
- func (m *PinMatrixAck) Reset()
- func (m *PinMatrixAck) String() string
- func (m *PinMatrixAck) XXX_DiscardUnknown()
- func (m *PinMatrixAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PinMatrixAck) XXX_Merge(src proto.Message)
- func (m *PinMatrixAck) XXX_Size() int
- func (m *PinMatrixAck) XXX_Unmarshal(b []byte) error
- type PinMatrixRequest
- func (*PinMatrixRequest) Descriptor() ([]byte, []int)
- func (m *PinMatrixRequest) GetType() PinMatrixRequestType
- func (*PinMatrixRequest) ProtoMessage()
- func (m *PinMatrixRequest) Reset()
- func (m *PinMatrixRequest) String() string
- func (m *PinMatrixRequest) XXX_DiscardUnknown()
- func (m *PinMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PinMatrixRequest) XXX_Merge(src proto.Message)
- func (m *PinMatrixRequest) XXX_Size() int
- func (m *PinMatrixRequest) XXX_Unmarshal(b []byte) error
- type PinMatrixRequestType
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetButtonProtection() bool
- func (m *Ping) GetMessage() string
- func (m *Ping) GetPassphraseProtection() bool
- func (m *Ping) GetPinProtection() bool
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type ProtoField
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- func (m *PublicKey) GetNode() *HDNodeType
- func (m *PublicKey) GetXpub() string
- func (*PublicKey) ProtoMessage()
- func (m *PublicKey) Reset()
- func (m *PublicKey) String() string
- func (m *PublicKey) XXX_DiscardUnknown()
- func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKey) XXX_Merge(src proto.Message)
- func (m *PublicKey) XXX_Size() int
- func (m *PublicKey) XXX_Unmarshal(b []byte) error
- type RecoveryDevice
- func (*RecoveryDevice) Descriptor() ([]byte, []int)
- func (m *RecoveryDevice) GetDryRun() bool
- func (m *RecoveryDevice) GetEnforceWordlist() bool
- func (m *RecoveryDevice) GetLabel() string
- func (m *RecoveryDevice) GetLanguage() string
- func (m *RecoveryDevice) GetPassphraseProtection() bool
- func (m *RecoveryDevice) GetPinProtection() bool
- func (m *RecoveryDevice) GetType() uint32
- func (m *RecoveryDevice) GetU2FCounter() uint32
- func (m *RecoveryDevice) GetWordCount() uint32
- func (*RecoveryDevice) ProtoMessage()
- func (m *RecoveryDevice) Reset()
- func (m *RecoveryDevice) String() string
- func (m *RecoveryDevice) XXX_DiscardUnknown()
- func (m *RecoveryDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RecoveryDevice) XXX_Merge(src proto.Message)
- func (m *RecoveryDevice) XXX_Size() int
- func (m *RecoveryDevice) XXX_Unmarshal(b []byte) error
- type RecoveryDeviceType
- type RequestType
- type ResetDevice
- func (*ResetDevice) Descriptor() ([]byte, []int)
- func (m *ResetDevice) GetDisplayRandom() bool
- func (m *ResetDevice) GetLabel() string
- func (m *ResetDevice) GetLanguage() string
- func (m *ResetDevice) GetPassphraseProtection() bool
- func (m *ResetDevice) GetPinProtection() bool
- func (m *ResetDevice) GetSkipBackup() bool
- func (m *ResetDevice) GetStrength() uint32
- func (m *ResetDevice) GetU2FCounter() uint32
- func (*ResetDevice) ProtoMessage()
- func (m *ResetDevice) Reset()
- func (m *ResetDevice) String() string
- func (m *ResetDevice) XXX_DiscardUnknown()
- func (m *ResetDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResetDevice) XXX_Merge(src proto.Message)
- func (m *ResetDevice) XXX_Size() int
- func (m *ResetDevice) XXX_Unmarshal(b []byte) error
- type SelfTest
- func (*SelfTest) Descriptor() ([]byte, []int)
- func (m *SelfTest) GetPayload() []byte
- func (*SelfTest) ProtoMessage()
- func (m *SelfTest) Reset()
- func (m *SelfTest) String() string
- func (m *SelfTest) XXX_DiscardUnknown()
- func (m *SelfTest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SelfTest) XXX_Merge(src proto.Message)
- func (m *SelfTest) XXX_Size() int
- func (m *SelfTest) XXX_Unmarshal(b []byte) error
- type Session
- type SetU2FCounter
- func (*SetU2FCounter) Descriptor() ([]byte, []int)
- func (m *SetU2FCounter) GetU2FCounter() uint32
- func (*SetU2FCounter) ProtoMessage()
- func (m *SetU2FCounter) Reset()
- func (m *SetU2FCounter) String() string
- func (m *SetU2FCounter) XXX_DiscardUnknown()
- func (m *SetU2FCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetU2FCounter) XXX_Merge(src proto.Message)
- func (m *SetU2FCounter) XXX_Size() int
- func (m *SetU2FCounter) XXX_Unmarshal(b []byte) error
- type SignIdentity
- func (*SignIdentity) Descriptor() ([]byte, []int)
- func (m *SignIdentity) GetChallengeHidden() []byte
- func (m *SignIdentity) GetChallengeVisual() string
- func (m *SignIdentity) GetEcdsaCurveName() string
- func (m *SignIdentity) GetIdentity() *IdentityType
- func (*SignIdentity) ProtoMessage()
- func (m *SignIdentity) Reset()
- func (m *SignIdentity) String() string
- func (m *SignIdentity) XXX_DiscardUnknown()
- func (m *SignIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignIdentity) XXX_Merge(src proto.Message)
- func (m *SignIdentity) XXX_Size() int
- func (m *SignIdentity) XXX_Unmarshal(b []byte) error
- type SignMessage
- func (*SignMessage) Descriptor() ([]byte, []int)
- func (m *SignMessage) GetAddressN() []uint32
- func (m *SignMessage) GetCoinName() string
- func (m *SignMessage) GetMessage() []byte
- func (m *SignMessage) GetScriptType() InputScriptType
- func (*SignMessage) ProtoMessage()
- func (m *SignMessage) Reset()
- func (m *SignMessage) String() string
- func (m *SignMessage) XXX_DiscardUnknown()
- func (m *SignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignMessage) XXX_Merge(src proto.Message)
- func (m *SignMessage) XXX_Size() int
- func (m *SignMessage) XXX_Unmarshal(b []byte) error
- type SignTx
- func (*SignTx) Descriptor() ([]byte, []int)
- func (m *SignTx) GetCoinName() string
- func (m *SignTx) GetInputsCount() uint32
- func (m *SignTx) GetLockTime() uint32
- func (m *SignTx) GetOutputsCount() uint32
- func (m *SignTx) GetVersion() uint32
- func (*SignTx) ProtoMessage()
- func (m *SignTx) Reset()
- func (m *SignTx) String() string
- func (m *SignTx) XXX_DiscardUnknown()
- func (m *SignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignTx) XXX_Merge(src proto.Message)
- func (m *SignTx) XXX_Size() int
- func (m *SignTx) XXX_Unmarshal(b []byte) error
- type SignedIdentity
- func (*SignedIdentity) Descriptor() ([]byte, []int)
- func (m *SignedIdentity) GetAddress() string
- func (m *SignedIdentity) GetPublicKey() []byte
- func (m *SignedIdentity) GetSignature() []byte
- func (*SignedIdentity) ProtoMessage()
- func (m *SignedIdentity) Reset()
- func (m *SignedIdentity) String() string
- func (m *SignedIdentity) XXX_DiscardUnknown()
- func (m *SignedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedIdentity) XXX_Merge(src proto.Message)
- func (m *SignedIdentity) XXX_Size() int
- func (m *SignedIdentity) XXX_Unmarshal(b []byte) error
- type SimpleSignTx
- func (*SimpleSignTx) Descriptor() ([]byte, []int)
- func (m *SimpleSignTx) GetCoinName() string
- func (m *SimpleSignTx) GetInputs() []*TxInputType
- func (m *SimpleSignTx) GetLockTime() uint32
- func (m *SimpleSignTx) GetOutputs() []*TxOutputType
- func (m *SimpleSignTx) GetTransactions() []*TransactionType
- func (m *SimpleSignTx) GetVersion() uint32
- func (*SimpleSignTx) ProtoMessage()
- func (m *SimpleSignTx) Reset()
- func (m *SimpleSignTx) String() string
- func (m *SimpleSignTx) XXX_DiscardUnknown()
- func (m *SimpleSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SimpleSignTx) XXX_Merge(src proto.Message)
- func (m *SimpleSignTx) XXX_Size() int
- func (m *SimpleSignTx) XXX_Unmarshal(b []byte) error
- type Success
- func (*Success) Descriptor() ([]byte, []int)
- func (m *Success) GetMessage() string
- func (*Success) ProtoMessage()
- func (m *Success) Reset()
- func (m *Success) String() string
- func (m *Success) XXX_DiscardUnknown()
- func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Success) XXX_Merge(src proto.Message)
- func (m *Success) XXX_Size() int
- func (m *Success) XXX_Unmarshal(b []byte) error
- type ThetaAddress
- func (*ThetaAddress) Descriptor() ([]byte, []int)
- func (m *ThetaAddress) GetAddress() []byte
- func (*ThetaAddress) ProtoMessage()
- func (m *ThetaAddress) Reset()
- func (m *ThetaAddress) String() string
- func (m *ThetaAddress) XXX_DiscardUnknown()
- func (m *ThetaAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaAddress) XXX_Merge(src proto.Message)
- func (m *ThetaAddress) XXX_Size() int
- func (m *ThetaAddress) XXX_Unmarshal(b []byte) error
- type ThetaGetAddress
- func (*ThetaGetAddress) Descriptor() ([]byte, []int)
- func (m *ThetaGetAddress) GetAddressN() []uint32
- func (m *ThetaGetAddress) GetShowDisplay() bool
- func (*ThetaGetAddress) ProtoMessage()
- func (m *ThetaGetAddress) Reset()
- func (m *ThetaGetAddress) String() string
- func (m *ThetaGetAddress) XXX_DiscardUnknown()
- func (m *ThetaGetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaGetAddress) XXX_Merge(src proto.Message)
- func (m *ThetaGetAddress) XXX_Size() int
- func (m *ThetaGetAddress) XXX_Unmarshal(b []byte) error
- type ThetaMessageSignature
- func (*ThetaMessageSignature) Descriptor() ([]byte, []int)
- func (m *ThetaMessageSignature) GetAddress() []byte
- func (m *ThetaMessageSignature) GetSignature() []byte
- func (*ThetaMessageSignature) ProtoMessage()
- func (m *ThetaMessageSignature) Reset()
- func (m *ThetaMessageSignature) String() string
- func (m *ThetaMessageSignature) XXX_DiscardUnknown()
- func (m *ThetaMessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaMessageSignature) XXX_Merge(src proto.Message)
- func (m *ThetaMessageSignature) XXX_Size() int
- func (m *ThetaMessageSignature) XXX_Unmarshal(b []byte) error
- type ThetaSignMessage
- func (*ThetaSignMessage) Descriptor() ([]byte, []int)
- func (m *ThetaSignMessage) GetAddressN() []uint32
- func (m *ThetaSignMessage) GetMessage() []byte
- func (*ThetaSignMessage) ProtoMessage()
- func (m *ThetaSignMessage) Reset()
- func (m *ThetaSignMessage) String() string
- func (m *ThetaSignMessage) XXX_DiscardUnknown()
- func (m *ThetaSignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaSignMessage) XXX_Merge(src proto.Message)
- func (m *ThetaSignMessage) XXX_Size() int
- func (m *ThetaSignMessage) XXX_Unmarshal(b []byte) error
- type ThetaSignTx
- func (*ThetaSignTx) Descriptor() ([]byte, []int)
- func (m *ThetaSignTx) GetAddressN() []uint32
- func (m *ThetaSignTx) GetDataInitialChunk() []byte
- func (m *ThetaSignTx) GetDataLength() uint32
- func (m *ThetaSignTx) GetGasLimit() []byte
- func (m *ThetaSignTx) GetGasPrice() []byte
- func (m *ThetaSignTx) GetNonce() []byte
- func (m *ThetaSignTx) GetTo() []byte
- func (m *ThetaSignTx) GetValue() []byte
- func (*ThetaSignTx) ProtoMessage()
- func (m *ThetaSignTx) Reset()
- func (m *ThetaSignTx) String() string
- func (m *ThetaSignTx) XXX_DiscardUnknown()
- func (m *ThetaSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaSignTx) XXX_Merge(src proto.Message)
- func (m *ThetaSignTx) XXX_Size() int
- func (m *ThetaSignTx) XXX_Unmarshal(b []byte) error
- type ThetaTxAck
- func (*ThetaTxAck) Descriptor() ([]byte, []int)
- func (m *ThetaTxAck) GetDataChunk() []byte
- func (*ThetaTxAck) ProtoMessage()
- func (m *ThetaTxAck) Reset()
- func (m *ThetaTxAck) String() string
- func (m *ThetaTxAck) XXX_DiscardUnknown()
- func (m *ThetaTxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaTxAck) XXX_Merge(src proto.Message)
- func (m *ThetaTxAck) XXX_Size() int
- func (m *ThetaTxAck) XXX_Unmarshal(b []byte) error
- type ThetaTxRequest
- func (*ThetaTxRequest) Descriptor() ([]byte, []int)
- func (m *ThetaTxRequest) GetDataLength() uint32
- func (m *ThetaTxRequest) GetSignatureR() []byte
- func (m *ThetaTxRequest) GetSignatureS() []byte
- func (m *ThetaTxRequest) GetSignatureV() uint32
- func (*ThetaTxRequest) ProtoMessage()
- func (m *ThetaTxRequest) Reset()
- func (m *ThetaTxRequest) String() string
- func (m *ThetaTxRequest) XXX_DiscardUnknown()
- func (m *ThetaTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaTxRequest) XXX_Merge(src proto.Message)
- func (m *ThetaTxRequest) XXX_Size() int
- func (m *ThetaTxRequest) XXX_Unmarshal(b []byte) error
- type ThetaVerifyMessage
- func (*ThetaVerifyMessage) Descriptor() ([]byte, []int)
- func (m *ThetaVerifyMessage) GetAddress() []byte
- func (m *ThetaVerifyMessage) GetMessage() []byte
- func (m *ThetaVerifyMessage) GetSignature() []byte
- func (*ThetaVerifyMessage) ProtoMessage()
- func (m *ThetaVerifyMessage) Reset()
- func (m *ThetaVerifyMessage) String() string
- func (m *ThetaVerifyMessage) XXX_DiscardUnknown()
- func (m *ThetaVerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThetaVerifyMessage) XXX_Merge(src proto.Message)
- func (m *ThetaVerifyMessage) XXX_Size() int
- func (m *ThetaVerifyMessage) XXX_Unmarshal(b []byte) error
- type TransactionType
- func (*TransactionType) Descriptor() ([]byte, []int)
- func (m *TransactionType) GetBinOutputs() []*TxOutputBinType
- func (m *TransactionType) GetExtraData() []byte
- func (m *TransactionType) GetExtraDataLen() uint32
- func (m *TransactionType) GetInputs() []*TxInputType
- func (m *TransactionType) GetInputsCnt() uint32
- func (m *TransactionType) GetLockTime() uint32
- func (m *TransactionType) GetOutputs() []*TxOutputType
- func (m *TransactionType) GetOutputsCnt() uint32
- func (m *TransactionType) GetVersion() uint32
- func (*TransactionType) ProtoMessage()
- func (m *TransactionType) Reset()
- func (m *TransactionType) String() string
- func (m *TransactionType) XXX_DiscardUnknown()
- func (m *TransactionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionType) XXX_Merge(src proto.Message)
- func (m *TransactionType) XXX_Size() int
- func (m *TransactionType) XXX_Unmarshal(b []byte) error
- type TrezorUI
- type TxAck
- func (*TxAck) Descriptor() ([]byte, []int)
- func (m *TxAck) GetTx() *TransactionType
- func (*TxAck) ProtoMessage()
- func (m *TxAck) Reset()
- func (m *TxAck) String() string
- func (m *TxAck) XXX_DiscardUnknown()
- func (m *TxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxAck) XXX_Merge(src proto.Message)
- func (m *TxAck) XXX_Size() int
- func (m *TxAck) XXX_Unmarshal(b []byte) error
- type TxInputType
- func (*TxInputType) Descriptor() ([]byte, []int)
- func (m *TxInputType) GetAddressN() []uint32
- func (m *TxInputType) GetAmount() uint64
- func (m *TxInputType) GetMultisig() *MultisigRedeemScriptType
- func (m *TxInputType) GetPrevHash() []byte
- func (m *TxInputType) GetPrevIndex() uint32
- func (m *TxInputType) GetScriptSig() []byte
- func (m *TxInputType) GetScriptType() InputScriptType
- func (m *TxInputType) GetSequence() uint32
- func (*TxInputType) ProtoMessage()
- func (m *TxInputType) Reset()
- func (m *TxInputType) String() string
- func (m *TxInputType) XXX_DiscardUnknown()
- func (m *TxInputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInputType) XXX_Merge(src proto.Message)
- func (m *TxInputType) XXX_Size() int
- func (m *TxInputType) XXX_Unmarshal(b []byte) error
- type TxOutputBinType
- func (*TxOutputBinType) Descriptor() ([]byte, []int)
- func (m *TxOutputBinType) GetAmount() uint64
- func (m *TxOutputBinType) GetScriptPubkey() []byte
- func (*TxOutputBinType) ProtoMessage()
- func (m *TxOutputBinType) Reset()
- func (m *TxOutputBinType) String() string
- func (m *TxOutputBinType) XXX_DiscardUnknown()
- func (m *TxOutputBinType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOutputBinType) XXX_Merge(src proto.Message)
- func (m *TxOutputBinType) XXX_Size() int
- func (m *TxOutputBinType) XXX_Unmarshal(b []byte) error
- type TxOutputType
- func (*TxOutputType) Descriptor() ([]byte, []int)
- func (m *TxOutputType) GetAddress() string
- func (m *TxOutputType) GetAddressN() []uint32
- func (m *TxOutputType) GetAmount() uint64
- func (m *TxOutputType) GetMultisig() *MultisigRedeemScriptType
- func (m *TxOutputType) GetOpReturnData() []byte
- func (m *TxOutputType) GetScriptType() OutputScriptType
- func (*TxOutputType) ProtoMessage()
- func (m *TxOutputType) Reset()
- func (m *TxOutputType) String() string
- func (m *TxOutputType) XXX_DiscardUnknown()
- func (m *TxOutputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOutputType) XXX_Merge(src proto.Message)
- func (m *TxOutputType) XXX_Size() int
- func (m *TxOutputType) XXX_Unmarshal(b []byte) error
- type TxRequest
- func (*TxRequest) Descriptor() ([]byte, []int)
- func (m *TxRequest) GetDetails() *TxRequestDetailsType
- func (m *TxRequest) GetRequestType() RequestType
- func (m *TxRequest) GetSerialized() *TxRequestSerializedType
- func (*TxRequest) ProtoMessage()
- func (m *TxRequest) Reset()
- func (m *TxRequest) String() string
- func (m *TxRequest) XXX_DiscardUnknown()
- func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRequest) XXX_Merge(src proto.Message)
- func (m *TxRequest) XXX_Size() int
- func (m *TxRequest) XXX_Unmarshal(b []byte) error
- type TxRequestDetailsType
- func (*TxRequestDetailsType) Descriptor() ([]byte, []int)
- func (m *TxRequestDetailsType) GetExtraDataLen() uint32
- func (m *TxRequestDetailsType) GetExtraDataOffset() uint32
- func (m *TxRequestDetailsType) GetRequestIndex() uint32
- func (m *TxRequestDetailsType) GetTxHash() []byte
- func (*TxRequestDetailsType) ProtoMessage()
- func (m *TxRequestDetailsType) Reset()
- func (m *TxRequestDetailsType) String() string
- func (m *TxRequestDetailsType) XXX_DiscardUnknown()
- func (m *TxRequestDetailsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRequestDetailsType) XXX_Merge(src proto.Message)
- func (m *TxRequestDetailsType) XXX_Size() int
- func (m *TxRequestDetailsType) XXX_Unmarshal(b []byte) error
- type TxRequestSerializedType
- func (*TxRequestSerializedType) Descriptor() ([]byte, []int)
- func (m *TxRequestSerializedType) GetSerializedTx() []byte
- func (m *TxRequestSerializedType) GetSignature() []byte
- func (m *TxRequestSerializedType) GetSignatureIndex() uint32
- func (*TxRequestSerializedType) ProtoMessage()
- func (m *TxRequestSerializedType) Reset()
- func (m *TxRequestSerializedType) String() string
- func (m *TxRequestSerializedType) XXX_DiscardUnknown()
- func (m *TxRequestSerializedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRequestSerializedType) XXX_Merge(src proto.Message)
- func (m *TxRequestSerializedType) XXX_Size() int
- func (m *TxRequestSerializedType) XXX_Unmarshal(b []byte) error
- type TxSize
- func (*TxSize) Descriptor() ([]byte, []int)
- func (m *TxSize) GetTxSize() uint32
- func (*TxSize) ProtoMessage()
- func (m *TxSize) Reset()
- func (m *TxSize) String() string
- func (m *TxSize) XXX_DiscardUnknown()
- func (m *TxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxSize) XXX_Merge(src proto.Message)
- func (m *TxSize) XXX_Size() int
- func (m *TxSize) XXX_Unmarshal(b []byte) error
- type VerifyMessage
- func (*VerifyMessage) Descriptor() ([]byte, []int)
- func (m *VerifyMessage) GetAddress() string
- func (m *VerifyMessage) GetCoinName() string
- func (m *VerifyMessage) GetMessage() []byte
- func (m *VerifyMessage) GetSignature() []byte
- func (*VerifyMessage) ProtoMessage()
- func (m *VerifyMessage) Reset()
- func (m *VerifyMessage) String() string
- func (m *VerifyMessage) XXX_DiscardUnknown()
- func (m *VerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerifyMessage) XXX_Merge(src proto.Message)
- func (m *VerifyMessage) XXX_Size() int
- func (m *VerifyMessage) XXX_Unmarshal(b []byte) error
- type WipeDevice
- func (*WipeDevice) Descriptor() ([]byte, []int)
- func (*WipeDevice) ProtoMessage()
- func (m *WipeDevice) Reset()
- func (m *WipeDevice) String() string
- func (m *WipeDevice) XXX_DiscardUnknown()
- func (m *WipeDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WipeDevice) XXX_Merge(src proto.Message)
- func (m *WipeDevice) XXX_Size() int
- func (m *WipeDevice) XXX_Unmarshal(b []byte) error
- type WordAck
- func (*WordAck) Descriptor() ([]byte, []int)
- func (m *WordAck) GetWord() string
- func (*WordAck) ProtoMessage()
- func (m *WordAck) Reset()
- func (m *WordAck) String() string
- func (m *WordAck) XXX_DiscardUnknown()
- func (m *WordAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WordAck) XXX_Merge(src proto.Message)
- func (m *WordAck) XXX_Size() int
- func (m *WordAck) XXX_Unmarshal(b []byte) error
- type WordRequest
- func (*WordRequest) Descriptor() ([]byte, []int)
- func (m *WordRequest) GetType() WordRequestType
- func (*WordRequest) ProtoMessage()
- func (m *WordRequest) Reset()
- func (m *WordRequest) String() string
- func (m *WordRequest) XXX_DiscardUnknown()
- func (m *WordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WordRequest) XXX_Merge(src proto.Message)
- func (m *WordRequest) XXX_Size() int
- func (m *WordRequest) XXX_Unmarshal(b []byte) error
- type WordRequestType
Constants ¶
const ( PinMatrixRequestType_Current = 1 PinMatrixRequestType_NewFirst = 2 PinMatrixRequestType_NewSecond = 3 )
const OUTDATED_FIRMWARE_ERROR = `` /* 135-byte string literal not displayed */
const PIN_MATRIX_DESCRIPTION = `Use the numeric keypad to describe number positions. The layout is:
7 8 9
4 5 6
1 2 3`
const TREZORD_HOST = "http://127.0.0.1:21325"
Variables ¶
var ButtonRequestType_name = map[int32]string{
0: "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",
}
var ButtonRequestType_value = map[string]int32{
"ButtonRequest_Other": 0,
"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,
}
var E_WireBootloader = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50007, Name: "trezor.wire_bootloader", Tag: "varint,50007,opt,name=wire_bootloader", Filename: "types.proto", }
var E_WireDebugIn = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50004, Name: "trezor.wire_debug_in", Tag: "varint,50004,opt,name=wire_debug_in", Filename: "types.proto", }
var E_WireDebugOut = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50005, Name: "trezor.wire_debug_out", Tag: "varint,50005,opt,name=wire_debug_out", Filename: "types.proto", }
var E_WireIn = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50002, Name: "trezor.wire_in", Tag: "varint,50002,opt,name=wire_in", Filename: "types.proto", }
var E_WireOut = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50003, Name: "trezor.wire_out", Tag: "varint,50003,opt,name=wire_out", Filename: "types.proto", }
var E_WireTiny = &proto.ExtensionDesc{ ExtendedType: (*descriptor.EnumValueOptions)(nil), ExtensionType: (*bool)(nil), Field: 50006, Name: "trezor.wire_tiny", Tag: "varint,50006,opt,name=wire_tiny", Filename: "types.proto", }
var ErrKeyNotFound = errors.New("KeyNotFound")
var FailureType_name = map[int32]string{
0: "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",
99: "Failure_FirmwareError",
}
var FailureType_value = map[string]int32{
"Failure_UnexpectedMessage": 0,
"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_FirmwareError": 99,
}
var InputScriptType_name = map[int32]string{
0: "SPENDADDRESS",
1: "SPENDMULTISIG",
2: "EXTERNAL",
3: "SPENDWITNESS",
4: "SPENDP2SHWITNESS",
}
var InputScriptType_value = map[string]int32{
"SPENDADDRESS": 0,
"SPENDMULTISIG": 1,
"EXTERNAL": 2,
"SPENDWITNESS": 3,
"SPENDP2SHWITNESS": 4,
}
var MINIMUM_FIRMWARE_VERSION = map[string][3]uint32{ "1": [3]uint32{1, 8, 0}, "T": [3]uint32{2, 1, 0}, }
var MessageType_name = map[int32]string{
0: "MessageType_Initialize",
1: "MessageType_Ping",
2: "MessageType_Success",
3: "MessageType_Failure",
4: "MessageType_ChangePin",
5: "MessageType_WipeDevice",
6: "MessageType_FirmwareErase",
7: "MessageType_FirmwareUpload",
8: "MessageType_FirmwareRequest",
9: "MessageType_GetEntropy",
10: "MessageType_Entropy",
11: "MessageType_GetPublicKey",
12: "MessageType_PublicKey",
13: "MessageType_LoadDevice",
14: "MessageType_ResetDevice",
15: "MessageType_SignTx",
16: "MessageType_SimpleSignTx",
17: "MessageType_Features",
18: "MessageType_PinMatrixRequest",
19: "MessageType_PinMatrixAck",
20: "MessageType_Cancel",
21: "MessageType_TxRequest",
22: "MessageType_TxAck",
23: "MessageType_CipherKeyValue",
24: "MessageType_ClearSession",
25: "MessageType_ApplySettings",
26: "MessageType_ButtonRequest",
27: "MessageType_ButtonAck",
28: "MessageType_ApplyFlags",
29: "MessageType_GetAddress",
30: "MessageType_Address",
32: "MessageType_SelfTest",
34: "MessageType_BackupDevice",
35: "MessageType_EntropyRequest",
36: "MessageType_EntropyAck",
38: "MessageType_SignMessage",
39: "MessageType_VerifyMessage",
40: "MessageType_MessageSignature",
41: "MessageType_PassphraseRequest",
42: "MessageType_PassphraseAck",
43: "MessageType_EstimateTxSize",
44: "MessageType_TxSize",
45: "MessageType_RecoveryDevice",
46: "MessageType_WordRequest",
47: "MessageType_WordAck",
48: "MessageType_CipheredKeyValue",
49: "MessageType_EncryptMessage",
50: "MessageType_EncryptedMessage",
51: "MessageType_DecryptMessage",
52: "MessageType_DecryptedMessage",
53: "MessageType_SignIdentity",
54: "MessageType_SignedIdentity",
55: "MessageType_GetFeatures",
56: "MessageType_ThetaGetAddress",
57: "MessageType_ThetaAddress",
58: "MessageType_ThetaSignTx",
59: "MessageType_ThetaTxRequest",
60: "MessageType_ThetaTxAck",
61: "MessageType_GetECDHSessionKey",
62: "MessageType_ECDHSessionKey",
63: "MessageType_SetU2FCounter",
64: "MessageType_ThetaSignMessage",
65: "MessageType_ThetaVerifyMessage",
66: "MessageType_ThetaMessageSignature",
100: "MessageType_DebugLinkDecision",
101: "MessageType_DebugLinkGetState",
102: "MessageType_DebugLinkState",
103: "MessageType_DebugLinkStop",
104: "MessageType_DebugLinkLog",
110: "MessageType_DebugLinkMemoryRead",
111: "MessageType_DebugLinkMemory",
112: "MessageType_DebugLinkMemoryWrite",
113: "MessageType_DebugLinkFlashErase",
}
var MessageType_value = map[string]int32{
"MessageType_Initialize": 0,
"MessageType_Ping": 1,
"MessageType_Success": 2,
"MessageType_Failure": 3,
"MessageType_ChangePin": 4,
"MessageType_WipeDevice": 5,
"MessageType_FirmwareErase": 6,
"MessageType_FirmwareUpload": 7,
"MessageType_FirmwareRequest": 8,
"MessageType_GetEntropy": 9,
"MessageType_Entropy": 10,
"MessageType_GetPublicKey": 11,
"MessageType_PublicKey": 12,
"MessageType_LoadDevice": 13,
"MessageType_ResetDevice": 14,
"MessageType_SignTx": 15,
"MessageType_SimpleSignTx": 16,
"MessageType_Features": 17,
"MessageType_PinMatrixRequest": 18,
"MessageType_PinMatrixAck": 19,
"MessageType_Cancel": 20,
"MessageType_TxRequest": 21,
"MessageType_TxAck": 22,
"MessageType_CipherKeyValue": 23,
"MessageType_ClearSession": 24,
"MessageType_ApplySettings": 25,
"MessageType_ButtonRequest": 26,
"MessageType_ButtonAck": 27,
"MessageType_ApplyFlags": 28,
"MessageType_GetAddress": 29,
"MessageType_Address": 30,
"MessageType_SelfTest": 32,
"MessageType_BackupDevice": 34,
"MessageType_EntropyRequest": 35,
"MessageType_EntropyAck": 36,
"MessageType_SignMessage": 38,
"MessageType_VerifyMessage": 39,
"MessageType_MessageSignature": 40,
"MessageType_PassphraseRequest": 41,
"MessageType_PassphraseAck": 42,
"MessageType_EstimateTxSize": 43,
"MessageType_TxSize": 44,
"MessageType_RecoveryDevice": 45,
"MessageType_WordRequest": 46,
"MessageType_WordAck": 47,
"MessageType_CipheredKeyValue": 48,
"MessageType_EncryptMessage": 49,
"MessageType_EncryptedMessage": 50,
"MessageType_DecryptMessage": 51,
"MessageType_DecryptedMessage": 52,
"MessageType_SignIdentity": 53,
"MessageType_SignedIdentity": 54,
"MessageType_GetFeatures": 55,
"MessageType_ThetaGetAddress": 56,
"MessageType_ThetaAddress": 57,
"MessageType_ThetaSignTx": 58,
"MessageType_ThetaTxRequest": 59,
"MessageType_ThetaTxAck": 60,
"MessageType_GetECDHSessionKey": 61,
"MessageType_ECDHSessionKey": 62,
"MessageType_SetU2FCounter": 63,
"MessageType_ThetaSignMessage": 64,
"MessageType_ThetaVerifyMessage": 65,
"MessageType_ThetaMessageSignature": 66,
"MessageType_DebugLinkDecision": 100,
"MessageType_DebugLinkGetState": 101,
"MessageType_DebugLinkState": 102,
"MessageType_DebugLinkStop": 103,
"MessageType_DebugLinkLog": 104,
"MessageType_DebugLinkMemoryRead": 110,
"MessageType_DebugLinkMemory": 111,
"MessageType_DebugLinkMemoryWrite": 112,
"MessageType_DebugLinkFlashErase": 113,
}
var OutputScriptType_name = map[int32]string{
0: "PAYTOADDRESS",
1: "PAYTOSCRIPTHASH",
2: "PAYTOMULTISIG",
3: "PAYTOOPRETURN",
4: "PAYTOWITNESS",
5: "PAYTOP2SHWITNESS",
}
var OutputScriptType_value = map[string]int32{
"PAYTOADDRESS": 0,
"PAYTOSCRIPTHASH": 1,
"PAYTOMULTISIG": 2,
"PAYTOOPRETURN": 3,
"PAYTOWITNESS": 4,
"PAYTOP2SHWITNESS": 5,
}
var PinMatrixRequestType_name = map[int32]string{
0: "PinMatrixRequestType_Current",
2: "PinMatrixRequestType_NewFirst",
3: "PinMatrixRequestType_NewSecond",
}
var PinMatrixRequestType_value = map[string]int32{
"PinMatrixRequestType_Current": 0,
"PinMatrixRequestType_NewFirst": 2,
"PinMatrixRequestType_NewSecond": 3,
}
var RecoveryDeviceType_name = map[int32]string{
0: "RecoveryDeviceType_ScrambledWords",
1: "RecoveryDeviceType_Matrix",
}
var RecoveryDeviceType_value = map[string]int32{
"RecoveryDeviceType_ScrambledWords": 0,
"RecoveryDeviceType_Matrix": 1,
}
var RequestType_name = map[int32]string{
0: "TXINPUT",
1: "TXOUTPUT",
2: "TXMETA",
3: "TXFINISHED",
4: "TXEXTRADATA",
}
var RequestType_value = map[string]int32{
"TXINPUT": 0,
"TXOUTPUT": 1,
"TXMETA": 2,
"TXFINISHED": 3,
"TXEXTRADATA": 4,
}
var TREZORD_VERSION_MODERN = [3]uint32{2, 0, 25}
var WordRequestType_name = map[int32]string{
0: "WordRequestType_Plain",
1: "WordRequestType_Matrix9",
2: "WordRequestType_Matrix6",
}
var WordRequestType_value = map[string]int32{
"WordRequestType_Plain": 0,
"WordRequestType_Matrix9": 1,
"WordRequestType_Matrix6": 2,
}
Functions ¶
func ConvertBytes ¶
func DumpMessage ¶
func GetEmptyObj ¶
func GetEmptyObj(msgType MessageType) interface{}
func LoadMessage ¶
func LoadMessage(reader io.Reader, msgType MessageType, limit *int32) (interface{}, error) {
func RevertBytes ¶
Types ¶
type Address ¶
type Address struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Contains address derived from device private seed @prev GetAddress
func (*Address) Descriptor ¶
func (*Address) GetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type ApplyFlags ¶
type ApplyFlags struct { Flags uint32 `protobuf:"varint,1,opt,name=flags,proto3" json:"flags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: set flags of the device @next Success @next Failure
func (*ApplyFlags) Descriptor ¶
func (*ApplyFlags) Descriptor() ([]byte, []int)
func (*ApplyFlags) GetFlags ¶
func (m *ApplyFlags) GetFlags() uint32
func (*ApplyFlags) ProtoMessage ¶
func (*ApplyFlags) ProtoMessage()
func (*ApplyFlags) Reset ¶
func (m *ApplyFlags) Reset()
func (*ApplyFlags) String ¶
func (m *ApplyFlags) String() string
func (*ApplyFlags) XXX_DiscardUnknown ¶
func (m *ApplyFlags) XXX_DiscardUnknown()
func (*ApplyFlags) XXX_Marshal ¶
func (m *ApplyFlags) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplyFlags) XXX_Merge ¶
func (m *ApplyFlags) XXX_Merge(src proto.Message)
func (*ApplyFlags) XXX_Size ¶
func (m *ApplyFlags) XXX_Size() int
func (*ApplyFlags) XXX_Unmarshal ¶
func (m *ApplyFlags) XXX_Unmarshal(b []byte) error
type ApplySettings ¶
type ApplySettings struct { Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` UsePassphrase bool `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase,proto3" json:"use_passphrase,omitempty"` Homescreen []byte `protobuf:"bytes,4,opt,name=homescreen,proto3" json:"homescreen,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: change language and/or label of the device @next Success @next Failure @next ButtonRequest @next PinMatrixRequest
func (*ApplySettings) Descriptor ¶
func (*ApplySettings) Descriptor() ([]byte, []int)
func (*ApplySettings) GetHomescreen ¶
func (m *ApplySettings) GetHomescreen() []byte
func (*ApplySettings) GetLabel ¶
func (m *ApplySettings) GetLabel() string
func (*ApplySettings) GetLanguage ¶
func (m *ApplySettings) GetLanguage() string
func (*ApplySettings) GetUsePassphrase ¶
func (m *ApplySettings) GetUsePassphrase() bool
func (*ApplySettings) ProtoMessage ¶
func (*ApplySettings) ProtoMessage()
func (*ApplySettings) Reset ¶
func (m *ApplySettings) Reset()
func (*ApplySettings) String ¶
func (m *ApplySettings) String() string
func (*ApplySettings) XXX_DiscardUnknown ¶
func (m *ApplySettings) XXX_DiscardUnknown()
func (*ApplySettings) XXX_Marshal ¶
func (m *ApplySettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplySettings) XXX_Merge ¶
func (m *ApplySettings) XXX_Merge(src proto.Message)
func (*ApplySettings) XXX_Size ¶
func (m *ApplySettings) XXX_Size() int
func (*ApplySettings) XXX_Unmarshal ¶
func (m *ApplySettings) XXX_Unmarshal(b []byte) error
type BackupDevice ¶
type BackupDevice struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Perform backup of the device seed if not backed up using ResetDevice @next ButtonRequest
func (*BackupDevice) Descriptor ¶
func (*BackupDevice) Descriptor() ([]byte, []int)
func (*BackupDevice) ProtoMessage ¶
func (*BackupDevice) ProtoMessage()
func (*BackupDevice) Reset ¶
func (m *BackupDevice) Reset()
func (*BackupDevice) String ¶
func (m *BackupDevice) String() string
func (*BackupDevice) XXX_DiscardUnknown ¶
func (m *BackupDevice) XXX_DiscardUnknown()
func (*BackupDevice) XXX_Marshal ¶
func (m *BackupDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BackupDevice) XXX_Merge ¶
func (m *BackupDevice) XXX_Merge(src proto.Message)
func (*BackupDevice) XXX_Size ¶
func (m *BackupDevice) XXX_Size() int
func (*BackupDevice) XXX_Unmarshal ¶
func (m *BackupDevice) XXX_Unmarshal(b []byte) error
type BridgeTransport ¶
type BridgeTransport struct { Device Device Session string Features *Features Legacy bool Debug bool }
func (*BridgeTransport) BeginSession ¶
func (b *BridgeTransport) BeginSession() error
func (*BridgeTransport) CallRaw ¶
func (b *BridgeTransport) CallRaw(data []byte) (interface{}, MessageType, error)
func (*BridgeTransport) CheckFirmwareVersion ¶
func (b *BridgeTransport) CheckFirmwareVersion(version [3]uint32, warnOnly bool) error
func (*BridgeTransport) EndSession ¶
func (b *BridgeTransport) EndSession()
func (*BridgeTransport) ReadRaw ¶
func (b *BridgeTransport) ReadRaw() (interface{}, MessageType, error)
func (*BridgeTransport) WriteRaw ¶
func (b *BridgeTransport) WriteRaw(data []byte) error
type ButtonAck ¶
type ButtonAck struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Computer agrees to wait for HW button press @prev ButtonRequest
func (*ButtonAck) Descriptor ¶
func (*ButtonAck) ProtoMessage ¶
func (*ButtonAck) ProtoMessage()
func (*ButtonAck) XXX_DiscardUnknown ¶
func (m *ButtonAck) XXX_DiscardUnknown()
func (*ButtonAck) XXX_Marshal ¶
func (*ButtonAck) XXX_Unmarshal ¶
type ButtonRequest ¶
type ButtonRequest struct { Code ButtonRequestType `protobuf:"varint,1,opt,name=code,proto3,enum=trezor.ButtonRequestType" json:"code,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device is waiting for HW button press. @next ButtonAck @next Cancel
func (*ButtonRequest) Descriptor ¶
func (*ButtonRequest) Descriptor() ([]byte, []int)
func (*ButtonRequest) GetCode ¶
func (m *ButtonRequest) GetCode() ButtonRequestType
func (*ButtonRequest) GetData ¶
func (m *ButtonRequest) GetData() string
func (*ButtonRequest) ProtoMessage ¶
func (*ButtonRequest) ProtoMessage()
func (*ButtonRequest) Reset ¶
func (m *ButtonRequest) Reset()
func (*ButtonRequest) String ¶
func (m *ButtonRequest) String() string
func (*ButtonRequest) XXX_DiscardUnknown ¶
func (m *ButtonRequest) XXX_DiscardUnknown()
func (*ButtonRequest) XXX_Marshal ¶
func (m *ButtonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ButtonRequest) XXX_Merge ¶
func (m *ButtonRequest) XXX_Merge(src proto.Message)
func (*ButtonRequest) XXX_Size ¶
func (m *ButtonRequest) XXX_Size() int
func (*ButtonRequest) XXX_Unmarshal ¶
func (m *ButtonRequest) XXX_Unmarshal(b []byte) error
type ButtonRequestType ¶
type ButtonRequestType int32
* Type of button request @used_in ButtonRequest
const ( ButtonRequestType_ButtonRequest_Other ButtonRequestType = 0 ButtonRequestType_ButtonRequest_FeeOverThreshold ButtonRequestType = 2 ButtonRequestType_ButtonRequest_ConfirmOutput ButtonRequestType = 3 ButtonRequestType_ButtonRequest_ResetDevice ButtonRequestType = 4 ButtonRequestType_ButtonRequest_ConfirmWord ButtonRequestType = 5 ButtonRequestType_ButtonRequest_WipeDevice ButtonRequestType = 6 ButtonRequestType_ButtonRequest_ProtectCall ButtonRequestType = 7 ButtonRequestType_ButtonRequest_SignTx ButtonRequestType = 8 ButtonRequestType_ButtonRequest_FirmwareCheck ButtonRequestType = 9 ButtonRequestType_ButtonRequest_Address ButtonRequestType = 10 ButtonRequestType_ButtonRequest_PublicKey ButtonRequestType = 11 )
func (ButtonRequestType) EnumDescriptor ¶
func (ButtonRequestType) EnumDescriptor() ([]byte, []int)
func (ButtonRequestType) String ¶
func (x ButtonRequestType) String() string
type Cancel ¶
type Cancel struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Abort last operation that user interaction @prev ButtonRequest @prev PinMatrixRequest @prev PassphraseRequest
func (*Cancel) Descriptor ¶
func (*Cancel) ProtoMessage ¶
func (*Cancel) ProtoMessage()
func (*Cancel) XXX_DiscardUnknown ¶
func (m *Cancel) XXX_DiscardUnknown()
func (*Cancel) XXX_Marshal ¶
func (*Cancel) XXX_Unmarshal ¶
type ChangePin ¶
type ChangePin struct { Remove bool `protobuf:"varint,1,opt,name=remove,proto3" json:"remove,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Starts workflow for setting/changing/removing the PIN @next ButtonRequest @next PinMatrixRequest
func (*ChangePin) Descriptor ¶
func (*ChangePin) ProtoMessage ¶
func (*ChangePin) ProtoMessage()
func (*ChangePin) XXX_DiscardUnknown ¶
func (m *ChangePin) XXX_DiscardUnknown()
func (*ChangePin) XXX_Marshal ¶
func (*ChangePin) XXX_Unmarshal ¶
type CipherKeyValue ¶
type CipherKeyValue struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Encrypt bool `protobuf:"varint,4,opt,name=encrypt,proto3" json:"encrypt,omitempty"` AskOnEncrypt bool `protobuf:"varint,5,opt,name=ask_on_encrypt,json=askOnEncrypt,proto3" json:"ask_on_encrypt,omitempty"` AskOnDecrypt bool `protobuf:"varint,6,opt,name=ask_on_decrypt,json=askOnDecrypt,proto3" json:"ask_on_decrypt,omitempty"` Iv []byte `protobuf:"bytes,7,opt,name=iv,proto3" json:"iv,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to encrypt or decrypt value of given key @next CipheredKeyValue @next Failure
func (*CipherKeyValue) Descriptor ¶
func (*CipherKeyValue) Descriptor() ([]byte, []int)
func (*CipherKeyValue) GetAddressN ¶
func (m *CipherKeyValue) GetAddressN() []uint32
func (*CipherKeyValue) GetAskOnDecrypt ¶
func (m *CipherKeyValue) GetAskOnDecrypt() bool
func (*CipherKeyValue) GetAskOnEncrypt ¶
func (m *CipherKeyValue) GetAskOnEncrypt() bool
func (*CipherKeyValue) GetEncrypt ¶
func (m *CipherKeyValue) GetEncrypt() bool
func (*CipherKeyValue) GetIv ¶
func (m *CipherKeyValue) GetIv() []byte
func (*CipherKeyValue) GetKey ¶
func (m *CipherKeyValue) GetKey() string
func (*CipherKeyValue) GetValue ¶
func (m *CipherKeyValue) GetValue() []byte
func (*CipherKeyValue) ProtoMessage ¶
func (*CipherKeyValue) ProtoMessage()
func (*CipherKeyValue) Reset ¶
func (m *CipherKeyValue) Reset()
func (*CipherKeyValue) String ¶
func (m *CipherKeyValue) String() string
func (*CipherKeyValue) XXX_DiscardUnknown ¶
func (m *CipherKeyValue) XXX_DiscardUnknown()
func (*CipherKeyValue) XXX_Marshal ¶
func (m *CipherKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CipherKeyValue) XXX_Merge ¶
func (m *CipherKeyValue) XXX_Merge(src proto.Message)
func (*CipherKeyValue) XXX_Size ¶
func (m *CipherKeyValue) XXX_Size() int
func (*CipherKeyValue) XXX_Unmarshal ¶
func (m *CipherKeyValue) XXX_Unmarshal(b []byte) error
type CipheredKeyValue ¶
type CipheredKeyValue struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Return ciphered/deciphered value @prev CipherKeyValue
func (*CipheredKeyValue) Descriptor ¶
func (*CipheredKeyValue) Descriptor() ([]byte, []int)
func (*CipheredKeyValue) GetValue ¶
func (m *CipheredKeyValue) GetValue() []byte
func (*CipheredKeyValue) ProtoMessage ¶
func (*CipheredKeyValue) ProtoMessage()
func (*CipheredKeyValue) Reset ¶
func (m *CipheredKeyValue) Reset()
func (*CipheredKeyValue) String ¶
func (m *CipheredKeyValue) String() string
func (*CipheredKeyValue) XXX_DiscardUnknown ¶
func (m *CipheredKeyValue) XXX_DiscardUnknown()
func (*CipheredKeyValue) XXX_Marshal ¶
func (m *CipheredKeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CipheredKeyValue) XXX_Merge ¶
func (m *CipheredKeyValue) XXX_Merge(src proto.Message)
func (*CipheredKeyValue) XXX_Size ¶
func (m *CipheredKeyValue) XXX_Size() int
func (*CipheredKeyValue) XXX_Unmarshal ¶
func (m *CipheredKeyValue) XXX_Unmarshal(b []byte) error
type ClearSession ¶
type ClearSession struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: clear session (removes cached PIN, passphrase, etc). @next Success
func (*ClearSession) Descriptor ¶
func (*ClearSession) Descriptor() ([]byte, []int)
func (*ClearSession) ProtoMessage ¶
func (*ClearSession) ProtoMessage()
func (*ClearSession) Reset ¶
func (m *ClearSession) Reset()
func (*ClearSession) String ¶
func (m *ClearSession) String() string
func (*ClearSession) XXX_DiscardUnknown ¶
func (m *ClearSession) XXX_DiscardUnknown()
func (*ClearSession) XXX_Marshal ¶
func (m *ClearSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClearSession) XXX_Merge ¶
func (m *ClearSession) XXX_Merge(src proto.Message)
func (*ClearSession) XXX_Size ¶
func (m *ClearSession) XXX_Size() int
func (*ClearSession) XXX_Unmarshal ¶
func (m *ClearSession) XXX_Unmarshal(b []byte) error
type CoinType ¶
type CoinType struct { CoinName string `protobuf:"bytes,1,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` CoinShortcut string `protobuf:"bytes,2,opt,name=coin_shortcut,json=coinShortcut,proto3" json:"coin_shortcut,omitempty"` AddressType uint32 `protobuf:"varint,3,opt,name=address_type,json=addressType,proto3" json:"address_type,omitempty"` MaxfeeKb uint64 `protobuf:"varint,4,opt,name=maxfee_kb,json=maxfeeKb,proto3" json:"maxfee_kb,omitempty"` AddressTypeP2Sh uint32 `protobuf:"varint,5,opt,name=address_type_p2sh,json=addressTypeP2sh,proto3" json:"address_type_p2sh,omitempty"` SignedMessageHeader string `protobuf:"bytes,8,opt,name=signed_message_header,json=signedMessageHeader,proto3" json:"signed_message_header,omitempty"` XpubMagic uint32 `protobuf:"varint,9,opt,name=xpub_magic,json=xpubMagic,proto3" json:"xpub_magic,omitempty"` XprvMagic uint32 `protobuf:"varint,10,opt,name=xprv_magic,json=xprvMagic,proto3" json:"xprv_magic,omitempty"` Segwit bool `protobuf:"varint,11,opt,name=segwit,proto3" json:"segwit,omitempty"` Forkid uint32 `protobuf:"varint,12,opt,name=forkid,proto3" json:"forkid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing Coin @used_in Features
func (*CoinType) Descriptor ¶
func (*CoinType) GetAddressType ¶
func (*CoinType) GetAddressTypeP2Sh ¶
func (*CoinType) GetCoinName ¶
func (*CoinType) GetCoinShortcut ¶
func (*CoinType) GetMaxfeeKb ¶
func (*CoinType) GetSignedMessageHeader ¶
func (*CoinType) GetXprvMagic ¶
func (*CoinType) GetXpubMagic ¶
func (*CoinType) ProtoMessage ¶
func (*CoinType) ProtoMessage()
func (*CoinType) XXX_DiscardUnknown ¶
func (m *CoinType) XXX_DiscardUnknown()
func (*CoinType) XXX_Marshal ¶
func (*CoinType) XXX_Unmarshal ¶
type DebugLinkDecision ¶
type DebugLinkDecision struct { YesNo bool `protobuf:"varint,1,opt,name=yes_no,json=yesNo,proto3" json:"yes_no,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: "Press" the button on the device @next Success
func (*DebugLinkDecision) Descriptor ¶
func (*DebugLinkDecision) Descriptor() ([]byte, []int)
func (*DebugLinkDecision) GetYesNo ¶
func (m *DebugLinkDecision) GetYesNo() bool
func (*DebugLinkDecision) ProtoMessage ¶
func (*DebugLinkDecision) ProtoMessage()
func (*DebugLinkDecision) Reset ¶
func (m *DebugLinkDecision) Reset()
func (*DebugLinkDecision) String ¶
func (m *DebugLinkDecision) String() string
func (*DebugLinkDecision) XXX_DiscardUnknown ¶
func (m *DebugLinkDecision) XXX_DiscardUnknown()
func (*DebugLinkDecision) XXX_Marshal ¶
func (m *DebugLinkDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkDecision) XXX_Merge ¶
func (m *DebugLinkDecision) XXX_Merge(src proto.Message)
func (*DebugLinkDecision) XXX_Size ¶
func (m *DebugLinkDecision) XXX_Size() int
func (*DebugLinkDecision) XXX_Unmarshal ¶
func (m *DebugLinkDecision) XXX_Unmarshal(b []byte) error
type DebugLinkFlashErase ¶
type DebugLinkFlashErase struct { Sector uint32 `protobuf:"varint,1,opt,name=sector,proto3" json:"sector,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Erase block of flash on device WARNING: Writing to the wrong location can irreparably break the device.
func (*DebugLinkFlashErase) Descriptor ¶
func (*DebugLinkFlashErase) Descriptor() ([]byte, []int)
func (*DebugLinkFlashErase) GetSector ¶
func (m *DebugLinkFlashErase) GetSector() uint32
func (*DebugLinkFlashErase) ProtoMessage ¶
func (*DebugLinkFlashErase) ProtoMessage()
func (*DebugLinkFlashErase) Reset ¶
func (m *DebugLinkFlashErase) Reset()
func (*DebugLinkFlashErase) String ¶
func (m *DebugLinkFlashErase) String() string
func (*DebugLinkFlashErase) XXX_DiscardUnknown ¶
func (m *DebugLinkFlashErase) XXX_DiscardUnknown()
func (*DebugLinkFlashErase) XXX_Marshal ¶
func (m *DebugLinkFlashErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkFlashErase) XXX_Merge ¶
func (m *DebugLinkFlashErase) XXX_Merge(src proto.Message)
func (*DebugLinkFlashErase) XXX_Size ¶
func (m *DebugLinkFlashErase) XXX_Size() int
func (*DebugLinkFlashErase) XXX_Unmarshal ¶
func (m *DebugLinkFlashErase) XXX_Unmarshal(b []byte) error
type DebugLinkGetState ¶
type DebugLinkGetState struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Computer asks for device state @next DebugLinkState
func (*DebugLinkGetState) Descriptor ¶
func (*DebugLinkGetState) Descriptor() ([]byte, []int)
func (*DebugLinkGetState) ProtoMessage ¶
func (*DebugLinkGetState) ProtoMessage()
func (*DebugLinkGetState) Reset ¶
func (m *DebugLinkGetState) Reset()
func (*DebugLinkGetState) String ¶
func (m *DebugLinkGetState) String() string
func (*DebugLinkGetState) XXX_DiscardUnknown ¶
func (m *DebugLinkGetState) XXX_DiscardUnknown()
func (*DebugLinkGetState) XXX_Marshal ¶
func (m *DebugLinkGetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkGetState) XXX_Merge ¶
func (m *DebugLinkGetState) XXX_Merge(src proto.Message)
func (*DebugLinkGetState) XXX_Size ¶
func (m *DebugLinkGetState) XXX_Size() int
func (*DebugLinkGetState) XXX_Unmarshal ¶
func (m *DebugLinkGetState) XXX_Unmarshal(b []byte) error
type DebugLinkLog ¶
type DebugLinkLog struct { Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"` Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device wants host to log event
func (*DebugLinkLog) Descriptor ¶
func (*DebugLinkLog) Descriptor() ([]byte, []int)
func (*DebugLinkLog) GetBucket ¶
func (m *DebugLinkLog) GetBucket() string
func (*DebugLinkLog) GetLevel ¶
func (m *DebugLinkLog) GetLevel() uint32
func (*DebugLinkLog) GetText ¶
func (m *DebugLinkLog) GetText() string
func (*DebugLinkLog) ProtoMessage ¶
func (*DebugLinkLog) ProtoMessage()
func (*DebugLinkLog) Reset ¶
func (m *DebugLinkLog) Reset()
func (*DebugLinkLog) String ¶
func (m *DebugLinkLog) String() string
func (*DebugLinkLog) XXX_DiscardUnknown ¶
func (m *DebugLinkLog) XXX_DiscardUnknown()
func (*DebugLinkLog) XXX_Marshal ¶
func (m *DebugLinkLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkLog) XXX_Merge ¶
func (m *DebugLinkLog) XXX_Merge(src proto.Message)
func (*DebugLinkLog) XXX_Size ¶
func (m *DebugLinkLog) XXX_Size() int
func (*DebugLinkLog) XXX_Unmarshal ¶
func (m *DebugLinkLog) XXX_Unmarshal(b []byte) error
type DebugLinkMemory ¶
type DebugLinkMemory struct { Memory []byte `protobuf:"bytes,1,opt,name=memory,proto3" json:"memory,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device sends memory back @prev DebugLinkMemoryRead
func (*DebugLinkMemory) Descriptor ¶
func (*DebugLinkMemory) Descriptor() ([]byte, []int)
func (*DebugLinkMemory) GetMemory ¶
func (m *DebugLinkMemory) GetMemory() []byte
func (*DebugLinkMemory) ProtoMessage ¶
func (*DebugLinkMemory) ProtoMessage()
func (*DebugLinkMemory) Reset ¶
func (m *DebugLinkMemory) Reset()
func (*DebugLinkMemory) String ¶
func (m *DebugLinkMemory) String() string
func (*DebugLinkMemory) XXX_DiscardUnknown ¶
func (m *DebugLinkMemory) XXX_DiscardUnknown()
func (*DebugLinkMemory) XXX_Marshal ¶
func (m *DebugLinkMemory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkMemory) XXX_Merge ¶
func (m *DebugLinkMemory) XXX_Merge(src proto.Message)
func (*DebugLinkMemory) XXX_Size ¶
func (m *DebugLinkMemory) XXX_Size() int
func (*DebugLinkMemory) XXX_Unmarshal ¶
func (m *DebugLinkMemory) XXX_Unmarshal(b []byte) error
type DebugLinkMemoryRead ¶
type DebugLinkMemoryRead struct { Address uint32 `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Read memory from device @next DebugLinkMemory
func (*DebugLinkMemoryRead) Descriptor ¶
func (*DebugLinkMemoryRead) Descriptor() ([]byte, []int)
func (*DebugLinkMemoryRead) GetAddress ¶
func (m *DebugLinkMemoryRead) GetAddress() uint32
func (*DebugLinkMemoryRead) GetLength ¶
func (m *DebugLinkMemoryRead) GetLength() uint32
func (*DebugLinkMemoryRead) ProtoMessage ¶
func (*DebugLinkMemoryRead) ProtoMessage()
func (*DebugLinkMemoryRead) Reset ¶
func (m *DebugLinkMemoryRead) Reset()
func (*DebugLinkMemoryRead) String ¶
func (m *DebugLinkMemoryRead) String() string
func (*DebugLinkMemoryRead) XXX_DiscardUnknown ¶
func (m *DebugLinkMemoryRead) XXX_DiscardUnknown()
func (*DebugLinkMemoryRead) XXX_Marshal ¶
func (m *DebugLinkMemoryRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkMemoryRead) XXX_Merge ¶
func (m *DebugLinkMemoryRead) XXX_Merge(src proto.Message)
func (*DebugLinkMemoryRead) XXX_Size ¶
func (m *DebugLinkMemoryRead) XXX_Size() int
func (*DebugLinkMemoryRead) XXX_Unmarshal ¶
func (m *DebugLinkMemoryRead) XXX_Unmarshal(b []byte) error
type DebugLinkMemoryWrite ¶
type DebugLinkMemoryWrite struct { Address uint32 `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"` Memory []byte `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` Flash bool `protobuf:"varint,3,opt,name=flash,proto3" json:"flash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Write memory to device. WARNING: Writing to the wrong location can irreparably break the device.
func (*DebugLinkMemoryWrite) Descriptor ¶
func (*DebugLinkMemoryWrite) Descriptor() ([]byte, []int)
func (*DebugLinkMemoryWrite) GetAddress ¶
func (m *DebugLinkMemoryWrite) GetAddress() uint32
func (*DebugLinkMemoryWrite) GetFlash ¶
func (m *DebugLinkMemoryWrite) GetFlash() bool
func (*DebugLinkMemoryWrite) GetMemory ¶
func (m *DebugLinkMemoryWrite) GetMemory() []byte
func (*DebugLinkMemoryWrite) ProtoMessage ¶
func (*DebugLinkMemoryWrite) ProtoMessage()
func (*DebugLinkMemoryWrite) Reset ¶
func (m *DebugLinkMemoryWrite) Reset()
func (*DebugLinkMemoryWrite) String ¶
func (m *DebugLinkMemoryWrite) String() string
func (*DebugLinkMemoryWrite) XXX_DiscardUnknown ¶
func (m *DebugLinkMemoryWrite) XXX_DiscardUnknown()
func (*DebugLinkMemoryWrite) XXX_Marshal ¶
func (m *DebugLinkMemoryWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkMemoryWrite) XXX_Merge ¶
func (m *DebugLinkMemoryWrite) XXX_Merge(src proto.Message)
func (*DebugLinkMemoryWrite) XXX_Size ¶
func (m *DebugLinkMemoryWrite) XXX_Size() int
func (*DebugLinkMemoryWrite) XXX_Unmarshal ¶
func (m *DebugLinkMemoryWrite) XXX_Unmarshal(b []byte) error
type DebugLinkState ¶
type DebugLinkState struct { Layout []byte `protobuf:"bytes,1,opt,name=layout,proto3" json:"layout,omitempty"` Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` Matrix string `protobuf:"bytes,3,opt,name=matrix,proto3" json:"matrix,omitempty"` Mnemonic string `protobuf:"bytes,4,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Node *HDNodeType `protobuf:"bytes,5,opt,name=node,proto3" json:"node,omitempty"` PassphraseProtection bool `protobuf:"varint,6,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` ResetWord string `protobuf:"bytes,7,opt,name=reset_word,json=resetWord,proto3" json:"reset_word,omitempty"` ResetEntropy []byte `protobuf:"bytes,8,opt,name=reset_entropy,json=resetEntropy,proto3" json:"reset_entropy,omitempty"` RecoveryFakeWord string `protobuf:"bytes,9,opt,name=recovery_fake_word,json=recoveryFakeWord,proto3" json:"recovery_fake_word,omitempty"` RecoveryWordPos uint32 `protobuf:"varint,10,opt,name=recovery_word_pos,json=recoveryWordPos,proto3" json:"recovery_word_pos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device current state @prev DebugLinkGetState
func (*DebugLinkState) Descriptor ¶
func (*DebugLinkState) Descriptor() ([]byte, []int)
func (*DebugLinkState) GetLayout ¶
func (m *DebugLinkState) GetLayout() []byte
func (*DebugLinkState) GetMatrix ¶
func (m *DebugLinkState) GetMatrix() string
func (*DebugLinkState) GetMnemonic ¶
func (m *DebugLinkState) GetMnemonic() string
func (*DebugLinkState) GetNode ¶
func (m *DebugLinkState) GetNode() *HDNodeType
func (*DebugLinkState) GetPassphraseProtection ¶
func (m *DebugLinkState) GetPassphraseProtection() bool
func (*DebugLinkState) GetPin ¶
func (m *DebugLinkState) GetPin() string
func (*DebugLinkState) GetRecoveryFakeWord ¶
func (m *DebugLinkState) GetRecoveryFakeWord() string
func (*DebugLinkState) GetRecoveryWordPos ¶
func (m *DebugLinkState) GetRecoveryWordPos() uint32
func (*DebugLinkState) GetResetEntropy ¶
func (m *DebugLinkState) GetResetEntropy() []byte
func (*DebugLinkState) GetResetWord ¶
func (m *DebugLinkState) GetResetWord() string
func (*DebugLinkState) ProtoMessage ¶
func (*DebugLinkState) ProtoMessage()
func (*DebugLinkState) Reset ¶
func (m *DebugLinkState) Reset()
func (*DebugLinkState) String ¶
func (m *DebugLinkState) String() string
func (*DebugLinkState) XXX_DiscardUnknown ¶
func (m *DebugLinkState) XXX_DiscardUnknown()
func (*DebugLinkState) XXX_Marshal ¶
func (m *DebugLinkState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkState) XXX_Merge ¶
func (m *DebugLinkState) XXX_Merge(src proto.Message)
func (*DebugLinkState) XXX_Size ¶
func (m *DebugLinkState) XXX_Size() int
func (*DebugLinkState) XXX_Unmarshal ¶
func (m *DebugLinkState) XXX_Unmarshal(b []byte) error
type DebugLinkStop ¶
type DebugLinkStop struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to restart
func (*DebugLinkStop) Descriptor ¶
func (*DebugLinkStop) Descriptor() ([]byte, []int)
func (*DebugLinkStop) ProtoMessage ¶
func (*DebugLinkStop) ProtoMessage()
func (*DebugLinkStop) Reset ¶
func (m *DebugLinkStop) Reset()
func (*DebugLinkStop) String ¶
func (m *DebugLinkStop) String() string
func (*DebugLinkStop) XXX_DiscardUnknown ¶
func (m *DebugLinkStop) XXX_DiscardUnknown()
func (*DebugLinkStop) XXX_Marshal ¶
func (m *DebugLinkStop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugLinkStop) XXX_Merge ¶
func (m *DebugLinkStop) XXX_Merge(src proto.Message)
func (*DebugLinkStop) XXX_Size ¶
func (m *DebugLinkStop) XXX_Size() int
func (*DebugLinkStop) XXX_Unmarshal ¶
func (m *DebugLinkStop) XXX_Unmarshal(b []byte) error
type DecryptMessage ¶
type DecryptMessage struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Hmac []byte `protobuf:"bytes,4,opt,name=hmac,proto3" json:"hmac,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to decrypt message @next Success @next Failure
func (*DecryptMessage) Descriptor ¶
func (*DecryptMessage) Descriptor() ([]byte, []int)
func (*DecryptMessage) GetAddressN ¶
func (m *DecryptMessage) GetAddressN() []uint32
func (*DecryptMessage) GetHmac ¶
func (m *DecryptMessage) GetHmac() []byte
func (*DecryptMessage) GetMessage ¶
func (m *DecryptMessage) GetMessage() []byte
func (*DecryptMessage) GetNonce ¶
func (m *DecryptMessage) GetNonce() []byte
func (*DecryptMessage) ProtoMessage ¶
func (*DecryptMessage) ProtoMessage()
func (*DecryptMessage) Reset ¶
func (m *DecryptMessage) Reset()
func (*DecryptMessage) String ¶
func (m *DecryptMessage) String() string
func (*DecryptMessage) XXX_DiscardUnknown ¶
func (m *DecryptMessage) XXX_DiscardUnknown()
func (*DecryptMessage) XXX_Marshal ¶
func (m *DecryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecryptMessage) XXX_Merge ¶
func (m *DecryptMessage) XXX_Merge(src proto.Message)
func (*DecryptMessage) XXX_Size ¶
func (m *DecryptMessage) XXX_Size() int
func (*DecryptMessage) XXX_Unmarshal ¶
func (m *DecryptMessage) XXX_Unmarshal(b []byte) error
type DecryptedMessage ¶
type DecryptedMessage struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Decrypted message @prev DecryptedMessage
func (*DecryptedMessage) Descriptor ¶
func (*DecryptedMessage) Descriptor() ([]byte, []int)
func (*DecryptedMessage) GetAddress ¶
func (m *DecryptedMessage) GetAddress() string
func (*DecryptedMessage) GetMessage ¶
func (m *DecryptedMessage) GetMessage() []byte
func (*DecryptedMessage) ProtoMessage ¶
func (*DecryptedMessage) ProtoMessage()
func (*DecryptedMessage) Reset ¶
func (m *DecryptedMessage) Reset()
func (*DecryptedMessage) String ¶
func (m *DecryptedMessage) String() string
func (*DecryptedMessage) XXX_DiscardUnknown ¶
func (m *DecryptedMessage) XXX_DiscardUnknown()
func (*DecryptedMessage) XXX_Marshal ¶
func (m *DecryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecryptedMessage) XXX_Merge ¶
func (m *DecryptedMessage) XXX_Merge(src proto.Message)
func (*DecryptedMessage) XXX_Size ¶
func (m *DecryptedMessage) XXX_Size() int
func (*DecryptedMessage) XXX_Unmarshal ¶
func (m *DecryptedMessage) XXX_Unmarshal(b []byte) error
type ECDHSessionKey ¶
type ECDHSessionKey struct { SessionKey []byte `protobuf:"bytes,1,opt,name=session_key,json=sessionKey,proto3" json:"session_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device provides ECDH session key @prev GetECDHSessionKey
func (*ECDHSessionKey) Descriptor ¶
func (*ECDHSessionKey) Descriptor() ([]byte, []int)
func (*ECDHSessionKey) GetSessionKey ¶
func (m *ECDHSessionKey) GetSessionKey() []byte
func (*ECDHSessionKey) ProtoMessage ¶
func (*ECDHSessionKey) ProtoMessage()
func (*ECDHSessionKey) Reset ¶
func (m *ECDHSessionKey) Reset()
func (*ECDHSessionKey) String ¶
func (m *ECDHSessionKey) String() string
func (*ECDHSessionKey) XXX_DiscardUnknown ¶
func (m *ECDHSessionKey) XXX_DiscardUnknown()
func (*ECDHSessionKey) XXX_Marshal ¶
func (m *ECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ECDHSessionKey) XXX_Merge ¶
func (m *ECDHSessionKey) XXX_Merge(src proto.Message)
func (*ECDHSessionKey) XXX_Size ¶
func (m *ECDHSessionKey) XXX_Size() int
func (*ECDHSessionKey) XXX_Unmarshal ¶
func (m *ECDHSessionKey) XXX_Unmarshal(b []byte) error
type EncryptMessage ¶
type EncryptMessage struct { Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` DisplayOnly bool `protobuf:"varint,3,opt,name=display_only,json=displayOnly,proto3" json:"display_only,omitempty"` AddressN []uint32 `protobuf:"varint,4,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` CoinName string `protobuf:"bytes,5,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to encrypt message @next EncryptedMessage @next Failure
func (*EncryptMessage) Descriptor ¶
func (*EncryptMessage) Descriptor() ([]byte, []int)
func (*EncryptMessage) GetAddressN ¶
func (m *EncryptMessage) GetAddressN() []uint32
func (*EncryptMessage) GetCoinName ¶
func (m *EncryptMessage) GetCoinName() string
func (*EncryptMessage) GetDisplayOnly ¶
func (m *EncryptMessage) GetDisplayOnly() bool
func (*EncryptMessage) GetMessage ¶
func (m *EncryptMessage) GetMessage() []byte
func (*EncryptMessage) GetPubkey ¶
func (m *EncryptMessage) GetPubkey() []byte
func (*EncryptMessage) ProtoMessage ¶
func (*EncryptMessage) ProtoMessage()
func (*EncryptMessage) Reset ¶
func (m *EncryptMessage) Reset()
func (*EncryptMessage) String ¶
func (m *EncryptMessage) String() string
func (*EncryptMessage) XXX_DiscardUnknown ¶
func (m *EncryptMessage) XXX_DiscardUnknown()
func (*EncryptMessage) XXX_Marshal ¶
func (m *EncryptMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptMessage) XXX_Merge ¶
func (m *EncryptMessage) XXX_Merge(src proto.Message)
func (*EncryptMessage) XXX_Size ¶
func (m *EncryptMessage) XXX_Size() int
func (*EncryptMessage) XXX_Unmarshal ¶
func (m *EncryptMessage) XXX_Unmarshal(b []byte) error
type EncryptedMessage ¶
type EncryptedMessage struct { Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Hmac []byte `protobuf:"bytes,3,opt,name=hmac,proto3" json:"hmac,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Encrypted message @prev EncryptMessage
func (*EncryptedMessage) Descriptor ¶
func (*EncryptedMessage) Descriptor() ([]byte, []int)
func (*EncryptedMessage) GetHmac ¶
func (m *EncryptedMessage) GetHmac() []byte
func (*EncryptedMessage) GetMessage ¶
func (m *EncryptedMessage) GetMessage() []byte
func (*EncryptedMessage) GetNonce ¶
func (m *EncryptedMessage) GetNonce() []byte
func (*EncryptedMessage) ProtoMessage ¶
func (*EncryptedMessage) ProtoMessage()
func (*EncryptedMessage) Reset ¶
func (m *EncryptedMessage) Reset()
func (*EncryptedMessage) String ¶
func (m *EncryptedMessage) String() string
func (*EncryptedMessage) XXX_DiscardUnknown ¶
func (m *EncryptedMessage) XXX_DiscardUnknown()
func (*EncryptedMessage) XXX_Marshal ¶
func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EncryptedMessage) XXX_Merge ¶
func (m *EncryptedMessage) XXX_Merge(src proto.Message)
func (*EncryptedMessage) XXX_Size ¶
func (m *EncryptedMessage) XXX_Size() int
func (*EncryptedMessage) XXX_Unmarshal ¶
func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error
type Entropy ¶
type Entropy struct { Entropy []byte `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Reply with random data generated by internal RNG @prev GetEntropy
func (*Entropy) Descriptor ¶
func (*Entropy) GetEntropy ¶
func (*Entropy) ProtoMessage ¶
func (*Entropy) ProtoMessage()
func (*Entropy) XXX_DiscardUnknown ¶
func (m *Entropy) XXX_DiscardUnknown()
func (*Entropy) XXX_Marshal ¶
func (*Entropy) XXX_Unmarshal ¶
type EntropyAck ¶
type EntropyAck struct { Entropy []byte `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Provide additional entropy for seed generation function @prev EntropyRequest @next ButtonRequest
func (*EntropyAck) Descriptor ¶
func (*EntropyAck) Descriptor() ([]byte, []int)
func (*EntropyAck) GetEntropy ¶
func (m *EntropyAck) GetEntropy() []byte
func (*EntropyAck) ProtoMessage ¶
func (*EntropyAck) ProtoMessage()
func (*EntropyAck) Reset ¶
func (m *EntropyAck) Reset()
func (*EntropyAck) String ¶
func (m *EntropyAck) String() string
func (*EntropyAck) XXX_DiscardUnknown ¶
func (m *EntropyAck) XXX_DiscardUnknown()
func (*EntropyAck) XXX_Marshal ¶
func (m *EntropyAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EntropyAck) XXX_Merge ¶
func (m *EntropyAck) XXX_Merge(src proto.Message)
func (*EntropyAck) XXX_Size ¶
func (m *EntropyAck) XXX_Size() int
func (*EntropyAck) XXX_Unmarshal ¶
func (m *EntropyAck) XXX_Unmarshal(b []byte) error
type EntropyRequest ¶
type EntropyRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Ask for additional entropy from host computer @prev ResetDevice @next EntropyAck
func (*EntropyRequest) Descriptor ¶
func (*EntropyRequest) Descriptor() ([]byte, []int)
func (*EntropyRequest) ProtoMessage ¶
func (*EntropyRequest) ProtoMessage()
func (*EntropyRequest) Reset ¶
func (m *EntropyRequest) Reset()
func (*EntropyRequest) String ¶
func (m *EntropyRequest) String() string
func (*EntropyRequest) XXX_DiscardUnknown ¶
func (m *EntropyRequest) XXX_DiscardUnknown()
func (*EntropyRequest) XXX_Marshal ¶
func (m *EntropyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EntropyRequest) XXX_Merge ¶
func (m *EntropyRequest) XXX_Merge(src proto.Message)
func (*EntropyRequest) XXX_Size ¶
func (m *EntropyRequest) XXX_Size() int
func (*EntropyRequest) XXX_Unmarshal ¶
func (m *EntropyRequest) XXX_Unmarshal(b []byte) error
type EstimateTxSize ¶
type EstimateTxSize struct { OutputsCount uint32 `protobuf:"varint,1,opt,name=outputs_count,json=outputsCount,proto3" json:"outputs_count,omitempty"` InputsCount uint32 `protobuf:"varint,2,opt,name=inputs_count,json=inputsCount,proto3" json:"inputs_count,omitempty"` CoinName string `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Estimated size of the transaction This behaves exactly like SignTx, which means that it can ask using TxRequest This call is non-blocking (except possible PassphraseRequest to unlock the seed) @next TxSize @next Failure
func (*EstimateTxSize) Descriptor ¶
func (*EstimateTxSize) Descriptor() ([]byte, []int)
func (*EstimateTxSize) GetCoinName ¶
func (m *EstimateTxSize) GetCoinName() string
func (*EstimateTxSize) GetInputsCount ¶
func (m *EstimateTxSize) GetInputsCount() uint32
func (*EstimateTxSize) GetOutputsCount ¶
func (m *EstimateTxSize) GetOutputsCount() uint32
func (*EstimateTxSize) ProtoMessage ¶
func (*EstimateTxSize) ProtoMessage()
func (*EstimateTxSize) Reset ¶
func (m *EstimateTxSize) Reset()
func (*EstimateTxSize) String ¶
func (m *EstimateTxSize) String() string
func (*EstimateTxSize) XXX_DiscardUnknown ¶
func (m *EstimateTxSize) XXX_DiscardUnknown()
func (*EstimateTxSize) XXX_Marshal ¶
func (m *EstimateTxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimateTxSize) XXX_Merge ¶
func (m *EstimateTxSize) XXX_Merge(src proto.Message)
func (*EstimateTxSize) XXX_Size ¶
func (m *EstimateTxSize) XXX_Size() int
func (*EstimateTxSize) XXX_Unmarshal ¶
func (m *EstimateTxSize) XXX_Unmarshal(b []byte) error
type Failure ¶
type Failure struct { Code FailureType `protobuf:"varint,1,opt,name=code,proto3,enum=trezor.FailureType" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Failure of the previous request
func (*Failure) Descriptor ¶
func (*Failure) GetCode ¶
func (m *Failure) GetCode() FailureType
func (*Failure) GetMessage ¶
func (*Failure) ProtoMessage ¶
func (*Failure) ProtoMessage()
func (*Failure) XXX_DiscardUnknown ¶
func (m *Failure) XXX_DiscardUnknown()
func (*Failure) XXX_Marshal ¶
func (*Failure) XXX_Unmarshal ¶
type FailureType ¶
type FailureType int32
* Type of failures returned by Failure message @used_in Failure
const ( FailureType_Failure_UnexpectedMessage FailureType = 0 FailureType_Failure_ButtonExpected FailureType = 2 FailureType_Failure_DataError FailureType = 3 FailureType_Failure_ActionCancelled FailureType = 4 FailureType_Failure_PinExpected FailureType = 5 FailureType_Failure_PinCancelled FailureType = 6 FailureType_Failure_PinInvalid FailureType = 7 FailureType_Failure_InvalidSignature FailureType = 8 FailureType_Failure_ProcessError FailureType = 9 FailureType_Failure_NotEnoughFunds FailureType = 10 FailureType_Failure_NotInitialized FailureType = 11 FailureType_Failure_FirmwareError FailureType = 99 )
func (FailureType) EnumDescriptor ¶
func (FailureType) EnumDescriptor() ([]byte, []int)
func (FailureType) String ¶
func (x FailureType) String() string
type Features ¶
type Features struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` MajorVersion uint32 `protobuf:"varint,2,opt,name=major_version,json=majorVersion,proto3" json:"major_version,omitempty"` MinorVersion uint32 `protobuf:"varint,3,opt,name=minor_version,json=minorVersion,proto3" json:"minor_version,omitempty"` PatchVersion uint32 `protobuf:"varint,4,opt,name=patch_version,json=patchVersion,proto3" json:"patch_version,omitempty"` BootloaderMode bool `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode,proto3" json:"bootloader_mode,omitempty"` DeviceId string `protobuf:"bytes,6,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` PinProtection bool `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"` PassphraseProtection bool `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` Language string `protobuf:"bytes,9,opt,name=language,proto3" json:"language,omitempty"` Label string `protobuf:"bytes,10,opt,name=label,proto3" json:"label,omitempty"` Coins []*CoinType `protobuf:"bytes,11,rep,name=coins,proto3" json:"coins,omitempty"` Initialized bool `protobuf:"varint,12,opt,name=initialized,proto3" json:"initialized,omitempty"` Revision []byte `protobuf:"bytes,13,opt,name=revision,proto3" json:"revision,omitempty"` BootloaderHash []byte `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash,proto3" json:"bootloader_hash,omitempty"` Imported bool `protobuf:"varint,15,opt,name=imported,proto3" json:"imported,omitempty"` PinCached bool `protobuf:"varint,16,opt,name=pin_cached,json=pinCached,proto3" json:"pin_cached,omitempty"` PassphraseCached bool `protobuf:"varint,17,opt,name=passphrase_cached,json=passphraseCached,proto3" json:"passphrase_cached,omitempty"` FirmwarePresent bool `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent,proto3" json:"firmware_present,omitempty"` NeedsBackup bool `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup,proto3" json:"needs_backup,omitempty"` Flags uint32 `protobuf:"varint,20,opt,name=flags,proto3" json:"flags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Reports various information about the device @prev Initialize @prev GetFeatures
func (*Features) Descriptor ¶
func (*Features) GetBootloaderHash ¶
func (*Features) GetBootloaderMode ¶
func (*Features) GetDeviceId ¶
func (*Features) GetFirmwarePresent ¶
func (*Features) GetImported ¶
func (*Features) GetInitialized ¶
func (*Features) GetLanguage ¶
func (*Features) GetMajorVersion ¶
func (*Features) GetMinorVersion ¶
func (*Features) GetNeedsBackup ¶
func (*Features) GetPassphraseCached ¶
func (*Features) GetPassphraseProtection ¶
func (*Features) GetPatchVersion ¶
func (*Features) GetPinCached ¶
func (*Features) GetPinProtection ¶
func (*Features) GetRevision ¶
func (*Features) ProtoMessage ¶
func (*Features) ProtoMessage()
func (*Features) XXX_DiscardUnknown ¶
func (m *Features) XXX_DiscardUnknown()
func (*Features) XXX_Marshal ¶
func (*Features) XXX_Unmarshal ¶
type FirmwareErase ¶
type FirmwareErase struct { Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to erase its firmware (so it can be replaced via FirmwareUpload) @next Success @next FirmwareRequest @next Failure
func (*FirmwareErase) Descriptor ¶
func (*FirmwareErase) Descriptor() ([]byte, []int)
func (*FirmwareErase) GetLength ¶
func (m *FirmwareErase) GetLength() uint32
func (*FirmwareErase) ProtoMessage ¶
func (*FirmwareErase) ProtoMessage()
func (*FirmwareErase) Reset ¶
func (m *FirmwareErase) Reset()
func (*FirmwareErase) String ¶
func (m *FirmwareErase) String() string
func (*FirmwareErase) XXX_DiscardUnknown ¶
func (m *FirmwareErase) XXX_DiscardUnknown()
func (*FirmwareErase) XXX_Marshal ¶
func (m *FirmwareErase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FirmwareErase) XXX_Merge ¶
func (m *FirmwareErase) XXX_Merge(src proto.Message)
func (*FirmwareErase) XXX_Size ¶
func (m *FirmwareErase) XXX_Size() int
func (*FirmwareErase) XXX_Unmarshal ¶
func (m *FirmwareErase) XXX_Unmarshal(b []byte) error
type FirmwareRequest ¶
type FirmwareRequest struct { Offset uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Ask for firmware chunk @next FirmwareUpload
func (*FirmwareRequest) Descriptor ¶
func (*FirmwareRequest) Descriptor() ([]byte, []int)
func (*FirmwareRequest) GetLength ¶
func (m *FirmwareRequest) GetLength() uint32
func (*FirmwareRequest) GetOffset ¶
func (m *FirmwareRequest) GetOffset() uint32
func (*FirmwareRequest) ProtoMessage ¶
func (*FirmwareRequest) ProtoMessage()
func (*FirmwareRequest) Reset ¶
func (m *FirmwareRequest) Reset()
func (*FirmwareRequest) String ¶
func (m *FirmwareRequest) String() string
func (*FirmwareRequest) XXX_DiscardUnknown ¶
func (m *FirmwareRequest) XXX_DiscardUnknown()
func (*FirmwareRequest) XXX_Marshal ¶
func (m *FirmwareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FirmwareRequest) XXX_Merge ¶
func (m *FirmwareRequest) XXX_Merge(src proto.Message)
func (*FirmwareRequest) XXX_Size ¶
func (m *FirmwareRequest) XXX_Size() int
func (*FirmwareRequest) XXX_Unmarshal ¶
func (m *FirmwareRequest) XXX_Unmarshal(b []byte) error
type FirmwareUpload ¶
type FirmwareUpload struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Send firmware in binary form to the device @next Success @next Failure
func (*FirmwareUpload) Descriptor ¶
func (*FirmwareUpload) Descriptor() ([]byte, []int)
func (*FirmwareUpload) GetHash ¶
func (m *FirmwareUpload) GetHash() []byte
func (*FirmwareUpload) GetPayload ¶
func (m *FirmwareUpload) GetPayload() []byte
func (*FirmwareUpload) ProtoMessage ¶
func (*FirmwareUpload) ProtoMessage()
func (*FirmwareUpload) Reset ¶
func (m *FirmwareUpload) Reset()
func (*FirmwareUpload) String ¶
func (m *FirmwareUpload) String() string
func (*FirmwareUpload) XXX_DiscardUnknown ¶
func (m *FirmwareUpload) XXX_DiscardUnknown()
func (*FirmwareUpload) XXX_Marshal ¶
func (m *FirmwareUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FirmwareUpload) XXX_Merge ¶
func (m *FirmwareUpload) XXX_Merge(src proto.Message)
func (*FirmwareUpload) XXX_Size ¶
func (m *FirmwareUpload) XXX_Size() int
func (*FirmwareUpload) XXX_Unmarshal ¶
func (m *FirmwareUpload) XXX_Unmarshal(b []byte) error
type GetAddress ¶
type GetAddress struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` CoinName string `protobuf:"bytes,2,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` ShowDisplay bool `protobuf:"varint,3,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"` Multisig *MultisigRedeemScriptType `protobuf:"bytes,4,opt,name=multisig,proto3" json:"multisig,omitempty"` ScriptType InputScriptType `protobuf:"varint,5,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device for address corresponding to address_n path @next PassphraseRequest @next Address @next Failure
func (*GetAddress) Descriptor ¶
func (*GetAddress) Descriptor() ([]byte, []int)
func (*GetAddress) GetAddressN ¶
func (m *GetAddress) GetAddressN() []uint32
func (*GetAddress) GetCoinName ¶
func (m *GetAddress) GetCoinName() string
func (*GetAddress) GetMultisig ¶
func (m *GetAddress) GetMultisig() *MultisigRedeemScriptType
func (*GetAddress) GetScriptType ¶
func (m *GetAddress) GetScriptType() InputScriptType
func (*GetAddress) GetShowDisplay ¶
func (m *GetAddress) GetShowDisplay() bool
func (*GetAddress) ProtoMessage ¶
func (*GetAddress) ProtoMessage()
func (*GetAddress) Reset ¶
func (m *GetAddress) Reset()
func (*GetAddress) String ¶
func (m *GetAddress) String() string
func (*GetAddress) XXX_DiscardUnknown ¶
func (m *GetAddress) XXX_DiscardUnknown()
func (*GetAddress) XXX_Marshal ¶
func (m *GetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAddress) XXX_Merge ¶
func (m *GetAddress) XXX_Merge(src proto.Message)
func (*GetAddress) XXX_Size ¶
func (m *GetAddress) XXX_Size() int
func (*GetAddress) XXX_Unmarshal ¶
func (m *GetAddress) XXX_Unmarshal(b []byte) error
type GetECDHSessionKey ¶
type GetECDHSessionKey struct { Identity *IdentityType `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` PeerPublicKey []byte `protobuf:"bytes,2,opt,name=peer_public_key,json=peerPublicKey,proto3" json:"peer_public_key,omitempty"` EcdsaCurveName string `protobuf:"bytes,3,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to generate ECDH session key @next ECDHSessionKey @next Failure
func (*GetECDHSessionKey) Descriptor ¶
func (*GetECDHSessionKey) Descriptor() ([]byte, []int)
func (*GetECDHSessionKey) GetEcdsaCurveName ¶
func (m *GetECDHSessionKey) GetEcdsaCurveName() string
func (*GetECDHSessionKey) GetIdentity ¶
func (m *GetECDHSessionKey) GetIdentity() *IdentityType
func (*GetECDHSessionKey) GetPeerPublicKey ¶
func (m *GetECDHSessionKey) GetPeerPublicKey() []byte
func (*GetECDHSessionKey) ProtoMessage ¶
func (*GetECDHSessionKey) ProtoMessage()
func (*GetECDHSessionKey) Reset ¶
func (m *GetECDHSessionKey) Reset()
func (*GetECDHSessionKey) String ¶
func (m *GetECDHSessionKey) String() string
func (*GetECDHSessionKey) XXX_DiscardUnknown ¶
func (m *GetECDHSessionKey) XXX_DiscardUnknown()
func (*GetECDHSessionKey) XXX_Marshal ¶
func (m *GetECDHSessionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetECDHSessionKey) XXX_Merge ¶
func (m *GetECDHSessionKey) XXX_Merge(src proto.Message)
func (*GetECDHSessionKey) XXX_Size ¶
func (m *GetECDHSessionKey) XXX_Size() int
func (*GetECDHSessionKey) XXX_Unmarshal ¶
func (m *GetECDHSessionKey) XXX_Unmarshal(b []byte) error
type GetEntropy ¶
type GetEntropy struct { Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Request a sample of random data generated by hardware RNG. May be used for testing. @next ButtonRequest @next Entropy @next Failure
func (*GetEntropy) Descriptor ¶
func (*GetEntropy) Descriptor() ([]byte, []int)
func (*GetEntropy) GetSize ¶
func (m *GetEntropy) GetSize() uint32
func (*GetEntropy) ProtoMessage ¶
func (*GetEntropy) ProtoMessage()
func (*GetEntropy) Reset ¶
func (m *GetEntropy) Reset()
func (*GetEntropy) String ¶
func (m *GetEntropy) String() string
func (*GetEntropy) XXX_DiscardUnknown ¶
func (m *GetEntropy) XXX_DiscardUnknown()
func (*GetEntropy) XXX_Marshal ¶
func (m *GetEntropy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetEntropy) XXX_Merge ¶
func (m *GetEntropy) XXX_Merge(src proto.Message)
func (*GetEntropy) XXX_Size ¶
func (m *GetEntropy) XXX_Size() int
func (*GetEntropy) XXX_Unmarshal ¶
func (m *GetEntropy) XXX_Unmarshal(b []byte) error
type GetFeatures ¶
type GetFeatures struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask for device details (no device reset) @next Features
func (*GetFeatures) Descriptor ¶
func (*GetFeatures) Descriptor() ([]byte, []int)
func (*GetFeatures) ProtoMessage ¶
func (*GetFeatures) ProtoMessage()
func (*GetFeatures) Reset ¶
func (m *GetFeatures) Reset()
func (*GetFeatures) String ¶
func (m *GetFeatures) String() string
func (*GetFeatures) XXX_DiscardUnknown ¶
func (m *GetFeatures) XXX_DiscardUnknown()
func (*GetFeatures) XXX_Marshal ¶
func (m *GetFeatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFeatures) XXX_Merge ¶
func (m *GetFeatures) XXX_Merge(src proto.Message)
func (*GetFeatures) XXX_Size ¶
func (m *GetFeatures) XXX_Size() int
func (*GetFeatures) XXX_Unmarshal ¶
func (m *GetFeatures) XXX_Unmarshal(b []byte) error
type GetPublicKey ¶
type GetPublicKey struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` EcdsaCurveName string `protobuf:"bytes,2,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"` ShowDisplay bool `protobuf:"varint,3,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"` CoinName string `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device for public key corresponding to address_n path @next PassphraseRequest @next PublicKey @next Failure
func (*GetPublicKey) Descriptor ¶
func (*GetPublicKey) Descriptor() ([]byte, []int)
func (*GetPublicKey) GetAddressN ¶
func (m *GetPublicKey) GetAddressN() []uint32
func (*GetPublicKey) GetCoinName ¶
func (m *GetPublicKey) GetCoinName() string
func (*GetPublicKey) GetEcdsaCurveName ¶
func (m *GetPublicKey) GetEcdsaCurveName() string
func (*GetPublicKey) GetShowDisplay ¶
func (m *GetPublicKey) GetShowDisplay() bool
func (*GetPublicKey) ProtoMessage ¶
func (*GetPublicKey) ProtoMessage()
func (*GetPublicKey) Reset ¶
func (m *GetPublicKey) Reset()
func (*GetPublicKey) String ¶
func (m *GetPublicKey) String() string
func (*GetPublicKey) XXX_DiscardUnknown ¶
func (m *GetPublicKey) XXX_DiscardUnknown()
func (*GetPublicKey) XXX_Marshal ¶
func (m *GetPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPublicKey) XXX_Merge ¶
func (m *GetPublicKey) XXX_Merge(src proto.Message)
func (*GetPublicKey) XXX_Size ¶
func (m *GetPublicKey) XXX_Size() int
func (*GetPublicKey) XXX_Unmarshal ¶
func (m *GetPublicKey) XXX_Unmarshal(b []byte) error
type HDNodePathType ¶
type HDNodePathType struct { Node *HDNodeType `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` AddressN []uint32 `protobuf:"varint,2,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HDNodePathType) Descriptor ¶
func (*HDNodePathType) Descriptor() ([]byte, []int)
func (*HDNodePathType) GetAddressN ¶
func (m *HDNodePathType) GetAddressN() []uint32
func (*HDNodePathType) GetNode ¶
func (m *HDNodePathType) GetNode() *HDNodeType
func (*HDNodePathType) ProtoMessage ¶
func (*HDNodePathType) ProtoMessage()
func (*HDNodePathType) Reset ¶
func (m *HDNodePathType) Reset()
func (*HDNodePathType) String ¶
func (m *HDNodePathType) String() string
func (*HDNodePathType) XXX_DiscardUnknown ¶
func (m *HDNodePathType) XXX_DiscardUnknown()
func (*HDNodePathType) XXX_Marshal ¶
func (m *HDNodePathType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HDNodePathType) XXX_Merge ¶
func (m *HDNodePathType) XXX_Merge(src proto.Message)
func (*HDNodePathType) XXX_Size ¶
func (m *HDNodePathType) XXX_Size() int
func (*HDNodePathType) XXX_Unmarshal ¶
func (m *HDNodePathType) XXX_Unmarshal(b []byte) error
type HDNodeType ¶
type HDNodeType struct { Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"` Fingerprint uint32 `protobuf:"varint,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` ChildNum uint32 `protobuf:"varint,3,opt,name=child_num,json=childNum,proto3" json:"child_num,omitempty"` ChainCode []byte `protobuf:"bytes,4,opt,name=chain_code,json=chainCode,proto3" json:"chain_code,omitempty"` PrivateKey []byte `protobuf:"bytes,5,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` PublicKey []byte `protobuf:"bytes,6,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing BIP32 (hierarchical deterministic) node Used for imports of private key into the device and exporting public key out of device @used_in PublicKey @used_in LoadDevice @used_in DebugLinkState @used_in Storage
func (*HDNodeType) Descriptor ¶
func (*HDNodeType) Descriptor() ([]byte, []int)
func (*HDNodeType) GetChainCode ¶
func (m *HDNodeType) GetChainCode() []byte
func (*HDNodeType) GetChildNum ¶
func (m *HDNodeType) GetChildNum() uint32
func (*HDNodeType) GetDepth ¶
func (m *HDNodeType) GetDepth() uint32
func (*HDNodeType) GetFingerprint ¶
func (m *HDNodeType) GetFingerprint() uint32
func (*HDNodeType) GetPrivateKey ¶
func (m *HDNodeType) GetPrivateKey() []byte
func (*HDNodeType) GetPublicKey ¶
func (m *HDNodeType) GetPublicKey() []byte
func (*HDNodeType) ProtoMessage ¶
func (*HDNodeType) ProtoMessage()
func (*HDNodeType) Reset ¶
func (m *HDNodeType) Reset()
func (*HDNodeType) String ¶
func (m *HDNodeType) String() string
func (*HDNodeType) XXX_DiscardUnknown ¶
func (m *HDNodeType) XXX_DiscardUnknown()
func (*HDNodeType) XXX_Marshal ¶
func (m *HDNodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HDNodeType) XXX_Merge ¶
func (m *HDNodeType) XXX_Merge(src proto.Message)
func (*HDNodeType) XXX_Size ¶
func (m *HDNodeType) XXX_Size() int
func (*HDNodeType) XXX_Unmarshal ¶
func (m *HDNodeType) XXX_Unmarshal(b []byte) error
type IdentityType ¶
type IdentityType struct { Proto string `protobuf:"bytes,1,opt,name=proto,proto3" json:"proto,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` Port string `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Index uint32 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing identity data @used_in IdentityType
func (*IdentityType) Descriptor ¶
func (*IdentityType) Descriptor() ([]byte, []int)
func (*IdentityType) GetHost ¶
func (m *IdentityType) GetHost() string
func (*IdentityType) GetIndex ¶
func (m *IdentityType) GetIndex() uint32
func (*IdentityType) GetPath ¶
func (m *IdentityType) GetPath() string
func (*IdentityType) GetPort ¶
func (m *IdentityType) GetPort() string
func (*IdentityType) GetProto ¶
func (m *IdentityType) GetProto() string
func (*IdentityType) GetUser ¶
func (m *IdentityType) GetUser() string
func (*IdentityType) ProtoMessage ¶
func (*IdentityType) ProtoMessage()
func (*IdentityType) Reset ¶
func (m *IdentityType) Reset()
func (*IdentityType) String ¶
func (m *IdentityType) String() string
func (*IdentityType) XXX_DiscardUnknown ¶
func (m *IdentityType) XXX_DiscardUnknown()
func (*IdentityType) XXX_Marshal ¶
func (m *IdentityType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdentityType) XXX_Merge ¶
func (m *IdentityType) XXX_Merge(src proto.Message)
func (*IdentityType) XXX_Size ¶
func (m *IdentityType) XXX_Size() int
func (*IdentityType) XXX_Unmarshal ¶
func (m *IdentityType) XXX_Unmarshal(b []byte) error
type Initialize ¶
type Initialize struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Reset device to default state and ask for device details @next Features
func (*Initialize) Descriptor ¶
func (*Initialize) Descriptor() ([]byte, []int)
func (*Initialize) ProtoMessage ¶
func (*Initialize) ProtoMessage()
func (*Initialize) Reset ¶
func (m *Initialize) Reset()
func (*Initialize) String ¶
func (m *Initialize) String() string
func (*Initialize) XXX_DiscardUnknown ¶
func (m *Initialize) XXX_DiscardUnknown()
func (*Initialize) XXX_Marshal ¶
func (m *Initialize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Initialize) XXX_Merge ¶
func (m *Initialize) XXX_Merge(src proto.Message)
func (*Initialize) XXX_Size ¶
func (m *Initialize) XXX_Size() int
func (*Initialize) XXX_Unmarshal ¶
func (m *Initialize) XXX_Unmarshal(b []byte) error
type InputScriptType ¶
type InputScriptType int32
* Type of script which will be used for transaction output @used_in TxInputType
const ( InputScriptType_SPENDADDRESS InputScriptType = 0 InputScriptType_SPENDMULTISIG InputScriptType = 1 InputScriptType_EXTERNAL InputScriptType = 2 InputScriptType_SPENDWITNESS InputScriptType = 3 InputScriptType_SPENDP2SHWITNESS InputScriptType = 4 )
func (InputScriptType) EnumDescriptor ¶
func (InputScriptType) EnumDescriptor() ([]byte, []int)
func (InputScriptType) String ¶
func (x InputScriptType) String() string
type LoadDevice ¶
type LoadDevice struct { Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Node *HDNodeType `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` Pin string `protobuf:"bytes,3,opt,name=pin,proto3" json:"pin,omitempty"` PassphraseProtection bool `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` SkipChecksum bool `protobuf:"varint,7,opt,name=skip_checksum,json=skipChecksum,proto3" json:"skip_checksum,omitempty"` U2FCounter uint32 `protobuf:"varint,8,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Load seed and related internal settings from the computer @next ButtonRequest @next Success @next Failure
func (*LoadDevice) Descriptor ¶
func (*LoadDevice) Descriptor() ([]byte, []int)
func (*LoadDevice) GetLabel ¶
func (m *LoadDevice) GetLabel() string
func (*LoadDevice) GetLanguage ¶
func (m *LoadDevice) GetLanguage() string
func (*LoadDevice) GetMnemonic ¶
func (m *LoadDevice) GetMnemonic() string
func (*LoadDevice) GetNode ¶
func (m *LoadDevice) GetNode() *HDNodeType
func (*LoadDevice) GetPassphraseProtection ¶
func (m *LoadDevice) GetPassphraseProtection() bool
func (*LoadDevice) GetPin ¶
func (m *LoadDevice) GetPin() string
func (*LoadDevice) GetSkipChecksum ¶
func (m *LoadDevice) GetSkipChecksum() bool
func (*LoadDevice) GetU2FCounter ¶
func (m *LoadDevice) GetU2FCounter() uint32
func (*LoadDevice) ProtoMessage ¶
func (*LoadDevice) ProtoMessage()
func (*LoadDevice) Reset ¶
func (m *LoadDevice) Reset()
func (*LoadDevice) String ¶
func (m *LoadDevice) String() string
func (*LoadDevice) XXX_DiscardUnknown ¶
func (m *LoadDevice) XXX_DiscardUnknown()
func (*LoadDevice) XXX_Marshal ¶
func (m *LoadDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoadDevice) XXX_Merge ¶
func (m *LoadDevice) XXX_Merge(src proto.Message)
func (*LoadDevice) XXX_Size ¶
func (m *LoadDevice) XXX_Size() int
func (*LoadDevice) XXX_Unmarshal ¶
func (m *LoadDevice) XXX_Unmarshal(b []byte) error
type MessageSignature ¶
type MessageSignature struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Signed message @prev SignMessage
func (*MessageSignature) Descriptor ¶
func (*MessageSignature) Descriptor() ([]byte, []int)
func (*MessageSignature) GetAddress ¶
func (m *MessageSignature) GetAddress() string
func (*MessageSignature) GetSignature ¶
func (m *MessageSignature) GetSignature() []byte
func (*MessageSignature) ProtoMessage ¶
func (*MessageSignature) ProtoMessage()
func (*MessageSignature) Reset ¶
func (m *MessageSignature) Reset()
func (*MessageSignature) String ¶
func (m *MessageSignature) String() string
func (*MessageSignature) XXX_DiscardUnknown ¶
func (m *MessageSignature) XXX_DiscardUnknown()
func (*MessageSignature) XXX_Marshal ¶
func (m *MessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MessageSignature) XXX_Merge ¶
func (m *MessageSignature) XXX_Merge(src proto.Message)
func (*MessageSignature) XXX_Size ¶
func (m *MessageSignature) XXX_Size() int
func (*MessageSignature) XXX_Unmarshal ¶
func (m *MessageSignature) XXX_Unmarshal(b []byte) error
type MessageType ¶
type MessageType int32
* Mapping between Trezor wire identifier (uint) and a protobuf message
const ( 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_FirmwareErase MessageType = 6 MessageType_MessageType_FirmwareUpload MessageType = 7 MessageType_MessageType_FirmwareRequest MessageType = 8 MessageType_MessageType_GetEntropy MessageType = 9 MessageType_MessageType_Entropy MessageType = 10 MessageType_MessageType_GetPublicKey MessageType = 11 MessageType_MessageType_PublicKey MessageType = 12 MessageType_MessageType_LoadDevice MessageType = 13 MessageType_MessageType_ResetDevice MessageType = 14 MessageType_MessageType_SignTx MessageType = 15 MessageType_MessageType_SimpleSignTx MessageType = 16 // Deprecated: Do not use. MessageType_MessageType_Features MessageType = 17 MessageType_MessageType_PinMatrixRequest MessageType = 18 MessageType_MessageType_PinMatrixAck MessageType = 19 MessageType_MessageType_Cancel MessageType = 20 MessageType_MessageType_TxRequest MessageType = 21 MessageType_MessageType_TxAck MessageType = 22 MessageType_MessageType_CipherKeyValue MessageType = 23 MessageType_MessageType_ClearSession MessageType = 24 MessageType_MessageType_ApplySettings MessageType = 25 MessageType_MessageType_ButtonRequest MessageType = 26 MessageType_MessageType_ButtonAck MessageType = 27 MessageType_MessageType_ApplyFlags MessageType = 28 MessageType_MessageType_GetAddress MessageType = 29 MessageType_MessageType_Address MessageType = 30 MessageType_MessageType_SelfTest MessageType = 32 MessageType_MessageType_BackupDevice MessageType = 34 MessageType_MessageType_EntropyRequest MessageType = 35 MessageType_MessageType_EntropyAck MessageType = 36 MessageType_MessageType_SignMessage MessageType = 38 MessageType_MessageType_VerifyMessage MessageType = 39 MessageType_MessageType_MessageSignature MessageType = 40 MessageType_MessageType_PassphraseRequest MessageType = 41 MessageType_MessageType_PassphraseAck MessageType = 42 MessageType_MessageType_EstimateTxSize MessageType = 43 // Deprecated: Do not use. MessageType_MessageType_TxSize MessageType = 44 // Deprecated: Do not use. MessageType_MessageType_RecoveryDevice MessageType = 45 MessageType_MessageType_WordRequest MessageType = 46 MessageType_MessageType_WordAck MessageType = 47 MessageType_MessageType_CipheredKeyValue MessageType = 48 MessageType_MessageType_EncryptMessage MessageType = 49 // Deprecated: Do not use. MessageType_MessageType_EncryptedMessage MessageType = 50 // Deprecated: Do not use. MessageType_MessageType_DecryptMessage MessageType = 51 // Deprecated: Do not use. MessageType_MessageType_DecryptedMessage MessageType = 52 // Deprecated: Do not use. MessageType_MessageType_SignIdentity MessageType = 53 MessageType_MessageType_SignedIdentity MessageType = 54 MessageType_MessageType_GetFeatures MessageType = 55 MessageType_MessageType_ThetaGetAddress MessageType = 56 MessageType_MessageType_ThetaAddress MessageType = 57 MessageType_MessageType_ThetaSignTx MessageType = 58 MessageType_MessageType_ThetaTxRequest MessageType = 59 MessageType_MessageType_ThetaTxAck MessageType = 60 MessageType_MessageType_GetECDHSessionKey MessageType = 61 MessageType_MessageType_ECDHSessionKey MessageType = 62 MessageType_MessageType_SetU2FCounter MessageType = 63 MessageType_MessageType_ThetaSignMessage MessageType = 64 MessageType_MessageType_ThetaVerifyMessage MessageType = 65 MessageType_MessageType_ThetaMessageSignature MessageType = 66 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 )
func (MessageType) EnumDescriptor ¶
func (MessageType) EnumDescriptor() ([]byte, []int)
func (MessageType) String ¶
func (x MessageType) String() string
type MultisigRedeemScriptType ¶
type MultisigRedeemScriptType struct { Pubkeys []*HDNodePathType `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` Signatures [][]byte `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` M uint32 `protobuf:"varint,3,opt,name=m,proto3" json:"m,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Type of redeem script used in input @used_in TxInputType
func (*MultisigRedeemScriptType) Descriptor ¶
func (*MultisigRedeemScriptType) Descriptor() ([]byte, []int)
func (*MultisigRedeemScriptType) GetM ¶
func (m *MultisigRedeemScriptType) GetM() uint32
func (*MultisigRedeemScriptType) GetPubkeys ¶
func (m *MultisigRedeemScriptType) GetPubkeys() []*HDNodePathType
func (*MultisigRedeemScriptType) GetSignatures ¶
func (m *MultisigRedeemScriptType) GetSignatures() [][]byte
func (*MultisigRedeemScriptType) ProtoMessage ¶
func (*MultisigRedeemScriptType) ProtoMessage()
func (*MultisigRedeemScriptType) Reset ¶
func (m *MultisigRedeemScriptType) Reset()
func (*MultisigRedeemScriptType) String ¶
func (m *MultisigRedeemScriptType) String() string
func (*MultisigRedeemScriptType) XXX_DiscardUnknown ¶
func (m *MultisigRedeemScriptType) XXX_DiscardUnknown()
func (*MultisigRedeemScriptType) XXX_Marshal ¶
func (m *MultisigRedeemScriptType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultisigRedeemScriptType) XXX_Merge ¶
func (m *MultisigRedeemScriptType) XXX_Merge(src proto.Message)
func (*MultisigRedeemScriptType) XXX_Size ¶
func (m *MultisigRedeemScriptType) XXX_Size() int
func (*MultisigRedeemScriptType) XXX_Unmarshal ¶
func (m *MultisigRedeemScriptType) XXX_Unmarshal(b []byte) error
type OutputScriptType ¶
type OutputScriptType int32
* Type of script which will be used for transaction output @used_in TxOutputType
const ( OutputScriptType_PAYTOADDRESS OutputScriptType = 0 OutputScriptType_PAYTOSCRIPTHASH OutputScriptType = 1 OutputScriptType_PAYTOMULTISIG OutputScriptType = 2 OutputScriptType_PAYTOOPRETURN OutputScriptType = 3 OutputScriptType_PAYTOWITNESS OutputScriptType = 4 OutputScriptType_PAYTOP2SHWITNESS OutputScriptType = 5 )
func (OutputScriptType) EnumDescriptor ¶
func (OutputScriptType) EnumDescriptor() ([]byte, []int)
func (OutputScriptType) String ¶
func (x OutputScriptType) String() string
type PassphraseAck ¶
type PassphraseAck struct { Passphrase string `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Send passphrase back @prev PassphraseRequest
func (*PassphraseAck) Descriptor ¶
func (*PassphraseAck) Descriptor() ([]byte, []int)
func (*PassphraseAck) GetPassphrase ¶
func (m *PassphraseAck) GetPassphrase() string
func (*PassphraseAck) ProtoMessage ¶
func (*PassphraseAck) ProtoMessage()
func (*PassphraseAck) Reset ¶
func (m *PassphraseAck) Reset()
func (*PassphraseAck) String ¶
func (m *PassphraseAck) String() string
func (*PassphraseAck) XXX_DiscardUnknown ¶
func (m *PassphraseAck) XXX_DiscardUnknown()
func (*PassphraseAck) XXX_Marshal ¶
func (m *PassphraseAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PassphraseAck) XXX_Merge ¶
func (m *PassphraseAck) XXX_Merge(src proto.Message)
func (*PassphraseAck) XXX_Size ¶
func (m *PassphraseAck) XXX_Size() int
func (*PassphraseAck) XXX_Unmarshal ¶
func (m *PassphraseAck) XXX_Unmarshal(b []byte) error
type PassphraseRequest ¶
type PassphraseRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device awaits encryption passphrase @next PassphraseAck @next Cancel
func (*PassphraseRequest) Descriptor ¶
func (*PassphraseRequest) Descriptor() ([]byte, []int)
func (*PassphraseRequest) ProtoMessage ¶
func (*PassphraseRequest) ProtoMessage()
func (*PassphraseRequest) Reset ¶
func (m *PassphraseRequest) Reset()
func (*PassphraseRequest) String ¶
func (m *PassphraseRequest) String() string
func (*PassphraseRequest) XXX_DiscardUnknown ¶
func (m *PassphraseRequest) XXX_DiscardUnknown()
func (*PassphraseRequest) XXX_Marshal ¶
func (m *PassphraseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PassphraseRequest) XXX_Merge ¶
func (m *PassphraseRequest) XXX_Merge(src proto.Message)
func (*PassphraseRequest) XXX_Size ¶
func (m *PassphraseRequest) XXX_Size() int
func (*PassphraseRequest) XXX_Unmarshal ¶
func (m *PassphraseRequest) XXX_Unmarshal(b []byte) error
type PinMatrixAck ¶
type PinMatrixAck struct { Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Computer responds with encoded PIN @prev PinMatrixRequest
func (*PinMatrixAck) Descriptor ¶
func (*PinMatrixAck) Descriptor() ([]byte, []int)
func (*PinMatrixAck) GetPin ¶
func (m *PinMatrixAck) GetPin() string
func (*PinMatrixAck) ProtoMessage ¶
func (*PinMatrixAck) ProtoMessage()
func (*PinMatrixAck) Reset ¶
func (m *PinMatrixAck) Reset()
func (*PinMatrixAck) String ¶
func (m *PinMatrixAck) String() string
func (*PinMatrixAck) XXX_DiscardUnknown ¶
func (m *PinMatrixAck) XXX_DiscardUnknown()
func (*PinMatrixAck) XXX_Marshal ¶
func (m *PinMatrixAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PinMatrixAck) XXX_Merge ¶
func (m *PinMatrixAck) XXX_Merge(src proto.Message)
func (*PinMatrixAck) XXX_Size ¶
func (m *PinMatrixAck) XXX_Size() int
func (*PinMatrixAck) XXX_Unmarshal ¶
func (m *PinMatrixAck) XXX_Unmarshal(b []byte) error
type PinMatrixRequest ¶
type PinMatrixRequest struct { Type PinMatrixRequestType `protobuf:"varint,1,opt,name=type,proto3,enum=trezor.PinMatrixRequestType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device is asking computer to show PIN matrix and awaits PIN encoded using this matrix scheme @next PinMatrixAck @next Cancel
func (*PinMatrixRequest) Descriptor ¶
func (*PinMatrixRequest) Descriptor() ([]byte, []int)
func (*PinMatrixRequest) GetType ¶
func (m *PinMatrixRequest) GetType() PinMatrixRequestType
func (*PinMatrixRequest) ProtoMessage ¶
func (*PinMatrixRequest) ProtoMessage()
func (*PinMatrixRequest) Reset ¶
func (m *PinMatrixRequest) Reset()
func (*PinMatrixRequest) String ¶
func (m *PinMatrixRequest) String() string
func (*PinMatrixRequest) XXX_DiscardUnknown ¶
func (m *PinMatrixRequest) XXX_DiscardUnknown()
func (*PinMatrixRequest) XXX_Marshal ¶
func (m *PinMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PinMatrixRequest) XXX_Merge ¶
func (m *PinMatrixRequest) XXX_Merge(src proto.Message)
func (*PinMatrixRequest) XXX_Size ¶
func (m *PinMatrixRequest) XXX_Size() int
func (*PinMatrixRequest) XXX_Unmarshal ¶
func (m *PinMatrixRequest) XXX_Unmarshal(b []byte) error
type PinMatrixRequestType ¶
type PinMatrixRequestType int32
* Type of PIN request @used_in PinMatrixRequest
const ( PinMatrixRequestType_PinMatrixRequestType_Current PinMatrixRequestType = 0 PinMatrixRequestType_PinMatrixRequestType_NewFirst PinMatrixRequestType = 2 PinMatrixRequestType_PinMatrixRequestType_NewSecond PinMatrixRequestType = 3 )
func (PinMatrixRequestType) EnumDescriptor ¶
func (PinMatrixRequestType) EnumDescriptor() ([]byte, []int)
func (PinMatrixRequestType) String ¶
func (x PinMatrixRequestType) String() string
type Ping ¶
type Ping struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` ButtonProtection bool `protobuf:"varint,2,opt,name=button_protection,json=buttonProtection,proto3" json:"button_protection,omitempty"` PinProtection bool `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"` PassphraseProtection bool `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Test if the device is alive, device sends back the message in Success response @next Success
func (*Ping) Descriptor ¶
func (*Ping) GetButtonProtection ¶
func (*Ping) GetMessage ¶
func (*Ping) GetPassphraseProtection ¶
func (*Ping) GetPinProtection ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type ProtoField ¶
type ProtoField struct {
// contains filtered or unexported fields
}
type PublicKey ¶
type PublicKey struct { Node *HDNodeType `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` Xpub string `protobuf:"bytes,2,opt,name=xpub,proto3" json:"xpub,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Contains public key derived from device private seed @prev GetPublicKey
func (*PublicKey) Descriptor ¶
func (*PublicKey) GetNode ¶
func (m *PublicKey) GetNode() *HDNodeType
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) XXX_DiscardUnknown ¶
func (m *PublicKey) XXX_DiscardUnknown()
func (*PublicKey) XXX_Marshal ¶
func (*PublicKey) XXX_Unmarshal ¶
type RecoveryDevice ¶
type RecoveryDevice struct { WordCount uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount,proto3" json:"word_count,omitempty"` PassphraseProtection bool `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` PinProtection bool `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"` Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"` Label string `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"` EnforceWordlist bool `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist,proto3" json:"enforce_wordlist,omitempty"` // 7 reserved for unused recovery method Type uint32 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` U2FCounter uint32 `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"` DryRun bool `protobuf:"varint,10,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Start recovery workflow asking user for specific words of mnemonic Used to recovery device safely even on untrusted computer. @next WordRequest
func (*RecoveryDevice) Descriptor ¶
func (*RecoveryDevice) Descriptor() ([]byte, []int)
func (*RecoveryDevice) GetDryRun ¶
func (m *RecoveryDevice) GetDryRun() bool
func (*RecoveryDevice) GetEnforceWordlist ¶
func (m *RecoveryDevice) GetEnforceWordlist() bool
func (*RecoveryDevice) GetLabel ¶
func (m *RecoveryDevice) GetLabel() string
func (*RecoveryDevice) GetLanguage ¶
func (m *RecoveryDevice) GetLanguage() string
func (*RecoveryDevice) GetPassphraseProtection ¶
func (m *RecoveryDevice) GetPassphraseProtection() bool
func (*RecoveryDevice) GetPinProtection ¶
func (m *RecoveryDevice) GetPinProtection() bool
func (*RecoveryDevice) GetType ¶
func (m *RecoveryDevice) GetType() uint32
func (*RecoveryDevice) GetU2FCounter ¶
func (m *RecoveryDevice) GetU2FCounter() uint32
func (*RecoveryDevice) GetWordCount ¶
func (m *RecoveryDevice) GetWordCount() uint32
func (*RecoveryDevice) ProtoMessage ¶
func (*RecoveryDevice) ProtoMessage()
func (*RecoveryDevice) Reset ¶
func (m *RecoveryDevice) Reset()
func (*RecoveryDevice) String ¶
func (m *RecoveryDevice) String() string
func (*RecoveryDevice) XXX_DiscardUnknown ¶
func (m *RecoveryDevice) XXX_DiscardUnknown()
func (*RecoveryDevice) XXX_Marshal ¶
func (m *RecoveryDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RecoveryDevice) XXX_Merge ¶
func (m *RecoveryDevice) XXX_Merge(src proto.Message)
func (*RecoveryDevice) XXX_Size ¶
func (m *RecoveryDevice) XXX_Size() int
func (*RecoveryDevice) XXX_Unmarshal ¶
func (m *RecoveryDevice) XXX_Unmarshal(b []byte) error
type RecoveryDeviceType ¶
type 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.
@used_in RecoveryDevice
const ( // use powers of two when extending this field RecoveryDeviceType_RecoveryDeviceType_ScrambledWords RecoveryDeviceType = 0 RecoveryDeviceType_RecoveryDeviceType_Matrix RecoveryDeviceType = 1 )
func (RecoveryDeviceType) EnumDescriptor ¶
func (RecoveryDeviceType) EnumDescriptor() ([]byte, []int)
func (RecoveryDeviceType) String ¶
func (x RecoveryDeviceType) String() string
type RequestType ¶
type RequestType int32
* Type of information by transaction signing process @used_in TxRequest
const ( RequestType_TXINPUT RequestType = 0 RequestType_TXOUTPUT RequestType = 1 RequestType_TXMETA RequestType = 2 RequestType_TXFINISHED RequestType = 3 RequestType_TXEXTRADATA RequestType = 4 )
func (RequestType) EnumDescriptor ¶
func (RequestType) EnumDescriptor() ([]byte, []int)
func (RequestType) String ¶
func (x RequestType) String() string
type ResetDevice ¶
type ResetDevice struct { DisplayRandom bool `protobuf:"varint,1,opt,name=display_random,json=displayRandom,proto3" json:"display_random,omitempty"` Strength uint32 `protobuf:"varint,2,opt,name=strength,proto3" json:"strength,omitempty"` PassphraseProtection bool `protobuf:"varint,3,opt,name=passphrase_protection,json=passphraseProtection,proto3" json:"passphrase_protection,omitempty"` PinProtection bool `protobuf:"varint,4,opt,name=pin_protection,json=pinProtection,proto3" json:"pin_protection,omitempty"` Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` U2FCounter uint32 `protobuf:"varint,7,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"` SkipBackup bool `protobuf:"varint,8,opt,name=skip_backup,json=skipBackup,proto3" json:"skip_backup,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to do initialization involving user interaction @next EntropyRequest @next Failure
func (*ResetDevice) Descriptor ¶
func (*ResetDevice) Descriptor() ([]byte, []int)
func (*ResetDevice) GetDisplayRandom ¶
func (m *ResetDevice) GetDisplayRandom() bool
func (*ResetDevice) GetLabel ¶
func (m *ResetDevice) GetLabel() string
func (*ResetDevice) GetLanguage ¶
func (m *ResetDevice) GetLanguage() string
func (*ResetDevice) GetPassphraseProtection ¶
func (m *ResetDevice) GetPassphraseProtection() bool
func (*ResetDevice) GetPinProtection ¶
func (m *ResetDevice) GetPinProtection() bool
func (*ResetDevice) GetSkipBackup ¶
func (m *ResetDevice) GetSkipBackup() bool
func (*ResetDevice) GetStrength ¶
func (m *ResetDevice) GetStrength() uint32
func (*ResetDevice) GetU2FCounter ¶
func (m *ResetDevice) GetU2FCounter() uint32
func (*ResetDevice) ProtoMessage ¶
func (*ResetDevice) ProtoMessage()
func (*ResetDevice) Reset ¶
func (m *ResetDevice) Reset()
func (*ResetDevice) String ¶
func (m *ResetDevice) String() string
func (*ResetDevice) XXX_DiscardUnknown ¶
func (m *ResetDevice) XXX_DiscardUnknown()
func (*ResetDevice) XXX_Marshal ¶
func (m *ResetDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResetDevice) XXX_Merge ¶
func (m *ResetDevice) XXX_Merge(src proto.Message)
func (*ResetDevice) XXX_Size ¶
func (m *ResetDevice) XXX_Size() int
func (*ResetDevice) XXX_Unmarshal ¶
func (m *ResetDevice) XXX_Unmarshal(b []byte) error
type SelfTest ¶
type SelfTest struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Perform a device self-test @next Success @next Failure
func (*SelfTest) Descriptor ¶
func (*SelfTest) GetPayload ¶
func (*SelfTest) ProtoMessage ¶
func (*SelfTest) ProtoMessage()
func (*SelfTest) XXX_DiscardUnknown ¶
func (m *SelfTest) XXX_DiscardUnknown()
func (*SelfTest) XXX_Marshal ¶
func (*SelfTest) XXX_Unmarshal ¶
type SetU2FCounter ¶
type SetU2FCounter struct { U2FCounter uint32 `protobuf:"varint,1,opt,name=u2f_counter,json=u2fCounter,proto3" json:"u2f_counter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Set U2F counter @next Success
func (*SetU2FCounter) Descriptor ¶
func (*SetU2FCounter) Descriptor() ([]byte, []int)
func (*SetU2FCounter) GetU2FCounter ¶
func (m *SetU2FCounter) GetU2FCounter() uint32
func (*SetU2FCounter) ProtoMessage ¶
func (*SetU2FCounter) ProtoMessage()
func (*SetU2FCounter) Reset ¶
func (m *SetU2FCounter) Reset()
func (*SetU2FCounter) String ¶
func (m *SetU2FCounter) String() string
func (*SetU2FCounter) XXX_DiscardUnknown ¶
func (m *SetU2FCounter) XXX_DiscardUnknown()
func (*SetU2FCounter) XXX_Marshal ¶
func (m *SetU2FCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetU2FCounter) XXX_Merge ¶
func (m *SetU2FCounter) XXX_Merge(src proto.Message)
func (*SetU2FCounter) XXX_Size ¶
func (m *SetU2FCounter) XXX_Size() int
func (*SetU2FCounter) XXX_Unmarshal ¶
func (m *SetU2FCounter) XXX_Unmarshal(b []byte) error
type SignIdentity ¶
type SignIdentity struct { Identity *IdentityType `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` ChallengeHidden []byte `protobuf:"bytes,2,opt,name=challenge_hidden,json=challengeHidden,proto3" json:"challenge_hidden,omitempty"` ChallengeVisual string `protobuf:"bytes,3,opt,name=challenge_visual,json=challengeVisual,proto3" json:"challenge_visual,omitempty"` EcdsaCurveName string `protobuf:"bytes,4,opt,name=ecdsa_curve_name,json=ecdsaCurveName,proto3" json:"ecdsa_curve_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to sign identity @next SignedIdentity @next Failure
func (*SignIdentity) Descriptor ¶
func (*SignIdentity) Descriptor() ([]byte, []int)
func (*SignIdentity) GetChallengeHidden ¶
func (m *SignIdentity) GetChallengeHidden() []byte
func (*SignIdentity) GetChallengeVisual ¶
func (m *SignIdentity) GetChallengeVisual() string
func (*SignIdentity) GetEcdsaCurveName ¶
func (m *SignIdentity) GetEcdsaCurveName() string
func (*SignIdentity) GetIdentity ¶
func (m *SignIdentity) GetIdentity() *IdentityType
func (*SignIdentity) ProtoMessage ¶
func (*SignIdentity) ProtoMessage()
func (*SignIdentity) Reset ¶
func (m *SignIdentity) Reset()
func (*SignIdentity) String ¶
func (m *SignIdentity) String() string
func (*SignIdentity) XXX_DiscardUnknown ¶
func (m *SignIdentity) XXX_DiscardUnknown()
func (*SignIdentity) XXX_Marshal ¶
func (m *SignIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignIdentity) XXX_Merge ¶
func (m *SignIdentity) XXX_Merge(src proto.Message)
func (*SignIdentity) XXX_Size ¶
func (m *SignIdentity) XXX_Size() int
func (*SignIdentity) XXX_Unmarshal ¶
func (m *SignIdentity) XXX_Unmarshal(b []byte) error
type SignMessage ¶
type SignMessage struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` CoinName string `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` ScriptType InputScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to sign message @next MessageSignature @next Failure
func (*SignMessage) Descriptor ¶
func (*SignMessage) Descriptor() ([]byte, []int)
func (*SignMessage) GetAddressN ¶
func (m *SignMessage) GetAddressN() []uint32
func (*SignMessage) GetCoinName ¶
func (m *SignMessage) GetCoinName() string
func (*SignMessage) GetMessage ¶
func (m *SignMessage) GetMessage() []byte
func (*SignMessage) GetScriptType ¶
func (m *SignMessage) GetScriptType() InputScriptType
func (*SignMessage) ProtoMessage ¶
func (*SignMessage) ProtoMessage()
func (*SignMessage) Reset ¶
func (m *SignMessage) Reset()
func (*SignMessage) String ¶
func (m *SignMessage) String() string
func (*SignMessage) XXX_DiscardUnknown ¶
func (m *SignMessage) XXX_DiscardUnknown()
func (*SignMessage) XXX_Marshal ¶
func (m *SignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignMessage) XXX_Merge ¶
func (m *SignMessage) XXX_Merge(src proto.Message)
func (*SignMessage) XXX_Size ¶
func (m *SignMessage) XXX_Size() int
func (*SignMessage) XXX_Unmarshal ¶
func (m *SignMessage) XXX_Unmarshal(b []byte) error
type SignTx ¶
type SignTx struct { OutputsCount uint32 `protobuf:"varint,1,opt,name=outputs_count,json=outputsCount,proto3" json:"outputs_count,omitempty"` InputsCount uint32 `protobuf:"varint,2,opt,name=inputs_count,json=inputsCount,proto3" json:"inputs_count,omitempty"` CoinName string `protobuf:"bytes,3,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` LockTime uint32 `protobuf:"varint,5,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to sign transaction @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure
func (*SignTx) Descriptor ¶
func (*SignTx) GetCoinName ¶
func (*SignTx) GetInputsCount ¶
func (*SignTx) GetLockTime ¶
func (*SignTx) GetOutputsCount ¶
func (*SignTx) GetVersion ¶
func (*SignTx) ProtoMessage ¶
func (*SignTx) ProtoMessage()
func (*SignTx) XXX_DiscardUnknown ¶
func (m *SignTx) XXX_DiscardUnknown()
func (*SignTx) XXX_Marshal ¶
func (*SignTx) XXX_Unmarshal ¶
type SignedIdentity ¶
type SignedIdentity struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device provides signed identity @prev SignIdentity
func (*SignedIdentity) Descriptor ¶
func (*SignedIdentity) Descriptor() ([]byte, []int)
func (*SignedIdentity) GetAddress ¶
func (m *SignedIdentity) GetAddress() string
func (*SignedIdentity) GetPublicKey ¶
func (m *SignedIdentity) GetPublicKey() []byte
func (*SignedIdentity) GetSignature ¶
func (m *SignedIdentity) GetSignature() []byte
func (*SignedIdentity) ProtoMessage ¶
func (*SignedIdentity) ProtoMessage()
func (*SignedIdentity) Reset ¶
func (m *SignedIdentity) Reset()
func (*SignedIdentity) String ¶
func (m *SignedIdentity) String() string
func (*SignedIdentity) XXX_DiscardUnknown ¶
func (m *SignedIdentity) XXX_DiscardUnknown()
func (*SignedIdentity) XXX_Marshal ¶
func (m *SignedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedIdentity) XXX_Merge ¶
func (m *SignedIdentity) XXX_Merge(src proto.Message)
func (*SignedIdentity) XXX_Size ¶
func (m *SignedIdentity) XXX_Size() int
func (*SignedIdentity) XXX_Unmarshal ¶
func (m *SignedIdentity) XXX_Unmarshal(b []byte) error
type SimpleSignTx ¶
type SimpleSignTx struct { Inputs []*TxInputType `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*TxOutputType `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` Transactions []*TransactionType `protobuf:"bytes,3,rep,name=transactions,proto3" json:"transactions,omitempty"` CoinName string `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` LockTime uint32 `protobuf:"varint,6,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Simplified transaction signing This method doesn't support streaming, so there are hardware limits in number of inputs and outputs. In case of success, the result is returned using TxRequest message. @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure
func (*SimpleSignTx) Descriptor ¶
func (*SimpleSignTx) Descriptor() ([]byte, []int)
func (*SimpleSignTx) GetCoinName ¶
func (m *SimpleSignTx) GetCoinName() string
func (*SimpleSignTx) GetInputs ¶
func (m *SimpleSignTx) GetInputs() []*TxInputType
func (*SimpleSignTx) GetLockTime ¶
func (m *SimpleSignTx) GetLockTime() uint32
func (*SimpleSignTx) GetOutputs ¶
func (m *SimpleSignTx) GetOutputs() []*TxOutputType
func (*SimpleSignTx) GetTransactions ¶
func (m *SimpleSignTx) GetTransactions() []*TransactionType
func (*SimpleSignTx) GetVersion ¶
func (m *SimpleSignTx) GetVersion() uint32
func (*SimpleSignTx) ProtoMessage ¶
func (*SimpleSignTx) ProtoMessage()
func (*SimpleSignTx) Reset ¶
func (m *SimpleSignTx) Reset()
func (*SimpleSignTx) String ¶
func (m *SimpleSignTx) String() string
func (*SimpleSignTx) XXX_DiscardUnknown ¶
func (m *SimpleSignTx) XXX_DiscardUnknown()
func (*SimpleSignTx) XXX_Marshal ¶
func (m *SimpleSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SimpleSignTx) XXX_Merge ¶
func (m *SimpleSignTx) XXX_Merge(src proto.Message)
func (*SimpleSignTx) XXX_Size ¶
func (m *SimpleSignTx) XXX_Size() int
func (*SimpleSignTx) XXX_Unmarshal ¶
func (m *SimpleSignTx) XXX_Unmarshal(b []byte) error
type Success ¶
type Success struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Success of the previous request
func (*Success) Descriptor ¶
func (*Success) GetMessage ¶
func (*Success) ProtoMessage ¶
func (*Success) ProtoMessage()
func (*Success) XXX_DiscardUnknown ¶
func (m *Success) XXX_DiscardUnknown()
func (*Success) XXX_Marshal ¶
func (*Success) XXX_Unmarshal ¶
type ThetaAddress ¶
type ThetaAddress struct { Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Contains an Theta address derived from device private seed @prev ThetaGetAddress
func (*ThetaAddress) Descriptor ¶
func (*ThetaAddress) Descriptor() ([]byte, []int)
func (*ThetaAddress) GetAddress ¶
func (m *ThetaAddress) GetAddress() []byte
func (*ThetaAddress) ProtoMessage ¶
func (*ThetaAddress) ProtoMessage()
func (*ThetaAddress) Reset ¶
func (m *ThetaAddress) Reset()
func (*ThetaAddress) String ¶
func (m *ThetaAddress) String() string
func (*ThetaAddress) XXX_DiscardUnknown ¶
func (m *ThetaAddress) XXX_DiscardUnknown()
func (*ThetaAddress) XXX_Marshal ¶
func (m *ThetaAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaAddress) XXX_Merge ¶
func (m *ThetaAddress) XXX_Merge(src proto.Message)
func (*ThetaAddress) XXX_Size ¶
func (m *ThetaAddress) XXX_Size() int
func (*ThetaAddress) XXX_Unmarshal ¶
func (m *ThetaAddress) XXX_Unmarshal(b []byte) error
type ThetaGetAddress ¶
type ThetaGetAddress struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` ShowDisplay bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay,proto3" json:"show_display,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device for Theta address corresponding to address_n path @next PassphraseRequest @next ThetaAddress @next Failure
func (*ThetaGetAddress) Descriptor ¶
func (*ThetaGetAddress) Descriptor() ([]byte, []int)
func (*ThetaGetAddress) GetAddressN ¶
func (m *ThetaGetAddress) GetAddressN() []uint32
func (*ThetaGetAddress) GetShowDisplay ¶
func (m *ThetaGetAddress) GetShowDisplay() bool
func (*ThetaGetAddress) ProtoMessage ¶
func (*ThetaGetAddress) ProtoMessage()
func (*ThetaGetAddress) Reset ¶
func (m *ThetaGetAddress) Reset()
func (*ThetaGetAddress) String ¶
func (m *ThetaGetAddress) String() string
func (*ThetaGetAddress) XXX_DiscardUnknown ¶
func (m *ThetaGetAddress) XXX_DiscardUnknown()
func (*ThetaGetAddress) XXX_Marshal ¶
func (m *ThetaGetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaGetAddress) XXX_Merge ¶
func (m *ThetaGetAddress) XXX_Merge(src proto.Message)
func (*ThetaGetAddress) XXX_Size ¶
func (m *ThetaGetAddress) XXX_Size() int
func (*ThetaGetAddress) XXX_Unmarshal ¶
func (m *ThetaGetAddress) XXX_Unmarshal(b []byte) error
type ThetaMessageSignature ¶
type ThetaMessageSignature struct { Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Signed message @prev ThetaSignMessage
func (*ThetaMessageSignature) Descriptor ¶
func (*ThetaMessageSignature) Descriptor() ([]byte, []int)
func (*ThetaMessageSignature) GetAddress ¶
func (m *ThetaMessageSignature) GetAddress() []byte
func (*ThetaMessageSignature) GetSignature ¶
func (m *ThetaMessageSignature) GetSignature() []byte
func (*ThetaMessageSignature) ProtoMessage ¶
func (*ThetaMessageSignature) ProtoMessage()
func (*ThetaMessageSignature) Reset ¶
func (m *ThetaMessageSignature) Reset()
func (*ThetaMessageSignature) String ¶
func (m *ThetaMessageSignature) String() string
func (*ThetaMessageSignature) XXX_DiscardUnknown ¶
func (m *ThetaMessageSignature) XXX_DiscardUnknown()
func (*ThetaMessageSignature) XXX_Marshal ¶
func (m *ThetaMessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaMessageSignature) XXX_Merge ¶
func (m *ThetaMessageSignature) XXX_Merge(src proto.Message)
func (*ThetaMessageSignature) XXX_Size ¶
func (m *ThetaMessageSignature) XXX_Size() int
func (*ThetaMessageSignature) XXX_Unmarshal ¶
func (m *ThetaMessageSignature) XXX_Unmarshal(b []byte) error
type ThetaSignMessage ¶
type ThetaSignMessage struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to sign message @next ThetaMessageSignature @next Failure
func (*ThetaSignMessage) Descriptor ¶
func (*ThetaSignMessage) Descriptor() ([]byte, []int)
func (*ThetaSignMessage) GetAddressN ¶
func (m *ThetaSignMessage) GetAddressN() []uint32
func (*ThetaSignMessage) GetMessage ¶
func (m *ThetaSignMessage) GetMessage() []byte
func (*ThetaSignMessage) ProtoMessage ¶
func (*ThetaSignMessage) ProtoMessage()
func (*ThetaSignMessage) Reset ¶
func (m *ThetaSignMessage) Reset()
func (*ThetaSignMessage) String ¶
func (m *ThetaSignMessage) String() string
func (*ThetaSignMessage) XXX_DiscardUnknown ¶
func (m *ThetaSignMessage) XXX_DiscardUnknown()
func (*ThetaSignMessage) XXX_Marshal ¶
func (m *ThetaSignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaSignMessage) XXX_Merge ¶
func (m *ThetaSignMessage) XXX_Merge(src proto.Message)
func (*ThetaSignMessage) XXX_Size ¶
func (m *ThetaSignMessage) XXX_Size() int
func (*ThetaSignMessage) XXX_Unmarshal ¶
func (m *ThetaSignMessage) XXX_Unmarshal(b []byte) error
type ThetaSignTx ¶
type ThetaSignTx struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` GasLimit []byte `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` To []byte `protobuf:"bytes,11,opt,name=to,proto3" json:"to,omitempty"` Value []byte `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty"` DataInitialChunk []byte `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk,proto3" json:"data_initial_chunk,omitempty"` DataLength uint32 `protobuf:"varint,8,opt,name=data_length,json=dataLength,proto3" json:"data_length,omitempty"` // ChainId uint32 `protobuf:"varint,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to sign transaction All fields are 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. @next PassphraseRequest @next PinMatrixRequest @next ThetaTxRequest @next Failure
func (*ThetaSignTx) Descriptor ¶
func (*ThetaSignTx) Descriptor() ([]byte, []int)
func (*ThetaSignTx) GetAddressN ¶
func (m *ThetaSignTx) GetAddressN() []uint32
func (*ThetaSignTx) GetDataInitialChunk ¶
func (m *ThetaSignTx) GetDataInitialChunk() []byte
func (*ThetaSignTx) GetDataLength ¶
func (m *ThetaSignTx) GetDataLength() uint32
func (*ThetaSignTx) GetGasLimit ¶
func (m *ThetaSignTx) GetGasLimit() []byte
func (*ThetaSignTx) GetGasPrice ¶
func (m *ThetaSignTx) GetGasPrice() []byte
func (*ThetaSignTx) GetNonce ¶
func (m *ThetaSignTx) GetNonce() []byte
func (*ThetaSignTx) GetTo ¶
func (m *ThetaSignTx) GetTo() []byte
func (*ThetaSignTx) GetValue ¶
func (m *ThetaSignTx) GetValue() []byte
func (*ThetaSignTx) ProtoMessage ¶
func (*ThetaSignTx) ProtoMessage()
func (*ThetaSignTx) Reset ¶
func (m *ThetaSignTx) Reset()
func (*ThetaSignTx) String ¶
func (m *ThetaSignTx) String() string
func (*ThetaSignTx) XXX_DiscardUnknown ¶
func (m *ThetaSignTx) XXX_DiscardUnknown()
func (*ThetaSignTx) XXX_Marshal ¶
func (m *ThetaSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaSignTx) XXX_Merge ¶
func (m *ThetaSignTx) XXX_Merge(src proto.Message)
func (*ThetaSignTx) XXX_Size ¶
func (m *ThetaSignTx) XXX_Size() int
func (*ThetaSignTx) XXX_Unmarshal ¶
func (m *ThetaSignTx) XXX_Unmarshal(b []byte) error
type ThetaTxAck ¶
type ThetaTxAck struct { DataChunk []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk,proto3" json:"data_chunk,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Transaction payload data. @prev ThetaTxRequest @next ThetaTxRequest
func (*ThetaTxAck) Descriptor ¶
func (*ThetaTxAck) Descriptor() ([]byte, []int)
func (*ThetaTxAck) GetDataChunk ¶
func (m *ThetaTxAck) GetDataChunk() []byte
func (*ThetaTxAck) ProtoMessage ¶
func (*ThetaTxAck) ProtoMessage()
func (*ThetaTxAck) Reset ¶
func (m *ThetaTxAck) Reset()
func (*ThetaTxAck) String ¶
func (m *ThetaTxAck) String() string
func (*ThetaTxAck) XXX_DiscardUnknown ¶
func (m *ThetaTxAck) XXX_DiscardUnknown()
func (*ThetaTxAck) XXX_Marshal ¶
func (m *ThetaTxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaTxAck) XXX_Merge ¶
func (m *ThetaTxAck) XXX_Merge(src proto.Message)
func (*ThetaTxAck) XXX_Size ¶
func (m *ThetaTxAck) XXX_Size() int
func (*ThetaTxAck) XXX_Unmarshal ¶
func (m *ThetaTxAck) XXX_Unmarshal(b []byte) error
type ThetaTxRequest ¶
type ThetaTxRequest struct { DataLength uint32 `protobuf:"varint,1,opt,name=data_length,json=dataLength,proto3" json:"data_length,omitempty"` SignatureV uint32 `protobuf:"varint,2,opt,name=signature_v,json=signatureV,proto3" json:"signature_v,omitempty"` SignatureR []byte `protobuf:"bytes,3,opt,name=signature_r,json=signatureR,proto3" json:"signature_r,omitempty"` SignatureS []byte `protobuf:"bytes,4,opt,name=signature_s,json=signatureS,proto3" json:"signature_s,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device asks for more data from transaction payload, or returns the signature. If data_length is set, device awaits that many more bytes of payload. Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present. @prev ThetaSignTx @next ThetaTxAck
func (*ThetaTxRequest) Descriptor ¶
func (*ThetaTxRequest) Descriptor() ([]byte, []int)
func (*ThetaTxRequest) GetDataLength ¶
func (m *ThetaTxRequest) GetDataLength() uint32
func (*ThetaTxRequest) GetSignatureR ¶
func (m *ThetaTxRequest) GetSignatureR() []byte
func (*ThetaTxRequest) GetSignatureS ¶
func (m *ThetaTxRequest) GetSignatureS() []byte
func (*ThetaTxRequest) GetSignatureV ¶
func (m *ThetaTxRequest) GetSignatureV() uint32
func (*ThetaTxRequest) ProtoMessage ¶
func (*ThetaTxRequest) ProtoMessage()
func (*ThetaTxRequest) Reset ¶
func (m *ThetaTxRequest) Reset()
func (*ThetaTxRequest) String ¶
func (m *ThetaTxRequest) String() string
func (*ThetaTxRequest) XXX_DiscardUnknown ¶
func (m *ThetaTxRequest) XXX_DiscardUnknown()
func (*ThetaTxRequest) XXX_Marshal ¶
func (m *ThetaTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaTxRequest) XXX_Merge ¶
func (m *ThetaTxRequest) XXX_Merge(src proto.Message)
func (*ThetaTxRequest) XXX_Size ¶
func (m *ThetaTxRequest) XXX_Size() int
func (*ThetaTxRequest) XXX_Unmarshal ¶
func (m *ThetaTxRequest) XXX_Unmarshal(b []byte) error
type ThetaVerifyMessage ¶
type ThetaVerifyMessage struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to verify message @next Success @next Failure
func (*ThetaVerifyMessage) Descriptor ¶
func (*ThetaVerifyMessage) Descriptor() ([]byte, []int)
func (*ThetaVerifyMessage) GetAddress ¶
func (m *ThetaVerifyMessage) GetAddress() []byte
func (*ThetaVerifyMessage) GetMessage ¶
func (m *ThetaVerifyMessage) GetMessage() []byte
func (*ThetaVerifyMessage) GetSignature ¶
func (m *ThetaVerifyMessage) GetSignature() []byte
func (*ThetaVerifyMessage) ProtoMessage ¶
func (*ThetaVerifyMessage) ProtoMessage()
func (*ThetaVerifyMessage) Reset ¶
func (m *ThetaVerifyMessage) Reset()
func (*ThetaVerifyMessage) String ¶
func (m *ThetaVerifyMessage) String() string
func (*ThetaVerifyMessage) XXX_DiscardUnknown ¶
func (m *ThetaVerifyMessage) XXX_DiscardUnknown()
func (*ThetaVerifyMessage) XXX_Marshal ¶
func (m *ThetaVerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThetaVerifyMessage) XXX_Merge ¶
func (m *ThetaVerifyMessage) XXX_Merge(src proto.Message)
func (*ThetaVerifyMessage) XXX_Size ¶
func (m *ThetaVerifyMessage) XXX_Size() int
func (*ThetaVerifyMessage) XXX_Unmarshal ¶
func (m *ThetaVerifyMessage) XXX_Unmarshal(b []byte) error
type TransactionType ¶
type TransactionType struct { Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` Inputs []*TxInputType `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` BinOutputs []*TxOutputBinType `protobuf:"bytes,3,rep,name=bin_outputs,json=binOutputs,proto3" json:"bin_outputs,omitempty"` Outputs []*TxOutputType `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` LockTime uint32 `protobuf:"varint,4,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` InputsCnt uint32 `protobuf:"varint,6,opt,name=inputs_cnt,json=inputsCnt,proto3" json:"inputs_cnt,omitempty"` OutputsCnt uint32 `protobuf:"varint,7,opt,name=outputs_cnt,json=outputsCnt,proto3" json:"outputs_cnt,omitempty"` ExtraData []byte `protobuf:"bytes,8,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` ExtraDataLen uint32 `protobuf:"varint,9,opt,name=extra_data_len,json=extraDataLen,proto3" json:"extra_data_len,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing transaction @used_in SimpleSignTx
func (*TransactionType) Descriptor ¶
func (*TransactionType) Descriptor() ([]byte, []int)
func (*TransactionType) GetBinOutputs ¶
func (m *TransactionType) GetBinOutputs() []*TxOutputBinType
func (*TransactionType) GetExtraData ¶
func (m *TransactionType) GetExtraData() []byte
func (*TransactionType) GetExtraDataLen ¶
func (m *TransactionType) GetExtraDataLen() uint32
func (*TransactionType) GetInputs ¶
func (m *TransactionType) GetInputs() []*TxInputType
func (*TransactionType) GetInputsCnt ¶
func (m *TransactionType) GetInputsCnt() uint32
func (*TransactionType) GetLockTime ¶
func (m *TransactionType) GetLockTime() uint32
func (*TransactionType) GetOutputs ¶
func (m *TransactionType) GetOutputs() []*TxOutputType
func (*TransactionType) GetOutputsCnt ¶
func (m *TransactionType) GetOutputsCnt() uint32
func (*TransactionType) GetVersion ¶
func (m *TransactionType) GetVersion() uint32
func (*TransactionType) ProtoMessage ¶
func (*TransactionType) ProtoMessage()
func (*TransactionType) Reset ¶
func (m *TransactionType) Reset()
func (*TransactionType) String ¶
func (m *TransactionType) String() string
func (*TransactionType) XXX_DiscardUnknown ¶
func (m *TransactionType) XXX_DiscardUnknown()
func (*TransactionType) XXX_Marshal ¶
func (m *TransactionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionType) XXX_Merge ¶
func (m *TransactionType) XXX_Merge(src proto.Message)
func (*TransactionType) XXX_Size ¶
func (m *TransactionType) XXX_Size() int
func (*TransactionType) XXX_Unmarshal ¶
func (m *TransactionType) XXX_Unmarshal(b []byte) error
type TrezorUI ¶
type TrezorUI struct {
// contains filtered or unexported fields
}
func NewTrezorUI ¶
func (*TrezorUI) ButtonRequest ¶
func (ui *TrezorUI) ButtonRequest()
func (*TrezorUI) GetPassphrase ¶
func (*TrezorUI) GetPin ¶
func (ui *TrezorUI) GetPin(code PinMatrixRequestType) string
type TxAck ¶
type TxAck struct { Tx *TransactionType `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Reported transaction data @prev TxRequest @next TxRequest
func (*TxAck) Descriptor ¶
func (*TxAck) GetTx ¶
func (m *TxAck) GetTx() *TransactionType
func (*TxAck) ProtoMessage ¶
func (*TxAck) ProtoMessage()
func (*TxAck) XXX_DiscardUnknown ¶
func (m *TxAck) XXX_DiscardUnknown()
func (*TxAck) XXX_Marshal ¶
func (*TxAck) XXX_Unmarshal ¶
type TxInputType ¶
type TxInputType struct { AddressN []uint32 `protobuf:"varint,1,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` PrevHash []byte `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"` PrevIndex uint32 `protobuf:"varint,3,opt,name=prev_index,json=prevIndex,proto3" json:"prev_index,omitempty"` ScriptSig []byte `protobuf:"bytes,4,opt,name=script_sig,json=scriptSig,proto3" json:"script_sig,omitempty"` Sequence uint32 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` ScriptType InputScriptType `protobuf:"varint,6,opt,name=script_type,json=scriptType,proto3,enum=trezor.InputScriptType" json:"script_type,omitempty"` Multisig *MultisigRedeemScriptType `protobuf:"bytes,7,opt,name=multisig,proto3" json:"multisig,omitempty"` Amount uint64 `protobuf:"varint,8,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing transaction input @used_in SimpleSignTx @used_in TransactionType
func (*TxInputType) Descriptor ¶
func (*TxInputType) Descriptor() ([]byte, []int)
func (*TxInputType) GetAddressN ¶
func (m *TxInputType) GetAddressN() []uint32
func (*TxInputType) GetAmount ¶
func (m *TxInputType) GetAmount() uint64
func (*TxInputType) GetMultisig ¶
func (m *TxInputType) GetMultisig() *MultisigRedeemScriptType
func (*TxInputType) GetPrevHash ¶
func (m *TxInputType) GetPrevHash() []byte
func (*TxInputType) GetPrevIndex ¶
func (m *TxInputType) GetPrevIndex() uint32
func (*TxInputType) GetScriptSig ¶
func (m *TxInputType) GetScriptSig() []byte
func (*TxInputType) GetScriptType ¶
func (m *TxInputType) GetScriptType() InputScriptType
func (*TxInputType) GetSequence ¶
func (m *TxInputType) GetSequence() uint32
func (*TxInputType) ProtoMessage ¶
func (*TxInputType) ProtoMessage()
func (*TxInputType) Reset ¶
func (m *TxInputType) Reset()
func (*TxInputType) String ¶
func (m *TxInputType) String() string
func (*TxInputType) XXX_DiscardUnknown ¶
func (m *TxInputType) XXX_DiscardUnknown()
func (*TxInputType) XXX_Marshal ¶
func (m *TxInputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxInputType) XXX_Merge ¶
func (m *TxInputType) XXX_Merge(src proto.Message)
func (*TxInputType) XXX_Size ¶
func (m *TxInputType) XXX_Size() int
func (*TxInputType) XXX_Unmarshal ¶
func (m *TxInputType) XXX_Unmarshal(b []byte) error
type TxOutputBinType ¶
type TxOutputBinType struct { Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` ScriptPubkey []byte `protobuf:"bytes,2,opt,name=script_pubkey,json=scriptPubkey,proto3" json:"script_pubkey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing compiled transaction output @used_in TransactionType
func (*TxOutputBinType) Descriptor ¶
func (*TxOutputBinType) Descriptor() ([]byte, []int)
func (*TxOutputBinType) GetAmount ¶
func (m *TxOutputBinType) GetAmount() uint64
func (*TxOutputBinType) GetScriptPubkey ¶
func (m *TxOutputBinType) GetScriptPubkey() []byte
func (*TxOutputBinType) ProtoMessage ¶
func (*TxOutputBinType) ProtoMessage()
func (*TxOutputBinType) Reset ¶
func (m *TxOutputBinType) Reset()
func (*TxOutputBinType) String ¶
func (m *TxOutputBinType) String() string
func (*TxOutputBinType) XXX_DiscardUnknown ¶
func (m *TxOutputBinType) XXX_DiscardUnknown()
func (*TxOutputBinType) XXX_Marshal ¶
func (m *TxOutputBinType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxOutputBinType) XXX_Merge ¶
func (m *TxOutputBinType) XXX_Merge(src proto.Message)
func (*TxOutputBinType) XXX_Size ¶
func (m *TxOutputBinType) XXX_Size() int
func (*TxOutputBinType) XXX_Unmarshal ¶
func (m *TxOutputBinType) XXX_Unmarshal(b []byte) error
type TxOutputType ¶
type TxOutputType struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AddressN []uint32 `protobuf:"varint,2,rep,packed,name=address_n,json=addressN,proto3" json:"address_n,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` ScriptType OutputScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,proto3,enum=trezor.OutputScriptType" json:"script_type,omitempty"` Multisig *MultisigRedeemScriptType `protobuf:"bytes,5,opt,name=multisig,proto3" json:"multisig,omitempty"` OpReturnData []byte `protobuf:"bytes,6,opt,name=op_return_data,json=opReturnData,proto3" json:"op_return_data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing transaction output @used_in SimpleSignTx @used_in TransactionType
func (*TxOutputType) Descriptor ¶
func (*TxOutputType) Descriptor() ([]byte, []int)
func (*TxOutputType) GetAddress ¶
func (m *TxOutputType) GetAddress() string
func (*TxOutputType) GetAddressN ¶
func (m *TxOutputType) GetAddressN() []uint32
func (*TxOutputType) GetAmount ¶
func (m *TxOutputType) GetAmount() uint64
func (*TxOutputType) GetMultisig ¶
func (m *TxOutputType) GetMultisig() *MultisigRedeemScriptType
func (*TxOutputType) GetOpReturnData ¶
func (m *TxOutputType) GetOpReturnData() []byte
func (*TxOutputType) GetScriptType ¶
func (m *TxOutputType) GetScriptType() OutputScriptType
func (*TxOutputType) ProtoMessage ¶
func (*TxOutputType) ProtoMessage()
func (*TxOutputType) Reset ¶
func (m *TxOutputType) Reset()
func (*TxOutputType) String ¶
func (m *TxOutputType) String() string
func (*TxOutputType) XXX_DiscardUnknown ¶
func (m *TxOutputType) XXX_DiscardUnknown()
func (*TxOutputType) XXX_Marshal ¶
func (m *TxOutputType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxOutputType) XXX_Merge ¶
func (m *TxOutputType) XXX_Merge(src proto.Message)
func (*TxOutputType) XXX_Size ¶
func (m *TxOutputType) XXX_Size() int
func (*TxOutputType) XXX_Unmarshal ¶
func (m *TxOutputType) XXX_Unmarshal(b []byte) error
type TxRequest ¶
type TxRequest struct { RequestType RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=trezor.RequestType" json:"request_type,omitempty"` Details *TxRequestDetailsType `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` Serialized *TxRequestSerializedType `protobuf:"bytes,3,opt,name=serialized,proto3" json:"serialized,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device asks for information for signing transaction or returns the last result If request_index is set, device awaits TxAck message (with fields filled in according to request_type) If signature_index is set, 'signature' contains signed input of signature_index's input @prev SignTx @prev SimpleSignTx @prev TxAck
func (*TxRequest) Descriptor ¶
func (*TxRequest) GetDetails ¶
func (m *TxRequest) GetDetails() *TxRequestDetailsType
func (*TxRequest) GetRequestType ¶
func (m *TxRequest) GetRequestType() RequestType
func (*TxRequest) GetSerialized ¶
func (m *TxRequest) GetSerialized() *TxRequestSerializedType
func (*TxRequest) ProtoMessage ¶
func (*TxRequest) ProtoMessage()
func (*TxRequest) XXX_DiscardUnknown ¶
func (m *TxRequest) XXX_DiscardUnknown()
func (*TxRequest) XXX_Marshal ¶
func (*TxRequest) XXX_Unmarshal ¶
type TxRequestDetailsType ¶
type TxRequestDetailsType struct { RequestIndex uint32 `protobuf:"varint,1,opt,name=request_index,json=requestIndex,proto3" json:"request_index,omitempty"` TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` ExtraDataLen uint32 `protobuf:"varint,3,opt,name=extra_data_len,json=extraDataLen,proto3" json:"extra_data_len,omitempty"` ExtraDataOffset uint32 `protobuf:"varint,4,opt,name=extra_data_offset,json=extraDataOffset,proto3" json:"extra_data_offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing request details @used_in TxRequest
func (*TxRequestDetailsType) Descriptor ¶
func (*TxRequestDetailsType) Descriptor() ([]byte, []int)
func (*TxRequestDetailsType) GetExtraDataLen ¶
func (m *TxRequestDetailsType) GetExtraDataLen() uint32
func (*TxRequestDetailsType) GetExtraDataOffset ¶
func (m *TxRequestDetailsType) GetExtraDataOffset() uint32
func (*TxRequestDetailsType) GetRequestIndex ¶
func (m *TxRequestDetailsType) GetRequestIndex() uint32
func (*TxRequestDetailsType) GetTxHash ¶
func (m *TxRequestDetailsType) GetTxHash() []byte
func (*TxRequestDetailsType) ProtoMessage ¶
func (*TxRequestDetailsType) ProtoMessage()
func (*TxRequestDetailsType) Reset ¶
func (m *TxRequestDetailsType) Reset()
func (*TxRequestDetailsType) String ¶
func (m *TxRequestDetailsType) String() string
func (*TxRequestDetailsType) XXX_DiscardUnknown ¶
func (m *TxRequestDetailsType) XXX_DiscardUnknown()
func (*TxRequestDetailsType) XXX_Marshal ¶
func (m *TxRequestDetailsType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxRequestDetailsType) XXX_Merge ¶
func (m *TxRequestDetailsType) XXX_Merge(src proto.Message)
func (*TxRequestDetailsType) XXX_Size ¶
func (m *TxRequestDetailsType) XXX_Size() int
func (*TxRequestDetailsType) XXX_Unmarshal ¶
func (m *TxRequestDetailsType) XXX_Unmarshal(b []byte) error
type TxRequestSerializedType ¶
type TxRequestSerializedType struct { SignatureIndex uint32 `protobuf:"varint,1,opt,name=signature_index,json=signatureIndex,proto3" json:"signature_index,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` SerializedTx []byte `protobuf:"bytes,3,opt,name=serialized_tx,json=serializedTx,proto3" json:"serialized_tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Structure representing serialized data @used_in TxRequest
func (*TxRequestSerializedType) Descriptor ¶
func (*TxRequestSerializedType) Descriptor() ([]byte, []int)
func (*TxRequestSerializedType) GetSerializedTx ¶
func (m *TxRequestSerializedType) GetSerializedTx() []byte
func (*TxRequestSerializedType) GetSignature ¶
func (m *TxRequestSerializedType) GetSignature() []byte
func (*TxRequestSerializedType) GetSignatureIndex ¶
func (m *TxRequestSerializedType) GetSignatureIndex() uint32
func (*TxRequestSerializedType) ProtoMessage ¶
func (*TxRequestSerializedType) ProtoMessage()
func (*TxRequestSerializedType) Reset ¶
func (m *TxRequestSerializedType) Reset()
func (*TxRequestSerializedType) String ¶
func (m *TxRequestSerializedType) String() string
func (*TxRequestSerializedType) XXX_DiscardUnknown ¶
func (m *TxRequestSerializedType) XXX_DiscardUnknown()
func (*TxRequestSerializedType) XXX_Marshal ¶
func (m *TxRequestSerializedType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxRequestSerializedType) XXX_Merge ¶
func (m *TxRequestSerializedType) XXX_Merge(src proto.Message)
func (*TxRequestSerializedType) XXX_Size ¶
func (m *TxRequestSerializedType) XXX_Size() int
func (*TxRequestSerializedType) XXX_Unmarshal ¶
func (m *TxRequestSerializedType) XXX_Unmarshal(b []byte) error
type TxSize ¶
type TxSize struct { TxSize uint32 `protobuf:"varint,1,opt,name=tx_size,json=txSize,proto3" json:"tx_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Estimated size of the transaction @prev EstimateTxSize
func (*TxSize) Descriptor ¶
func (*TxSize) ProtoMessage ¶
func (*TxSize) ProtoMessage()
func (*TxSize) XXX_DiscardUnknown ¶
func (m *TxSize) XXX_DiscardUnknown()
func (*TxSize) XXX_Marshal ¶
func (*TxSize) XXX_Unmarshal ¶
type VerifyMessage ¶
type VerifyMessage struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` CoinName string `protobuf:"bytes,4,opt,name=coin_name,json=coinName,proto3" json:"coin_name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Ask device to verify message @next Success @next Failure
func (*VerifyMessage) Descriptor ¶
func (*VerifyMessage) Descriptor() ([]byte, []int)
func (*VerifyMessage) GetAddress ¶
func (m *VerifyMessage) GetAddress() string
func (*VerifyMessage) GetCoinName ¶
func (m *VerifyMessage) GetCoinName() string
func (*VerifyMessage) GetMessage ¶
func (m *VerifyMessage) GetMessage() []byte
func (*VerifyMessage) GetSignature ¶
func (m *VerifyMessage) GetSignature() []byte
func (*VerifyMessage) ProtoMessage ¶
func (*VerifyMessage) ProtoMessage()
func (*VerifyMessage) Reset ¶
func (m *VerifyMessage) Reset()
func (*VerifyMessage) String ¶
func (m *VerifyMessage) String() string
func (*VerifyMessage) XXX_DiscardUnknown ¶
func (m *VerifyMessage) XXX_DiscardUnknown()
func (*VerifyMessage) XXX_Marshal ¶
func (m *VerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyMessage) XXX_Merge ¶
func (m *VerifyMessage) XXX_Merge(src proto.Message)
func (*VerifyMessage) XXX_Size ¶
func (m *VerifyMessage) XXX_Size() int
func (*VerifyMessage) XXX_Unmarshal ¶
func (m *VerifyMessage) XXX_Unmarshal(b []byte) error
type WipeDevice ¶
type WipeDevice struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Request device to wipe all sensitive data and settings @next ButtonRequest
func (*WipeDevice) Descriptor ¶
func (*WipeDevice) Descriptor() ([]byte, []int)
func (*WipeDevice) ProtoMessage ¶
func (*WipeDevice) ProtoMessage()
func (*WipeDevice) Reset ¶
func (m *WipeDevice) Reset()
func (*WipeDevice) String ¶
func (m *WipeDevice) String() string
func (*WipeDevice) XXX_DiscardUnknown ¶
func (m *WipeDevice) XXX_DiscardUnknown()
func (*WipeDevice) XXX_Marshal ¶
func (m *WipeDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WipeDevice) XXX_Merge ¶
func (m *WipeDevice) XXX_Merge(src proto.Message)
func (*WipeDevice) XXX_Size ¶
func (m *WipeDevice) XXX_Size() int
func (*WipeDevice) XXX_Unmarshal ¶
func (m *WipeDevice) XXX_Unmarshal(b []byte) error
type WordAck ¶
type WordAck struct { Word string `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Request: Computer replies with word from the mnemonic @prev WordRequest @next WordRequest @next Success @next Failure
func (*WordAck) Descriptor ¶
func (*WordAck) ProtoMessage ¶
func (*WordAck) ProtoMessage()
func (*WordAck) XXX_DiscardUnknown ¶
func (m *WordAck) XXX_DiscardUnknown()
func (*WordAck) XXX_Marshal ¶
func (*WordAck) XXX_Unmarshal ¶
type WordRequest ¶
type WordRequest struct { Type WordRequestType `protobuf:"varint,1,opt,name=type,proto3,enum=trezor.WordRequestType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
* Response: Device is waiting for user to enter word of the mnemonic Its position is shown only on device's internal display. @prev RecoveryDevice @prev WordAck
func (*WordRequest) Descriptor ¶
func (*WordRequest) Descriptor() ([]byte, []int)
func (*WordRequest) GetType ¶
func (m *WordRequest) GetType() WordRequestType
func (*WordRequest) ProtoMessage ¶
func (*WordRequest) ProtoMessage()
func (*WordRequest) Reset ¶
func (m *WordRequest) Reset()
func (*WordRequest) String ¶
func (m *WordRequest) String() string
func (*WordRequest) XXX_DiscardUnknown ¶
func (m *WordRequest) XXX_DiscardUnknown()
func (*WordRequest) XXX_Marshal ¶
func (m *WordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WordRequest) XXX_Merge ¶
func (m *WordRequest) XXX_Merge(src proto.Message)
func (*WordRequest) XXX_Size ¶
func (m *WordRequest) XXX_Size() int
func (*WordRequest) XXX_Unmarshal ¶
func (m *WordRequest) XXX_Unmarshal(b []byte) error
type WordRequestType ¶
type WordRequestType int32
* Type of Recovery Word request @used_in WordRequest
const ( WordRequestType_WordRequestType_Plain WordRequestType = 0 WordRequestType_WordRequestType_Matrix9 WordRequestType = 1 WordRequestType_WordRequestType_Matrix6 WordRequestType = 2 )
func (WordRequestType) EnumDescriptor ¶
func (WordRequestType) EnumDescriptor() ([]byte, []int)
func (WordRequestType) String ¶
func (x WordRequestType) String() string