github.com/ethereum/go-ethereum@v1.16.1/accounts/usbwallet/trezor/messages-ethereum.pb.go (about) 1 // This file originates from the SatoshiLabs Trezor `common` repository at: 2 // https://github.com/trezor/trezor-common/blob/master/protob/messages-ethereum.proto 3 // dated 28.05.2019, commit 893fd219d4a01bcffa0cd9cfa631856371ec5aa9. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.34.2 8 // protoc v5.27.1 9 // source: messages-ethereum.proto 10 11 package trezor 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // * 28 // Request: Ask device for public key corresponding to address_n path 29 // @start 30 // @next EthereumPublicKey 31 // @next Failure 32 type EthereumGetPublicKey struct { 33 state protoimpl.MessageState 34 sizeCache protoimpl.SizeCache 35 unknownFields protoimpl.UnknownFields 36 37 AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node 38 ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"` // optionally show on display before sending the result 39 } 40 41 func (x *EthereumGetPublicKey) Reset() { 42 *x = EthereumGetPublicKey{} 43 if protoimpl.UnsafeEnabled { 44 mi := &file_messages_ethereum_proto_msgTypes[0] 45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 46 ms.StoreMessageInfo(mi) 47 } 48 } 49 50 func (x *EthereumGetPublicKey) String() string { 51 return protoimpl.X.MessageStringOf(x) 52 } 53 54 func (*EthereumGetPublicKey) ProtoMessage() {} 55 56 func (x *EthereumGetPublicKey) ProtoReflect() protoreflect.Message { 57 mi := &file_messages_ethereum_proto_msgTypes[0] 58 if protoimpl.UnsafeEnabled && x != nil { 59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 60 if ms.LoadMessageInfo() == nil { 61 ms.StoreMessageInfo(mi) 62 } 63 return ms 64 } 65 return mi.MessageOf(x) 66 } 67 68 // Deprecated: Use EthereumGetPublicKey.ProtoReflect.Descriptor instead. 69 func (*EthereumGetPublicKey) Descriptor() ([]byte, []int) { 70 return file_messages_ethereum_proto_rawDescGZIP(), []int{0} 71 } 72 73 func (x *EthereumGetPublicKey) GetAddressN() []uint32 { 74 if x != nil { 75 return x.AddressN 76 } 77 return nil 78 } 79 80 func (x *EthereumGetPublicKey) GetShowDisplay() bool { 81 if x != nil && x.ShowDisplay != nil { 82 return *x.ShowDisplay 83 } 84 return false 85 } 86 87 // * 88 // Response: Contains public key derived from device private seed 89 // @end 90 type EthereumPublicKey struct { 91 state protoimpl.MessageState 92 sizeCache protoimpl.SizeCache 93 unknownFields protoimpl.UnknownFields 94 95 Node *HDNodeType `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"` // BIP32 public node 96 Xpub *string `protobuf:"bytes,2,opt,name=xpub" json:"xpub,omitempty"` // serialized form of public node 97 } 98 99 func (x *EthereumPublicKey) Reset() { 100 *x = EthereumPublicKey{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_messages_ethereum_proto_msgTypes[1] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *EthereumPublicKey) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*EthereumPublicKey) ProtoMessage() {} 113 114 func (x *EthereumPublicKey) ProtoReflect() protoreflect.Message { 115 mi := &file_messages_ethereum_proto_msgTypes[1] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use EthereumPublicKey.ProtoReflect.Descriptor instead. 127 func (*EthereumPublicKey) Descriptor() ([]byte, []int) { 128 return file_messages_ethereum_proto_rawDescGZIP(), []int{1} 129 } 130 131 func (x *EthereumPublicKey) GetNode() *HDNodeType { 132 if x != nil { 133 return x.Node 134 } 135 return nil 136 } 137 138 func (x *EthereumPublicKey) GetXpub() string { 139 if x != nil && x.Xpub != nil { 140 return *x.Xpub 141 } 142 return "" 143 } 144 145 // * 146 // Request: Ask device for Ethereum address corresponding to address_n path 147 // @start 148 // @next EthereumAddress 149 // @next Failure 150 type EthereumGetAddress struct { 151 state protoimpl.MessageState 152 sizeCache protoimpl.SizeCache 153 unknownFields protoimpl.UnknownFields 154 155 AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node 156 ShowDisplay *bool `protobuf:"varint,2,opt,name=show_display,json=showDisplay" json:"show_display,omitempty"` // optionally show on display before sending the result 157 } 158 159 func (x *EthereumGetAddress) Reset() { 160 *x = EthereumGetAddress{} 161 if protoimpl.UnsafeEnabled { 162 mi := &file_messages_ethereum_proto_msgTypes[2] 163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 164 ms.StoreMessageInfo(mi) 165 } 166 } 167 168 func (x *EthereumGetAddress) String() string { 169 return protoimpl.X.MessageStringOf(x) 170 } 171 172 func (*EthereumGetAddress) ProtoMessage() {} 173 174 func (x *EthereumGetAddress) ProtoReflect() protoreflect.Message { 175 mi := &file_messages_ethereum_proto_msgTypes[2] 176 if protoimpl.UnsafeEnabled && x != nil { 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 if ms.LoadMessageInfo() == nil { 179 ms.StoreMessageInfo(mi) 180 } 181 return ms 182 } 183 return mi.MessageOf(x) 184 } 185 186 // Deprecated: Use EthereumGetAddress.ProtoReflect.Descriptor instead. 187 func (*EthereumGetAddress) Descriptor() ([]byte, []int) { 188 return file_messages_ethereum_proto_rawDescGZIP(), []int{2} 189 } 190 191 func (x *EthereumGetAddress) GetAddressN() []uint32 { 192 if x != nil { 193 return x.AddressN 194 } 195 return nil 196 } 197 198 func (x *EthereumGetAddress) GetShowDisplay() bool { 199 if x != nil && x.ShowDisplay != nil { 200 return *x.ShowDisplay 201 } 202 return false 203 } 204 205 // * 206 // Response: Contains an Ethereum address derived from device private seed 207 // @end 208 type EthereumAddress struct { 209 state protoimpl.MessageState 210 sizeCache protoimpl.SizeCache 211 unknownFields protoimpl.UnknownFields 212 213 AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // Ethereum address as 20 bytes (legacy firmwares) 214 AddressHex *string `protobuf:"bytes,2,opt,name=addressHex" json:"addressHex,omitempty"` // Ethereum address as hex string (newer firmwares) 215 } 216 217 func (x *EthereumAddress) Reset() { 218 *x = EthereumAddress{} 219 if protoimpl.UnsafeEnabled { 220 mi := &file_messages_ethereum_proto_msgTypes[3] 221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 222 ms.StoreMessageInfo(mi) 223 } 224 } 225 226 func (x *EthereumAddress) String() string { 227 return protoimpl.X.MessageStringOf(x) 228 } 229 230 func (*EthereumAddress) ProtoMessage() {} 231 232 func (x *EthereumAddress) ProtoReflect() protoreflect.Message { 233 mi := &file_messages_ethereum_proto_msgTypes[3] 234 if protoimpl.UnsafeEnabled && x != nil { 235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 236 if ms.LoadMessageInfo() == nil { 237 ms.StoreMessageInfo(mi) 238 } 239 return ms 240 } 241 return mi.MessageOf(x) 242 } 243 244 // Deprecated: Use EthereumAddress.ProtoReflect.Descriptor instead. 245 func (*EthereumAddress) Descriptor() ([]byte, []int) { 246 return file_messages_ethereum_proto_rawDescGZIP(), []int{3} 247 } 248 249 func (x *EthereumAddress) GetAddressBin() []byte { 250 if x != nil { 251 return x.AddressBin 252 } 253 return nil 254 } 255 256 func (x *EthereumAddress) GetAddressHex() string { 257 if x != nil && x.AddressHex != nil { 258 return *x.AddressHex 259 } 260 return "" 261 } 262 263 // * 264 // Request: Ask device to sign transaction 265 // All fields are optional from the protocol's point of view. Each field defaults to value `0` if missing. 266 // Note: the first at most 1024 bytes of data MUST be transmitted as part of this message. 267 // @start 268 // @next EthereumTxRequest 269 // @next Failure 270 type EthereumSignTx struct { 271 state protoimpl.MessageState 272 sizeCache protoimpl.SizeCache 273 unknownFields protoimpl.UnknownFields 274 275 AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node 276 Nonce []byte `protobuf:"bytes,2,opt,name=nonce" json:"nonce,omitempty"` // <=256 bit unsigned big endian 277 GasPrice []byte `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"` // <=256 bit unsigned big endian (in wei) 278 GasLimit []byte `protobuf:"bytes,4,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"` // <=256 bit unsigned big endian 279 ToBin []byte `protobuf:"bytes,5,opt,name=toBin" json:"toBin,omitempty"` // recipient address (20 bytes, legacy firmware) 280 ToHex *string `protobuf:"bytes,11,opt,name=toHex" json:"toHex,omitempty"` // recipient address (hex string, newer firmware) 281 Value []byte `protobuf:"bytes,6,opt,name=value" json:"value,omitempty"` // <=256 bit unsigned big endian (in wei) 282 DataInitialChunk []byte `protobuf:"bytes,7,opt,name=data_initial_chunk,json=dataInitialChunk" json:"data_initial_chunk,omitempty"` // The initial data chunk (<= 1024 bytes) 283 DataLength *uint32 `protobuf:"varint,8,opt,name=data_length,json=dataLength" json:"data_length,omitempty"` // Length of transaction payload 284 ChainId *uint32 `protobuf:"varint,9,opt,name=chain_id,json=chainId" json:"chain_id,omitempty"` // Chain Id for EIP 155 285 TxType *uint32 `protobuf:"varint,10,opt,name=tx_type,json=txType" json:"tx_type,omitempty"` // (only for Wanchain) 286 } 287 288 func (x *EthereumSignTx) Reset() { 289 *x = EthereumSignTx{} 290 if protoimpl.UnsafeEnabled { 291 mi := &file_messages_ethereum_proto_msgTypes[4] 292 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 293 ms.StoreMessageInfo(mi) 294 } 295 } 296 297 func (x *EthereumSignTx) String() string { 298 return protoimpl.X.MessageStringOf(x) 299 } 300 301 func (*EthereumSignTx) ProtoMessage() {} 302 303 func (x *EthereumSignTx) ProtoReflect() protoreflect.Message { 304 mi := &file_messages_ethereum_proto_msgTypes[4] 305 if protoimpl.UnsafeEnabled && x != nil { 306 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 307 if ms.LoadMessageInfo() == nil { 308 ms.StoreMessageInfo(mi) 309 } 310 return ms 311 } 312 return mi.MessageOf(x) 313 } 314 315 // Deprecated: Use EthereumSignTx.ProtoReflect.Descriptor instead. 316 func (*EthereumSignTx) Descriptor() ([]byte, []int) { 317 return file_messages_ethereum_proto_rawDescGZIP(), []int{4} 318 } 319 320 func (x *EthereumSignTx) GetAddressN() []uint32 { 321 if x != nil { 322 return x.AddressN 323 } 324 return nil 325 } 326 327 func (x *EthereumSignTx) GetNonce() []byte { 328 if x != nil { 329 return x.Nonce 330 } 331 return nil 332 } 333 334 func (x *EthereumSignTx) GetGasPrice() []byte { 335 if x != nil { 336 return x.GasPrice 337 } 338 return nil 339 } 340 341 func (x *EthereumSignTx) GetGasLimit() []byte { 342 if x != nil { 343 return x.GasLimit 344 } 345 return nil 346 } 347 348 func (x *EthereumSignTx) GetToBin() []byte { 349 if x != nil { 350 return x.ToBin 351 } 352 return nil 353 } 354 355 func (x *EthereumSignTx) GetToHex() string { 356 if x != nil && x.ToHex != nil { 357 return *x.ToHex 358 } 359 return "" 360 } 361 362 func (x *EthereumSignTx) GetValue() []byte { 363 if x != nil { 364 return x.Value 365 } 366 return nil 367 } 368 369 func (x *EthereumSignTx) GetDataInitialChunk() []byte { 370 if x != nil { 371 return x.DataInitialChunk 372 } 373 return nil 374 } 375 376 func (x *EthereumSignTx) GetDataLength() uint32 { 377 if x != nil && x.DataLength != nil { 378 return *x.DataLength 379 } 380 return 0 381 } 382 383 func (x *EthereumSignTx) GetChainId() uint32 { 384 if x != nil && x.ChainId != nil { 385 return *x.ChainId 386 } 387 return 0 388 } 389 390 func (x *EthereumSignTx) GetTxType() uint32 { 391 if x != nil && x.TxType != nil { 392 return *x.TxType 393 } 394 return 0 395 } 396 397 // * 398 // Response: Device asks for more data from transaction payload, or returns the signature. 399 // If data_length is set, device awaits that many more bytes of payload. 400 // Otherwise, the signature_* fields contain the computed transaction signature. All three fields will be present. 401 // @end 402 // @next EthereumTxAck 403 type EthereumTxRequest struct { 404 state protoimpl.MessageState 405 sizeCache protoimpl.SizeCache 406 unknownFields protoimpl.UnknownFields 407 408 DataLength *uint32 `protobuf:"varint,1,opt,name=data_length,json=dataLength" json:"data_length,omitempty"` // Number of bytes being requested (<= 1024) 409 SignatureV *uint32 `protobuf:"varint,2,opt,name=signature_v,json=signatureV" json:"signature_v,omitempty"` // Computed signature (recovery parameter, limited to 27 or 28) 410 SignatureR []byte `protobuf:"bytes,3,opt,name=signature_r,json=signatureR" json:"signature_r,omitempty"` // Computed signature R component (256 bit) 411 SignatureS []byte `protobuf:"bytes,4,opt,name=signature_s,json=signatureS" json:"signature_s,omitempty"` // Computed signature S component (256 bit) 412 } 413 414 func (x *EthereumTxRequest) Reset() { 415 *x = EthereumTxRequest{} 416 if protoimpl.UnsafeEnabled { 417 mi := &file_messages_ethereum_proto_msgTypes[5] 418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 419 ms.StoreMessageInfo(mi) 420 } 421 } 422 423 func (x *EthereumTxRequest) String() string { 424 return protoimpl.X.MessageStringOf(x) 425 } 426 427 func (*EthereumTxRequest) ProtoMessage() {} 428 429 func (x *EthereumTxRequest) ProtoReflect() protoreflect.Message { 430 mi := &file_messages_ethereum_proto_msgTypes[5] 431 if protoimpl.UnsafeEnabled && x != nil { 432 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 433 if ms.LoadMessageInfo() == nil { 434 ms.StoreMessageInfo(mi) 435 } 436 return ms 437 } 438 return mi.MessageOf(x) 439 } 440 441 // Deprecated: Use EthereumTxRequest.ProtoReflect.Descriptor instead. 442 func (*EthereumTxRequest) Descriptor() ([]byte, []int) { 443 return file_messages_ethereum_proto_rawDescGZIP(), []int{5} 444 } 445 446 func (x *EthereumTxRequest) GetDataLength() uint32 { 447 if x != nil && x.DataLength != nil { 448 return *x.DataLength 449 } 450 return 0 451 } 452 453 func (x *EthereumTxRequest) GetSignatureV() uint32 { 454 if x != nil && x.SignatureV != nil { 455 return *x.SignatureV 456 } 457 return 0 458 } 459 460 func (x *EthereumTxRequest) GetSignatureR() []byte { 461 if x != nil { 462 return x.SignatureR 463 } 464 return nil 465 } 466 467 func (x *EthereumTxRequest) GetSignatureS() []byte { 468 if x != nil { 469 return x.SignatureS 470 } 471 return nil 472 } 473 474 // * 475 // Request: Transaction payload data. 476 // @next EthereumTxRequest 477 type EthereumTxAck struct { 478 state protoimpl.MessageState 479 sizeCache protoimpl.SizeCache 480 unknownFields protoimpl.UnknownFields 481 482 DataChunk []byte `protobuf:"bytes,1,opt,name=data_chunk,json=dataChunk" json:"data_chunk,omitempty"` // Bytes from transaction payload (<= 1024 bytes) 483 } 484 485 func (x *EthereumTxAck) Reset() { 486 *x = EthereumTxAck{} 487 if protoimpl.UnsafeEnabled { 488 mi := &file_messages_ethereum_proto_msgTypes[6] 489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 490 ms.StoreMessageInfo(mi) 491 } 492 } 493 494 func (x *EthereumTxAck) String() string { 495 return protoimpl.X.MessageStringOf(x) 496 } 497 498 func (*EthereumTxAck) ProtoMessage() {} 499 500 func (x *EthereumTxAck) ProtoReflect() protoreflect.Message { 501 mi := &file_messages_ethereum_proto_msgTypes[6] 502 if protoimpl.UnsafeEnabled && x != nil { 503 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 504 if ms.LoadMessageInfo() == nil { 505 ms.StoreMessageInfo(mi) 506 } 507 return ms 508 } 509 return mi.MessageOf(x) 510 } 511 512 // Deprecated: Use EthereumTxAck.ProtoReflect.Descriptor instead. 513 func (*EthereumTxAck) Descriptor() ([]byte, []int) { 514 return file_messages_ethereum_proto_rawDescGZIP(), []int{6} 515 } 516 517 func (x *EthereumTxAck) GetDataChunk() []byte { 518 if x != nil { 519 return x.DataChunk 520 } 521 return nil 522 } 523 524 // * 525 // Request: Ask device to sign message 526 // @start 527 // @next EthereumMessageSignature 528 // @next Failure 529 type EthereumSignMessage struct { 530 state protoimpl.MessageState 531 sizeCache protoimpl.SizeCache 532 unknownFields protoimpl.UnknownFields 533 534 AddressN []uint32 `protobuf:"varint,1,rep,name=address_n,json=addressN" json:"address_n,omitempty"` // BIP-32 path to derive the key from master node 535 Message []byte `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` // message to be signed 536 } 537 538 func (x *EthereumSignMessage) Reset() { 539 *x = EthereumSignMessage{} 540 if protoimpl.UnsafeEnabled { 541 mi := &file_messages_ethereum_proto_msgTypes[7] 542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 543 ms.StoreMessageInfo(mi) 544 } 545 } 546 547 func (x *EthereumSignMessage) String() string { 548 return protoimpl.X.MessageStringOf(x) 549 } 550 551 func (*EthereumSignMessage) ProtoMessage() {} 552 553 func (x *EthereumSignMessage) ProtoReflect() protoreflect.Message { 554 mi := &file_messages_ethereum_proto_msgTypes[7] 555 if protoimpl.UnsafeEnabled && x != nil { 556 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 557 if ms.LoadMessageInfo() == nil { 558 ms.StoreMessageInfo(mi) 559 } 560 return ms 561 } 562 return mi.MessageOf(x) 563 } 564 565 // Deprecated: Use EthereumSignMessage.ProtoReflect.Descriptor instead. 566 func (*EthereumSignMessage) Descriptor() ([]byte, []int) { 567 return file_messages_ethereum_proto_rawDescGZIP(), []int{7} 568 } 569 570 func (x *EthereumSignMessage) GetAddressN() []uint32 { 571 if x != nil { 572 return x.AddressN 573 } 574 return nil 575 } 576 577 func (x *EthereumSignMessage) GetMessage() []byte { 578 if x != nil { 579 return x.Message 580 } 581 return nil 582 } 583 584 // * 585 // Response: Signed message 586 // @end 587 type EthereumMessageSignature struct { 588 state protoimpl.MessageState 589 sizeCache protoimpl.SizeCache 590 unknownFields protoimpl.UnknownFields 591 592 AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // address used to sign the message (20 bytes, legacy firmware) 593 Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` // signature of the message 594 AddressHex *string `protobuf:"bytes,3,opt,name=addressHex" json:"addressHex,omitempty"` // address used to sign the message (hex string, newer firmware) 595 } 596 597 func (x *EthereumMessageSignature) Reset() { 598 *x = EthereumMessageSignature{} 599 if protoimpl.UnsafeEnabled { 600 mi := &file_messages_ethereum_proto_msgTypes[8] 601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 602 ms.StoreMessageInfo(mi) 603 } 604 } 605 606 func (x *EthereumMessageSignature) String() string { 607 return protoimpl.X.MessageStringOf(x) 608 } 609 610 func (*EthereumMessageSignature) ProtoMessage() {} 611 612 func (x *EthereumMessageSignature) ProtoReflect() protoreflect.Message { 613 mi := &file_messages_ethereum_proto_msgTypes[8] 614 if protoimpl.UnsafeEnabled && x != nil { 615 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 616 if ms.LoadMessageInfo() == nil { 617 ms.StoreMessageInfo(mi) 618 } 619 return ms 620 } 621 return mi.MessageOf(x) 622 } 623 624 // Deprecated: Use EthereumMessageSignature.ProtoReflect.Descriptor instead. 625 func (*EthereumMessageSignature) Descriptor() ([]byte, []int) { 626 return file_messages_ethereum_proto_rawDescGZIP(), []int{8} 627 } 628 629 func (x *EthereumMessageSignature) GetAddressBin() []byte { 630 if x != nil { 631 return x.AddressBin 632 } 633 return nil 634 } 635 636 func (x *EthereumMessageSignature) GetSignature() []byte { 637 if x != nil { 638 return x.Signature 639 } 640 return nil 641 } 642 643 func (x *EthereumMessageSignature) GetAddressHex() string { 644 if x != nil && x.AddressHex != nil { 645 return *x.AddressHex 646 } 647 return "" 648 } 649 650 // * 651 // Request: Ask device to verify message 652 // @start 653 // @next Success 654 // @next Failure 655 type EthereumVerifyMessage struct { 656 state protoimpl.MessageState 657 sizeCache protoimpl.SizeCache 658 unknownFields protoimpl.UnknownFields 659 660 AddressBin []byte `protobuf:"bytes,1,opt,name=addressBin" json:"addressBin,omitempty"` // address to verify (20 bytes, legacy firmware) 661 Signature []byte `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"` // signature to verify 662 Message []byte `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` // message to verify 663 AddressHex *string `protobuf:"bytes,4,opt,name=addressHex" json:"addressHex,omitempty"` // address to verify (hex string, newer firmware) 664 } 665 666 func (x *EthereumVerifyMessage) Reset() { 667 *x = EthereumVerifyMessage{} 668 if protoimpl.UnsafeEnabled { 669 mi := &file_messages_ethereum_proto_msgTypes[9] 670 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 671 ms.StoreMessageInfo(mi) 672 } 673 } 674 675 func (x *EthereumVerifyMessage) String() string { 676 return protoimpl.X.MessageStringOf(x) 677 } 678 679 func (*EthereumVerifyMessage) ProtoMessage() {} 680 681 func (x *EthereumVerifyMessage) ProtoReflect() protoreflect.Message { 682 mi := &file_messages_ethereum_proto_msgTypes[9] 683 if protoimpl.UnsafeEnabled && x != nil { 684 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 685 if ms.LoadMessageInfo() == nil { 686 ms.StoreMessageInfo(mi) 687 } 688 return ms 689 } 690 return mi.MessageOf(x) 691 } 692 693 // Deprecated: Use EthereumVerifyMessage.ProtoReflect.Descriptor instead. 694 func (*EthereumVerifyMessage) Descriptor() ([]byte, []int) { 695 return file_messages_ethereum_proto_rawDescGZIP(), []int{9} 696 } 697 698 func (x *EthereumVerifyMessage) GetAddressBin() []byte { 699 if x != nil { 700 return x.AddressBin 701 } 702 return nil 703 } 704 705 func (x *EthereumVerifyMessage) GetSignature() []byte { 706 if x != nil { 707 return x.Signature 708 } 709 return nil 710 } 711 712 func (x *EthereumVerifyMessage) GetMessage() []byte { 713 if x != nil { 714 return x.Message 715 } 716 return nil 717 } 718 719 func (x *EthereumVerifyMessage) GetAddressHex() string { 720 if x != nil && x.AddressHex != nil { 721 return *x.AddressHex 722 } 723 return "" 724 } 725 726 var File_messages_ethereum_proto protoreflect.FileDescriptor 727 728 var file_messages_ethereum_proto_rawDesc = []byte{ 729 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2d, 0x65, 0x74, 0x68, 0x65, 0x72, 730 0x65, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x68, 0x77, 0x2e, 0x74, 0x72, 731 0x65, 0x7a, 0x6f, 0x72, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x65, 0x74, 732 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x1a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 733 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x56, 0x0a, 734 0x14, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, 735 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 736 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 737 0x73, 0x4e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 738 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x69, 739 0x73, 0x70, 0x6c, 0x61, 0x79, 0x22, 0x62, 0x0a, 0x11, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 740 0x6d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x04, 0x6e, 0x6f, 741 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x68, 0x77, 0x2e, 0x74, 0x72, 742 0x65, 0x7a, 0x6f, 0x72, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x63, 0x6f, 743 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x48, 0x44, 0x4e, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 744 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x78, 0x70, 0x75, 0x62, 0x18, 0x02, 0x20, 745 0x01, 0x28, 0x09, 0x52, 0x04, 0x78, 0x70, 0x75, 0x62, 0x22, 0x54, 0x0a, 0x12, 0x45, 0x74, 0x68, 746 0x65, 0x72, 0x65, 0x75, 0x6d, 0x47, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 747 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x03, 748 0x28, 0x0d, 0x52, 0x08, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x12, 0x21, 0x0a, 0x0c, 749 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x18, 0x02, 0x20, 0x01, 750 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x22, 751 0x51, 0x0a, 0x0f, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 752 0x73, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 753 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 754 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x78, 755 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 756 0x65, 0x78, 0x22, 0xc2, 0x02, 0x0a, 0x0e, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x53, 757 0x69, 0x67, 0x6e, 0x54, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 758 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 759 0x73, 0x4e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 760 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 761 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x67, 0x61, 0x73, 762 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x61, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 763 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x67, 0x61, 0x73, 0x4c, 0x69, 0x6d, 764 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x42, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 765 0x0c, 0x52, 0x05, 0x74, 0x6f, 0x42, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x48, 0x65, 766 0x78, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x48, 0x65, 0x78, 0x12, 0x14, 767 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 768 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x69, 0x6e, 0x69, 769 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 770 0x52, 0x10, 0x64, 0x61, 0x74, 0x61, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x75, 771 0x6e, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 772 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 773 0x67, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 774 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x17, 775 0x0a, 0x07, 0x74, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 776 0x06, 0x74, 0x78, 0x54, 0x79, 0x70, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x11, 0x45, 0x74, 0x68, 0x65, 777 0x72, 0x65, 0x75, 0x6d, 0x54, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 778 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 779 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1f, 780 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x76, 0x18, 0x02, 0x20, 781 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x56, 0x12, 782 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x72, 0x18, 0x03, 783 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 784 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x73, 0x18, 785 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 786 0x53, 0x22, 0x2e, 0x0a, 0x0d, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x54, 0x78, 0x41, 787 0x63, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x68, 0x75, 0x6e, 0x6b, 788 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x43, 0x68, 0x75, 0x6e, 789 0x6b, 0x22, 0x4c, 0x0a, 0x13, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x53, 0x69, 0x67, 790 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 791 0x65, 0x73, 0x73, 0x5f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x61, 0x64, 0x64, 792 0x72, 0x65, 0x73, 0x73, 0x4e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 793 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 794 0x78, 0x0a, 0x18, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 795 0x67, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 796 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 797 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 798 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 799 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x64, 0x64, 800 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 801 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x78, 0x22, 0x8f, 0x01, 0x0a, 0x15, 0x45, 0x74, 802 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x65, 0x73, 0x73, 803 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x69, 804 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 805 0x42, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 806 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 807 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 808 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 809 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 810 0x0a, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x78, 0x42, 0x77, 0x0a, 0x23, 0x63, 811 0x6f, 0x6d, 0x2e, 0x73, 0x61, 0x74, 0x6f, 0x73, 0x68, 0x69, 0x6c, 0x61, 0x62, 0x73, 0x2e, 0x74, 812 0x72, 0x65, 0x7a, 0x6f, 0x72, 0x2e, 0x6c, 0x69, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 813 0x75, 0x66, 0x42, 0x15, 0x54, 0x72, 0x65, 0x7a, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 814 0x65, 0x45, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 815 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2f, 0x67, 816 0x6f, 0x2d, 0x65, 0x74, 0x68, 0x65, 0x72, 0x65, 0x75, 0x6d, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 817 0x6e, 0x74, 0x73, 0x2f, 0x75, 0x73, 0x62, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x2f, 0x74, 0x72, 818 0x65, 0x7a, 0x6f, 0x72, 819 } 820 821 var ( 822 file_messages_ethereum_proto_rawDescOnce sync.Once 823 file_messages_ethereum_proto_rawDescData = file_messages_ethereum_proto_rawDesc 824 ) 825 826 func file_messages_ethereum_proto_rawDescGZIP() []byte { 827 file_messages_ethereum_proto_rawDescOnce.Do(func() { 828 file_messages_ethereum_proto_rawDescData = protoimpl.X.CompressGZIP(file_messages_ethereum_proto_rawDescData) 829 }) 830 return file_messages_ethereum_proto_rawDescData 831 } 832 833 var file_messages_ethereum_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 834 var file_messages_ethereum_proto_goTypes = []any{ 835 (*EthereumGetPublicKey)(nil), // 0: hw.trezor.messages.ethereum.EthereumGetPublicKey 836 (*EthereumPublicKey)(nil), // 1: hw.trezor.messages.ethereum.EthereumPublicKey 837 (*EthereumGetAddress)(nil), // 2: hw.trezor.messages.ethereum.EthereumGetAddress 838 (*EthereumAddress)(nil), // 3: hw.trezor.messages.ethereum.EthereumAddress 839 (*EthereumSignTx)(nil), // 4: hw.trezor.messages.ethereum.EthereumSignTx 840 (*EthereumTxRequest)(nil), // 5: hw.trezor.messages.ethereum.EthereumTxRequest 841 (*EthereumTxAck)(nil), // 6: hw.trezor.messages.ethereum.EthereumTxAck 842 (*EthereumSignMessage)(nil), // 7: hw.trezor.messages.ethereum.EthereumSignMessage 843 (*EthereumMessageSignature)(nil), // 8: hw.trezor.messages.ethereum.EthereumMessageSignature 844 (*EthereumVerifyMessage)(nil), // 9: hw.trezor.messages.ethereum.EthereumVerifyMessage 845 (*HDNodeType)(nil), // 10: hw.trezor.messages.common.HDNodeType 846 } 847 var file_messages_ethereum_proto_depIdxs = []int32{ 848 10, // 0: hw.trezor.messages.ethereum.EthereumPublicKey.node:type_name -> hw.trezor.messages.common.HDNodeType 849 1, // [1:1] is the sub-list for method output_type 850 1, // [1:1] is the sub-list for method input_type 851 1, // [1:1] is the sub-list for extension type_name 852 1, // [1:1] is the sub-list for extension extendee 853 0, // [0:1] is the sub-list for field type_name 854 } 855 856 func init() { file_messages_ethereum_proto_init() } 857 func file_messages_ethereum_proto_init() { 858 if File_messages_ethereum_proto != nil { 859 return 860 } 861 file_messages_common_proto_init() 862 if !protoimpl.UnsafeEnabled { 863 file_messages_ethereum_proto_msgTypes[0].Exporter = func(v any, i int) any { 864 switch v := v.(*EthereumGetPublicKey); i { 865 case 0: 866 return &v.state 867 case 1: 868 return &v.sizeCache 869 case 2: 870 return &v.unknownFields 871 default: 872 return nil 873 } 874 } 875 file_messages_ethereum_proto_msgTypes[1].Exporter = func(v any, i int) any { 876 switch v := v.(*EthereumPublicKey); i { 877 case 0: 878 return &v.state 879 case 1: 880 return &v.sizeCache 881 case 2: 882 return &v.unknownFields 883 default: 884 return nil 885 } 886 } 887 file_messages_ethereum_proto_msgTypes[2].Exporter = func(v any, i int) any { 888 switch v := v.(*EthereumGetAddress); i { 889 case 0: 890 return &v.state 891 case 1: 892 return &v.sizeCache 893 case 2: 894 return &v.unknownFields 895 default: 896 return nil 897 } 898 } 899 file_messages_ethereum_proto_msgTypes[3].Exporter = func(v any, i int) any { 900 switch v := v.(*EthereumAddress); i { 901 case 0: 902 return &v.state 903 case 1: 904 return &v.sizeCache 905 case 2: 906 return &v.unknownFields 907 default: 908 return nil 909 } 910 } 911 file_messages_ethereum_proto_msgTypes[4].Exporter = func(v any, i int) any { 912 switch v := v.(*EthereumSignTx); i { 913 case 0: 914 return &v.state 915 case 1: 916 return &v.sizeCache 917 case 2: 918 return &v.unknownFields 919 default: 920 return nil 921 } 922 } 923 file_messages_ethereum_proto_msgTypes[5].Exporter = func(v any, i int) any { 924 switch v := v.(*EthereumTxRequest); i { 925 case 0: 926 return &v.state 927 case 1: 928 return &v.sizeCache 929 case 2: 930 return &v.unknownFields 931 default: 932 return nil 933 } 934 } 935 file_messages_ethereum_proto_msgTypes[6].Exporter = func(v any, i int) any { 936 switch v := v.(*EthereumTxAck); i { 937 case 0: 938 return &v.state 939 case 1: 940 return &v.sizeCache 941 case 2: 942 return &v.unknownFields 943 default: 944 return nil 945 } 946 } 947 file_messages_ethereum_proto_msgTypes[7].Exporter = func(v any, i int) any { 948 switch v := v.(*EthereumSignMessage); i { 949 case 0: 950 return &v.state 951 case 1: 952 return &v.sizeCache 953 case 2: 954 return &v.unknownFields 955 default: 956 return nil 957 } 958 } 959 file_messages_ethereum_proto_msgTypes[8].Exporter = func(v any, i int) any { 960 switch v := v.(*EthereumMessageSignature); i { 961 case 0: 962 return &v.state 963 case 1: 964 return &v.sizeCache 965 case 2: 966 return &v.unknownFields 967 default: 968 return nil 969 } 970 } 971 file_messages_ethereum_proto_msgTypes[9].Exporter = func(v any, i int) any { 972 switch v := v.(*EthereumVerifyMessage); i { 973 case 0: 974 return &v.state 975 case 1: 976 return &v.sizeCache 977 case 2: 978 return &v.unknownFields 979 default: 980 return nil 981 } 982 } 983 } 984 type x struct{} 985 out := protoimpl.TypeBuilder{ 986 File: protoimpl.DescBuilder{ 987 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 988 RawDescriptor: file_messages_ethereum_proto_rawDesc, 989 NumEnums: 0, 990 NumMessages: 10, 991 NumExtensions: 0, 992 NumServices: 0, 993 }, 994 GoTypes: file_messages_ethereum_proto_goTypes, 995 DependencyIndexes: file_messages_ethereum_proto_depIdxs, 996 MessageInfos: file_messages_ethereum_proto_msgTypes, 997 }.Build() 998 File_messages_ethereum_proto = out.File 999 file_messages_ethereum_proto_rawDesc = nil 1000 file_messages_ethereum_proto_goTypes = nil 1001 file_messages_ethereum_proto_depIdxs = nil 1002 }