/
messages-management.pb.go
3262 lines (2900 loc) · 118 KB
/
messages-management.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.12.4
// source: messages-management.proto
package protob
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
//*
// Type of the mnemonic backup given/received by the device during reset/recovery.
type BackupType int32
const (
BackupType_Bip39 BackupType = 0 // also called "Single Backup", see BIP-0039
BackupType_Slip39_Basic BackupType = 1 // also called "Shamir Backup", see SLIP-0039
BackupType_Slip39_Advanced BackupType = 2 // also called "Super Shamir" or "Shamir with Groups", see SLIP-0039#two-level-scheme
)
// Enum value maps for BackupType.
var (
BackupType_name = map[int32]string{
0: "Bip39",
1: "Slip39_Basic",
2: "Slip39_Advanced",
}
BackupType_value = map[string]int32{
"Bip39": 0,
"Slip39_Basic": 1,
"Slip39_Advanced": 2,
}
)
func (x BackupType) Enum() *BackupType {
p := new(BackupType)
*p = x
return p
}
func (x BackupType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BackupType) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[0].Descriptor()
}
func (BackupType) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[0]
}
func (x BackupType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *BackupType) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = BackupType(num)
return nil
}
// Deprecated: Use BackupType.Descriptor instead.
func (BackupType) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{0}
}
//*
// Level of safety checks for unsafe actions like spending from invalid path namespace or setting high transaction fee.
type SafetyCheckLevel int32
const (
SafetyCheckLevel_Strict SafetyCheckLevel = 0 // disallow unsafe actions, this is the default
SafetyCheckLevel_PromptAlways SafetyCheckLevel = 1 // ask user before unsafe action
SafetyCheckLevel_PromptTemporarily SafetyCheckLevel = 2 // like PromptAlways but reverts to Strict after reboot
)
// Enum value maps for SafetyCheckLevel.
var (
SafetyCheckLevel_name = map[int32]string{
0: "Strict",
1: "PromptAlways",
2: "PromptTemporarily",
}
SafetyCheckLevel_value = map[string]int32{
"Strict": 0,
"PromptAlways": 1,
"PromptTemporarily": 2,
}
)
func (x SafetyCheckLevel) Enum() *SafetyCheckLevel {
p := new(SafetyCheckLevel)
*p = x
return p
}
func (x SafetyCheckLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SafetyCheckLevel) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[1].Descriptor()
}
func (SafetyCheckLevel) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[1]
}
func (x SafetyCheckLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *SafetyCheckLevel) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = SafetyCheckLevel(num)
return nil
}
// Deprecated: Use SafetyCheckLevel.Descriptor instead.
func (SafetyCheckLevel) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{1}
}
type Features_Capability int32
const (
Features_Capability_Bitcoin Features_Capability = 1
Features_Capability_Bitcoin_like Features_Capability = 2 // Altcoins based on the Bitcoin source code
Features_Capability_Binance Features_Capability = 3
Features_Capability_Cardano Features_Capability = 4
Features_Capability_Crypto Features_Capability = 5 // generic crypto operations for GPG, SSH, etc.
Features_Capability_EOS Features_Capability = 6
Features_Capability_Ethereum Features_Capability = 7
// Deprecated: Do not use.
Features_Capability_Lisk Features_Capability = 8
Features_Capability_Monero Features_Capability = 9
Features_Capability_NEM Features_Capability = 10
Features_Capability_Ripple Features_Capability = 11
Features_Capability_Stellar Features_Capability = 12
Features_Capability_Tezos Features_Capability = 13
Features_Capability_U2F Features_Capability = 14
Features_Capability_Shamir Features_Capability = 15
Features_Capability_ShamirGroups Features_Capability = 16
Features_Capability_PassphraseEntry Features_Capability = 17 // the device is capable of passphrase entry directly on the device
)
// Enum value maps for Features_Capability.
var (
Features_Capability_name = map[int32]string{
1: "Capability_Bitcoin",
2: "Capability_Bitcoin_like",
3: "Capability_Binance",
4: "Capability_Cardano",
5: "Capability_Crypto",
6: "Capability_EOS",
7: "Capability_Ethereum",
8: "Capability_Lisk",
9: "Capability_Monero",
10: "Capability_NEM",
11: "Capability_Ripple",
12: "Capability_Stellar",
13: "Capability_Tezos",
14: "Capability_U2F",
15: "Capability_Shamir",
16: "Capability_ShamirGroups",
17: "Capability_PassphraseEntry",
}
Features_Capability_value = map[string]int32{
"Capability_Bitcoin": 1,
"Capability_Bitcoin_like": 2,
"Capability_Binance": 3,
"Capability_Cardano": 4,
"Capability_Crypto": 5,
"Capability_EOS": 6,
"Capability_Ethereum": 7,
"Capability_Lisk": 8,
"Capability_Monero": 9,
"Capability_NEM": 10,
"Capability_Ripple": 11,
"Capability_Stellar": 12,
"Capability_Tezos": 13,
"Capability_U2F": 14,
"Capability_Shamir": 15,
"Capability_ShamirGroups": 16,
"Capability_PassphraseEntry": 17,
}
)
func (x Features_Capability) Enum() *Features_Capability {
p := new(Features_Capability)
*p = x
return p
}
func (x Features_Capability) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Features_Capability) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[2].Descriptor()
}
func (Features_Capability) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[2]
}
func (x Features_Capability) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *Features_Capability) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = Features_Capability(num)
return nil
}
// Deprecated: Use Features_Capability.Descriptor instead.
func (Features_Capability) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{2, 0}
}
//*
// Structure representing SD card protection operation
type SdProtect_SdProtectOperationType int32
const (
SdProtect_DISABLE SdProtect_SdProtectOperationType = 0
SdProtect_ENABLE SdProtect_SdProtectOperationType = 1
SdProtect_REFRESH SdProtect_SdProtectOperationType = 2
)
// Enum value maps for SdProtect_SdProtectOperationType.
var (
SdProtect_SdProtectOperationType_name = map[int32]string{
0: "DISABLE",
1: "ENABLE",
2: "REFRESH",
}
SdProtect_SdProtectOperationType_value = map[string]int32{
"DISABLE": 0,
"ENABLE": 1,
"REFRESH": 2,
}
)
func (x SdProtect_SdProtectOperationType) Enum() *SdProtect_SdProtectOperationType {
p := new(SdProtect_SdProtectOperationType)
*p = x
return p
}
func (x SdProtect_SdProtectOperationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SdProtect_SdProtectOperationType) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[3].Descriptor()
}
func (SdProtect_SdProtectOperationType) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[3]
}
func (x SdProtect_SdProtectOperationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *SdProtect_SdProtectOperationType) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = SdProtect_SdProtectOperationType(num)
return nil
}
// Deprecated: Use SdProtect_SdProtectOperationType.Descriptor instead.
func (SdProtect_SdProtectOperationType) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{9, 0}
}
//*
// Type of recovery procedure. These should be used as bitmask, e.g.,
// `RecoveryDeviceType_ScrambledWords | RecoveryDeviceType_Matrix`
// listing every method supported by the host computer.
//
// Note that ScrambledWords must be supported by every implementation
// for backward compatibility; there is no way to not support it.
type RecoveryDevice_RecoveryDeviceType int32
const (
// use powers of two when extending this field
RecoveryDevice_RecoveryDeviceType_ScrambledWords RecoveryDevice_RecoveryDeviceType = 0 // words in scrambled order
RecoveryDevice_RecoveryDeviceType_Matrix RecoveryDevice_RecoveryDeviceType = 1 // matrix recovery type
)
// Enum value maps for RecoveryDevice_RecoveryDeviceType.
var (
RecoveryDevice_RecoveryDeviceType_name = map[int32]string{
0: "RecoveryDeviceType_ScrambledWords",
1: "RecoveryDeviceType_Matrix",
}
RecoveryDevice_RecoveryDeviceType_value = map[string]int32{
"RecoveryDeviceType_ScrambledWords": 0,
"RecoveryDeviceType_Matrix": 1,
}
)
func (x RecoveryDevice_RecoveryDeviceType) Enum() *RecoveryDevice_RecoveryDeviceType {
p := new(RecoveryDevice_RecoveryDeviceType)
*p = x
return p
}
func (x RecoveryDevice_RecoveryDeviceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RecoveryDevice_RecoveryDeviceType) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[4].Descriptor()
}
func (RecoveryDevice_RecoveryDeviceType) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[4]
}
func (x RecoveryDevice_RecoveryDeviceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *RecoveryDevice_RecoveryDeviceType) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = RecoveryDevice_RecoveryDeviceType(num)
return nil
}
// Deprecated: Use RecoveryDevice_RecoveryDeviceType.Descriptor instead.
func (RecoveryDevice_RecoveryDeviceType) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{20, 0}
}
//*
// Type of Recovery Word request
type WordRequest_WordRequestType int32
const (
WordRequest_WordRequestType_Plain WordRequest_WordRequestType = 0
WordRequest_WordRequestType_Matrix9 WordRequest_WordRequestType = 1
WordRequest_WordRequestType_Matrix6 WordRequest_WordRequestType = 2
)
// Enum value maps for WordRequest_WordRequestType.
var (
WordRequest_WordRequestType_name = map[int32]string{
0: "WordRequestType_Plain",
1: "WordRequestType_Matrix9",
2: "WordRequestType_Matrix6",
}
WordRequest_WordRequestType_value = map[string]int32{
"WordRequestType_Plain": 0,
"WordRequestType_Matrix9": 1,
"WordRequestType_Matrix6": 2,
}
)
func (x WordRequest_WordRequestType) Enum() *WordRequest_WordRequestType {
p := new(WordRequest_WordRequestType)
*p = x
return p
}
func (x WordRequest_WordRequestType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WordRequest_WordRequestType) Descriptor() protoreflect.EnumDescriptor {
return file_messages_management_proto_enumTypes[5].Descriptor()
}
func (WordRequest_WordRequestType) Type() protoreflect.EnumType {
return &file_messages_management_proto_enumTypes[5]
}
func (x WordRequest_WordRequestType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Do not use.
func (x *WordRequest_WordRequestType) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = WordRequest_WordRequestType(num)
return nil
}
// Deprecated: Use WordRequest_WordRequestType.Descriptor instead.
func (WordRequest_WordRequestType) EnumDescriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{21, 0}
}
//*
// Request: Reset device to default state and ask for device details
// @start
// @next Features
type Initialize struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SessionId []byte `protobuf:"bytes,1,opt,name=session_id,json=sessionId" json:"session_id,omitempty"` // assumed device session id; Trezor clears caches if it is different or empty
// Deprecated: Do not use.
XSkipPassphrase *bool `protobuf:"varint,2,opt,name=_skip_passphrase,json=SkipPassphrase" json:"_skip_passphrase,omitempty"` // removed as part of passphrase redesign
DeriveCardano *bool `protobuf:"varint,3,opt,name=derive_cardano,json=deriveCardano" json:"derive_cardano,omitempty"` // whether to derive Cardano Icarus root keys in this session
}
func (x *Initialize) Reset() {
*x = Initialize{}
if protoimpl.UnsafeEnabled {
mi := &file_messages_management_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Initialize) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Initialize) ProtoMessage() {}
func (x *Initialize) ProtoReflect() protoreflect.Message {
mi := &file_messages_management_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Initialize.ProtoReflect.Descriptor instead.
func (*Initialize) Descriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{0}
}
func (x *Initialize) GetSessionId() []byte {
if x != nil {
return x.SessionId
}
return nil
}
// Deprecated: Do not use.
func (x *Initialize) GetXSkipPassphrase() bool {
if x != nil && x.XSkipPassphrase != nil {
return *x.XSkipPassphrase
}
return false
}
func (x *Initialize) GetDeriveCardano() bool {
if x != nil && x.DeriveCardano != nil {
return *x.DeriveCardano
}
return false
}
//*
// Request: Ask for device details (no device reset)
// @start
// @next Features
type GetFeatures struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *GetFeatures) Reset() {
*x = GetFeatures{}
if protoimpl.UnsafeEnabled {
mi := &file_messages_management_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetFeatures) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetFeatures) ProtoMessage() {}
func (x *GetFeatures) ProtoReflect() protoreflect.Message {
mi := &file_messages_management_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetFeatures.ProtoReflect.Descriptor instead.
func (*GetFeatures) Descriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{1}
}
//*
// Response: Reports various information about the device
// @end
type Features struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Vendor *string `protobuf:"bytes,1,opt,name=vendor" json:"vendor,omitempty"` // name of the manufacturer, e.g. "trezor.io"
MajorVersion *uint32 `protobuf:"varint,2,req,name=major_version,json=majorVersion" json:"major_version,omitempty"` // major version of the firmware/bootloader, e.g. 1
MinorVersion *uint32 `protobuf:"varint,3,req,name=minor_version,json=minorVersion" json:"minor_version,omitempty"` // minor version of the firmware/bootloader, e.g. 0
PatchVersion *uint32 `protobuf:"varint,4,req,name=patch_version,json=patchVersion" json:"patch_version,omitempty"` // patch version of the firmware/bootloader, e.g. 0
BootloaderMode *bool `protobuf:"varint,5,opt,name=bootloader_mode,json=bootloaderMode" json:"bootloader_mode,omitempty"` // is device in bootloader mode?
DeviceId *string `protobuf:"bytes,6,opt,name=device_id,json=deviceId" json:"device_id,omitempty"` // device's unique identifier
PinProtection *bool `protobuf:"varint,7,opt,name=pin_protection,json=pinProtection" json:"pin_protection,omitempty"` // is device protected by PIN?
PassphraseProtection *bool `protobuf:"varint,8,opt,name=passphrase_protection,json=passphraseProtection" json:"passphrase_protection,omitempty"` // is node/mnemonic encrypted using passphrase?
Language *string `protobuf:"bytes,9,opt,name=language" json:"language,omitempty"` // device language
Label *string `protobuf:"bytes,10,opt,name=label" json:"label,omitempty"` // device description label
Initialized *bool `protobuf:"varint,12,opt,name=initialized" json:"initialized,omitempty"` // does device contain seed?
Revision []byte `protobuf:"bytes,13,opt,name=revision" json:"revision,omitempty"` // SCM revision of firmware
BootloaderHash []byte `protobuf:"bytes,14,opt,name=bootloader_hash,json=bootloaderHash" json:"bootloader_hash,omitempty"` // hash of the bootloader
Imported *bool `protobuf:"varint,15,opt,name=imported" json:"imported,omitempty"` // was storage imported from an external source?
Unlocked *bool `protobuf:"varint,16,opt,name=unlocked" json:"unlocked,omitempty"` // is the device unlocked? called "pin_cached" previously
// Deprecated: Do not use.
XPassphraseCached *bool `protobuf:"varint,17,opt,name=_passphrase_cached,json=PassphraseCached" json:"_passphrase_cached,omitempty"` // is passphrase already cached in session?
FirmwarePresent *bool `protobuf:"varint,18,opt,name=firmware_present,json=firmwarePresent" json:"firmware_present,omitempty"` // is valid firmware loaded?
NeedsBackup *bool `protobuf:"varint,19,opt,name=needs_backup,json=needsBackup" json:"needs_backup,omitempty"` // does storage need backup? (equals to Storage.needs_backup)
Flags *uint32 `protobuf:"varint,20,opt,name=flags" json:"flags,omitempty"` // device flags (equals to Storage.flags)
Model *string `protobuf:"bytes,21,opt,name=model" json:"model,omitempty"` // device hardware model
FwMajor *uint32 `protobuf:"varint,22,opt,name=fw_major,json=fwMajor" json:"fw_major,omitempty"` // reported firmware version if in bootloader mode
FwMinor *uint32 `protobuf:"varint,23,opt,name=fw_minor,json=fwMinor" json:"fw_minor,omitempty"` // reported firmware version if in bootloader mode
FwPatch *uint32 `protobuf:"varint,24,opt,name=fw_patch,json=fwPatch" json:"fw_patch,omitempty"` // reported firmware version if in bootloader mode
FwVendor *string `protobuf:"bytes,25,opt,name=fw_vendor,json=fwVendor" json:"fw_vendor,omitempty"` // reported firmware vendor if in bootloader mode
// optional bytes fw_vendor_keys = 26; // obsoleted, use fw_vendor
UnfinishedBackup *bool `protobuf:"varint,27,opt,name=unfinished_backup,json=unfinishedBackup" json:"unfinished_backup,omitempty"` // report unfinished backup (equals to Storage.unfinished_backup)
NoBackup *bool `protobuf:"varint,28,opt,name=no_backup,json=noBackup" json:"no_backup,omitempty"` // report no backup (equals to Storage.no_backup)
RecoveryMode *bool `protobuf:"varint,29,opt,name=recovery_mode,json=recoveryMode" json:"recovery_mode,omitempty"` // is recovery mode in progress
Capabilities []Features_Capability `protobuf:"varint,30,rep,name=capabilities,enum=hw.trezor.messages.management.Features_Capability" json:"capabilities,omitempty"` // list of supported capabilities
BackupType *BackupType `protobuf:"varint,31,opt,name=backup_type,json=backupType,enum=hw.trezor.messages.management.BackupType" json:"backup_type,omitempty"` // type of device backup (BIP-39 / SLIP-39 basic / SLIP-39 advanced)
SdCardPresent *bool `protobuf:"varint,32,opt,name=sd_card_present,json=sdCardPresent" json:"sd_card_present,omitempty"` // is SD card present
SdProtection *bool `protobuf:"varint,33,opt,name=sd_protection,json=sdProtection" json:"sd_protection,omitempty"` // is SD Protect enabled
WipeCodeProtection *bool `protobuf:"varint,34,opt,name=wipe_code_protection,json=wipeCodeProtection" json:"wipe_code_protection,omitempty"` // is wipe code protection enabled
SessionId []byte `protobuf:"bytes,35,opt,name=session_id,json=sessionId" json:"session_id,omitempty"`
PassphraseAlwaysOnDevice *bool `protobuf:"varint,36,opt,name=passphrase_always_on_device,json=passphraseAlwaysOnDevice" json:"passphrase_always_on_device,omitempty"` // device enforces passphrase entry on Trezor
SafetyChecks *SafetyCheckLevel `protobuf:"varint,37,opt,name=safety_checks,json=safetyChecks,enum=hw.trezor.messages.management.SafetyCheckLevel" json:"safety_checks,omitempty"` // safety check level, set to Prompt to limit path namespace enforcement
AutoLockDelayMs *uint32 `protobuf:"varint,38,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"` // number of milliseconds after which the device locks itself
DisplayRotation *uint32 `protobuf:"varint,39,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"` // in degrees from North
ExperimentalFeatures *bool `protobuf:"varint,40,opt,name=experimental_features,json=experimentalFeatures" json:"experimental_features,omitempty"` // are experimental message types enabled?
}
func (x *Features) Reset() {
*x = Features{}
if protoimpl.UnsafeEnabled {
mi := &file_messages_management_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Features) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Features) ProtoMessage() {}
func (x *Features) ProtoReflect() protoreflect.Message {
mi := &file_messages_management_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Features.ProtoReflect.Descriptor instead.
func (*Features) Descriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{2}
}
func (x *Features) GetVendor() string {
if x != nil && x.Vendor != nil {
return *x.Vendor
}
return ""
}
func (x *Features) GetMajorVersion() uint32 {
if x != nil && x.MajorVersion != nil {
return *x.MajorVersion
}
return 0
}
func (x *Features) GetMinorVersion() uint32 {
if x != nil && x.MinorVersion != nil {
return *x.MinorVersion
}
return 0
}
func (x *Features) GetPatchVersion() uint32 {
if x != nil && x.PatchVersion != nil {
return *x.PatchVersion
}
return 0
}
func (x *Features) GetBootloaderMode() bool {
if x != nil && x.BootloaderMode != nil {
return *x.BootloaderMode
}
return false
}
func (x *Features) GetDeviceId() string {
if x != nil && x.DeviceId != nil {
return *x.DeviceId
}
return ""
}
func (x *Features) GetPinProtection() bool {
if x != nil && x.PinProtection != nil {
return *x.PinProtection
}
return false
}
func (x *Features) GetPassphraseProtection() bool {
if x != nil && x.PassphraseProtection != nil {
return *x.PassphraseProtection
}
return false
}
func (x *Features) GetLanguage() string {
if x != nil && x.Language != nil {
return *x.Language
}
return ""
}
func (x *Features) GetLabel() string {
if x != nil && x.Label != nil {
return *x.Label
}
return ""
}
func (x *Features) GetInitialized() bool {
if x != nil && x.Initialized != nil {
return *x.Initialized
}
return false
}
func (x *Features) GetRevision() []byte {
if x != nil {
return x.Revision
}
return nil
}
func (x *Features) GetBootloaderHash() []byte {
if x != nil {
return x.BootloaderHash
}
return nil
}
func (x *Features) GetImported() bool {
if x != nil && x.Imported != nil {
return *x.Imported
}
return false
}
func (x *Features) GetUnlocked() bool {
if x != nil && x.Unlocked != nil {
return *x.Unlocked
}
return false
}
// Deprecated: Do not use.
func (x *Features) GetXPassphraseCached() bool {
if x != nil && x.XPassphraseCached != nil {
return *x.XPassphraseCached
}
return false
}
func (x *Features) GetFirmwarePresent() bool {
if x != nil && x.FirmwarePresent != nil {
return *x.FirmwarePresent
}
return false
}
func (x *Features) GetNeedsBackup() bool {
if x != nil && x.NeedsBackup != nil {
return *x.NeedsBackup
}
return false
}
func (x *Features) GetFlags() uint32 {
if x != nil && x.Flags != nil {
return *x.Flags
}
return 0
}
func (x *Features) GetModel() string {
if x != nil && x.Model != nil {
return *x.Model
}
return ""
}
func (x *Features) GetFwMajor() uint32 {
if x != nil && x.FwMajor != nil {
return *x.FwMajor
}
return 0
}
func (x *Features) GetFwMinor() uint32 {
if x != nil && x.FwMinor != nil {
return *x.FwMinor
}
return 0
}
func (x *Features) GetFwPatch() uint32 {
if x != nil && x.FwPatch != nil {
return *x.FwPatch
}
return 0
}
func (x *Features) GetFwVendor() string {
if x != nil && x.FwVendor != nil {
return *x.FwVendor
}
return ""
}
func (x *Features) GetUnfinishedBackup() bool {
if x != nil && x.UnfinishedBackup != nil {
return *x.UnfinishedBackup
}
return false
}
func (x *Features) GetNoBackup() bool {
if x != nil && x.NoBackup != nil {
return *x.NoBackup
}
return false
}
func (x *Features) GetRecoveryMode() bool {
if x != nil && x.RecoveryMode != nil {
return *x.RecoveryMode
}
return false
}
func (x *Features) GetCapabilities() []Features_Capability {
if x != nil {
return x.Capabilities
}
return nil
}
func (x *Features) GetBackupType() BackupType {
if x != nil && x.BackupType != nil {
return *x.BackupType
}
return BackupType_Bip39
}
func (x *Features) GetSdCardPresent() bool {
if x != nil && x.SdCardPresent != nil {
return *x.SdCardPresent
}
return false
}
func (x *Features) GetSdProtection() bool {
if x != nil && x.SdProtection != nil {
return *x.SdProtection
}
return false
}
func (x *Features) GetWipeCodeProtection() bool {
if x != nil && x.WipeCodeProtection != nil {
return *x.WipeCodeProtection
}
return false
}
func (x *Features) GetSessionId() []byte {
if x != nil {
return x.SessionId
}
return nil
}
func (x *Features) GetPassphraseAlwaysOnDevice() bool {
if x != nil && x.PassphraseAlwaysOnDevice != nil {
return *x.PassphraseAlwaysOnDevice
}
return false
}
func (x *Features) GetSafetyChecks() SafetyCheckLevel {
if x != nil && x.SafetyChecks != nil {
return *x.SafetyChecks
}
return SafetyCheckLevel_Strict
}
func (x *Features) GetAutoLockDelayMs() uint32 {
if x != nil && x.AutoLockDelayMs != nil {
return *x.AutoLockDelayMs
}
return 0
}
func (x *Features) GetDisplayRotation() uint32 {
if x != nil && x.DisplayRotation != nil {
return *x.DisplayRotation
}
return 0
}
func (x *Features) GetExperimentalFeatures() bool {
if x != nil && x.ExperimentalFeatures != nil {
return *x.ExperimentalFeatures
}
return false
}
//*
// Request: soft-lock the device. Following actions will require PIN. Passphrases remain cached.
// @start
// @next Success
type LockDevice struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *LockDevice) Reset() {
*x = LockDevice{}
if protoimpl.UnsafeEnabled {
mi := &file_messages_management_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LockDevice) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LockDevice) ProtoMessage() {}
func (x *LockDevice) ProtoReflect() protoreflect.Message {
mi := &file_messages_management_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LockDevice.ProtoReflect.Descriptor instead.
func (*LockDevice) Descriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{3}
}
//*
// Request: end the current sesson. Following actions must call Initialize again.
// Cache for the current session is discarded, other sessions remain intact.
// Device is not PIN-locked.
// @start
// @next Success
type EndSession struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *EndSession) Reset() {
*x = EndSession{}
if protoimpl.UnsafeEnabled {
mi := &file_messages_management_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EndSession) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EndSession) ProtoMessage() {}
func (x *EndSession) ProtoReflect() protoreflect.Message {
mi := &file_messages_management_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EndSession.ProtoReflect.Descriptor instead.
func (*EndSession) Descriptor() ([]byte, []int) {
return file_messages_management_proto_rawDescGZIP(), []int{4}
}
//*
// Request: change language and/or label of the device
// @start
// @next Success
// @next Failure
type ApplySettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Language *string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
Label *string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"`
UsePassphrase *bool `protobuf:"varint,3,opt,name=use_passphrase,json=usePassphrase" json:"use_passphrase,omitempty"`
Homescreen []byte `protobuf:"bytes,4,opt,name=homescreen" json:"homescreen,omitempty"`
// Deprecated: Do not use.
XPassphraseSource *uint32 `protobuf:"varint,5,opt,name=_passphrase_source,json=PassphraseSource" json:"_passphrase_source,omitempty"` // ASK = 0; DEVICE = 1; HOST = 2;
AutoLockDelayMs *uint32 `protobuf:"varint,6,opt,name=auto_lock_delay_ms,json=autoLockDelayMs" json:"auto_lock_delay_ms,omitempty"`
DisplayRotation *uint32 `protobuf:"varint,7,opt,name=display_rotation,json=displayRotation" json:"display_rotation,omitempty"` // in degrees from North
PassphraseAlwaysOnDevice *bool `protobuf:"varint,8,opt,name=passphrase_always_on_device,json=passphraseAlwaysOnDevice" json:"passphrase_always_on_device,omitempty"` // do not prompt for passphrase, enforce device entry
SafetyChecks *SafetyCheckLevel `protobuf:"varint,9,opt,name=safety_checks,json=safetyChecks,enum=hw.trezor.messages.management.SafetyCheckLevel" json:"safety_checks,omitempty"` // Safety check level, set to Prompt to limit path namespace enforcement
ExperimentalFeatures *bool `protobuf:"varint,10,opt,name=experimental_features,json=experimentalFeatures" json:"experimental_features,omitempty"` // enable experimental message types
}