trezor

package
v0.0.0-...-93ea4c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package trezor contains the wire protocol wrapper in Go.

Package trezor is a generated protocol buffer package.

It is generated from these files:

types.proto
messages.proto

It has these top-level messages:

HDNodeType
HDNodePathType
CoinType
MultisigRedeemScriptType
TxInputType
TxOutputType
TxOutputBinType
TransactionType
TxRequestDetailsType
TxRequestSerializedType
IdentityType
Initialize
GetFeatures
Features
ClearSession
ApplySettings
ApplyFlags
ChangePin
Ping
Success
Failure
ButtonRequest
ButtonAck
PinMatrixRequest
PinMatrixAck
Cancel
PassphraseRequest
PassphraseAck
GetEntropy
Entropy
GetPublicKey
PublicKey
GetAddress
EthereumGetAddress
Address
EthereumAddress
WipeDevice
LoadDevice
ResetDevice
BackupDevice
EntropyRequest
EntropyAck
RecoveryDevice
WordRequest
WordAck
SignMessage
VerifyMessage
MessageSignature
EncryptMessage
EncryptedMessage
DecryptMessage
DecryptedMessage
CipherKeyValue
CipheredKeyValue
EstimateTxSize
TxSize
SignTx
SimpleSignTx
TxRequest
TxAck
EthereumSignTx
EthereumTxRequest
EthereumTxAck
EthereumSignMessage
EthereumVerifyMessage
EthereumMessageSignature
SignIdentity
SignedIdentity
GetECDHSessionKey
ECDHSessionKey
SetU2FCounter
FirmwareErase
FirmwareRequest
FirmwareUpload
SelfTest
DebugLinkDecision
DebugLinkGetState
DebugLinkState
DebugLinkStop
DebugLinkLog
DebugLinkMemoryRead
DebugLinkMemory
DebugLinkMemoryWrite
DebugLinkFlashErase

Index

Constants

View Source
const Default_CoinType_AddressType uint32 = 0
View Source
const Default_CoinType_AddressTypeP2Sh uint32 = 5
View Source
const Default_CoinType_XprvMagic uint32 = 76066276
View Source
const Default_CoinType_XpubMagic uint32 = 76067358
View Source
const Default_EncryptMessage_CoinName string = "Bitcoin"
View Source
const Default_EstimateTxSize_CoinName string = "Bitcoin"
View Source
const Default_GetAddress_CoinName string = "Bitcoin"
View Source
const Default_GetPublicKey_CoinName string = "Bitcoin"
View Source
const Default_IdentityType_Index uint32 = 0
View Source
const Default_LoadDevice_Language string = "english"
View Source
const Default_RecoveryDevice_Language string = "english"
View Source
const Default_ResetDevice_Language string = "english"
View Source
const Default_ResetDevice_Strength uint32 = 256
View Source
const Default_SignMessage_CoinName string = "Bitcoin"
View Source
const Default_SignTx_CoinName string = "Bitcoin"
View Source
const Default_SignTx_LockTime uint32 = 0
View Source
const Default_SignTx_Version uint32 = 1
View Source
const Default_SimpleSignTx_CoinName string = "Bitcoin"
View Source
const Default_SimpleSignTx_LockTime uint32 = 0
View Source
const Default_SimpleSignTx_Version uint32 = 1
View Source
const Default_TxInputType_Sequence uint32 = 4294967295
View Source
const Default_VerifyMessage_CoinName string = "Bitcoin"

Variables

View Source
var ButtonRequestType_name = map[int32]string{
	1:  "ButtonRequest_Other",
	2:  "ButtonRequest_FeeOverThreshold",
	3:  "ButtonRequest_ConfirmOutput",
	4:  "ButtonRequest_ResetDevice",
	5:  "ButtonRequest_ConfirmWord",
	6:  "ButtonRequest_WipeDevice",
	7:  "ButtonRequest_ProtectCall",
	8:  "ButtonRequest_SignTx",
	9:  "ButtonRequest_FirmwareCheck",
	10: "ButtonRequest_Address",
	11: "ButtonRequest_PublicKey",
}
View Source
var ButtonRequestType_value = map[string]int32{
	"ButtonRequest_Other":            1,
	"ButtonRequest_FeeOverThreshold": 2,
	"ButtonRequest_ConfirmOutput":    3,
	"ButtonRequest_ResetDevice":      4,
	"ButtonRequest_ConfirmWord":      5,
	"ButtonRequest_WipeDevice":       6,
	"ButtonRequest_ProtectCall":      7,
	"ButtonRequest_SignTx":           8,
	"ButtonRequest_FirmwareCheck":    9,
	"ButtonRequest_Address":          10,
	"ButtonRequest_PublicKey":        11,
}
View Source
var E_WireBootloader = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50007,
	Name:          "wire_bootloader",
	Tag:           "varint,50007,opt,name=wire_bootloader,json=wireBootloader",
	Filename:      "types.proto",
}
View Source
var E_WireDebugIn = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50004,
	Name:          "wire_debug_in",
	Tag:           "varint,50004,opt,name=wire_debug_in,json=wireDebugIn",
	Filename:      "types.proto",
}
View Source
var E_WireDebugOut = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50005,
	Name:          "wire_debug_out",
	Tag:           "varint,50005,opt,name=wire_debug_out,json=wireDebugOut",
	Filename:      "types.proto",
}
View Source
var E_WireIn = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50002,
	Name:          "wire_in",
	Tag:           "varint,50002,opt,name=wire_in,json=wireIn",
	Filename:      "types.proto",
}
View Source
var E_WireOut = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50003,
	Name:          "wire_out",
	Tag:           "varint,50003,opt,name=wire_out,json=wireOut",
	Filename:      "types.proto",
}
View Source
var E_WireTiny = &proto.ExtensionDesc{
	ExtendedType:  (*google_protobuf.EnumValueOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         50006,
	Name:          "wire_tiny",
	Tag:           "varint,50006,opt,name=wire_tiny,json=wireTiny",
	Filename:      "types.proto",
}
View Source
var FailureType_name = map[int32]string{
	1:  "Failure_UnexpectedMessage",
	2:  "Failure_ButtonExpected",
	3:  "Failure_DataError",
	4:  "Failure_ActionCancelled",
	5:  "Failure_PinExpected",
	6:  "Failure_PinCancelled",
	7:  "Failure_PinInvalid",
	8:  "Failure_InvalidSignature",
	9:  "Failure_ProcessError",
	10: "Failure_NotEnoughFunds",
	11: "Failure_NotInitialized",
	99: "Failure_FirmwareError",
}
View Source
var FailureType_value = map[string]int32{
	"Failure_UnexpectedMessage": 1,
	"Failure_ButtonExpected":    2,
	"Failure_DataError":         3,
	"Failure_ActionCancelled":   4,
	"Failure_PinExpected":       5,
	"Failure_PinCancelled":      6,
	"Failure_PinInvalid":        7,
	"Failure_InvalidSignature":  8,
	"Failure_ProcessError":      9,
	"Failure_NotEnoughFunds":    10,
	"Failure_NotInitialized":    11,
	"Failure_FirmwareError":     99,
}
View Source
var InputScriptType_name = map[int32]string{
	0: "SPENDADDRESS",
	1: "SPENDMULTISIG",
	2: "EXTERNAL",
	3: "SPENDWITNESS",
	4: "SPENDP2SHWITNESS",
}
View Source
var InputScriptType_value = map[string]int32{
	"SPENDADDRESS":     0,
	"SPENDMULTISIG":    1,
	"EXTERNAL":         2,
	"SPENDWITNESS":     3,
	"SPENDP2SHWITNESS": 4,
}
View Source
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_EthereumGetAddress",
	57:  "MessageType_EthereumAddress",
	58:  "MessageType_EthereumSignTx",
	59:  "MessageType_EthereumTxRequest",
	60:  "MessageType_EthereumTxAck",
	61:  "MessageType_GetECDHSessionKey",
	62:  "MessageType_ECDHSessionKey",
	63:  "MessageType_SetU2FCounter",
	64:  "MessageType_EthereumSignMessage",
	65:  "MessageType_EthereumVerifyMessage",
	66:  "MessageType_EthereumMessageSignature",
	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",
}
View Source
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_EthereumGetAddress":       56,
	"MessageType_EthereumAddress":          57,
	"MessageType_EthereumSignTx":           58,
	"MessageType_EthereumTxRequest":        59,
	"MessageType_EthereumTxAck":            60,
	"MessageType_GetECDHSessionKey":        61,
	"MessageType_ECDHSessionKey":           62,
	"MessageType_SetU2FCounter":            63,
	"MessageType_EthereumSignMessage":      64,
	"MessageType_EthereumVerifyMessage":    65,
	"MessageType_EthereumMessageSignature": 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,
}
View Source
var OutputScriptType_name = map[int32]string{
	0: "PAYTOADDRESS",
	1: "PAYTOSCRIPTHASH",
	2: "PAYTOMULTISIG",
	3: "PAYTOOPRETURN",
	4: "PAYTOWITNESS",
	5: "PAYTOP2SHWITNESS",
}
View Source
var OutputScriptType_value = map[string]int32{
	"PAYTOADDRESS":     0,
	"PAYTOSCRIPTHASH":  1,
	"PAYTOMULTISIG":    2,
	"PAYTOOPRETURN":    3,
	"PAYTOWITNESS":     4,
	"PAYTOP2SHWITNESS": 5,
}
View Source
var PinMatrixRequestType_name = map[int32]string{
	1: "PinMatrixRequestType_Current",
	2: "PinMatrixRequestType_NewFirst",
	3: "PinMatrixRequestType_NewSecond",
}
View Source
var PinMatrixRequestType_value = map[string]int32{
	"PinMatrixRequestType_Current":   1,
	"PinMatrixRequestType_NewFirst":  2,
	"PinMatrixRequestType_NewSecond": 3,
}
View Source
var RecoveryDeviceType_name = map[int32]string{
	0: "RecoveryDeviceType_ScrambledWords",
	1: "RecoveryDeviceType_Matrix",
}
View Source
var RecoveryDeviceType_value = map[string]int32{
	"RecoveryDeviceType_ScrambledWords": 0,
	"RecoveryDeviceType_Matrix":         1,
}
View Source
var RequestType_name = map[int32]string{
	0: "TXINPUT",
	1: "TXOUTPUT",
	2: "TXMETA",
	3: "TXFINISHED",
	4: "TXEXTRADATA",
}
View Source
var RequestType_value = map[string]int32{
	"TXINPUT":     0,
	"TXOUTPUT":    1,
	"TXMETA":      2,
	"TXFINISHED":  3,
	"TXEXTRADATA": 4,
}
View Source
var WordRequestType_name = map[int32]string{
	0: "WordRequestType_Plain",
	1: "WordRequestType_Matrix9",
	2: "WordRequestType_Matrix6",
}
View Source
var WordRequestType_value = map[string]int32{
	"WordRequestType_Plain":   0,
	"WordRequestType_Matrix9": 1,
	"WordRequestType_Matrix6": 2,
}

