github.com/zhiqiangxu/go-ethereum@v1.9.16-0.20210824055606-be91cfdebc48/accounts/usbwallet/trezor/messages-common.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: messages-common.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 type Failure_FailureType int32 25 26 const ( 27 Failure_Failure_UnexpectedMessage Failure_FailureType = 1 28 Failure_Failure_ButtonExpected Failure_FailureType = 2 29 Failure_Failure_DataError Failure_FailureType = 3 30 Failure_Failure_ActionCancelled Failure_FailureType = 4 31 Failure_Failure_PinExpected Failure_FailureType = 5 32 Failure_Failure_PinCancelled Failure_FailureType = 6 33 Failure_Failure_PinInvalid Failure_FailureType = 7 34 Failure_Failure_InvalidSignature Failure_FailureType = 8 35 Failure_Failure_ProcessError Failure_FailureType = 9 36 Failure_Failure_NotEnoughFunds Failure_FailureType = 10 37 Failure_Failure_NotInitialized Failure_FailureType = 11 38 Failure_Failure_PinMismatch Failure_FailureType = 12 39 Failure_Failure_FirmwareError Failure_FailureType = 99 40 ) 41 42 var Failure_FailureType_name = map[int32]string{ 43 1: "Failure_UnexpectedMessage", 44 2: "Failure_ButtonExpected", 45 3: "Failure_DataError", 46 4: "Failure_ActionCancelled", 47 5: "Failure_PinExpected", 48 6: "Failure_PinCancelled", 49 7: "Failure_PinInvalid", 50 8: "Failure_InvalidSignature", 51 9: "Failure_ProcessError", 52 10: "Failure_NotEnoughFunds", 53 11: "Failure_NotInitialized", 54 12: "Failure_PinMismatch", 55 99: "Failure_FirmwareError", 56 } 57 58 var Failure_FailureType_value = map[string]int32{ 59 "Failure_UnexpectedMessage": 1, 60 "Failure_ButtonExpected": 2, 61 "Failure_DataError": 3, 62 "Failure_ActionCancelled": 4, 63 "Failure_PinExpected": 5, 64 "Failure_PinCancelled": 6, 65 "Failure_PinInvalid": 7, 66 "Failure_InvalidSignature": 8, 67 "Failure_ProcessError": 9, 68 "Failure_NotEnoughFunds": 10, 69 "Failure_NotInitialized": 11, 70 "Failure_PinMismatch": 12, 71 "Failure_FirmwareError": 99, 72 } 73 74 func (x Failure_FailureType) Enum() *Failure_FailureType { 75 p := new(Failure_FailureType) 76 *p = x 77 return p 78 } 79 80 func (x Failure_FailureType) String() string { 81 return proto.EnumName(Failure_FailureType_name, int32(x)) 82 } 83 84 func (x *Failure_FailureType) UnmarshalJSON(data []byte) error { 85 value, err := proto.UnmarshalJSONEnum(Failure_FailureType_value, data, "Failure_FailureType") 86 if err != nil { 87 return err 88 } 89 *x = Failure_FailureType(value) 90 return nil 91 } 92 93 func (Failure_FailureType) EnumDescriptor() ([]byte, []int) { 94 return fileDescriptor_aaf30d059fdbc38d, []int{1, 0} 95 } 96 97 //* 98 // Type of button request 99 type ButtonRequest_ButtonRequestType int32 100 101 const ( 102 ButtonRequest_ButtonRequest_Other ButtonRequest_ButtonRequestType = 1 103 ButtonRequest_ButtonRequest_FeeOverThreshold ButtonRequest_ButtonRequestType = 2 104 ButtonRequest_ButtonRequest_ConfirmOutput ButtonRequest_ButtonRequestType = 3 105 ButtonRequest_ButtonRequest_ResetDevice ButtonRequest_ButtonRequestType = 4 106 ButtonRequest_ButtonRequest_ConfirmWord ButtonRequest_ButtonRequestType = 5 107 ButtonRequest_ButtonRequest_WipeDevice ButtonRequest_ButtonRequestType = 6 108 ButtonRequest_ButtonRequest_ProtectCall ButtonRequest_ButtonRequestType = 7 109 ButtonRequest_ButtonRequest_SignTx ButtonRequest_ButtonRequestType = 8 110 ButtonRequest_ButtonRequest_FirmwareCheck ButtonRequest_ButtonRequestType = 9 111 ButtonRequest_ButtonRequest_Address ButtonRequest_ButtonRequestType = 10 112 ButtonRequest_ButtonRequest_PublicKey ButtonRequest_ButtonRequestType = 11 113 ButtonRequest_ButtonRequest_MnemonicWordCount ButtonRequest_ButtonRequestType = 12 114 ButtonRequest_ButtonRequest_MnemonicInput ButtonRequest_ButtonRequestType = 13 115 ButtonRequest_ButtonRequest_PassphraseType ButtonRequest_ButtonRequestType = 14 116 ButtonRequest_ButtonRequest_UnknownDerivationPath ButtonRequest_ButtonRequestType = 15 117 ) 118 119 var ButtonRequest_ButtonRequestType_name = map[int32]string{ 120 1: "ButtonRequest_Other", 121 2: "ButtonRequest_FeeOverThreshold", 122 3: "ButtonRequest_ConfirmOutput", 123 4: "ButtonRequest_ResetDevice", 124 5: "ButtonRequest_ConfirmWord", 125 6: "ButtonRequest_WipeDevice", 126 7: "ButtonRequest_ProtectCall", 127 8: "ButtonRequest_SignTx", 128 9: "ButtonRequest_FirmwareCheck", 129 10: "ButtonRequest_Address", 130 11: "ButtonRequest_PublicKey", 131 12: "ButtonRequest_MnemonicWordCount", 132 13: "ButtonRequest_MnemonicInput", 133 14: "ButtonRequest_PassphraseType", 134 15: "ButtonRequest_UnknownDerivationPath", 135 } 136 137 var ButtonRequest_ButtonRequestType_value = map[string]int32{ 138 "ButtonRequest_Other": 1, 139 "ButtonRequest_FeeOverThreshold": 2, 140 "ButtonRequest_ConfirmOutput": 3, 141 "ButtonRequest_ResetDevice": 4, 142 "ButtonRequest_ConfirmWord": 5, 143 "ButtonRequest_WipeDevice": 6, 144 "ButtonRequest_ProtectCall": 7, 145 "ButtonRequest_SignTx": 8, 146 "ButtonRequest_FirmwareCheck": 9, 147 "ButtonRequest_Address": 10, 148 "ButtonRequest_PublicKey": 11, 149 "ButtonRequest_MnemonicWordCount": 12, 150 "ButtonRequest_MnemonicInput": 13, 151 "ButtonRequest_PassphraseType": 14, 152 "ButtonRequest_UnknownDerivationPath": 15, 153 } 154 155 func (x ButtonRequest_ButtonRequestType) Enum() *ButtonRequest_ButtonRequestType { 156 p := new(ButtonRequest_ButtonRequestType) 157 *p = x 158 return p 159 } 160 161 func (x ButtonRequest_ButtonRequestType) String() string { 162 return proto.EnumName(ButtonRequest_ButtonRequestType_name, int32(x)) 163 } 164 165 func (x *ButtonRequest_ButtonRequestType) UnmarshalJSON(data []byte) error { 166 value, err := proto.UnmarshalJSONEnum(ButtonRequest_ButtonRequestType_value, data, "ButtonRequest_ButtonRequestType") 167 if err != nil { 168 return err 169 } 170 *x = ButtonRequest_ButtonRequestType(value) 171 return nil 172 } 173 174 func (ButtonRequest_ButtonRequestType) EnumDescriptor() ([]byte, []int) { 175 return fileDescriptor_aaf30d059fdbc38d, []int{2, 0} 176 } 177 178 //* 179 // Type of PIN request 180 type PinMatrixRequest_PinMatrixRequestType int32 181 182 const ( 183 PinMatrixRequest_PinMatrixRequestType_Current PinMatrixRequest_PinMatrixRequestType = 1 184 PinMatrixRequest_PinMatrixRequestType_NewFirst PinMatrixRequest_PinMatrixRequestType = 2 185 PinMatrixRequest_PinMatrixRequestType_NewSecond PinMatrixRequest_PinMatrixRequestType = 3 186 ) 187 188 var PinMatrixRequest_PinMatrixRequestType_name = map[int32]string{ 189 1: "PinMatrixRequestType_Current", 190 2: "PinMatrixRequestType_NewFirst", 191 3: "PinMatrixRequestType_NewSecond", 192 } 193 194 var PinMatrixRequest_PinMatrixRequestType_value = map[string]int32{ 195 "PinMatrixRequestType_Current": 1, 196 "PinMatrixRequestType_NewFirst": 2, 197 "PinMatrixRequestType_NewSecond": 3, 198 } 199 200 func (x PinMatrixRequest_PinMatrixRequestType) Enum() *PinMatrixRequest_PinMatrixRequestType { 201 p := new(PinMatrixRequest_PinMatrixRequestType) 202 *p = x 203 return p 204 } 205 206 func (x PinMatrixRequest_PinMatrixRequestType) String() string { 207 return proto.EnumName(PinMatrixRequest_PinMatrixRequestType_name, int32(x)) 208 } 209 210 func (x *PinMatrixRequest_PinMatrixRequestType) UnmarshalJSON(data []byte) error { 211 value, err := proto.UnmarshalJSONEnum(PinMatrixRequest_PinMatrixRequestType_value, data, "PinMatrixRequest_PinMatrixRequestType") 212 if err != nil { 213 return err 214 } 215 *x = PinMatrixRequest_PinMatrixRequestType(value) 216 return nil 217 } 218 219 func (PinMatrixRequest_PinMatrixRequestType) EnumDescriptor() ([]byte, []int) { 220 return fileDescriptor_aaf30d059fdbc38d, []int{4, 0} 221 } 222 223 //* 224 // Response: Success of the previous request 225 // @end 226 type Success struct { 227 Message *string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` 228 XXX_NoUnkeyedLiteral struct{} `json:"-"` 229 XXX_unrecognized []byte `json:"-"` 230 XXX_sizecache int32 `json:"-"` 231 } 232 233 func (m *Success) Reset() { *m = Success{} } 234 func (m *Success) String() string { return proto.CompactTextString(m) } 235 func (*Success) ProtoMessage() {} 236 func (*Success) Descriptor() ([]byte, []int) { 237 return fileDescriptor_aaf30d059fdbc38d, []int{0} 238 } 239 240 func (m *Success) XXX_Unmarshal(b []byte) error { 241 return xxx_messageInfo_Success.Unmarshal(m, b) 242 } 243 func (m *Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 244 return xxx_messageInfo_Success.Marshal(b, m, deterministic) 245 } 246 func (m *Success) XXX_Merge(src proto.Message) { 247 xxx_messageInfo_Success.Merge(m, src) 248 } 249 func (m *Success) XXX_Size() int { 250 return xxx_messageInfo_Success.Size(m) 251 } 252 func (m *Success) XXX_DiscardUnknown() { 253 xxx_messageInfo_Success.DiscardUnknown(m) 254 } 255 256 var xxx_messageInfo_Success proto.InternalMessageInfo 257 258 func (m *Success) GetMessage() string { 259 if m != nil && m.Message != nil { 260 return *m.Message 261 } 262 return "" 263 } 264 265 //* 266 // Response: Failure of the previous request 267 // @end 268 type Failure struct { 269 Code *Failure_FailureType `protobuf:"varint,1,opt,name=code,enum=hw.trezor.messages.common.Failure_FailureType" json:"code,omitempty"` 270 Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` 271 XXX_NoUnkeyedLiteral struct{} `json:"-"` 272 XXX_unrecognized []byte `json:"-"` 273 XXX_sizecache int32 `json:"-"` 274 } 275 276 func (m *Failure) Reset() { *m = Failure{} } 277 func (m *Failure) String() string { return proto.CompactTextString(m) } 278 func (*Failure) ProtoMessage() {} 279 func (*Failure) Descriptor() ([]byte, []int) { 280 return fileDescriptor_aaf30d059fdbc38d, []int{1} 281 } 282 283 func (m *Failure) XXX_Unmarshal(b []byte) error { 284 return xxx_messageInfo_Failure.Unmarshal(m, b) 285 } 286 func (m *Failure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 287 return xxx_messageInfo_Failure.Marshal(b, m, deterministic) 288 } 289 func (m *Failure) XXX_Merge(src proto.Message) { 290 xxx_messageInfo_Failure.Merge(m, src) 291 } 292 func (m *Failure) XXX_Size() int { 293 return xxx_messageInfo_Failure.Size(m) 294 } 295 func (m *Failure) XXX_DiscardUnknown() { 296 xxx_messageInfo_Failure.DiscardUnknown(m) 297 } 298 299 var xxx_messageInfo_Failure proto.InternalMessageInfo 300 301 func (m *Failure) GetCode() Failure_FailureType { 302 if m != nil && m.Code != nil { 303 return *m.Code 304 } 305 return Failure_Failure_UnexpectedMessage 306 } 307 308 func (m *Failure) GetMessage() string { 309 if m != nil && m.Message != nil { 310 return *m.Message 311 } 312 return "" 313 } 314 315 //* 316 // Response: Device is waiting for HW button press. 317 // @auxstart 318 // @next ButtonAck 319 type ButtonRequest struct { 320 Code *ButtonRequest_ButtonRequestType `protobuf:"varint,1,opt,name=code,enum=hw.trezor.messages.common.ButtonRequest_ButtonRequestType" json:"code,omitempty"` 321 Data *string `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"` 322 XXX_NoUnkeyedLiteral struct{} `json:"-"` 323 XXX_unrecognized []byte `json:"-"` 324 XXX_sizecache int32 `json:"-"` 325 } 326 327 func (m *ButtonRequest) Reset() { *m = ButtonRequest{} } 328 func (m *ButtonRequest) String() string { return proto.CompactTextString(m) } 329 func (*ButtonRequest) ProtoMessage() {} 330 func (*ButtonRequest) Descriptor() ([]byte, []int) { 331 return fileDescriptor_aaf30d059fdbc38d, []int{2} 332 } 333 334 func (m *ButtonRequest) XXX_Unmarshal(b []byte) error { 335 return xxx_messageInfo_ButtonRequest.Unmarshal(m, b) 336 } 337 func (m *ButtonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 338 return xxx_messageInfo_ButtonRequest.Marshal(b, m, deterministic) 339 } 340 func (m *ButtonRequest) XXX_Merge(src proto.Message) { 341 xxx_messageInfo_ButtonRequest.Merge(m, src) 342 } 343 func (m *ButtonRequest) XXX_Size() int { 344 return xxx_messageInfo_ButtonRequest.Size(m) 345 } 346 func (m *ButtonRequest) XXX_DiscardUnknown() { 347 xxx_messageInfo_ButtonRequest.DiscardUnknown(m) 348 } 349 350 var xxx_messageInfo_ButtonRequest proto.InternalMessageInfo 351 352 func (m *ButtonRequest) GetCode() ButtonRequest_ButtonRequestType { 353 if m != nil && m.Code != nil { 354 return *m.Code 355 } 356 return ButtonRequest_ButtonRequest_Other 357 } 358 359 func (m *ButtonRequest) GetData() string { 360 if m != nil && m.Data != nil { 361 return *m.Data 362 } 363 return "" 364 } 365 366 //* 367 // Request: Computer agrees to wait for HW button press 368 // @auxend 369 type ButtonAck struct { 370 XXX_NoUnkeyedLiteral struct{} `json:"-"` 371 XXX_unrecognized []byte `json:"-"` 372 XXX_sizecache int32 `json:"-"` 373 } 374 375 func (m *ButtonAck) Reset() { *m = ButtonAck{} } 376 func (m *ButtonAck) String() string { return proto.CompactTextString(m) } 377 func (*ButtonAck) ProtoMessage() {} 378 func (*ButtonAck) Descriptor() ([]byte, []int) { 379 return fileDescriptor_aaf30d059fdbc38d, []int{3} 380 } 381 382 func (m *ButtonAck) XXX_Unmarshal(b []byte) error { 383 return xxx_messageInfo_ButtonAck.Unmarshal(m, b) 384 } 385 func (m *ButtonAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 386 return xxx_messageInfo_ButtonAck.Marshal(b, m, deterministic) 387 } 388 func (m *ButtonAck) XXX_Merge(src proto.Message) { 389 xxx_messageInfo_ButtonAck.Merge(m, src) 390 } 391 func (m *ButtonAck) XXX_Size() int { 392 return xxx_messageInfo_ButtonAck.Size(m) 393 } 394 func (m *ButtonAck) XXX_DiscardUnknown() { 395 xxx_messageInfo_ButtonAck.DiscardUnknown(m) 396 } 397 398 var xxx_messageInfo_ButtonAck proto.InternalMessageInfo 399 400 //* 401 // Response: Device is asking computer to show PIN matrix and awaits PIN encoded using this matrix scheme 402 // @auxstart 403 // @next PinMatrixAck 404 type PinMatrixRequest struct { 405 Type *PinMatrixRequest_PinMatrixRequestType `protobuf:"varint,1,opt,name=type,enum=hw.trezor.messages.common.PinMatrixRequest_PinMatrixRequestType" json:"type,omitempty"` 406 XXX_NoUnkeyedLiteral struct{} `json:"-"` 407 XXX_unrecognized []byte `json:"-"` 408 XXX_sizecache int32 `json:"-"` 409 } 410 411 func (m *PinMatrixRequest) Reset() { *m = PinMatrixRequest{} } 412 func (m *PinMatrixRequest) String() string { return proto.CompactTextString(m) } 413 func (*PinMatrixRequest) ProtoMessage() {} 414 func (*PinMatrixRequest) Descriptor() ([]byte, []int) { 415 return fileDescriptor_aaf30d059fdbc38d, []int{4} 416 } 417 418 func (m *PinMatrixRequest) XXX_Unmarshal(b []byte) error { 419 return xxx_messageInfo_PinMatrixRequest.Unmarshal(m, b) 420 } 421 func (m *PinMatrixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 422 return xxx_messageInfo_PinMatrixRequest.Marshal(b, m, deterministic) 423 } 424 func (m *PinMatrixRequest) XXX_Merge(src proto.Message) { 425 xxx_messageInfo_PinMatrixRequest.Merge(m, src) 426 } 427 func (m *PinMatrixRequest) XXX_Size() int { 428 return xxx_messageInfo_PinMatrixRequest.Size(m) 429 } 430 func (m *PinMatrixRequest) XXX_DiscardUnknown() { 431 xxx_messageInfo_PinMatrixRequest.DiscardUnknown(m) 432 } 433 434 var xxx_messageInfo_PinMatrixRequest proto.InternalMessageInfo 435 436 func (m *PinMatrixRequest) GetType() PinMatrixRequest_PinMatrixRequestType { 437 if m != nil && m.Type != nil { 438 return *m.Type 439 } 440 return PinMatrixRequest_PinMatrixRequestType_Current 441 } 442 443 //* 444 // Request: Computer responds with encoded PIN 445 // @auxend 446 type PinMatrixAck struct { 447 Pin *string `protobuf:"bytes,1,req,name=pin" json:"pin,omitempty"` 448 XXX_NoUnkeyedLiteral struct{} `json:"-"` 449 XXX_unrecognized []byte `json:"-"` 450 XXX_sizecache int32 `json:"-"` 451 } 452 453 func (m *PinMatrixAck) Reset() { *m = PinMatrixAck{} } 454 func (m *PinMatrixAck) String() string { return proto.CompactTextString(m) } 455 func (*PinMatrixAck) ProtoMessage() {} 456 func (*PinMatrixAck) Descriptor() ([]byte, []int) { 457 return fileDescriptor_aaf30d059fdbc38d, []int{5} 458 } 459 460 func (m *PinMatrixAck) XXX_Unmarshal(b []byte) error { 461 return xxx_messageInfo_PinMatrixAck.Unmarshal(m, b) 462 } 463 func (m *PinMatrixAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 464 return xxx_messageInfo_PinMatrixAck.Marshal(b, m, deterministic) 465 } 466 func (m *PinMatrixAck) XXX_Merge(src proto.Message) { 467 xxx_messageInfo_PinMatrixAck.Merge(m, src) 468 } 469 func (m *PinMatrixAck) XXX_Size() int { 470 return xxx_messageInfo_PinMatrixAck.Size(m) 471 } 472 func (m *PinMatrixAck) XXX_DiscardUnknown() { 473 xxx_messageInfo_PinMatrixAck.DiscardUnknown(m) 474 } 475 476 var xxx_messageInfo_PinMatrixAck proto.InternalMessageInfo 477 478 func (m *PinMatrixAck) GetPin() string { 479 if m != nil && m.Pin != nil { 480 return *m.Pin 481 } 482 return "" 483 } 484 485 //* 486 // Response: Device awaits encryption passphrase 487 // @auxstart 488 // @next PassphraseAck 489 type PassphraseRequest struct { 490 OnDevice *bool `protobuf:"varint,1,opt,name=on_device,json=onDevice" json:"on_device,omitempty"` 491 XXX_NoUnkeyedLiteral struct{} `json:"-"` 492 XXX_unrecognized []byte `json:"-"` 493 XXX_sizecache int32 `json:"-"` 494 } 495 496 func (m *PassphraseRequest) Reset() { *m = PassphraseRequest{} } 497 func (m *PassphraseRequest) String() string { return proto.CompactTextString(m) } 498 func (*PassphraseRequest) ProtoMessage() {} 499 func (*PassphraseRequest) Descriptor() ([]byte, []int) { 500 return fileDescriptor_aaf30d059fdbc38d, []int{6} 501 } 502 503 func (m *PassphraseRequest) XXX_Unmarshal(b []byte) error { 504 return xxx_messageInfo_PassphraseRequest.Unmarshal(m, b) 505 } 506 func (m *PassphraseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 507 return xxx_messageInfo_PassphraseRequest.Marshal(b, m, deterministic) 508 } 509 func (m *PassphraseRequest) XXX_Merge(src proto.Message) { 510 xxx_messageInfo_PassphraseRequest.Merge(m, src) 511 } 512 func (m *PassphraseRequest) XXX_Size() int { 513 return xxx_messageInfo_PassphraseRequest.Size(m) 514 } 515 func (m *PassphraseRequest) XXX_DiscardUnknown() { 516 xxx_messageInfo_PassphraseRequest.DiscardUnknown(m) 517 } 518 519 var xxx_messageInfo_PassphraseRequest proto.InternalMessageInfo 520 521 func (m *PassphraseRequest) GetOnDevice() bool { 522 if m != nil && m.OnDevice != nil { 523 return *m.OnDevice 524 } 525 return false 526 } 527 528 //* 529 // Request: Send passphrase back 530 // @next PassphraseStateRequest 531 type PassphraseAck struct { 532 Passphrase *string `protobuf:"bytes,1,opt,name=passphrase" json:"passphrase,omitempty"` 533 State []byte `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"` 534 XXX_NoUnkeyedLiteral struct{} `json:"-"` 535 XXX_unrecognized []byte `json:"-"` 536 XXX_sizecache int32 `json:"-"` 537 } 538 539 func (m *PassphraseAck) Reset() { *m = PassphraseAck{} } 540 func (m *PassphraseAck) String() string { return proto.CompactTextString(m) } 541 func (*PassphraseAck) ProtoMessage() {} 542 func (*PassphraseAck) Descriptor() ([]byte, []int) { 543 return fileDescriptor_aaf30d059fdbc38d, []int{7} 544 } 545 546 func (m *PassphraseAck) XXX_Unmarshal(b []byte) error { 547 return xxx_messageInfo_PassphraseAck.Unmarshal(m, b) 548 } 549 func (m *PassphraseAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 550 return xxx_messageInfo_PassphraseAck.Marshal(b, m, deterministic) 551 } 552 func (m *PassphraseAck) XXX_Merge(src proto.Message) { 553 xxx_messageInfo_PassphraseAck.Merge(m, src) 554 } 555 func (m *PassphraseAck) XXX_Size() int { 556 return xxx_messageInfo_PassphraseAck.Size(m) 557 } 558 func (m *PassphraseAck) XXX_DiscardUnknown() { 559 xxx_messageInfo_PassphraseAck.DiscardUnknown(m) 560 } 561 562 var xxx_messageInfo_PassphraseAck proto.InternalMessageInfo 563 564 func (m *PassphraseAck) GetPassphrase() string { 565 if m != nil && m.Passphrase != nil { 566 return *m.Passphrase 567 } 568 return "" 569 } 570 571 func (m *PassphraseAck) GetState() []byte { 572 if m != nil { 573 return m.State 574 } 575 return nil 576 } 577 578 //* 579 // Response: Device awaits passphrase state 580 // @next PassphraseStateAck 581 type PassphraseStateRequest struct { 582 State []byte `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` 583 XXX_NoUnkeyedLiteral struct{} `json:"-"` 584 XXX_unrecognized []byte `json:"-"` 585 XXX_sizecache int32 `json:"-"` 586 } 587 588 func (m *PassphraseStateRequest) Reset() { *m = PassphraseStateRequest{} } 589 func (m *PassphraseStateRequest) String() string { return proto.CompactTextString(m) } 590 func (*PassphraseStateRequest) ProtoMessage() {} 591 func (*PassphraseStateRequest) Descriptor() ([]byte, []int) { 592 return fileDescriptor_aaf30d059fdbc38d, []int{8} 593 } 594 595 func (m *PassphraseStateRequest) XXX_Unmarshal(b []byte) error { 596 return xxx_messageInfo_PassphraseStateRequest.Unmarshal(m, b) 597 } 598 func (m *PassphraseStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 599 return xxx_messageInfo_PassphraseStateRequest.Marshal(b, m, deterministic) 600 } 601 func (m *PassphraseStateRequest) XXX_Merge(src proto.Message) { 602 xxx_messageInfo_PassphraseStateRequest.Merge(m, src) 603 } 604 func (m *PassphraseStateRequest) XXX_Size() int { 605 return xxx_messageInfo_PassphraseStateRequest.Size(m) 606 } 607 func (m *PassphraseStateRequest) XXX_DiscardUnknown() { 608 xxx_messageInfo_PassphraseStateRequest.DiscardUnknown(m) 609 } 610 611 var xxx_messageInfo_PassphraseStateRequest proto.InternalMessageInfo 612 613 func (m *PassphraseStateRequest) GetState() []byte { 614 if m != nil { 615 return m.State 616 } 617 return nil 618 } 619 620 //* 621 // Request: Send passphrase state back 622 // @auxend 623 type PassphraseStateAck struct { 624 XXX_NoUnkeyedLiteral struct{} `json:"-"` 625 XXX_unrecognized []byte `json:"-"` 626 XXX_sizecache int32 `json:"-"` 627 } 628 629 func (m *PassphraseStateAck) Reset() { *m = PassphraseStateAck{} } 630 func (m *PassphraseStateAck) String() string { return proto.CompactTextString(m) } 631 func (*PassphraseStateAck) ProtoMessage() {} 632 func (*PassphraseStateAck) Descriptor() ([]byte, []int) { 633 return fileDescriptor_aaf30d059fdbc38d, []int{9} 634 } 635 636 func (m *PassphraseStateAck) XXX_Unmarshal(b []byte) error { 637 return xxx_messageInfo_PassphraseStateAck.Unmarshal(m, b) 638 } 639 func (m *PassphraseStateAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 640 return xxx_messageInfo_PassphraseStateAck.Marshal(b, m, deterministic) 641 } 642 func (m *PassphraseStateAck) XXX_Merge(src proto.Message) { 643 xxx_messageInfo_PassphraseStateAck.Merge(m, src) 644 } 645 func (m *PassphraseStateAck) XXX_Size() int { 646 return xxx_messageInfo_PassphraseStateAck.Size(m) 647 } 648 func (m *PassphraseStateAck) XXX_DiscardUnknown() { 649 xxx_messageInfo_PassphraseStateAck.DiscardUnknown(m) 650 } 651 652 var xxx_messageInfo_PassphraseStateAck proto.InternalMessageInfo 653 654 //* 655 // Structure representing BIP32 (hierarchical deterministic) node 656 // Used for imports of private key into the device and exporting public key out of device 657 // @embed 658 type HDNodeType struct { 659 Depth *uint32 `protobuf:"varint,1,req,name=depth" json:"depth,omitempty"` 660 Fingerprint *uint32 `protobuf:"varint,2,req,name=fingerprint" json:"fingerprint,omitempty"` 661 ChildNum *uint32 `protobuf:"varint,3,req,name=child_num,json=childNum" json:"child_num,omitempty"` 662 ChainCode []byte `protobuf:"bytes,4,req,name=chain_code,json=chainCode" json:"chain_code,omitempty"` 663 PrivateKey []byte `protobuf:"bytes,5,opt,name=private_key,json=privateKey" json:"private_key,omitempty"` 664 PublicKey []byte `protobuf:"bytes,6,opt,name=public_key,json=publicKey" json:"public_key,omitempty"` 665 XXX_NoUnkeyedLiteral struct{} `json:"-"` 666 XXX_unrecognized []byte `json:"-"` 667 XXX_sizecache int32 `json:"-"` 668 } 669 670 func (m *HDNodeType) Reset() { *m = HDNodeType{} } 671 func (m *HDNodeType) String() string { return proto.CompactTextString(m) } 672 func (*HDNodeType) ProtoMessage() {} 673 func (*HDNodeType) Descriptor() ([]byte, []int) { 674 return fileDescriptor_aaf30d059fdbc38d, []int{10} 675 } 676 677 func (m *HDNodeType) XXX_Unmarshal(b []byte) error { 678 return xxx_messageInfo_HDNodeType.Unmarshal(m, b) 679 } 680 func (m *HDNodeType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 681 return xxx_messageInfo_HDNodeType.Marshal(b, m, deterministic) 682 } 683 func (m *HDNodeType) XXX_Merge(src proto.Message) { 684 xxx_messageInfo_HDNodeType.Merge(m, src) 685 } 686 func (m *HDNodeType) XXX_Size() int { 687 return xxx_messageInfo_HDNodeType.Size(m) 688 } 689 func (m *HDNodeType) XXX_DiscardUnknown() { 690 xxx_messageInfo_HDNodeType.DiscardUnknown(m) 691 } 692 693 var xxx_messageInfo_HDNodeType proto.InternalMessageInfo 694 695 func (m *HDNodeType) GetDepth() uint32 { 696 if m != nil && m.Depth != nil { 697 return *m.Depth 698 } 699 return 0 700 } 701 702 func (m *HDNodeType) GetFingerprint() uint32 { 703 if m != nil && m.Fingerprint != nil { 704 return *m.Fingerprint 705 } 706 return 0 707 } 708 709 func (m *HDNodeType) GetChildNum() uint32 { 710 if m != nil && m.ChildNum != nil { 711 return *m.ChildNum 712 } 713 return 0 714 } 715 716 func (m *HDNodeType) GetChainCode() []byte { 717 if m != nil { 718 return m.ChainCode 719 } 720 return nil 721 } 722 723 func (m *HDNodeType) GetPrivateKey() []byte { 724 if m != nil { 725 return m.PrivateKey 726 } 727 return nil 728 } 729 730 func (m *HDNodeType) GetPublicKey() []byte { 731 if m != nil { 732 return m.PublicKey 733 } 734 return nil 735 } 736 737 func init() { 738 proto.RegisterEnum("hw.trezor.messages.common.Failure_FailureType", Failure_FailureType_name, Failure_FailureType_value) 739 proto.RegisterEnum("hw.trezor.messages.common.ButtonRequest_ButtonRequestType", ButtonRequest_ButtonRequestType_name, ButtonRequest_ButtonRequestType_value) 740 proto.RegisterEnum("hw.trezor.messages.common.PinMatrixRequest_PinMatrixRequestType", PinMatrixRequest_PinMatrixRequestType_name, PinMatrixRequest_PinMatrixRequestType_value) 741 proto.RegisterType((*Success)(nil), "hw.trezor.messages.common.Success") 742 proto.RegisterType((*Failure)(nil), "hw.trezor.messages.common.Failure") 743 proto.RegisterType((*ButtonRequest)(nil), "hw.trezor.messages.common.ButtonRequest") 744 proto.RegisterType((*ButtonAck)(nil), "hw.trezor.messages.common.ButtonAck") 745 proto.RegisterType((*PinMatrixRequest)(nil), "hw.trezor.messages.common.PinMatrixRequest") 746 proto.RegisterType((*PinMatrixAck)(nil), "hw.trezor.messages.common.PinMatrixAck") 747 proto.RegisterType((*PassphraseRequest)(nil), "hw.trezor.messages.common.PassphraseRequest") 748 proto.RegisterType((*PassphraseAck)(nil), "hw.trezor.messages.common.PassphraseAck") 749 proto.RegisterType((*PassphraseStateRequest)(nil), "hw.trezor.messages.common.PassphraseStateRequest") 750 proto.RegisterType((*PassphraseStateAck)(nil), "hw.trezor.messages.common.PassphraseStateAck") 751 proto.RegisterType((*HDNodeType)(nil), "hw.trezor.messages.common.HDNodeType") 752 } 753 754 func init() { proto.RegisterFile("messages-common.proto", fileDescriptor_aaf30d059fdbc38d) } 755 756 var fileDescriptor_aaf30d059fdbc38d = []byte{ 757 // 846 bytes of a gzipped FileDescriptorProto 758 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0xcd, 0x52, 0x23, 0x37, 759 0x10, 0x2e, 0xff, 0x80, 0xed, 0xb6, 0xd9, 0x08, 0xc5, 0x80, 0x09, 0xb0, 0x38, 0xc3, 0x21, 0x5c, 760 0xe2, 0x4a, 0xe5, 0x98, 0x53, 0x58, 0x83, 0x2b, 0xd4, 0x16, 0x86, 0x1a, 0xd8, 0xda, 0xa3, 0x4b, 761 0xd1, 0xf4, 0x32, 0x2a, 0xcf, 0x48, 0x13, 0x8d, 0x06, 0xf0, 0x5e, 0xf2, 0x6a, 0x79, 0x89, 0xbc, 762 0x42, 0xaa, 0x52, 0xb9, 0xe4, 0x11, 0xb6, 0x34, 0x3f, 0x78, 0xc6, 0x66, 0x39, 0xcd, 0xe8, 0xfb, 763 0xbe, 0xee, 0x96, 0xba, 0x3f, 0x09, 0x76, 0x42, 0x8c, 0x63, 0x76, 0x8f, 0xf1, 0x8f, 0x5c, 0x85, 764 0xa1, 0x92, 0xa3, 0x48, 0x2b, 0xa3, 0xe8, 0xbe, 0xff, 0x38, 0x32, 0x1a, 0x3f, 0x2b, 0x3d, 0x2a, 765 0x04, 0xa3, 0x4c, 0xe0, 0x9c, 0x40, 0xeb, 0x36, 0xe1, 0x1c, 0xe3, 0x98, 0x0e, 0xa0, 0x95, 0xb3, 766 0x83, 0xda, 0xb0, 0x76, 0xda, 0x71, 0x8b, 0xa5, 0xf3, 0x77, 0x03, 0x5a, 0x13, 0x26, 0x82, 0x44, 767 0x23, 0x7d, 0x07, 0x4d, 0xae, 0xbc, 0x4c, 0xf2, 0xe6, 0xe7, 0xd1, 0xe8, 0xab, 0xa9, 0x47, 0x79, 768 0x44, 0xf1, 0xbd, 0x5b, 0x44, 0xe8, 0xa6, 0xb1, 0xe5, 0x4a, 0xf5, 0x6a, 0xa5, 0xff, 0xea, 0xd0, 769 0x2d, 0xe9, 0xe9, 0x11, 0xec, 0xe7, 0xcb, 0xd9, 0x07, 0x89, 0x4f, 0x11, 0x72, 0x83, 0xde, 0x55, 770 0x26, 0x26, 0x35, 0xfa, 0x1d, 0xec, 0x16, 0xf4, 0xbb, 0xc4, 0x18, 0x25, 0x2f, 0x72, 0x09, 0xa9, 771 0xd3, 0x1d, 0xd8, 0x2e, 0xb8, 0x73, 0x66, 0xd8, 0x85, 0xd6, 0x4a, 0x93, 0x06, 0x3d, 0x80, 0xbd, 772 0x02, 0x3e, 0xe3, 0x46, 0x28, 0x39, 0x66, 0x92, 0x63, 0x10, 0xa0, 0x47, 0x9a, 0x74, 0x0f, 0xbe, 773 0x2d, 0xc8, 0x1b, 0xb1, 0x4c, 0xb6, 0x41, 0x07, 0xd0, 0x2f, 0x11, 0xcb, 0x90, 0x4d, 0xba, 0x0b, 774 0xb4, 0xc4, 0x5c, 0xca, 0x07, 0x16, 0x08, 0x8f, 0xb4, 0xe8, 0x21, 0x0c, 0x0a, 0x3c, 0x07, 0x6f, 775 0xc5, 0xbd, 0x64, 0x26, 0xd1, 0x48, 0xda, 0x95, 0x7c, 0x5a, 0xd9, 0xf6, 0x67, 0xfb, 0xeb, 0x94, 776 0x8f, 0x34, 0x55, 0xe6, 0x42, 0xaa, 0xe4, 0xde, 0x9f, 0x24, 0xd2, 0x8b, 0x09, 0xac, 0x70, 0x97, 777 0x52, 0x18, 0xc1, 0x02, 0xf1, 0x19, 0x3d, 0xd2, 0x5d, 0xd9, 0xfa, 0x95, 0x88, 0x43, 0x66, 0xb8, 778 0x4f, 0x7a, 0x74, 0x1f, 0x76, 0x0a, 0x62, 0x22, 0x74, 0xf8, 0xc8, 0x34, 0x66,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