-
Notifications
You must be signed in to change notification settings - Fork 82
/
hww.pb.go
2111 lines (1911 loc) · 72.9 KB
/
hww.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.
// source: messages/hww.proto
/*
Package messages is a generated protocol buffer package.
It is generated from these files:
messages/hww.proto
It has these top-level messages:
Error
Success
RandomNumberResponse
RandomNumberRequest
DeviceInfoRequest
DeviceInfoResponse
SetDeviceNameRequest
SetDeviceLanguageRequest
SetPasswordRequest
CreateBackupRequest
RestoreBackupRequest
ListBackupsRequest
CheckBackupRequest
CheckBackupResponse
ShowMnemonicRequest
InsertRemoveSDCardRequest
CheckSDCardRequest
CheckSDCardResponse
BTCPubRequest
PubResponse
BackupInfo
ListBackupsResponse
BTCSignInitRequest
BTCSignNextResponse
BTCSignInputRequest
BTCSignOutputRequest
SetMnemonicPassphraseEnabledRequest
PerformAttestationRequest
PerformAttestationResponse
RebootRequest
Request
Response
*/
package messages
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type BTCCoin int32
const (
BTCCoin_BTC BTCCoin = 0
BTCCoin_TBTC BTCCoin = 1
BTCCoin_LTC BTCCoin = 2
BTCCoin_TLTC BTCCoin = 3
)
var BTCCoin_name = map[int32]string{
0: "BTC",
1: "TBTC",
2: "LTC",
3: "TLTC",
}
var BTCCoin_value = map[string]int32{
"BTC": 0,
"TBTC": 1,
"LTC": 2,
"TLTC": 3,
}
func (x BTCCoin) String() string {
return proto.EnumName(BTCCoin_name, int32(x))
}
func (BTCCoin) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type BTCScriptType int32
const (
BTCScriptType_SCRIPT_UNKNOWN BTCScriptType = 0
BTCScriptType_SCRIPT_P2PKH BTCScriptType = 1
BTCScriptType_SCRIPT_P2WPKH_P2SH BTCScriptType = 2
BTCScriptType_SCRIPT_P2WPKH BTCScriptType = 3
)
var BTCScriptType_name = map[int32]string{
0: "SCRIPT_UNKNOWN",
1: "SCRIPT_P2PKH",
2: "SCRIPT_P2WPKH_P2SH",
3: "SCRIPT_P2WPKH",
}
var BTCScriptType_value = map[string]int32{
"SCRIPT_UNKNOWN": 0,
"SCRIPT_P2PKH": 1,
"SCRIPT_P2WPKH_P2SH": 2,
"SCRIPT_P2WPKH": 3,
}
func (x BTCScriptType) String() string {
return proto.EnumName(BTCScriptType_name, int32(x))
}
func (BTCScriptType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type BTCOutputType int32
const (
BTCOutputType_UNKNOWN BTCOutputType = 0
BTCOutputType_P2PKH BTCOutputType = 1
BTCOutputType_P2SH BTCOutputType = 2
BTCOutputType_P2WPKH BTCOutputType = 3
BTCOutputType_P2WSH BTCOutputType = 4
)
var BTCOutputType_name = map[int32]string{
0: "UNKNOWN",
1: "P2PKH",
2: "P2SH",
3: "P2WPKH",
4: "P2WSH",
}
var BTCOutputType_value = map[string]int32{
"UNKNOWN": 0,
"P2PKH": 1,
"P2SH": 2,
"P2WPKH": 3,
"P2WSH": 4,
}
func (x BTCOutputType) String() string {
return proto.EnumName(BTCOutputType_name, int32(x))
}
func (BTCOutputType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
type InsertRemoveSDCardRequest_SDCardAction int32
const (
InsertRemoveSDCardRequest_REMOVE_CARD InsertRemoveSDCardRequest_SDCardAction = 0
InsertRemoveSDCardRequest_INSERT_CARD InsertRemoveSDCardRequest_SDCardAction = 1
)
var InsertRemoveSDCardRequest_SDCardAction_name = map[int32]string{
0: "REMOVE_CARD",
1: "INSERT_CARD",
}
var InsertRemoveSDCardRequest_SDCardAction_value = map[string]int32{
"REMOVE_CARD": 0,
"INSERT_CARD": 1,
}
func (x InsertRemoveSDCardRequest_SDCardAction) String() string {
return proto.EnumName(InsertRemoveSDCardRequest_SDCardAction_name, int32(x))
}
func (InsertRemoveSDCardRequest_SDCardAction) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{15, 0}
}
type BTCPubRequest_OutputType int32
const (
BTCPubRequest_TPUB BTCPubRequest_OutputType = 0
BTCPubRequest_XPUB BTCPubRequest_OutputType = 1
BTCPubRequest_YPUB BTCPubRequest_OutputType = 2
BTCPubRequest_ZPUB BTCPubRequest_OutputType = 3
BTCPubRequest_ADDRESS BTCPubRequest_OutputType = 4
)
var BTCPubRequest_OutputType_name = map[int32]string{
0: "TPUB",
1: "XPUB",
2: "YPUB",
3: "ZPUB",
4: "ADDRESS",
}
var BTCPubRequest_OutputType_value = map[string]int32{
"TPUB": 0,
"XPUB": 1,
"YPUB": 2,
"ZPUB": 3,
"ADDRESS": 4,
}
func (x BTCPubRequest_OutputType) String() string {
return proto.EnumName(BTCPubRequest_OutputType_name, int32(x))
}
func (BTCPubRequest_OutputType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{18, 0} }
type BTCSignNextResponse_Type int32
const (
BTCSignNextResponse_INPUT BTCSignNextResponse_Type = 0
BTCSignNextResponse_OUTPUT BTCSignNextResponse_Type = 1
BTCSignNextResponse_DONE BTCSignNextResponse_Type = 2
)
var BTCSignNextResponse_Type_name = map[int32]string{
0: "INPUT",
1: "OUTPUT",
2: "DONE",
}
var BTCSignNextResponse_Type_value = map[string]int32{
"INPUT": 0,
"OUTPUT": 1,
"DONE": 2,
}
func (x BTCSignNextResponse_Type) String() string {
return proto.EnumName(BTCSignNextResponse_Type_name, int32(x))
}
func (BTCSignNextResponse_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{23, 0} }
type Error struct {
Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
}
func (m *Error) Reset() { *m = Error{} }
func (m *Error) String() string { return proto.CompactTextString(m) }
func (*Error) ProtoMessage() {}
func (*Error) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Error) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *Error) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
type Success struct {
}
func (m *Success) Reset() { *m = Success{} }
func (m *Success) String() string { return proto.CompactTextString(m) }
func (*Success) ProtoMessage() {}
func (*Success) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type RandomNumberResponse struct {
Number []byte `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
}
func (m *RandomNumberResponse) Reset() { *m = RandomNumberResponse{} }
func (m *RandomNumberResponse) String() string { return proto.CompactTextString(m) }
func (*RandomNumberResponse) ProtoMessage() {}
func (*RandomNumberResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *RandomNumberResponse) GetNumber() []byte {
if m != nil {
return m.Number
}
return nil
}
type RandomNumberRequest struct {
}
func (m *RandomNumberRequest) Reset() { *m = RandomNumberRequest{} }
func (m *RandomNumberRequest) String() string { return proto.CompactTextString(m) }
func (*RandomNumberRequest) ProtoMessage() {}
func (*RandomNumberRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
type DeviceInfoRequest struct {
}
func (m *DeviceInfoRequest) Reset() { *m = DeviceInfoRequest{} }
func (m *DeviceInfoRequest) String() string { return proto.CompactTextString(m) }
func (*DeviceInfoRequest) ProtoMessage() {}
func (*DeviceInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
type DeviceInfoResponse struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Initialized bool `protobuf:"varint,2,opt,name=initialized" json:"initialized,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
MnemonicPassphraseEnabled bool `protobuf:"varint,4,opt,name=mnemonic_passphrase_enabled,json=mnemonicPassphraseEnabled" json:"mnemonic_passphrase_enabled,omitempty"`
MonotonicIncrementsRemaining uint32 `protobuf:"varint,5,opt,name=monotonic_increments_remaining,json=monotonicIncrementsRemaining" json:"monotonic_increments_remaining,omitempty"`
}
func (m *DeviceInfoResponse) Reset() { *m = DeviceInfoResponse{} }
func (m *DeviceInfoResponse) String() string { return proto.CompactTextString(m) }
func (*DeviceInfoResponse) ProtoMessage() {}
func (*DeviceInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *DeviceInfoResponse) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DeviceInfoResponse) GetInitialized() bool {
if m != nil {
return m.Initialized
}
return false
}
func (m *DeviceInfoResponse) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *DeviceInfoResponse) GetMnemonicPassphraseEnabled() bool {
if m != nil {
return m.MnemonicPassphraseEnabled
}
return false
}
func (m *DeviceInfoResponse) GetMonotonicIncrementsRemaining() uint32 {
if m != nil {
return m.MonotonicIncrementsRemaining
}
return 0
}
type SetDeviceNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *SetDeviceNameRequest) Reset() { *m = SetDeviceNameRequest{} }
func (m *SetDeviceNameRequest) String() string { return proto.CompactTextString(m) }
func (*SetDeviceNameRequest) ProtoMessage() {}
func (*SetDeviceNameRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *SetDeviceNameRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type SetDeviceLanguageRequest struct {
Language string `protobuf:"bytes,1,opt,name=language" json:"language,omitempty"`
}
func (m *SetDeviceLanguageRequest) Reset() { *m = SetDeviceLanguageRequest{} }
func (m *SetDeviceLanguageRequest) String() string { return proto.CompactTextString(m) }
func (*SetDeviceLanguageRequest) ProtoMessage() {}
func (*SetDeviceLanguageRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *SetDeviceLanguageRequest) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
type SetPasswordRequest struct {
Entropy []byte `protobuf:"bytes,1,opt,name=entropy,proto3" json:"entropy,omitempty"`
}
func (m *SetPasswordRequest) Reset() { *m = SetPasswordRequest{} }
func (m *SetPasswordRequest) String() string { return proto.CompactTextString(m) }
func (*SetPasswordRequest) ProtoMessage() {}
func (*SetPasswordRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *SetPasswordRequest) GetEntropy() []byte {
if m != nil {
return m.Entropy
}
return nil
}
type CreateBackupRequest struct {
// TODO add backup creation args
Timestamp uint32 `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
TimezoneOffset int32 `protobuf:"varint,2,opt,name=timezone_offset,json=timezoneOffset" json:"timezone_offset,omitempty"`
}
func (m *CreateBackupRequest) Reset() { *m = CreateBackupRequest{} }
func (m *CreateBackupRequest) String() string { return proto.CompactTextString(m) }
func (*CreateBackupRequest) ProtoMessage() {}
func (*CreateBackupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *CreateBackupRequest) GetTimestamp() uint32 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *CreateBackupRequest) GetTimezoneOffset() int32 {
if m != nil {
return m.TimezoneOffset
}
return 0
}
type RestoreBackupRequest struct {
// TODO add backup creation args
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (m *RestoreBackupRequest) Reset() { *m = RestoreBackupRequest{} }
func (m *RestoreBackupRequest) String() string { return proto.CompactTextString(m) }
func (*RestoreBackupRequest) ProtoMessage() {}
func (*RestoreBackupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *RestoreBackupRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
type ListBackupsRequest struct {
}
func (m *ListBackupsRequest) Reset() { *m = ListBackupsRequest{} }
func (m *ListBackupsRequest) String() string { return proto.CompactTextString(m) }
func (*ListBackupsRequest) ProtoMessage() {}
func (*ListBackupsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
type CheckBackupRequest struct {
Silent bool `protobuf:"varint,1,opt,name=silent" json:"silent,omitempty"`
}
func (m *CheckBackupRequest) Reset() { *m = CheckBackupRequest{} }
func (m *CheckBackupRequest) String() string { return proto.CompactTextString(m) }
func (*CheckBackupRequest) ProtoMessage() {}
func (*CheckBackupRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *CheckBackupRequest) GetSilent() bool {
if m != nil {
return m.Silent
}
return false
}
type CheckBackupResponse struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}
func (m *CheckBackupResponse) Reset() { *m = CheckBackupResponse{} }
func (m *CheckBackupResponse) String() string { return proto.CompactTextString(m) }
func (*CheckBackupResponse) ProtoMessage() {}
func (*CheckBackupResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *CheckBackupResponse) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *CheckBackupResponse) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type ShowMnemonicRequest struct {
}
func (m *ShowMnemonicRequest) Reset() { *m = ShowMnemonicRequest{} }
func (m *ShowMnemonicRequest) String() string { return proto.CompactTextString(m) }
func (*ShowMnemonicRequest) ProtoMessage() {}
func (*ShowMnemonicRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
type InsertRemoveSDCardRequest struct {
Action InsertRemoveSDCardRequest_SDCardAction `protobuf:"varint,1,opt,name=action,enum=InsertRemoveSDCardRequest_SDCardAction" json:"action,omitempty"`
}
func (m *InsertRemoveSDCardRequest) Reset() { *m = InsertRemoveSDCardRequest{} }
func (m *InsertRemoveSDCardRequest) String() string { return proto.CompactTextString(m) }
func (*InsertRemoveSDCardRequest) ProtoMessage() {}
func (*InsertRemoveSDCardRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
func (m *InsertRemoveSDCardRequest) GetAction() InsertRemoveSDCardRequest_SDCardAction {
if m != nil {
return m.Action
}
return InsertRemoveSDCardRequest_REMOVE_CARD
}
type CheckSDCardRequest struct {
}
func (m *CheckSDCardRequest) Reset() { *m = CheckSDCardRequest{} }
func (m *CheckSDCardRequest) String() string { return proto.CompactTextString(m) }
func (*CheckSDCardRequest) ProtoMessage() {}
func (*CheckSDCardRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
type CheckSDCardResponse struct {
Inserted bool `protobuf:"varint,1,opt,name=inserted" json:"inserted,omitempty"`
}
func (m *CheckSDCardResponse) Reset() { *m = CheckSDCardResponse{} }
func (m *CheckSDCardResponse) String() string { return proto.CompactTextString(m) }
func (*CheckSDCardResponse) ProtoMessage() {}
func (*CheckSDCardResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
func (m *CheckSDCardResponse) GetInserted() bool {
if m != nil {
return m.Inserted
}
return false
}
type BTCPubRequest struct {
Keypath []uint32 `protobuf:"varint,1,rep,packed,name=keypath" json:"keypath,omitempty"`
ScriptType BTCScriptType `protobuf:"varint,2,opt,name=script_type,json=scriptType,enum=BTCScriptType" json:"script_type,omitempty"`
Coin BTCCoin `protobuf:"varint,3,opt,name=coin,enum=BTCCoin" json:"coin,omitempty"`
OutputType BTCPubRequest_OutputType `protobuf:"varint,4,opt,name=output_type,json=outputType,enum=BTCPubRequest_OutputType" json:"output_type,omitempty"`
Display bool `protobuf:"varint,5,opt,name=display" json:"display,omitempty"`
}
func (m *BTCPubRequest) Reset() { *m = BTCPubRequest{} }
func (m *BTCPubRequest) String() string { return proto.CompactTextString(m) }
func (*BTCPubRequest) ProtoMessage() {}
func (*BTCPubRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *BTCPubRequest) GetKeypath() []uint32 {
if m != nil {
return m.Keypath
}
return nil
}
func (m *BTCPubRequest) GetScriptType() BTCScriptType {
if m != nil {
return m.ScriptType
}
return BTCScriptType_SCRIPT_UNKNOWN
}
func (m *BTCPubRequest) GetCoin() BTCCoin {
if m != nil {
return m.Coin
}
return BTCCoin_BTC
}
func (m *BTCPubRequest) GetOutputType() BTCPubRequest_OutputType {
if m != nil {
return m.OutputType
}
return BTCPubRequest_TPUB
}
func (m *BTCPubRequest) GetDisplay() bool {
if m != nil {
return m.Display
}
return false
}
type PubResponse struct {
Pub string `protobuf:"bytes,1,opt,name=pub" json:"pub,omitempty"`
}
func (m *PubResponse) Reset() { *m = PubResponse{} }
func (m *PubResponse) String() string { return proto.CompactTextString(m) }
func (*PubResponse) ProtoMessage() {}
func (*PubResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
func (m *PubResponse) GetPub() string {
if m != nil {
return m.Pub
}
return ""
}
type BackupInfo struct {
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Timestamp uint32 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"`
TimezoneOffset uint32 `protobuf:"varint,3,opt,name=timezone_offset,json=timezoneOffset" json:"timezone_offset,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
}
func (m *BackupInfo) Reset() { *m = BackupInfo{} }
func (m *BackupInfo) String() string { return proto.CompactTextString(m) }
func (*BackupInfo) ProtoMessage() {}
func (*BackupInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *BackupInfo) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *BackupInfo) GetTimestamp() uint32 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *BackupInfo) GetTimezoneOffset() uint32 {
if m != nil {
return m.TimezoneOffset
}
return 0
}
func (m *BackupInfo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
type ListBackupsResponse struct {
Info []*BackupInfo `protobuf:"bytes,1,rep,name=info" json:"info,omitempty"`
}
func (m *ListBackupsResponse) Reset() { *m = ListBackupsResponse{} }
func (m *ListBackupsResponse) String() string { return proto.CompactTextString(m) }
func (*ListBackupsResponse) ProtoMessage() {}
func (*ListBackupsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
func (m *ListBackupsResponse) GetInfo() []*BackupInfo {
if m != nil {
return m.Info
}
return nil
}
type BTCSignInitRequest struct {
Coin BTCCoin `protobuf:"varint,1,opt,name=coin,enum=BTCCoin" json:"coin,omitempty"`
ScriptType BTCScriptType `protobuf:"varint,2,opt,name=script_type,json=scriptType,enum=BTCScriptType" json:"script_type,omitempty"`
Bip44Account uint32 `protobuf:"varint,3,opt,name=bip44_account,json=bip44Account" json:"bip44_account,omitempty"`
Version uint32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
NumInputs uint32 `protobuf:"varint,5,opt,name=num_inputs,json=numInputs" json:"num_inputs,omitempty"`
NumOutputs uint32 `protobuf:"varint,6,opt,name=num_outputs,json=numOutputs" json:"num_outputs,omitempty"`
Locktime uint32 `protobuf:"varint,7,opt,name=locktime" json:"locktime,omitempty"`
}
func (m *BTCSignInitRequest) Reset() { *m = BTCSignInitRequest{} }
func (m *BTCSignInitRequest) String() string { return proto.CompactTextString(m) }
func (*BTCSignInitRequest) ProtoMessage() {}
func (*BTCSignInitRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *BTCSignInitRequest) GetCoin() BTCCoin {
if m != nil {
return m.Coin
}
return BTCCoin_BTC
}
func (m *BTCSignInitRequest) GetScriptType() BTCScriptType {
if m != nil {
return m.ScriptType
}
return BTCScriptType_SCRIPT_UNKNOWN
}
func (m *BTCSignInitRequest) GetBip44Account() uint32 {
if m != nil {
return m.Bip44Account
}
return 0
}
func (m *BTCSignInitRequest) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *BTCSignInitRequest) GetNumInputs() uint32 {
if m != nil {
return m.NumInputs
}
return 0
}
func (m *BTCSignInitRequest) GetNumOutputs() uint32 {
if m != nil {
return m.NumOutputs
}
return 0
}
func (m *BTCSignInitRequest) GetLocktime() uint32 {
if m != nil {
return m.Locktime
}
return 0
}
type BTCSignNextResponse struct {
Type BTCSignNextResponse_Type `protobuf:"varint,1,opt,name=type,enum=BTCSignNextResponse_Type" json:"type,omitempty"`
Index uint32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
HasSignature bool `protobuf:"varint,3,opt,name=has_signature,json=hasSignature" json:"has_signature,omitempty"`
// 64 bytes (32 bytes big endian R, 32 bytes big endian S). Only if has_signature is true.
Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (m *BTCSignNextResponse) Reset() { *m = BTCSignNextResponse{} }
func (m *BTCSignNextResponse) String() string { return proto.CompactTextString(m) }
func (*BTCSignNextResponse) ProtoMessage() {}
func (*BTCSignNextResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
func (m *BTCSignNextResponse) GetType() BTCSignNextResponse_Type {
if m != nil {
return m.Type
}
return BTCSignNextResponse_INPUT
}
func (m *BTCSignNextResponse) GetIndex() uint32 {
if m != nil {
return m.Index
}
return 0
}
func (m *BTCSignNextResponse) GetHasSignature() bool {
if m != nil {
return m.HasSignature
}
return false
}
func (m *BTCSignNextResponse) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type BTCSignInputRequest struct {
PrevOutHash []byte `protobuf:"bytes,1,opt,name=prevOutHash,proto3" json:"prevOutHash,omitempty"`
PrevOutIndex uint32 `protobuf:"varint,2,opt,name=prevOutIndex" json:"prevOutIndex,omitempty"`
PrevOutValue uint64 `protobuf:"varint,3,opt,name=prevOutValue" json:"prevOutValue,omitempty"`
Sequence uint32 `protobuf:"varint,4,opt,name=sequence" json:"sequence,omitempty"`
Keypath []uint32 `protobuf:"varint,6,rep,packed,name=keypath" json:"keypath,omitempty"`
}
func (m *BTCSignInputRequest) Reset() { *m = BTCSignInputRequest{} }
func (m *BTCSignInputRequest) String() string { return proto.CompactTextString(m) }
func (*BTCSignInputRequest) ProtoMessage() {}
func (*BTCSignInputRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
func (m *BTCSignInputRequest) GetPrevOutHash() []byte {
if m != nil {
return m.PrevOutHash
}
return nil
}
func (m *BTCSignInputRequest) GetPrevOutIndex() uint32 {
if m != nil {
return m.PrevOutIndex
}
return 0
}
func (m *BTCSignInputRequest) GetPrevOutValue() uint64 {
if m != nil {
return m.PrevOutValue
}
return 0
}
func (m *BTCSignInputRequest) GetSequence() uint32 {
if m != nil {
return m.Sequence
}
return 0
}
func (m *BTCSignInputRequest) GetKeypath() []uint32 {
if m != nil {
return m.Keypath
}
return nil
}
type BTCSignOutputRequest struct {
Ours bool `protobuf:"varint,1,opt,name=ours" json:"ours,omitempty"`
Type BTCOutputType `protobuf:"varint,2,opt,name=type,enum=BTCOutputType" json:"type,omitempty"`
// 20 bytes for p2pkh, p2sh, pw2wpkh. 32 bytes for p2wsh.
Value uint64 `protobuf:"varint,3,opt,name=value" json:"value,omitempty"`
Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"`
Keypath []uint32 `protobuf:"varint,5,rep,packed,name=keypath" json:"keypath,omitempty"`
}
func (m *BTCSignOutputRequest) Reset() { *m = BTCSignOutputRequest{} }
func (m *BTCSignOutputRequest) String() string { return proto.CompactTextString(m) }
func (*BTCSignOutputRequest) ProtoMessage() {}
func (*BTCSignOutputRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
func (m *BTCSignOutputRequest) GetOurs() bool {
if m != nil {
return m.Ours
}
return false
}
func (m *BTCSignOutputRequest) GetType() BTCOutputType {
if m != nil {
return m.Type
}
return BTCOutputType_UNKNOWN
}
func (m *BTCSignOutputRequest) GetValue() uint64 {
if m != nil {
return m.Value
}
return 0
}
func (m *BTCSignOutputRequest) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
func (m *BTCSignOutputRequest) GetKeypath() []uint32 {
if m != nil {
return m.Keypath
}
return nil
}
type SetMnemonicPassphraseEnabledRequest struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"`
}
func (m *SetMnemonicPassphraseEnabledRequest) Reset() { *m = SetMnemonicPassphraseEnabledRequest{} }
func (m *SetMnemonicPassphraseEnabledRequest) String() string { return proto.CompactTextString(m) }
func (*SetMnemonicPassphraseEnabledRequest) ProtoMessage() {}
func (*SetMnemonicPassphraseEnabledRequest) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{26}
}
func (m *SetMnemonicPassphraseEnabledRequest) GetEnabled() bool {
if m != nil {
return m.Enabled
}
return false
}
type PerformAttestationRequest struct {
// 32 bytes challenge.
Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"`
}
func (m *PerformAttestationRequest) Reset() { *m = PerformAttestationRequest{} }
func (m *PerformAttestationRequest) String() string { return proto.CompactTextString(m) }
func (*PerformAttestationRequest) ProtoMessage() {}
func (*PerformAttestationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
func (m *PerformAttestationRequest) GetChallenge() []byte {
if m != nil {
return m.Challenge
}
return nil
}
type PerformAttestationResponse struct {
BootloaderHash []byte `protobuf:"bytes,1,opt,name=bootloader_hash,json=bootloaderHash,proto3" json:"bootloader_hash,omitempty"`
DevicePubkey []byte `protobuf:"bytes,2,opt,name=device_pubkey,json=devicePubkey,proto3" json:"device_pubkey,omitempty"`
Certificate []byte `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"`
RootPubkeyIdentifier []byte `protobuf:"bytes,4,opt,name=root_pubkey_identifier,json=rootPubkeyIdentifier,proto3" json:"root_pubkey_identifier,omitempty"`
ChallengeSignature []byte `protobuf:"bytes,5,opt,name=challenge_signature,json=challengeSignature,proto3" json:"challenge_signature,omitempty"`
}
func (m *PerformAttestationResponse) Reset() { *m = PerformAttestationResponse{} }
func (m *PerformAttestationResponse) String() string { return proto.CompactTextString(m) }
func (*PerformAttestationResponse) ProtoMessage() {}
func (*PerformAttestationResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{28} }
func (m *PerformAttestationResponse) GetBootloaderHash() []byte {
if m != nil {
return m.BootloaderHash
}
return nil
}
func (m *PerformAttestationResponse) GetDevicePubkey() []byte {
if m != nil {
return m.DevicePubkey
}
return nil
}
func (m *PerformAttestationResponse) GetCertificate() []byte {
if m != nil {
return m.Certificate
}
return nil
}
func (m *PerformAttestationResponse) GetRootPubkeyIdentifier() []byte {
if m != nil {
return m.RootPubkeyIdentifier
}
return nil
}
func (m *PerformAttestationResponse) GetChallengeSignature() []byte {
if m != nil {
return m.ChallengeSignature
}
return nil
}
type RebootRequest struct {
}
func (m *RebootRequest) Reset() { *m = RebootRequest{} }
func (m *RebootRequest) String() string { return proto.CompactTextString(m) }
func (*RebootRequest) ProtoMessage() {}
func (*RebootRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{29} }
type Request struct {
// Types that are valid to be assigned to Request:
// *Request_RandomNumber
// *Request_DeviceName
// *Request_DeviceLanguage
// *Request_DeviceInfo
// *Request_SetPassword
// *Request_CreateBackup
// *Request_ShowMnemonic
// *Request_BtcPub
// *Request_BtcSignInit
// *Request_BtcSignInput
// *Request_BtcSignOutput
// *Request_InsertRemoveSdcard
// *Request_CheckSdcard
// *Request_SetMnemonicPassphraseEnabled
// *Request_ListBackups
// *Request_RestoreBackup
// *Request_PerformAttestation
// *Request_Reboot
// *Request_CheckBackup
Request isRequest_Request `protobuf_oneof:"request"`
}
func (m *Request) Reset() { *m = Request{} }
func (m *Request) String() string { return proto.CompactTextString(m) }
func (*Request) ProtoMessage() {}
func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{30} }
type isRequest_Request interface{ isRequest_Request() }
type Request_RandomNumber struct {
RandomNumber *RandomNumberRequest `protobuf:"bytes,1,opt,name=random_number,json=randomNumber,oneof"`
}
type Request_DeviceName struct {
DeviceName *SetDeviceNameRequest `protobuf:"bytes,2,opt,name=device_name,json=deviceName,oneof"`
}
type Request_DeviceLanguage struct {
DeviceLanguage *SetDeviceLanguageRequest `protobuf:"bytes,3,opt,name=device_language,json=deviceLanguage,oneof"`
}
type Request_DeviceInfo struct {
DeviceInfo *DeviceInfoRequest `protobuf:"bytes,4,opt,name=device_info,json=deviceInfo,oneof"`
}
type Request_SetPassword struct {
SetPassword *SetPasswordRequest `protobuf:"bytes,5,opt,name=set_password,json=setPassword,oneof"`
}
type Request_CreateBackup struct {
CreateBackup *CreateBackupRequest `protobuf:"bytes,6,opt,name=create_backup,json=createBackup,oneof"`
}
type Request_ShowMnemonic struct {
ShowMnemonic *ShowMnemonicRequest `protobuf:"bytes,7,opt,name=show_mnemonic,json=showMnemonic,oneof"`
}
type Request_BtcPub struct {
BtcPub *BTCPubRequest `protobuf:"bytes,8,opt,name=btc_pub,json=btcPub,oneof"`
}
type Request_BtcSignInit struct {
BtcSignInit *BTCSignInitRequest `protobuf:"bytes,9,opt,name=btc_sign_init,json=btcSignInit,oneof"`
}
type Request_BtcSignInput struct {
BtcSignInput *BTCSignInputRequest `protobuf:"bytes,10,opt,name=btc_sign_input,json=btcSignInput,oneof"`
}
type Request_BtcSignOutput struct {
BtcSignOutput *BTCSignOutputRequest `protobuf:"bytes,11,opt,name=btc_sign_output,json=btcSignOutput,oneof"`
}
type Request_InsertRemoveSdcard struct {
InsertRemoveSdcard *InsertRemoveSDCardRequest `protobuf:"bytes,12,opt,name=insert_remove_sdcard,json=insertRemoveSdcard,oneof"`
}
type Request_CheckSdcard struct {