Functions

func Name

func Name(kind uint16) string

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

func Type

func Type(msg proto.Message) uint16

Type returns the protocol buffer type number of a specific message. If the message is nil, this method panics!

Types

type Address

type Address struct {
	Address          *string `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

* Response: Contains address derived from device private seed @prev GetAddress

func (*Address) Descriptor

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

func (*Address) GetAddress

func (m *Address) GetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type ApplyFlags

type ApplyFlags struct {
	Flags            *uint32 `protobuf:"varint,1,opt,name=flags" json:"flags,omitempty"`
	XXX_unrecognized []byte  `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

type ApplySettings

type ApplySettings struct {
	Language         *string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
	Label            *string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"`
	UsePassphrase    *bool   `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase" json:"use_passphrase,omitempty"`
	Homescreen       []byte  `protobuf:"bytes,4,opt,name=homescreen" json:"homescreen,omitempty"`
	XXX_unrecognized []byte  `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

type BackupDevice

type BackupDevice struct {
	XXX_unrecognized []byte `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

type ButtonAck

type ButtonAck struct {
	XXX_unrecognized []byte `json:"-"`
}

* Request: Computer agrees to wait for HW button press @prev ButtonRequest

func (*ButtonAck) Descriptor

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

func (*ButtonAck) ProtoMessage

func (*ButtonAck) ProtoMessage()

func (*ButtonAck) Reset

func (m *ButtonAck) Reset()

func (*ButtonAck) String

func (m *ButtonAck) String() string

type ButtonRequest

type ButtonRequest struct {
	Code             *ButtonRequestType `protobuf:"varint,1,opt,name=code,enum=ButtonRequestType" json:"code,omitempty"`
	Data             *string            `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
	XXX_unrecognized []byte             `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

type ButtonRequestType

type ButtonRequestType int32

* Type of button request @used_in ButtonRequest

const (
	ButtonRequestType_ButtonRequest_Other            ButtonRequestType = 1
	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) Enum

func (ButtonRequestType) EnumDescriptor

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

func (ButtonRequestType) String

func (x ButtonRequestType) String() string

func (*ButtonRequestType) UnmarshalJSON

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

type Cancel

type Cancel struct {
	XXX_unrecognized []byte `json:"-"`
}

* Request: Abort last operation that required user interaction @prev ButtonRequest @prev PinMatrixRequest @prev PassphraseRequest

func (*Cancel) Descriptor

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

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) Reset

func (m *Cancel) Reset()

func (*Cancel) String

func (m *Cancel) String() string

type ChangePin

type ChangePin struct {
	Remove           *bool  `protobuf:"varint,1,opt,name=remove" json:"remove,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Request: Starts workflow for setting/changing/removing the PIN @next ButtonRequest @next PinMatrixRequest

func (*ChangePin) Descriptor

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

func (*ChangePin) GetRemove

func (m *ChangePin) GetRemove() bool

func (*ChangePin) ProtoMessage

func (*ChangePin) ProtoMessage()

func (*ChangePin) Reset

func (m *ChangePin) Reset()

func (*ChangePin) String

func (m *ChangePin) String() string

type CipherKeyValue

type CipherKeyValue struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Key              *string  `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"`
	Value            []byte   `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	Encrypt          *bool    `protobuf:"varint,4,opt,name=encrypt" json:"encrypt,omitempty"`
	AskOnEncrypt     *bool    `protobuf:"varint,5,opt,name=ask_on_encrypt,json=askOnEncrypt" json:"ask_on_encrypt,omitempty"`
	AskOnDecrypt     *bool    `protobuf:"varint,6,opt,name=ask_on_decrypt,json=askOnDecrypt" json:"ask_on_decrypt,omitempty"`
	Iv               []byte   `protobuf:"bytes,7,opt,name=iv" json:"iv,omitempty"`
	XXX_unrecognized []byte   `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

type CipheredKeyValue

type CipheredKeyValue struct {
	Value            []byte `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	XXX_unrecognized []byte `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

type ClearSession

type ClearSession struct {
	XXX_unrecognized []byte `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

type CoinType

type CoinType struct {
	CoinName            *string `protobuf:"bytes,1,opt,name=coin_name,json=coinName" json:"coin_name,omitempty"`
	CoinShortcut        *string `protobuf:"bytes,2,opt,name=coin_shortcut,json=coinShortcut" json:"coin_shortcut,omitempty"`
	AddressType         *uint32 `protobuf:"varint,3,opt,name=address_type,json=addressType,def=0" json:"address_type,omitempty"`
	MaxfeeKb            *uint64 `protobuf:"varint,4,opt,name=maxfee_kb,json=maxfeeKb" json:"maxfee_kb,omitempty"`
	AddressTypeP2Sh     *uint32 `protobuf:"varint,5,opt,name=address_type_p2sh,json=addressTypeP2sh,def=5" json:"address_type_p2sh,omitempty"`
	SignedMessageHeader *string `protobuf:"bytes,8,opt,name=signed_message_header,json=signedMessageHeader" json:"signed_message_header,omitempty"`
	XpubMagic           *uint32 `protobuf:"varint,9,opt,name=xpub_magic,json=xpubMagic,def=76067358" json:"xpub_magic,omitempty"`
	XprvMagic           *uint32 `protobuf:"varint,10,opt,name=xprv_magic,json=xprvMagic,def=76066276" json:"xprv_magic,omitempty"`
	Segwit              *bool   `protobuf:"varint,11,opt,name=segwit" json:"segwit,omitempty"`
	Forkid              *uint32 `protobuf:"varint,12,opt,name=forkid" json:"forkid,omitempty"`
	XXX_unrecognized    []byte  `json:"-"`
}

* Structure representing Coin @used_in Features

func (*CoinType) Descriptor

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

func (*CoinType) GetAddressType

func (m *CoinType) GetAddressType() uint32

func (*CoinType) GetAddressTypeP2Sh

func (m *CoinType) GetAddressTypeP2Sh() uint32

func (*CoinType) GetCoinName

func (m *CoinType) GetCoinName() string

func (*CoinType) GetCoinShortcut

func (m *CoinType) GetCoinShortcut() string

func (*CoinType) GetForkid

func (m *CoinType) GetForkid() uint32

func (*CoinType) GetMaxfeeKb

func (m *CoinType) GetMaxfeeKb() uint64

func (*CoinType) GetSegwit

func (m *CoinType) GetSegwit() bool

func (*CoinType) GetSignedMessageHeader

func (m *CoinType) GetSignedMessageHeader() string

func (*CoinType) GetXprvMagic

func (m *CoinType) GetXprvMagic() uint32

func (*CoinType) GetXpubMagic

func (m *CoinType) GetXpubMagic() uint32

func (*CoinType) ProtoMessage

func (*CoinType) ProtoMessage()

func (*CoinType) Reset

func (m *CoinType) Reset()

func (*CoinType) String

func (m *CoinType) String() string

type DebugLinkDecision

type DebugLinkDecision struct {
	YesNo            *bool  `protobuf:"varint,1,req,name=yes_no,json=yesNo" json:"yes_no,omitempty"`
	XXX_unrecognized []byte `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

type DebugLinkFlashErase

type DebugLinkFlashErase struct {
	Sector           *uint32 `protobuf:"varint,1,opt,name=sector" json:"sector,omitempty"`
	XXX_unrecognized []byte  `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

type DebugLinkGetState

type DebugLinkGetState struct {
	XXX_unrecognized []byte `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

type DebugLinkLog

type DebugLinkLog struct {
	Level            *uint32 `protobuf:"varint,1,opt,name=level" json:"level,omitempty"`
	Bucket           *string `protobuf:"bytes,2,opt,name=bucket" json:"bucket,omitempty"`
	Text             *string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
	XXX_unrecognized []byte  `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

type DebugLinkMemory

type DebugLinkMemory struct {
	Memory           []byte `protobuf:"bytes,1,opt,name=memory" json:"memory,omitempty"`
	XXX_unrecognized []byte `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

type DebugLinkMemoryRead

type DebugLinkMemoryRead struct {
	Address          *uint32 `protobuf:"varint,1,opt,name=address" json:"address,omitempty"`
	Length           *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"`
	XXX_unrecognized []byte  `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

type DebugLinkMemoryWrite

type DebugLinkMemoryWrite struct {
	Address          *uint32 `protobuf:"varint,1,opt,name=address" json:"address,omitempty"`
	Memory           []byte  `protobuf:"bytes,2,opt,name=memory" json:"memory,omitempty"`
	Flash            *bool   `protobuf:"varint,3,opt,name=flash" json:"flash,omitempty"`
	XXX_unrecognized []byte  `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

type DebugLinkState

type DebugLinkState struct {
	Layout               []byte      `protobuf:"bytes,1,opt,name=layout" json:"layout,omitempty"`
	Pin                  *string     `protobuf:"bytes,2,opt,name=pin" json:"pin,omitempty"`
	Matrix               *string     `protobuf:"bytes,3,opt,name=matrix" json:"matrix,omitempty"`
	Mnemonic             *string     `protobuf:"bytes,4,opt,name=mnemonic" json:"mnemonic,omitempty"`
	Node                 *HDNodeType `protobuf:"bytes,5,opt,name=node" json:"node,omitempty"`
	PassphraseProtection *bool       `protobuf:"varint,6,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	ResetWord            *string     `protobuf:"bytes,7,opt,name=reset_word,json=resetWord" json:"reset_word,omitempty"`
	ResetEntropy         []byte      `protobuf:"bytes,8,opt,name=reset_entropy,json=resetEntropy" json:"reset_entropy,omitempty"`
	RecoveryFakeWord     *string     `protobuf:"bytes,9,opt,name=recovery_fake_word,json=recoveryFakeWord" json:"recovery_fake_word,omitempty"`
	RecoveryWordPos      *uint32     `protobuf:"varint,10,opt,name=recovery_word_pos,json=recoveryWordPos" json:"recovery_word_pos,omitempty"`
	XXX_unrecognized     []byte      `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

type DebugLinkStop

type DebugLinkStop struct {
	XXX_unrecognized []byte `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

type DecryptMessage

type DecryptMessage struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Nonce            []byte   `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"`
	Message          []byte   `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	Hmac             []byte   `protobuf:"bytes,4,opt,name=hmac" json:"hmac,omitempty"`
	XXX_unrecognized []byte   `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

type DecryptedMessage

type DecryptedMessage struct {
	Message          []byte  `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Address          *string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte  `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

type ECDHSessionKey

type ECDHSessionKey struct {
	SessionKey       []byte `protobuf:"bytes,1,opt,name=session_key,json=sessionKey" json:"session_key,omitempty"`
	XXX_unrecognized []byte `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

type EncryptMessage

type EncryptMessage struct {
	Pubkey           []byte   `protobuf:"bytes,1,opt,name=pubkey" json:"pubkey,omitempty"`
	Message          []byte   `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	DisplayOnly      *bool    `protobuf:"varint,3,opt,name=display_only,json=displayOnly" json:"display_only,omitempty"`
	AddressN         []uint32 `protobuf:"varint,4,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	CoinName         *string  `protobuf:"bytes,5,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	XXX_unrecognized []byte   `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

type EncryptedMessage

type EncryptedMessage struct {
	Nonce            []byte `protobuf:"bytes,1,opt,name=nonce" json:"nonce,omitempty"`
	Message          []byte `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	Hmac             []byte `protobuf:"bytes,3,opt,name=hmac" json:"hmac,omitempty"`
	XXX_unrecognized []byte `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

type Entropy

type Entropy struct {
	Entropy          []byte `protobuf:"bytes,1,req,name=entropy" json:"entropy,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Response: Reply with random data generated by internal RNG @prev GetEntropy

func (*Entropy) Descriptor

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

func (*Entropy) GetEntropy

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

func (*Entropy) ProtoMessage

func (*Entropy) ProtoMessage()

func (*Entropy) Reset

func (m *Entropy) Reset()

func (*Entropy) String

func (m *Entropy) String() string

type EntropyAck

type EntropyAck struct {
	Entropy          []byte `protobuf:"bytes,1,opt,name=entropy" json:"entropy,omitempty"`
	XXX_unrecognized []byte `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

type EntropyRequest

type EntropyRequest struct {
	XXX_unrecognized []byte `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

type EstimateTxSize

type EstimateTxSize struct {
	OutputsCount     *uint32 `protobuf:"varint,1,req,name=outputs_count,json=outputsCount" json:"outputs_count,omitempty"`
	InputsCount      *uint32 `protobuf:"varint,2,req,name=inputs_count,json=inputsCount" json:"inputs_count,omitempty"`
	CoinName         *string `protobuf:"bytes,3,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	XXX_unrecognized []byte  `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

type EthereumAddress

type EthereumAddress struct {
	Address          []byte `protobuf:"bytes,1,req,name=address" json:"address,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Response: Contains an Ethereum address derived from device private seed @prev EthereumGetAddress

func (*EthereumAddress) Descriptor

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

func (*EthereumAddress) GetAddress

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

func (*EthereumAddress) ProtoMessage

func (*EthereumAddress) ProtoMessage()

func (*EthereumAddress) Reset

func (m *EthereumAddress) Reset()

func (*EthereumAddress) String

func (m *EthereumAddress) String() string

type EthereumGetAddress

type EthereumGetAddress struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	ShowDisplay      *bool    `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

* Request: Ask device for Ethereum address corresponding to address_n path @next PassphraseRequest @next EthereumAddress @next Failure

func (*EthereumGetAddress) Descriptor

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

func (*EthereumGetAddress) GetAddressN

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

func (*EthereumGetAddress) GetShowDisplay

func (m *EthereumGetAddress) GetShowDisplay() bool

func (*EthereumGetAddress) ProtoMessage

func (*EthereumGetAddress) ProtoMessage()

func (*EthereumGetAddress) Reset

func (m *EthereumGetAddress) Reset()

func (*EthereumGetAddress) String

func (m *EthereumGetAddress) String() string

type EthereumMessageSignature

type EthereumMessageSignature struct {
	Address          []byte `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Signature        []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Response: Signed message @prev EthereumSignMessage

func (*EthereumMessageSignature) Descriptor

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

func (*EthereumMessageSignature) GetAddress

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

func (*EthereumMessageSignature) GetSignature

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

func (*EthereumMessageSignature) ProtoMessage

func (*EthereumMessageSignature) ProtoMessage()

func (*EthereumMessageSignature) Reset

func (m *EthereumMessageSignature) Reset()

func (*EthereumMessageSignature) String

func (m *EthereumMessageSignature) String() string

type EthereumSignMessage

type EthereumSignMessage struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Message          []byte   `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

* Request: Ask device to sign message @next EthereumMessageSignature @next Failure

func (*EthereumSignMessage) Descriptor

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

func (*EthereumSignMessage) GetAddressN

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

func (*EthereumSignMessage) GetMessage

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

func (*EthereumSignMessage) ProtoMessage

func (*EthereumSignMessage) ProtoMessage()

func (*EthereumSignMessage) Reset

func (m *EthereumSignMessage) Reset()

func (*EthereumSignMessage) String

func (m *EthereumSignMessage) String() string

type EthereumSignTx

type EthereumSignTx struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Nonce            []byte   `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"`
	GasPrice         []byte   `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"`
	GasLimit         []byte   `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"`
	To               []byte   `protobuf:"bytes,5,opt,name=to" json:"to,omitempty"`
	Value            []byte   `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
	DataInitialChunk []byte   `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"`
	DataLength       *uint32  `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
	ChainId          *uint32  `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

* Request: Ask device to sign transaction All fields are optional from the protocol's point of view. Each field defaults to value `0` if missing. Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. @next PassphraseRequest @next PinMatrixRequest @next EthereumTxRequest @next Failure

func (*EthereumSignTx) Descriptor

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

func (*EthereumSignTx) GetAddressN

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

func (*EthereumSignTx) GetChainId

func (m *EthereumSignTx) GetChainId() uint32

func (*EthereumSignTx) GetDataInitialChunk

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

func (*EthereumSignTx) GetDataLength

func (m *EthereumSignTx) GetDataLength() uint32

func (*EthereumSignTx) GetGasLimit

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

func (*EthereumSignTx) GetGasPrice

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

func (*EthereumSignTx) GetNonce

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

func (*EthereumSignTx) GetTo

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

func (*EthereumSignTx) GetValue

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

func (*EthereumSignTx) ProtoMessage

func (*EthereumSignTx) ProtoMessage()

func (*EthereumSignTx) Reset

func (m *EthereumSignTx) Reset()

func (*EthereumSignTx) String

func (m *EthereumSignTx) String() string

type EthereumTxAck

type EthereumTxAck struct {
	DataChunk        []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Request: Transaction payload data. @prev EthereumTxRequest @next EthereumTxRequest

func (*EthereumTxAck) Descriptor

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

func (*EthereumTxAck) GetDataChunk

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

func (*EthereumTxAck) ProtoMessage

func (*EthereumTxAck) ProtoMessage()

func (*EthereumTxAck) Reset

func (m *EthereumTxAck) Reset()

func (*EthereumTxAck) String

func (m *EthereumTxAck) String() string

type EthereumTxRequest

type EthereumTxRequest struct {
	DataLength       *uint32 `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
	SignatureV       *uint32 `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"`
	SignatureR       []byte  `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"`
	SignatureS       []byte  `protobuf:"bytes,4,opt,name=signature_s,json=signatureS" json:"signature_s,omitempty"`
	XXX_unrecognized []byte  `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 EthereumSignTx @next EthereumTxAck

func (*EthereumTxRequest) Descriptor

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

func (*EthereumTxRequest) GetDataLength

func (m *EthereumTxRequest) GetDataLength() uint32

func (*EthereumTxRequest) GetSignatureR

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

func (*EthereumTxRequest) GetSignatureS

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

func (*EthereumTxRequest) GetSignatureV

func (m *EthereumTxRequest) GetSignatureV() uint32

func (*EthereumTxRequest) ProtoMessage

func (*EthereumTxRequest) ProtoMessage()

func (*EthereumTxRequest) Reset

func (m *EthereumTxRequest) Reset()

func (*EthereumTxRequest) String

func (m *EthereumTxRequest) String() string

type EthereumVerifyMessage

type EthereumVerifyMessage struct {
	Address          []byte `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Signature        []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	Message          []byte `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Request: Ask device to verify message @next Success @next Failure

func (*EthereumVerifyMessage) Descriptor

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

func (*EthereumVerifyMessage) GetAddress

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

func (*EthereumVerifyMessage) GetMessage

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

func (*EthereumVerifyMessage) GetSignature

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

func (*EthereumVerifyMessage) ProtoMessage

func (*EthereumVerifyMessage) ProtoMessage()

func (*EthereumVerifyMessage) Reset

func (m *EthereumVerifyMessage) Reset()

func (*EthereumVerifyMessage) String

func (m *EthereumVerifyMessage) String() string

type Failure

type Failure struct {
	Code             *FailureType `protobuf:"varint,1,opt,name=code,enum=FailureType" json:"code,omitempty"`
	Message          *string      `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

* Response: Failure of the previous request

func (*Failure) Descriptor

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

func (*Failure) GetCode

func (m *Failure) GetCode() FailureType

func (*Failure) GetMessage

func (m *Failure) GetMessage() string

func (*Failure) ProtoMessage

func (*Failure) ProtoMessage()

func (*Failure) Reset

func (m *Failure) Reset()

func (*Failure) String

func (m *Failure) String() string

type FailureType

type FailureType int32

* Type of failures returned by Failure message @used_in Failure

const (
	FailureType_Failure_UnexpectedMessage FailureType = 1
	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) Enum

func (x FailureType) Enum() *FailureType

func (FailureType) EnumDescriptor

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

func (FailureType) String

func (x FailureType) String() string

func (*FailureType) UnmarshalJSON

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

type Features

type Features struct {
	Vendor               *string     `protobuf:"bytes,1,opt,name=vendor" json:"vendor,omitempty"`
	MajorVersion         *uint32     `protobuf:"varint,2,opt,name=major_version,json=majorVersion" json:"major_version,omitempty"`
	MinorVersion         *uint32     `protobuf:"varint,3,opt,name=minor_version,json=minorVersion" json:"minor_version,omitempty"`
	PatchVersion         *uint32     `protobuf:"varint,4,opt,name=patch_version,json=patchVersion" json:"patch_version,omitempty"`
	BootloaderMode       *bool       `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode" json:"bootloader_mode,omitempty"`
	DeviceId             *string     `protobuf:"bytes,6,opt,name=device_id,json=deviceId" json:"device_id,omitempty"`
	PinProtection        *bool       `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	PassphraseProtection *bool       `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	Language             *string     `protobuf:"bytes,9,opt,name=language" json:"language,omitempty"`
	Label                *string     `protobuf:"bytes,10,opt,name=label" json:"label,omitempty"`
	Coins                []*CoinType `protobuf:"bytes,11,rep,name=coins" json:"coins,omitempty"`
	Initialized          *bool       `protobuf:"varint,12,opt,name=initialized" json:"initialized,omitempty"`
	Revision             []byte      `protobuf:"bytes,13,opt,name=revision" json:"revision,omitempty"`
	BootloaderHash       []byte      `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash" json:"bootloader_hash,omitempty"`
	Imported             *bool       `protobuf:"varint,15,opt,name=imported" json:"imported,omitempty"`
	PinCached            *bool       `protobuf:"varint,16,opt,name=pin_cached,json=pinCached" json:"pin_cached,omitempty"`
	PassphraseCached     *bool       `protobuf:"varint,17,opt,name=passphrase_cached,json=passphraseCached" json:"passphrase_cached,omitempty"`
	FirmwarePresent      *bool       `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent" json:"firmware_present,omitempty"`
	NeedsBackup          *bool       `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"`
	Flags                *uint32     `protobuf:"varint,20,opt,name=flags" json:"flags,omitempty"`
	XXX_unrecognized     []byte      `json:"-"`
}

* Response: Reports various information about the device @prev Initialize @prev GetFeatures

func (*Features) Descriptor

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

func (*Features) GetBootloaderHash

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

func (*Features) GetBootloaderMode

func (m *Features) GetBootloaderMode() bool

func (*Features) GetCoins

func (m *Features) GetCoins() []*CoinType

func (*Features) GetDeviceId

func (m *Features) GetDeviceId() string

func (*Features) GetFirmwarePresent

func (m *Features) GetFirmwarePresent() bool

func (*Features) GetFlags

func (m *Features) GetFlags() uint32

func (*Features) GetImported

func (m *Features) GetImported() bool

func (*Features) GetInitialized

func (m *Features) GetInitialized() bool

func (*Features) GetLabel

func (m *Features) GetLabel() string

func (*Features) GetLanguage

func (m *Features) GetLanguage() string

func (*Features) GetMajorVersion

func (m *Features) GetMajorVersion() uint32

func (*Features) GetMinorVersion

func (m *Features) GetMinorVersion() uint32

func (*Features) GetNeedsBackup

func (m *Features) GetNeedsBackup() bool

func (*Features) GetPassphraseCached

func (m *Features) GetPassphraseCached() bool

func (*Features) GetPassphraseProtection

func (m *Features) GetPassphraseProtection() bool

func (*Features) GetPatchVersion

func (m *Features) GetPatchVersion() uint32

func (*Features) GetPinCached

func (m *Features) GetPinCached() bool

func (*Features) GetPinProtection

func (m *Features) GetPinProtection() bool

func (*Features) GetRevision

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

func (*Features) GetVendor

func (m *Features) GetVendor() string

func (*Features) ProtoMessage

func (*Features) ProtoMessage()

func (*Features) Reset

func (m *Features) Reset()

func (*Features) String

func (m *Features) String() string

type FirmwareErase

type FirmwareErase struct {
	Length           *uint32 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
	XXX_unrecognized []byte  `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

type FirmwareRequest

type FirmwareRequest struct {
	Offset           *uint32 `protobuf:"varint,1,opt,name=offset" json:"offset,omitempty"`
	Length           *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"`
	XXX_unrecognized []byte  `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

type FirmwareUpload

type FirmwareUpload struct {
	Payload          []byte `protobuf:"bytes,1,req,name=payload" json:"payload,omitempty"`
	Hash             []byte `protobuf:"bytes,2,opt,name=hash" json:"hash,omitempty"`
	XXX_unrecognized []byte `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

type GetAddress

type GetAddress struct {
	AddressN         []uint32                  `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	CoinName         *string                   `protobuf:"bytes,2,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	ShowDisplay      *bool                     `protobuf:"varint,3,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
	Multisig         *MultisigRedeemScriptType `protobuf:"bytes,4,opt,name=multisig" json:"multisig,omitempty"`
	ScriptType       *InputScriptType          `protobuf:"varint,5,opt,name=script_type,json=scriptType,enum=InputScriptType,def=0" json:"script_type,omitempty"`
	XXX_unrecognized []byte                    `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

type GetECDHSessionKey

type GetECDHSessionKey struct {
	Identity         *IdentityType `protobuf:"bytes,1,opt,name=identity" json:"identity,omitempty"`
	PeerPublicKey    []byte        `protobuf:"bytes,2,opt,name=peer_public_key,json=peerPublicKey" json:"peer_public_key,omitempty"`
	EcdsaCurveName   *string       `protobuf:"bytes,3,opt,name=ecdsa_curve_name,json=ecdsaCurveName" json:"ecdsa_curve_name,omitempty"`
	XXX_unrecognized []byte        `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

type GetEntropy

type GetEntropy struct {
	Size             *uint32 `protobuf:"varint,1,req,name=size" json:"size,omitempty"`
	XXX_unrecognized []byte  `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

type GetFeatures

type GetFeatures struct {
	XXX_unrecognized []byte `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

type GetPublicKey

type GetPublicKey struct {
	AddressN         []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	EcdsaCurveName   *string  `protobuf:"bytes,2,opt,name=ecdsa_curve_name,json=ecdsaCurveName" json:"ecdsa_curve_name,omitempty"`
	ShowDisplay      *bool    `protobuf:"varint,3,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
	CoinName         *string  `protobuf:"bytes,4,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	XXX_unrecognized []byte   `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

type HDNodePathType

type HDNodePathType struct {
	Node             *HDNodeType `protobuf:"bytes,1,req,name=node" json:"node,omitempty"`
	AddressN         []uint32    `protobuf:"varint,2,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	XXX_unrecognized []byte      `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

type HDNodeType

type HDNodeType struct {
	Depth            *uint32 `protobuf:"varint,1,req,name=depth" json:"depth,omitempty"`
	Fingerprint      *uint32 `protobuf:"varint,2,req,name=fingerprint" json:"fingerprint,omitempty"`
	ChildNum         *uint32 `protobuf:"varint,3,req,name=child_num,json=childNum" json:"child_num,omitempty"`
	ChainCode        []byte  `protobuf:"bytes,4,req,name=chain_code,json=chainCode" json:"chain_code,omitempty"`
	PrivateKey       []byte  `protobuf:"bytes,5,opt,name=private_key,json=privateKey" json:"private_key,omitempty"`
	PublicKey        []byte  `protobuf:"bytes,6,opt,name=public_key,json=publicKey" json:"public_key,omitempty"`
	XXX_unrecognized []byte  `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

type IdentityType

type IdentityType struct {
	Proto            *string `protobuf:"bytes,1,opt,name=proto" json:"proto,omitempty"`
	User             *string `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"`
	Host             *string `protobuf:"bytes,3,opt,name=host" json:"host,omitempty"`
	Port             *string `protobuf:"bytes,4,opt,name=port" json:"port,omitempty"`
	Path             *string `protobuf:"bytes,5,opt,name=path" json:"path,omitempty"`
	Index            *uint32 `protobuf:"varint,6,opt,name=index,def=0" json:"index,omitempty"`
	XXX_unrecognized []byte  `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

type Initialize

type Initialize struct {
	XXX_unrecognized []byte `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

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
)
const Default_GetAddress_ScriptType InputScriptType = InputScriptType_SPENDADDRESS
const Default_SignMessage_ScriptType InputScriptType = InputScriptType_SPENDADDRESS
const Default_TxInputType_ScriptType InputScriptType = InputScriptType_SPENDADDRESS

func (InputScriptType) Enum

func (x InputScriptType) Enum() *InputScriptType

func (InputScriptType) EnumDescriptor

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

func (InputScriptType) String

func (x InputScriptType) String() string

func (*InputScriptType) UnmarshalJSON

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

type LoadDevice

type LoadDevice struct {
	Mnemonic             *string     `protobuf:"bytes,1,opt,name=mnemonic" json:"mnemonic,omitempty"`
	Node                 *HDNodeType `protobuf:"bytes,2,opt,name=node" json:"node,omitempty"`
	Pin                  *string     `protobuf:"bytes,3,opt,name=pin" json:"pin,omitempty"`
	PassphraseProtection *bool       `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	Language             *string     `protobuf:"bytes,5,opt,name=language,def=english" json:"language,omitempty"`
	Label                *string     `protobuf:"bytes,6,opt,name=label" json:"label,omitempty"`
	SkipChecksum         *bool       `protobuf:"varint,7,opt,name=skip_checksum,json=skipChecksum" json:"skip_checksum,omitempty"`
	U2FCounter           *uint32     `protobuf:"varint,8,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
	XXX_unrecognized     []byte      `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

type MessageSignature

type MessageSignature struct {
	Address          *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Signature        []byte  `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	XXX_unrecognized []byte  `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

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
	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
	MessageType_MessageType_TxSize                   MessageType = 44
	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
	MessageType_MessageType_EncryptedMessage         MessageType = 50
	MessageType_MessageType_DecryptMessage           MessageType = 51
	MessageType_MessageType_DecryptedMessage         MessageType = 52
	MessageType_MessageType_SignIdentity             MessageType = 53
	MessageType_MessageType_SignedIdentity           MessageType = 54
	MessageType_MessageType_GetFeatures              MessageType = 55
	MessageType_MessageType_EthereumGetAddress       MessageType = 56
	MessageType_MessageType_EthereumAddress          MessageType = 57
	MessageType_MessageType_EthereumSignTx           MessageType = 58
	MessageType_MessageType_EthereumTxRequest        MessageType = 59
	MessageType_MessageType_EthereumTxAck            MessageType = 60
	MessageType_MessageType_GetECDHSessionKey        MessageType = 61
	MessageType_MessageType_ECDHSessionKey           MessageType = 62
	MessageType_MessageType_SetU2FCounter            MessageType = 63
	MessageType_MessageType_EthereumSignMessage      MessageType = 64
	MessageType_MessageType_EthereumVerifyMessage    MessageType = 65
	MessageType_MessageType_EthereumMessageSignature 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) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor

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

func (MessageType) String

func (x MessageType) String() string

func (*MessageType) UnmarshalJSON

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

type MultisigRedeemScriptType

type MultisigRedeemScriptType struct {
	Pubkeys          []*HDNodePathType `protobuf:"bytes,1,rep,name=pubkeys" json:"pubkeys,omitempty"`
	Signatures       [][]byte          `protobuf:"bytes,2,rep,name=signatures" json:"signatures,omitempty"`
	M                *uint32           `protobuf:"varint,3,opt,name=m" json:"m,omitempty"`
	XXX_unrecognized []byte            `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

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) Enum

func (OutputScriptType) EnumDescriptor

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

func (OutputScriptType) String

func (x OutputScriptType) String() string

func (*OutputScriptType) UnmarshalJSON

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

type PassphraseAck

type PassphraseAck struct {
	Passphrase       *string `protobuf:"bytes,1,req,name=passphrase" json:"passphrase,omitempty"`
	XXX_unrecognized []byte  `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

type PassphraseRequest

type PassphraseRequest struct {
	XXX_unrecognized []byte `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

type PinMatrixAck

type PinMatrixAck struct {
	Pin              *string `protobuf:"bytes,1,req,name=pin" json:"pin,omitempty"`
	XXX_unrecognized []byte  `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

type PinMatrixRequest

type PinMatrixRequest struct {
	Type             *PinMatrixRequestType `protobuf:"varint,1,opt,name=type,enum=PinMatrixRequestType" json:"type,omitempty"`
	XXX_unrecognized []byte                `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 (*PinMatrixRequest) ProtoMessage

func (*PinMatrixRequest) ProtoMessage()

func (*PinMatrixRequest) Reset

func (m *PinMatrixRequest) Reset()

func (*PinMatrixRequest) String

func (m *PinMatrixRequest) String() string

type PinMatrixRequestType

type PinMatrixRequestType int32

* Type of PIN request @used_in PinMatrixRequest

const (
	PinMatrixRequestType_PinMatrixRequestType_Current   PinMatrixRequestType = 1
	PinMatrixRequestType_PinMatrixRequestType_NewFirst  PinMatrixRequestType = 2
	PinMatrixRequestType_PinMatrixRequestType_NewSecond PinMatrixRequestType = 3
)

func (PinMatrixRequestType) Enum

func (PinMatrixRequestType) EnumDescriptor

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

func (PinMatrixRequestType) String

func (x PinMatrixRequestType) String() string

func (*PinMatrixRequestType) UnmarshalJSON

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

type Ping

type Ping struct {
	Message              *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	ButtonProtection     *bool   `protobuf:"varint,2,opt,name=button_protection,json=buttonProtection" json:"button_protection,omitempty"`
	PinProtection        *bool   `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	PassphraseProtection *bool   `protobuf:"varint,4,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	XXX_unrecognized     []byte  `json:"-"`
}

* Request: Test if the device is alive, device sends back the message in Success response @next Success

func (*Ping) Descriptor

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

func (*Ping) GetButtonProtection

func (m *Ping) GetButtonProtection() bool

func (*Ping) GetMessage

func (m *Ping) GetMessage() string

func (*Ping) GetPassphraseProtection

func (m *Ping) GetPassphraseProtection() bool

func (*Ping) GetPinProtection

func (m *Ping) GetPinProtection() bool

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

type PublicKey

type PublicKey struct {
	Node             *HDNodeType `protobuf:"bytes,1,req,name=node" json:"node,omitempty"`
	Xpub             *string     `protobuf:"bytes,2,opt,name=xpub" json:"xpub,omitempty"`
	XXX_unrecognized []byte      `json:"-"`
}

* Response: Contains public key derived from device private seed @prev GetPublicKey

func (*PublicKey) Descriptor

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

func (*PublicKey) GetNode

func (m *PublicKey) GetNode() *HDNodeType

func (*PublicKey) GetXpub

func (m *PublicKey) GetXpub() string

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

type RecoveryDevice

type RecoveryDevice struct {
	WordCount            *uint32 `protobuf:"varint,1,opt,name=word_count,json=wordCount" json:"word_count,omitempty"`
	PassphraseProtection *bool   `protobuf:"varint,2,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	PinProtection        *bool   `protobuf:"varint,3,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	Language             *string `protobuf:"bytes,4,opt,name=language,def=english" json:"language,omitempty"`
	Label                *string `protobuf:"bytes,5,opt,name=label" json:"label,omitempty"`
	EnforceWordlist      *bool   `protobuf:"varint,6,opt,name=enforce_wordlist,json=enforceWordlist" json:"enforce_wordlist,omitempty"`
	// 7 reserved for unused recovery method
	Type             *uint32 `protobuf:"varint,8,opt,name=type" json:"type,omitempty"`
	U2FCounter       *uint32 `protobuf:"varint,9,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
	DryRun           *bool   `protobuf:"varint,10,opt,name=dry_run,json=dryRun" json:"dry_run,omitempty"`
	XXX_unrecognized []byte  `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

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) Enum

func (RecoveryDeviceType) EnumDescriptor

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

func (RecoveryDeviceType) String

func (x RecoveryDeviceType) String() string

func (*RecoveryDeviceType) UnmarshalJSON

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

type RequestType

type RequestType int32

* Type of information required 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) Enum

func (x RequestType) Enum() *RequestType

func (RequestType) EnumDescriptor

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

func (RequestType) String

func (x RequestType) String() string

func (*RequestType) UnmarshalJSON

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

type ResetDevice

type ResetDevice struct {
	DisplayRandom        *bool   `protobuf:"varint,1,opt,name=display_random,json=displayRandom" json:"display_random,omitempty"`
	Strength             *uint32 `protobuf:"varint,2,opt,name=strength,def=256" json:"strength,omitempty"`
	PassphraseProtection *bool   `protobuf:"varint,3,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"`
	PinProtection        *bool   `protobuf:"varint,4,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"`
	Language             *string `protobuf:"bytes,5,opt,name=language,def=english" json:"language,omitempty"`
	Label                *string `protobuf:"bytes,6,opt,name=label" json:"label,omitempty"`
	U2FCounter           *uint32 `protobuf:"varint,7,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
	SkipBackup           *bool   `protobuf:"varint,8,opt,name=skip_backup,json=skipBackup" json:"skip_backup,omitempty"`
	XXX_unrecognized     []byte  `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

type SelfTest

type SelfTest struct {
	Payload          []byte `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

* Request: Perform a device self-test @next Success @next Failure

func (*SelfTest) Descriptor

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

func (*SelfTest) GetPayload

func (m *SelfTest) GetPayload() []byte

func (*SelfTest) ProtoMessage

func (*SelfTest) ProtoMessage()

func (*SelfTest) Reset

func (m *SelfTest) Reset()

func (*SelfTest) String

func (m *SelfTest) String() string

type SetU2FCounter

type SetU2FCounter struct {
	U2FCounter       *uint32 `protobuf:"varint,1,opt,name=u2f_counter,json=u2fCounter" json:"u2f_counter,omitempty"`
	XXX_unrecognized []byte  `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

type SignIdentity

type SignIdentity struct {
	Identity         *IdentityType `protobuf:"bytes,1,opt,name=identity" json:"identity,omitempty"`
	ChallengeHidden  []byte        `protobuf:"bytes,2,opt,name=challenge_hidden,json=challengeHidden" json:"challenge_hidden,omitempty"`
	ChallengeVisual  *string       `protobuf:"bytes,3,opt,name=challenge_visual,json=challengeVisual" json:"challenge_visual,omitempty"`
	EcdsaCurveName   *string       `protobuf:"bytes,4,opt,name=ecdsa_curve_name,json=ecdsaCurveName" json:"ecdsa_curve_name,omitempty"`
	XXX_unrecognized []byte        `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

type SignMessage

type SignMessage struct {
	AddressN         []uint32         `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Message          []byte           `protobuf:"bytes,2,req,name=message" json:"message,omitempty"`
	CoinName         *string          `protobuf:"bytes,3,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	ScriptType       *InputScriptType `protobuf:"varint,4,opt,name=script_type,json=scriptType,enum=InputScriptType,def=0" json:"script_type,omitempty"`
	XXX_unrecognized []byte           `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

type SignTx

type SignTx struct {
	OutputsCount     *uint32 `protobuf:"varint,1,req,name=outputs_count,json=outputsCount" json:"outputs_count,omitempty"`
	InputsCount      *uint32 `protobuf:"varint,2,req,name=inputs_count,json=inputsCount" json:"inputs_count,omitempty"`
	CoinName         *string `protobuf:"bytes,3,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	Version          *uint32 `protobuf:"varint,4,opt,name=version,def=1" json:"version,omitempty"`
	LockTime         *uint32 `protobuf:"varint,5,opt,name=lock_time,json=lockTime,def=0" json:"lock_time,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

* Request: Ask device to sign transaction @next PassphraseRequest @next PinMatrixRequest @next TxRequest @next Failure

func (*SignTx) Descriptor

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

func (*SignTx) GetCoinName

func (m *SignTx) GetCoinName() string

func (*SignTx) GetInputsCount

func (m *SignTx) GetInputsCount() uint32

func (*SignTx) GetLockTime

func (m *SignTx) GetLockTime() uint32

func (*SignTx) GetOutputsCount

func (m *SignTx) GetOutputsCount() uint32

func (*SignTx) GetVersion

func (m *SignTx) GetVersion() uint32

func (*SignTx) ProtoMessage

func (*SignTx) ProtoMessage()

func (*SignTx) Reset

func (m *SignTx) Reset()

func (*SignTx) String

func (m *SignTx) String() string

type SignedIdentity

type SignedIdentity struct {
	Address          *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	PublicKey        []byte  `protobuf:"bytes,2,opt,name=public_key,json=publicKey" json:"public_key,omitempty"`
	Signature        []byte  `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"`
	XXX_unrecognized []byte  `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

type SimpleSignTx

type SimpleSignTx struct {
	Inputs           []*TxInputType     `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"`
	Outputs          []*TxOutputType    `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
	Transactions     []*TransactionType `protobuf:"bytes,3,rep,name=transactions" json:"transactions,omitempty"`
	CoinName         *string            `protobuf:"bytes,4,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	Version          *uint32            `protobuf:"varint,5,opt,name=version,def=1" json:"version,omitempty"`
	LockTime         *uint32            `protobuf:"varint,6,opt,name=lock_time,json=lockTime,def=0" json:"lock_time,omitempty"`
	XXX_unrecognized []byte             `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

type Success

type Success struct {
	Message          *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

* Response: Success of the previous request

func (*Success) Descriptor

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

func (*Success) GetMessage

func (m *Success) GetMessage() string

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) Reset

func (m *Success) Reset()

func (*Success) String

func (m *Success) String() string

type TransactionType

type TransactionType struct {
	Version          *uint32            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Inputs           []*TxInputType     `protobuf:"bytes,2,rep,name=inputs" json:"inputs,omitempty"`
	BinOutputs       []*TxOutputBinType `protobuf:"bytes,3,rep,name=bin_outputs,json=binOutputs" json:"bin_outputs,omitempty"`
	Outputs          []*TxOutputType    `protobuf:"bytes,5,rep,name=outputs" json:"outputs,omitempty"`
	LockTime         *uint32            `protobuf:"varint,4,opt,name=lock_time,json=lockTime" json:"lock_time,omitempty"`
	InputsCnt        *uint32            `protobuf:"varint,6,opt,name=inputs_cnt,json=inputsCnt" json:"inputs_cnt,omitempty"`
	OutputsCnt       *uint32            `protobuf:"varint,7,opt,name=outputs_cnt,json=outputsCnt" json:"outputs_cnt,omitempty"`
	ExtraData        []byte             `protobuf:"bytes,8,opt,name=extra_data,json=extraData" json:"extra_data,omitempty"`
	ExtraDataLen     *uint32            `protobuf:"varint,9,opt,name=extra_data_len,json=extraDataLen" json:"extra_data_len,omitempty"`
	XXX_unrecognized []byte             `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

type TxAck

type TxAck struct {
	Tx               *TransactionType `protobuf:"bytes,1,opt,name=tx" json:"tx,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

* Request: Reported transaction data @prev TxRequest @next TxRequest

func (*TxAck) Descriptor

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

func (*TxAck) GetTx

func (m *TxAck) GetTx() *TransactionType

func (*TxAck) ProtoMessage

func (*TxAck) ProtoMessage()

func (*TxAck) Reset

func (m *TxAck) Reset()

func (*TxAck) String

func (m *TxAck) String() string

type TxInputType

type TxInputType struct {
	AddressN         []uint32                  `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	PrevHash         []byte                    `protobuf:"bytes,2,req,name=prev_hash,json=prevHash" json:"prev_hash,omitempty"`
	PrevIndex        *uint32                   `protobuf:"varint,3,req,name=prev_index,json=prevIndex" json:"prev_index,omitempty"`
	ScriptSig        []byte                    `protobuf:"bytes,4,opt,name=script_sig,json=scriptSig" json:"script_sig,omitempty"`
	Sequence         *uint32                   `protobuf:"varint,5,opt,name=sequence,def=4294967295" json:"sequence,omitempty"`
	ScriptType       *InputScriptType          `protobuf:"varint,6,opt,name=script_type,json=scriptType,enum=InputScriptType,def=0" json:"script_type,omitempty"`
	Multisig         *MultisigRedeemScriptType `protobuf:"bytes,7,opt,name=multisig" json:"multisig,omitempty"`
	Amount           *uint64                   `protobuf:"varint,8,opt,name=amount" json:"amount,omitempty"`
	XXX_unrecognized []byte                    `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

type TxOutputBinType

type TxOutputBinType struct {
	Amount           *uint64 `protobuf:"varint,1,req,name=amount" json:"amount,omitempty"`
	ScriptPubkey     []byte  `protobuf:"bytes,2,req,name=script_pubkey,json=scriptPubkey" json:"script_pubkey,omitempty"`
	XXX_unrecognized []byte  `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

type TxOutputType

type TxOutputType struct {
	Address          *string                   `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	AddressN         []uint32                  `protobuf:"varint,2,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
	Amount           *uint64                   `protobuf:"varint,3,req,name=amount" json:"amount,omitempty"`
	ScriptType       *OutputScriptType         `protobuf:"varint,4,req,name=script_type,json=scriptType,enum=OutputScriptType" json:"script_type,omitempty"`
	Multisig         *MultisigRedeemScriptType `protobuf:"bytes,5,opt,name=multisig" json:"multisig,omitempty"`
	OpReturnData     []byte                    `protobuf:"bytes,6,opt,name=op_return_data,json=opReturnData" json:"op_return_data,omitempty"`
	XXX_unrecognized []byte                    `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

type TxRequest

type TxRequest struct {
	RequestType      *RequestType             `protobuf:"varint,1,opt,name=request_type,json=requestType,enum=RequestType" json:"request_type,omitempty"`
	Details          *TxRequestDetailsType    `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"`
	Serialized       *TxRequestSerializedType `protobuf:"bytes,3,opt,name=serialized" json:"serialized,omitempty"`
	XXX_unrecognized []byte                   `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) Descriptor() ([]byte, []int)

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) Reset

func (m *TxRequest) Reset()

func (*TxRequest) String

func (m *TxRequest) String() string

type TxRequestDetailsType

type TxRequestDetailsType struct {
	RequestIndex     *uint32 `protobuf:"varint,1,opt,name=request_index,json=requestIndex" json:"request_index,omitempty"`
	TxHash           []byte  `protobuf:"bytes,2,opt,name=tx_hash,json=txHash" json:"tx_hash,omitempty"`
	ExtraDataLen     *uint32 `protobuf:"varint,3,opt,name=extra_data_len,json=extraDataLen" json:"extra_data_len,omitempty"`
	ExtraDataOffset  *uint32 `protobuf:"varint,4,opt,name=extra_data_offset,json=extraDataOffset" json:"extra_data_offset,omitempty"`
	XXX_unrecognized []byte  `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

type TxRequestSerializedType

type TxRequestSerializedType struct {
	SignatureIndex   *uint32 `protobuf:"varint,1,opt,name=signature_index,json=signatureIndex" json:"signature_index,omitempty"`
	Signature        []byte  `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	SerializedTx     []byte  `protobuf:"bytes,3,opt,name=serialized_tx,json=serializedTx" json:"serialized_tx,omitempty"`
	XXX_unrecognized []byte  `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

type TxSize

type TxSize struct {
	TxSize           *uint32 `protobuf:"varint,1,opt,name=tx_size,json=txSize" json:"tx_size,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

* Response: Estimated size of the transaction @prev EstimateTxSize

func (*TxSize) Descriptor

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

func (*TxSize) GetTxSize

func (m *TxSize) GetTxSize() uint32

func (*TxSize) ProtoMessage

func (*TxSize) ProtoMessage()

func (*TxSize) Reset

func (m *TxSize) Reset()

func (*TxSize) String

func (m *TxSize) String() string

type VerifyMessage

type VerifyMessage struct {
	Address          *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
	Signature        []byte  `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	Message          []byte  `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	CoinName         *string `protobuf:"bytes,4,opt,name=coin_name,json=coinName,def=Bitcoin" json:"coin_name,omitempty"`
	XXX_unrecognized []byte  `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

type WipeDevice

type WipeDevice struct {
	XXX_unrecognized []byte `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

type WordAck

type WordAck struct {
	Word             *string `protobuf:"bytes,1,req,name=word" json:"word,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

* Request: Computer replies with word from the mnemonic @prev WordRequest @next WordRequest @next Success @next Failure

func (*WordAck) Descriptor

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

func (*WordAck) GetWord

func (m *WordAck) GetWord() string

func (*WordAck) ProtoMessage

func (*WordAck) ProtoMessage()

func (*WordAck) Reset

func (m *WordAck) Reset()

func (*WordAck) String

func (m *WordAck) String() string

type WordRequest

type WordRequest struct {
	Type             *WordRequestType `protobuf:"varint,1,opt,name=type,enum=WordRequestType" json:"type,omitempty"`
	XXX_unrecognized []byte           `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

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) Enum

func (x WordRequestType) Enum() *WordRequestType

func (WordRequestType) EnumDescriptor

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

func (WordRequestType) String

func (x WordRequestType) String() string

func (*WordRequestType) UnmarshalJSON

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL