github.com/ApeGame/aac@v1.9.7/accounts/usbwallet/trezor/messages-ethereum.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: messages-ethereum.proto
     3  
     4  package trezor
     5  
     6  import (
     7  	fmt "fmt"
     8  	math "math"
     9  
    10  	proto "github.com/golang/protobuf/proto"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  //*
    25  // Request: Ask device for public key corresponding to address_n path
    26  // @start
    27  // @next EthereumPublicKey
    28  // @next Failure
    29  type EthereumGetPublicKey struct {
    30  	AddressN             []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
    31  	ShowDisplay          *bool    `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    33  	XXX_unrecognized     []byte   `json:"-"`
    34  	XXX_sizecache        int32    `json:"-"`
    35  }
    36  
    37  func (m *EthereumGetPublicKey) Reset()         { *m = EthereumGetPublicKey{} }
    38  func (m *EthereumGetPublicKey) String() string { return proto.CompactTextString(m) }
    39  func (*EthereumGetPublicKey) ProtoMessage()    {}
    40  func (*EthereumGetPublicKey) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_cb33f46ba915f15c, []int{0}
    42  }
    43  
    44  func (m *EthereumGetPublicKey) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_EthereumGetPublicKey.Unmarshal(m, b)
    46  }
    47  func (m *EthereumGetPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_EthereumGetPublicKey.Marshal(b, m, deterministic)
    49  }
    50  func (m *EthereumGetPublicKey) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_EthereumGetPublicKey.Merge(m, src)
    52  }
    53  func (m *EthereumGetPublicKey) XXX_Size() int {
    54  	return xxx_messageInfo_EthereumGetPublicKey.Size(m)
    55  }
    56  func (m *EthereumGetPublicKey) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_EthereumGetPublicKey.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_EthereumGetPublicKey proto.InternalMessageInfo
    61  
    62  func (m *EthereumGetPublicKey) GetAddressN() []uint32 {
    63  	if m != nil {
    64  		return m.AddressN
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *EthereumGetPublicKey) GetShowDisplay() bool {
    70  	if m != nil && m.ShowDisplay != nil {
    71  		return *m.ShowDisplay
    72  	}
    73  	return false
    74  }
    75  
    76  //*
    77  // Response: Contains public key derived from device private seed
    78  // @end
    79  type EthereumPublicKey struct {
    80  	Node                 *HDNodeType `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"`
    81  	Xpub                 *string     `protobuf:"bytes,2,opt,name=xpub" json:"xpub,omitempty"`
    82  	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    83  	XXX_unrecognized     []byte      `json:"-"`
    84  	XXX_sizecache        int32       `json:"-"`
    85  }
    86  
    87  func (m *EthereumPublicKey) Reset()         { *m = EthereumPublicKey{} }
    88  func (m *EthereumPublicKey) String() string { return proto.CompactTextString(m) }
    89  func (*EthereumPublicKey) ProtoMessage()    {}
    90  func (*EthereumPublicKey) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_cb33f46ba915f15c, []int{1}
    92  }
    93  
    94  func (m *EthereumPublicKey) XXX_Unmarshal(b []byte) error {
    95  	return xxx_messageInfo_EthereumPublicKey.Unmarshal(m, b)
    96  }
    97  func (m *EthereumPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    98  	return xxx_messageInfo_EthereumPublicKey.Marshal(b, m, deterministic)
    99  }
   100  func (m *EthereumPublicKey) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_EthereumPublicKey.Merge(m, src)
   102  }
   103  func (m *EthereumPublicKey) XXX_Size() int {
   104  	return xxx_messageInfo_EthereumPublicKey.Size(m)
   105  }
   106  func (m *EthereumPublicKey) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_EthereumPublicKey.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_EthereumPublicKey proto.InternalMessageInfo
   111  
   112  func (m *EthereumPublicKey) GetNode() *HDNodeType {
   113  	if m != nil {
   114  		return m.Node
   115  	}
   116  	return nil
   117  }
   118  
   119  func (m *EthereumPublicKey) GetXpub() string {
   120  	if m != nil && m.Xpub != nil {
   121  		return *m.Xpub
   122  	}
   123  	return ""
   124  }
   125  
   126  //*
   127  // Request: Ask device for Ethereum address corresponding to address_n path
   128  // @start
   129  // @next EthereumAddress
   130  // @next Failure
   131  type EthereumGetAddress struct {
   132  	AddressN             []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
   133  	ShowDisplay          *bool    `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"`
   134  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   135  	XXX_unrecognized     []byte   `json:"-"`
   136  	XXX_sizecache        int32    `json:"-"`
   137  }
   138  
   139  func (m *EthereumGetAddress) Reset()         { *m = EthereumGetAddress{} }
   140  func (m *EthereumGetAddress) String() string { return proto.CompactTextString(m) }
   141  func (*EthereumGetAddress) ProtoMessage()    {}
   142  func (*EthereumGetAddress) Descriptor() ([]byte, []int) {
   143  	return fileDescriptor_cb33f46ba915f15c, []int{2}
   144  }
   145  
   146  func (m *EthereumGetAddress) XXX_Unmarshal(b []byte) error {
   147  	return xxx_messageInfo_EthereumGetAddress.Unmarshal(m, b)
   148  }
   149  func (m *EthereumGetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   150  	return xxx_messageInfo_EthereumGetAddress.Marshal(b, m, deterministic)
   151  }
   152  func (m *EthereumGetAddress) XXX_Merge(src proto.Message) {
   153  	xxx_messageInfo_EthereumGetAddress.Merge(m, src)
   154  }
   155  func (m *EthereumGetAddress) XXX_Size() int {
   156  	return xxx_messageInfo_EthereumGetAddress.Size(m)
   157  }
   158  func (m *EthereumGetAddress) XXX_DiscardUnknown() {
   159  	xxx_messageInfo_EthereumGetAddress.DiscardUnknown(m)
   160  }
   161  
   162  var xxx_messageInfo_EthereumGetAddress proto.InternalMessageInfo
   163  
   164  func (m *EthereumGetAddress) GetAddressN() []uint32 {
   165  	if m != nil {
   166  		return m.AddressN
   167  	}
   168  	return nil
   169  }
   170  
   171  func (m *EthereumGetAddress) GetShowDisplay() bool {
   172  	if m != nil && m.ShowDisplay != nil {
   173  		return *m.ShowDisplay
   174  	}
   175  	return false
   176  }
   177  
   178  //*
   179  // Response: Contains an Ethereum address derived from device private seed
   180  // @end
   181  type EthereumAddress struct {
   182  	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
   183  	AddressHex           *string  `protobuf:"bytes,2,opt,name=addressHex" json:"addressHex,omitempty"`
   184  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   185  	XXX_unrecognized     []byte   `json:"-"`
   186  	XXX_sizecache        int32    `json:"-"`
   187  }
   188  
   189  func (m *EthereumAddress) Reset()         { *m = EthereumAddress{} }
   190  func (m *EthereumAddress) String() string { return proto.CompactTextString(m) }
   191  func (*EthereumAddress) ProtoMessage()    {}
   192  func (*EthereumAddress) Descriptor() ([]byte, []int) {
   193  	return fileDescriptor_cb33f46ba915f15c, []int{3}
   194  }
   195  
   196  func (m *EthereumAddress) XXX_Unmarshal(b []byte) error {
   197  	return xxx_messageInfo_EthereumAddress.Unmarshal(m, b)
   198  }
   199  func (m *EthereumAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   200  	return xxx_messageInfo_EthereumAddress.Marshal(b, m, deterministic)
   201  }
   202  func (m *EthereumAddress) XXX_Merge(src proto.Message) {
   203  	xxx_messageInfo_EthereumAddress.Merge(m, src)
   204  }
   205  func (m *EthereumAddress) XXX_Size() int {
   206  	return xxx_messageInfo_EthereumAddress.Size(m)
   207  }
   208  func (m *EthereumAddress) XXX_DiscardUnknown() {
   209  	xxx_messageInfo_EthereumAddress.DiscardUnknown(m)
   210  }
   211  
   212  var xxx_messageInfo_EthereumAddress proto.InternalMessageInfo
   213  
   214  func (m *EthereumAddress) GetAddressBin() []byte {
   215  	if m != nil {
   216  		return m.AddressBin
   217  	}
   218  	return nil
   219  }
   220  
   221  func (m *EthereumAddress) GetAddressHex() string {
   222  	if m != nil && m.AddressHex != nil {
   223  		return *m.AddressHex
   224  	}
   225  	return ""
   226  }
   227  
   228  //*
   229  // Request: Ask device to sign transaction
   230  // All fields are optional from the protocol's point of view. Each field defaults to value `0` if missing.
   231  // Note: the first at most 1024 bytes of data MUST be transmitted as part of this message.
   232  // @start
   233  // @next EthereumTxRequest
   234  // @next Failure
   235  type EthereumSignTx struct {
   236  	AddressN             []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
   237  	Nonce                []byte   `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"`
   238  	GasPrice             []byte   `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"`
   239  	GasLimit             []byte   `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"`
   240  	ToBin                []byte   `protobuf:"bytes,5,opt,name=toBin" json:"toBin,omitempty"`
   241  	ToHex                *string  `protobuf:"bytes,11,opt,name=toHex" json:"toHex,omitempty"`
   242  	Value                []byte   `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"`
   243  	DataInitialChunk     []byte   `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"`
   244  	DataLength           *uint32  `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
   245  	ChainId              *uint32  `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"`
   246  	TxType               *uint32  `protobuf:"varint,10,opt,name=tx_type,json=txType" json:"tx_type,omitempty"`
   247  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   248  	XXX_unrecognized     []byte   `json:"-"`
   249  	XXX_sizecache        int32    `json:"-"`
   250  }
   251  
   252  func (m *EthereumSignTx) Reset()         { *m = EthereumSignTx{} }
   253  func (m *EthereumSignTx) String() string { return proto.CompactTextString(m) }
   254  func (*EthereumSignTx) ProtoMessage()    {}
   255  func (*EthereumSignTx) Descriptor() ([]byte, []int) {
   256  	return fileDescriptor_cb33f46ba915f15c, []int{4}
   257  }
   258  
   259  func (m *EthereumSignTx) XXX_Unmarshal(b []byte) error {
   260  	return xxx_messageInfo_EthereumSignTx.Unmarshal(m, b)
   261  }
   262  func (m *EthereumSignTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	return xxx_messageInfo_EthereumSignTx.Marshal(b, m, deterministic)
   264  }
   265  func (m *EthereumSignTx) XXX_Merge(src proto.Message) {
   266  	xxx_messageInfo_EthereumSignTx.Merge(m, src)
   267  }
   268  func (m *EthereumSignTx) XXX_Size() int {
   269  	return xxx_messageInfo_EthereumSignTx.Size(m)
   270  }
   271  func (m *EthereumSignTx) XXX_DiscardUnknown() {
   272  	xxx_messageInfo_EthereumSignTx.DiscardUnknown(m)
   273  }
   274  
   275  var xxx_messageInfo_EthereumSignTx proto.InternalMessageInfo
   276  
   277  func (m *EthereumSignTx) GetAddressN() []uint32 {
   278  	if m != nil {
   279  		return m.AddressN
   280  	}
   281  	return nil
   282  }
   283  
   284  func (m *EthereumSignTx) GetNonce() []byte {
   285  	if m != nil {
   286  		return m.Nonce
   287  	}
   288  	return nil
   289  }
   290  
   291  func (m *EthereumSignTx) GetGasPrice() []byte {
   292  	if m != nil {
   293  		return m.GasPrice
   294  	}
   295  	return nil
   296  }
   297  
   298  func (m *EthereumSignTx) GetGasLimit() []byte {
   299  	if m != nil {
   300  		return m.GasLimit
   301  	}
   302  	return nil
   303  }
   304  
   305  func (m *EthereumSignTx) GetToBin() []byte {
   306  	if m != nil {
   307  		return m.ToBin
   308  	}
   309  	return nil
   310  }
   311  
   312  func (m *EthereumSignTx) GetToHex() string {
   313  	if m != nil && m.ToHex != nil {
   314  		return *m.ToHex
   315  	}
   316  	return ""
   317  }
   318  
   319  func (m *EthereumSignTx) GetValue() []byte {
   320  	if m != nil {
   321  		return m.Value
   322  	}
   323  	return nil
   324  }
   325  
   326  func (m *EthereumSignTx) GetDataInitialChunk() []byte {
   327  	if m != nil {
   328  		return m.DataInitialChunk
   329  	}
   330  	return nil
   331  }
   332  
   333  func (m *EthereumSignTx) GetDataLength() uint32 {
   334  	if m != nil && m.DataLength != nil {
   335  		return *m.DataLength
   336  	}
   337  	return 0
   338  }
   339  
   340  func (m *EthereumSignTx) GetChainId() uint32 {
   341  	if m != nil && m.ChainId != nil {
   342  		return *m.ChainId
   343  	}
   344  	return 0
   345  }
   346  
   347  func (m *EthereumSignTx) GetTxType() uint32 {
   348  	if m != nil && m.TxType != nil {
   349  		return *m.TxType
   350  	}
   351  	return 0
   352  }
   353  
   354  //*
   355  // Response: Device asks for more data from transaction payload, or returns the signature.
   356  // If data_length is set, device awaits that many more bytes of payload.
   357  // Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present.
   358  // @end
   359  // @next EthereumTxAck
   360  type EthereumTxRequest struct {
   361  	DataLength           *uint32  `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"`
   362  	SignatureV           *uint32  `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"`
   363  	SignatureR           []byte   `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"`
   364  	SignatureS           []byte   `protobuf:"bytes,4,opt,name=signature_s,json=signatureS" json:"signature_s,omitempty"`
   365  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   366  	XXX_unrecognized     []byte   `json:"-"`
   367  	XXX_sizecache        int32    `json:"-"`
   368  }
   369  
   370  func (m *EthereumTxRequest) Reset()         { *m = EthereumTxRequest{} }
   371  func (m *EthereumTxRequest) String() string { return proto.CompactTextString(m) }
   372  func (*EthereumTxRequest) ProtoMessage()    {}
   373  func (*EthereumTxRequest) Descriptor() ([]byte, []int) {
   374  	return fileDescriptor_cb33f46ba915f15c, []int{5}
   375  }
   376  
   377  func (m *EthereumTxRequest) XXX_Unmarshal(b []byte) error {
   378  	return xxx_messageInfo_EthereumTxRequest.Unmarshal(m, b)
   379  }
   380  func (m *EthereumTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   381  	return xxx_messageInfo_EthereumTxRequest.Marshal(b, m, deterministic)
   382  }
   383  func (m *EthereumTxRequest) XXX_Merge(src proto.Message) {
   384  	xxx_messageInfo_EthereumTxRequest.Merge(m, src)
   385  }
   386  func (m *EthereumTxRequest) XXX_Size() int {
   387  	return xxx_messageInfo_EthereumTxRequest.Size(m)
   388  }
   389  func (m *EthereumTxRequest) XXX_DiscardUnknown() {
   390  	xxx_messageInfo_EthereumTxRequest.DiscardUnknown(m)
   391  }
   392  
   393  var xxx_messageInfo_EthereumTxRequest proto.InternalMessageInfo
   394  
   395  func (m *EthereumTxRequest) GetDataLength() uint32 {
   396  	if m != nil && m.DataLength != nil {
   397  		return *m.DataLength
   398  	}
   399  	return 0
   400  }
   401  
   402  func (m *EthereumTxRequest) GetSignatureV() uint32 {
   403  	if m != nil && m.SignatureV != nil {
   404  		return *m.SignatureV
   405  	}
   406  	return 0
   407  }
   408  
   409  func (m *EthereumTxRequest) GetSignatureR() []byte {
   410  	if m != nil {
   411  		return m.SignatureR
   412  	}
   413  	return nil
   414  }
   415  
   416  func (m *EthereumTxRequest) GetSignatureS() []byte {
   417  	if m != nil {
   418  		return m.SignatureS
   419  	}
   420  	return nil
   421  }
   422  
   423  //*
   424  // Request: Transaction payload data.
   425  // @next EthereumTxRequest
   426  type EthereumTxAck struct {
   427  	DataChunk            []byte   `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"`
   428  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   429  	XXX_unrecognized     []byte   `json:"-"`
   430  	XXX_sizecache        int32    `json:"-"`
   431  }
   432  
   433  func (m *EthereumTxAck) Reset()         { *m = EthereumTxAck{} }
   434  func (m *EthereumTxAck) String() string { return proto.CompactTextString(m) }
   435  func (*EthereumTxAck) ProtoMessage()    {}
   436  func (*EthereumTxAck) Descriptor() ([]byte, []int) {
   437  	return fileDescriptor_cb33f46ba915f15c, []int{6}
   438  }
   439  
   440  func (m *EthereumTxAck) XXX_Unmarshal(b []byte) error {
   441  	return xxx_messageInfo_EthereumTxAck.Unmarshal(m, b)
   442  }
   443  func (m *EthereumTxAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   444  	return xxx_messageInfo_EthereumTxAck.Marshal(b, m, deterministic)
   445  }
   446  func (m *EthereumTxAck) XXX_Merge(src proto.Message) {
   447  	xxx_messageInfo_EthereumTxAck.Merge(m, src)
   448  }
   449  func (m *EthereumTxAck) XXX_Size() int {
   450  	return xxx_messageInfo_EthereumTxAck.Size(m)
   451  }
   452  func (m *EthereumTxAck) XXX_DiscardUnknown() {
   453  	xxx_messageInfo_EthereumTxAck.DiscardUnknown(m)
   454  }
   455  
   456  var xxx_messageInfo_EthereumTxAck proto.InternalMessageInfo
   457  
   458  func (m *EthereumTxAck) GetDataChunk() []byte {
   459  	if m != nil {
   460  		return m.DataChunk
   461  	}
   462  	return nil
   463  }
   464  
   465  //*
   466  // Request: Ask device to sign message
   467  // @start
   468  // @next EthereumMessageSignature
   469  // @next Failure
   470  type EthereumSignMessage struct {
   471  	AddressN             []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"`
   472  	Message              []byte   `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
   473  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   474  	XXX_unrecognized     []byte   `json:"-"`
   475  	XXX_sizecache        int32    `json:"-"`
   476  }
   477  
   478  func (m *EthereumSignMessage) Reset()         { *m = EthereumSignMessage{} }
   479  func (m *EthereumSignMessage) String() string { return proto.CompactTextString(m) }
   480  func (*EthereumSignMessage) ProtoMessage()    {}
   481  func (*EthereumSignMessage) Descriptor() ([]byte, []int) {
   482  	return fileDescriptor_cb33f46ba915f15c, []int{7}
   483  }
   484  
   485  func (m *EthereumSignMessage) XXX_Unmarshal(b []byte) error {
   486  	return xxx_messageInfo_EthereumSignMessage.Unmarshal(m, b)
   487  }
   488  func (m *EthereumSignMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   489  	return xxx_messageInfo_EthereumSignMessage.Marshal(b, m, deterministic)
   490  }
   491  func (m *EthereumSignMessage) XXX_Merge(src proto.Message) {
   492  	xxx_messageInfo_EthereumSignMessage.Merge(m, src)
   493  }
   494  func (m *EthereumSignMessage) XXX_Size() int {
   495  	return xxx_messageInfo_EthereumSignMessage.Size(m)
   496  }
   497  func (m *EthereumSignMessage) XXX_DiscardUnknown() {
   498  	xxx_messageInfo_EthereumSignMessage.DiscardUnknown(m)
   499  }
   500  
   501  var xxx_messageInfo_EthereumSignMessage proto.InternalMessageInfo
   502  
   503  func (m *EthereumSignMessage) GetAddressN() []uint32 {
   504  	if m != nil {
   505  		return m.AddressN
   506  	}
   507  	return nil
   508  }
   509  
   510  func (m *EthereumSignMessage) GetMessage() []byte {
   511  	if m != nil {
   512  		return m.Message
   513  	}
   514  	return nil
   515  }
   516  
   517  //*
   518  // Response: Signed message
   519  // @end
   520  type EthereumMessageSignature struct {
   521  	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
   522  	Signature            []byte   `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
   523  	AddressHex           *string  `protobuf:"bytes,3,opt,name=addressHex" json:"addressHex,omitempty"`
   524  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   525  	XXX_unrecognized     []byte   `json:"-"`
   526  	XXX_sizecache        int32    `json:"-"`
   527  }
   528  
   529  func (m *EthereumMessageSignature) Reset()         { *m = EthereumMessageSignature{} }
   530  func (m *EthereumMessageSignature) String() string { return proto.CompactTextString(m) }
   531  func (*EthereumMessageSignature) ProtoMessage()    {}
   532  func (*EthereumMessageSignature) Descriptor() ([]byte, []int) {
   533  	return fileDescriptor_cb33f46ba915f15c, []int{8}
   534  }
   535  
   536  func (m *EthereumMessageSignature) XXX_Unmarshal(b []byte) error {
   537  	return xxx_messageInfo_EthereumMessageSignature.Unmarshal(m, b)
   538  }
   539  func (m *EthereumMessageSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   540  	return xxx_messageInfo_EthereumMessageSignature.Marshal(b, m, deterministic)
   541  }
   542  func (m *EthereumMessageSignature) XXX_Merge(src proto.Message) {
   543  	xxx_messageInfo_EthereumMessageSignature.Merge(m, src)
   544  }
   545  func (m *EthereumMessageSignature) XXX_Size() int {
   546  	return xxx_messageInfo_EthereumMessageSignature.Size(m)
   547  }
   548  func (m *EthereumMessageSignature) XXX_DiscardUnknown() {
   549  	xxx_messageInfo_EthereumMessageSignature.DiscardUnknown(m)
   550  }
   551  
   552  var xxx_messageInfo_EthereumMessageSignature proto.InternalMessageInfo
   553  
   554  func (m *EthereumMessageSignature) GetAddressBin() []byte {
   555  	if m != nil {
   556  		return m.AddressBin
   557  	}
   558  	return nil
   559  }
   560  
   561  func (m *EthereumMessageSignature) GetSignature() []byte {
   562  	if m != nil {
   563  		return m.Signature
   564  	}
   565  	return nil
   566  }
   567  
   568  func (m *EthereumMessageSignature) GetAddressHex() string {
   569  	if m != nil && m.AddressHex != nil {
   570  		return *m.AddressHex
   571  	}
   572  	return ""
   573  }
   574  
   575  //*
   576  // Request: Ask device to verify message
   577  // @start
   578  // @next Success
   579  // @next Failure
   580  type EthereumVerifyMessage struct {
   581  	AddressBin           []byte   `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"`
   582  	Signature            []byte   `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
   583  	Message              []byte   `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
   584  	AddressHex           *string  `protobuf:"bytes,4,opt,name=addressHex" json:"addressHex,omitempty"`
   585  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   586  	XXX_unrecognized     []byte   `json:"-"`
   587  	XXX_sizecache        int32    `json:"-"`
   588  }
   589  
   590  func (m *EthereumVerifyMessage) Reset()         { *m = EthereumVerifyMessage{} }
   591  func (m *EthereumVerifyMessage) String() string { return proto.CompactTextString(m) }
   592  func (*EthereumVerifyMessage) ProtoMessage()    {}
   593  func (*EthereumVerifyMessage) Descriptor() ([]byte, []int) {
   594  	return fileDescriptor_cb33f46ba915f15c, []int{9}
   595  }
   596  
   597  func (m *EthereumVerifyMessage) XXX_Unmarshal(b []byte) error {
   598  	return xxx_messageInfo_EthereumVerifyMessage.Unmarshal(m, b)
   599  }
   600  func (m *EthereumVerifyMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   601  	return xxx_messageInfo_EthereumVerifyMessage.Marshal(b, m, deterministic)
   602  }
   603  func (m *EthereumVerifyMessage) XXX_Merge(src proto.Message) {
   604  	xxx_messageInfo_EthereumVerifyMessage.Merge(m, src)
   605  }
   606  func (m *EthereumVerifyMessage) XXX_Size() int {
   607  	return xxx_messageInfo_EthereumVerifyMessage.Size(m)
   608  }
   609  func (m *EthereumVerifyMessage) XXX_DiscardUnknown() {
   610  	xxx_messageInfo_EthereumVerifyMessage.DiscardUnknown(m)
   611  }
   612  
   613  var xxx_messageInfo_EthereumVerifyMessage proto.InternalMessageInfo
   614  
   615  func (m *EthereumVerifyMessage) GetAddressBin() []byte {
   616  	if m != nil {
   617  		return m.AddressBin
   618  	}
   619  	return nil
   620  }
   621  
   622  func (m *EthereumVerifyMessage) GetSignature() []byte {
   623  	if m != nil {
   624  		return m.Signature
   625  	}
   626  	return nil
   627  }
   628  
   629  func (m *EthereumVerifyMessage) GetMessage() []byte {
   630  	if m != nil {
   631  		return m.Message
   632  	}
   633  	return nil
   634  }
   635  
   636  func (m *EthereumVerifyMessage) GetAddressHex() string {
   637  	if m != nil && m.AddressHex != nil {
   638  		return *m.AddressHex
   639  	}
   640  	return ""
   641  }
   642  
   643  func init() {
   644  	proto.RegisterType((*EthereumGetPublicKey)(nil), "hw.trezor.messages.ethereum.EthereumGetPublicKey")
   645  	proto.RegisterType((*EthereumPublicKey)(nil), "hw.trezor.messages.ethereum.EthereumPublicKey")
   646  	proto.RegisterType((*EthereumGetAddress)(nil), "hw.trezor.messages.ethereum.EthereumGetAddress")
   647  	proto.RegisterType((*EthereumAddress)(nil), "hw.trezor.messages.ethereum.EthereumAddress")
   648  	proto.RegisterType((*EthereumSignTx)(nil), "hw.trezor.messages.ethereum.EthereumSignTx")
   649  	proto.RegisterType((*EthereumTxRequest)(nil), "hw.trezor.messages.ethereum.EthereumTxRequest")
   650  	proto.RegisterType((*EthereumTxAck)(nil), "hw.trezor.messages.ethereum.EthereumTxAck")
   651  	proto.RegisterType((*EthereumSignMessage)(nil), "hw.trezor.messages.ethereum.EthereumSignMessage")
   652  	proto.RegisterType((*EthereumMessageSignature)(nil), "hw.trezor.messages.ethereum.EthereumMessageSignature")
   653  	proto.RegisterType((*EthereumVerifyMessage)(nil), "hw.trezor.messages.ethereum.EthereumVerifyMessage")
   654  }
   655  
   656  func init() { proto.RegisterFile("messages-ethereum.proto", fileDescriptor_cb33f46ba915f15c) }
   657  
   658  var fileDescriptor_cb33f46ba915f15c = []byte{
   659  	// 593 bytes of a gzipped FileDescriptorProto
   660  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0x4d, 0x6f, 0xd3, 0x40,
   661  	0x10, 0x95, 0x9b, 0xb4, 0x49, 0x26, 0x0d, 0x1f, 0xa6, 0x55, 0x17, 0x0a, 0x34, 0x18, 0x21, 0xe5,
   662  	0x00, 0x3e, 0x70, 0x43, 0xe2, 0xd2, 0x52, 0x44, 0x2b, 0x4a, 0x55, 0xdc, 0xa8, 0x57, 0x6b, 0x63,
   663  	0x6f, 0xe3, 0x55, 0x9d, 0xdd, 0xe0, 0x5d, 0xb7, 0x0e, 0x7f, 0x82, 0x23, 0xff, 0x87, 0x5f, 0x86,
   664  	0xf6, 0x2b, 0x71, 0x52, 0x54, 0x0e, 0xbd, 0x65, 0xde, 0xbc, 0x7d, 0xf3, 0x66, 0xf4, 0x62, 0xd8,
   665  	0x99, 0x10, 0x21, 0xf0, 0x98, 0x88, 0x77, 0x44, 0x66, 0xa4, 0x20, 0xe5, 0x24, 0x9c, 0x16, 0x5c,
   666  	0x72, 0x7f, 0x37, 0xbb, 0x09, 0x65, 0x41, 0x7e, 0xf2, 0x22, 0x74, 0x94, 0xd0, 0x51, 0x9e, 0x6d,
   667  	0xcf, 0x5f, 0x25, 0x7c, 0x32, 0xe1, 0xcc, 0xbc, 0x09, 0x2e, 0x60, 0xeb, 0xb3, 0xa5, 0x7c, 0x21,
   668  	0xf2, 0xac, 0x1c, 0xe5, 0x34, 0xf9, 0x4a, 0x66, 0xfe, 0x2e, 0x74, 0x70, 0x9a, 0x16, 0x44, 0x88,
   669  	0x98, 0x21, 0xaf, 0xdf, 0x18, 0xf4, 0xa2, 0xb6, 0x05, 0x4e, 0xfd, 0x57, 0xb0, 0x29, 0x32, 0x7e,
   670  	0x13, 0xa7, 0x54, 0x4c, 0x73, 0x3c, 0x43, 0x6b, 0x7d, 0x6f, 0xd0, 0x8e, 0xba, 0x0a, 0x3b, 0x34,
   671  	0x50, 0x30, 0x82, 0xc7, 0x4e, 0x77, 0x21, 0xfa, 0x01, 0x9a, 0x8c, 0xa7, 0x04, 0x79, 0x7d, 0x6f,
   672  	0xd0, 0x7d, 0xff, 0x26, 0xfc, 0x87, 0x5f, 0x6b, 0xee, 0xe8, 0xf0, 0x94, 0xa7, 0x64, 0x38, 0x9b,
   673  	0x92, 0x48, 0x3f, 0xf1, 0x7d, 0x68, 0x56, 0xd3, 0x72, 0xa4, 0x47, 0x75, 0x22, 0xfd, 0x3b, 0x18,
   674  	0x82, 0x5f, 0xf3, 0xbe, 0x6f, 0xdc, 0xdd, 0xdb, 0xf9, 0x77, 0x78, 0xe8, 0x54, 0x9d, 0xe4, 0x4b,
   675  	0x00, 0xab, 0x70, 0x40, 0x99, 0x76, 0xbf, 0x19, 0xd5, 0x90, 0x5a, 0xff, 0x88, 0x54, 0xd6, 0x62,
   676  	0x0d, 0x09, 0xfe, 0xac, 0xc1, 0x03, 0xa7, 0x79, 0x4e, 0xc7, 0x6c, 0x58, 0xdd, 0xed, 0x72, 0x0b,
   677  	0xd6, 0x19, 0x67, 0x09, 0xd1, 0x52, 0x9b, 0x91, 0x29, 0xd4, 0x93, 0x31, 0x16, 0xf1, 0xb4, 0xa0,
   678  	0x09, 0x41, 0x0d, 0xdd, 0x69, 0x8f, 0xb1, 0x38, 0x53, 0xb5, 0x6b, 0xe6, 0x74, 0x42, 0x25, 0x6a,
   679  	0xce, 0x9b, 0x27, 0xaa, 0x56, 0x7a, 0x92, 0x2b, 0xeb, 0xeb, 0x46, 0x4f, 0x17, 0x06, 0x55, 0x86,
   680  	0xbb, 0xda, 0xb0, 0x29, 0x14, 0x7a, 0x8d, 0xf3, 0x92, 0xa0, 0x0d, 0xc3, 0xd5, 0x85, 0xff, 0x16,
   681  	0xfc, 0x14, 0x4b, 0x1c, 0x53, 0x46, 0x25, 0xc5, 0x79, 0x9c, 0x64, 0x25, 0xbb, 0x42, 0x2d, 0x4d,
   682  	0x79, 0xa4, 0x3a, 0xc7, 0xa6, 0xf1, 0x49, 0xe1, 0xfe, 0x1e, 0x74, 0x35, 0x3b, 0x27, 0x6c, 0x2c,
   683  	0x33, 0xd4, 0xee, 0x7b, 0x83, 0x5e, 0x04, 0x0a, 0x3a, 0xd1, 0x88, 0xff, 0x14, 0xda, 0x49, 0x86,
   684  	0x29, 0x8b, 0x69, 0x8a, 0x3a, 0xba, 0xdb, 0xd2, 0xf5, 0x71, 0xea, 0xef, 0x40, 0x4b, 0x56, 0xb1,
   685  	0x9c, 0x4d, 0x09, 0x02, 0xdd, 0xd9, 0x90, 0x95, 0xca, 0x41, 0xf0, 0xdb, 0x5b, 0x44, 0x6a, 0x58,
   686  	0x45, 0xe4, 0x47, 0x49, 0x84, 0x5c, 0x1d, 0xe5, 0xdd, 0x1a, 0xb5, 0x07, 0x5d, 0x41, 0xc7, 0x0c,
   687  	0xcb, 0xb2, 0x20, 0xf1, 0xb5, 0xbe, 0x68, 0x2f, 0x82, 0x39, 0x74, 0xb1, 0x4c, 0x28, 0xec, 0x61,
   688  	0x17, 0x84, 0x68, 0x99, 0x20, 0xec, 0x71, 0x17, 0x84, 0xf3, 0x20, 0x84, 0xde, 0xc2, 0xd8, 0x7e,
   689  	0x72, 0xe5, 0xbf, 0x00, 0xed, 0xc0, 0x5e, 0xc9, 0xe4, 0xa5, 0xa3, 0x10, 0x7d, 0x9e, 0xe0, 0x04,
   690  	0x9e, 0xd4, 0xd3, 0xf0, 0xcd, 0x64, 0xff, 0xee, 0x48, 0x20, 0x68, 0xd9, 0xff, 0x88, 0x0d, 0x85,
   691  	0x2b, 0x83, 0x0a, 0x90, 0x53, 0xb3, 0x4a, 0xe7, 0xce, 0xda, 0x7f, 0x83, 0xfb, 0x1c, 0x3a, 0xf3,
   692  	0x3d, 0xac, 0xee, 0x02, 0x58, 0x89, 0x75, 0xe3, 0x56, 0xac, 0x7f, 0x79, 0xb0, 0xed, 0x46, 0x5f,
   693  	0x90, 0x82, 0x5e, 0xce, 0xdc, 0x2a, 0xf7, 0x9b, 0x5b, 0xdb, 0xb5, 0xb1, 0xb4, 0xeb, 0x8a, 0xa3,
   694  	0xe6, 0xaa, 0xa3, 0x83, 0x8f, 0xf0, 0x3a, 0xe1, 0x93, 0x50, 0x60, 0xc9, 0x45, 0x46, 0x73, 0x3c,
   695  	0x12, 0xee, 0x03, 0x93, 0xd3, 0x91, 0xf9, 0xe2, 0x8d, 0xca, 0xcb, 0x83, 0xed, 0xa1, 0x06, 0xad,
   696  	0x5b, 0xb7, 0xc2, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8a, 0xce, 0x81, 0xc8, 0x59, 0x05, 0x00,
   697  	0x00,
   698  }