-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinterface.pb.go
3173 lines (2807 loc) · 113 KB
/
interface.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: interface.proto
package grpcint
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type MerkleProof_MerkleProofType int32
const (
MerkleProof_Membership MerkleProof_MerkleProofType = 0
MerkleProof_NonMembership MerkleProof_MerkleProofType = 1
)
var MerkleProof_MerkleProofType_name = map[int32]string{
0: "Membership",
1: "NonMembership",
}
var MerkleProof_MerkleProofType_value = map[string]int32{
"Membership": 0,
"NonMembership": 1,
}
func (x MerkleProof_MerkleProofType) String() string {
return proto.EnumName(MerkleProof_MerkleProofType_name, int32(x))
}
func (MerkleProof_MerkleProofType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{9, 0}
}
type EncryptionKey struct {
Ek []byte `protobuf:"bytes,1,opt,name=ek,proto3" json:"ek,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EncryptionKey) Reset() { *m = EncryptionKey{} }
func (m *EncryptionKey) String() string { return proto.CompactTextString(m) }
func (*EncryptionKey) ProtoMessage() {}
func (*EncryptionKey) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{0}
}
func (m *EncryptionKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptionKey.Unmarshal(m, b)
}
func (m *EncryptionKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptionKey.Marshal(b, m, deterministic)
}
func (m *EncryptionKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptionKey.Merge(m, src)
}
func (m *EncryptionKey) XXX_Size() int {
return xxx_messageInfo_EncryptionKey.Size(m)
}
func (m *EncryptionKey) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptionKey.DiscardUnknown(m)
}
var xxx_messageInfo_EncryptionKey proto.InternalMessageInfo
func (m *EncryptionKey) GetEk() []byte {
if m != nil {
return m.Ek
}
return nil
}
type MasterKey struct {
Mk []byte `protobuf:"bytes,1,opt,name=mk,proto3" json:"mk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MasterKey) Reset() { *m = MasterKey{} }
func (m *MasterKey) String() string { return proto.CompactTextString(m) }
func (*MasterKey) ProtoMessage() {}
func (*MasterKey) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{1}
}
func (m *MasterKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MasterKey.Unmarshal(m, b)
}
func (m *MasterKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MasterKey.Marshal(b, m, deterministic)
}
func (m *MasterKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_MasterKey.Merge(m, src)
}
func (m *MasterKey) XXX_Size() int {
return xxx_messageInfo_MasterKey.Size(m)
}
func (m *MasterKey) XXX_DiscardUnknown() {
xxx_messageInfo_MasterKey.DiscardUnknown(m)
}
var xxx_messageInfo_MasterKey proto.InternalMessageInfo
func (m *MasterKey) GetMk() []byte {
if m != nil {
return m.Mk
}
return nil
}
type Hash struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hash) Reset() { *m = Hash{} }
func (m *Hash) String() string { return proto.CompactTextString(m) }
func (*Hash) ProtoMessage() {}
func (*Hash) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{2}
}
func (m *Hash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hash.Unmarshal(m, b)
}
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
}
func (m *Hash) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hash.Merge(m, src)
}
func (m *Hash) XXX_Size() int {
return xxx_messageInfo_Hash.Size(m)
}
func (m *Hash) XXX_DiscardUnknown() {
xxx_messageInfo_Hash.DiscardUnknown(m)
}
var xxx_messageInfo_Hash proto.InternalMessageInfo
func (m *Hash) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
// TODO: how to index in the KT?
type Username struct {
Username []byte `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Username) Reset() { *m = Username{} }
func (m *Username) String() string { return proto.CompactTextString(m) }
func (*Username) ProtoMessage() {}
func (*Username) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{3}
}
func (m *Username) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Username.Unmarshal(m, b)
}
func (m *Username) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Username.Marshal(b, m, deterministic)
}
func (m *Username) XXX_Merge(src proto.Message) {
xxx_messageInfo_Username.Merge(m, src)
}
func (m *Username) XXX_Size() int {
return xxx_messageInfo_Username.Size(m)
}
func (m *Username) XXX_DiscardUnknown() {
xxx_messageInfo_Username.DiscardUnknown(m)
}
var xxx_messageInfo_Username proto.InternalMessageInfo
func (m *Username) GetUsername() []byte {
if m != nil {
return m.Username
}
return nil
}
type OrganizationName struct {
HashName *Hash `protobuf:"bytes,1,opt,name=hash_name,json=hashName,proto3" json:"hash_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrganizationName) Reset() { *m = OrganizationName{} }
func (m *OrganizationName) String() string { return proto.CompactTextString(m) }
func (*OrganizationName) ProtoMessage() {}
func (*OrganizationName) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{4}
}
func (m *OrganizationName) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrganizationName.Unmarshal(m, b)
}
func (m *OrganizationName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrganizationName.Marshal(b, m, deterministic)
}
func (m *OrganizationName) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrganizationName.Merge(m, src)
}
func (m *OrganizationName) XXX_Size() int {
return xxx_messageInfo_OrganizationName.Size(m)
}
func (m *OrganizationName) XXX_DiscardUnknown() {
xxx_messageInfo_OrganizationName.DiscardUnknown(m)
}
var xxx_messageInfo_OrganizationName proto.InternalMessageInfo
func (m *OrganizationName) GetHashName() *Hash {
if m != nil {
return m.HashName
}
return nil
}
type Position struct {
Pos uint64 `protobuf:"varint,1,opt,name=pos,proto3" json:"pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Position) Reset() { *m = Position{} }
func (m *Position) String() string { return proto.CompactTextString(m) }
func (*Position) ProtoMessage() {}
func (*Position) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{5}
}
func (m *Position) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Position.Unmarshal(m, b)
}
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
}
func (m *Position) XXX_Merge(src proto.Message) {
xxx_messageInfo_Position.Merge(m, src)
}
func (m *Position) XXX_Size() int {
return xxx_messageInfo_Position.Size(m)
}
func (m *Position) XXX_DiscardUnknown() {
xxx_messageInfo_Position.DiscardUnknown(m)
}
var xxx_messageInfo_Position proto.InternalMessageInfo
func (m *Position) GetPos() uint64 {
if m != nil {
return m.Pos
}
return 0
}
type IndexedEK struct {
PublicKey *EncryptionKey `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
Pos *Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IndexedEK) Reset() { *m = IndexedEK{} }
func (m *IndexedEK) String() string { return proto.CompactTextString(m) }
func (*IndexedEK) ProtoMessage() {}
func (*IndexedEK) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{6}
}
func (m *IndexedEK) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IndexedEK.Unmarshal(m, b)
}
func (m *IndexedEK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IndexedEK.Marshal(b, m, deterministic)
}
func (m *IndexedEK) XXX_Merge(src proto.Message) {
xxx_messageInfo_IndexedEK.Merge(m, src)
}
func (m *IndexedEK) XXX_Size() int {
return xxx_messageInfo_IndexedEK.Size(m)
}
func (m *IndexedEK) XXX_DiscardUnknown() {
xxx_messageInfo_IndexedEK.DiscardUnknown(m)
}
var xxx_messageInfo_IndexedEK proto.InternalMessageInfo
func (m *IndexedEK) GetPublicKey() *EncryptionKey {
if m != nil {
return m.PublicKey
}
return nil
}
func (m *IndexedEK) GetPos() *Position {
if m != nil {
return m.Pos
}
return nil
}
type IndexedMK struct {
MasterKey *MasterKey `protobuf:"bytes,1,opt,name=master_key,json=masterKey,proto3" json:"master_key,omitempty"`
Pos *Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IndexedMK) Reset() { *m = IndexedMK{} }
func (m *IndexedMK) String() string { return proto.CompactTextString(m) }
func (*IndexedMK) ProtoMessage() {}
func (*IndexedMK) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{7}
}
func (m *IndexedMK) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IndexedMK.Unmarshal(m, b)
}
func (m *IndexedMK) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IndexedMK.Marshal(b, m, deterministic)
}
func (m *IndexedMK) XXX_Merge(src proto.Message) {
xxx_messageInfo_IndexedMK.Merge(m, src)
}
func (m *IndexedMK) XXX_Size() int {
return xxx_messageInfo_IndexedMK.Size(m)
}
func (m *IndexedMK) XXX_DiscardUnknown() {
xxx_messageInfo_IndexedMK.DiscardUnknown(m)
}
var xxx_messageInfo_IndexedMK proto.InternalMessageInfo
func (m *IndexedMK) GetMasterKey() *MasterKey {
if m != nil {
return m.MasterKey
}
return nil
}
func (m *IndexedMK) GetPos() *Position {
if m != nil {
return m.Pos
}
return nil
}
type MerklePath struct {
Nodes []*Hash `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MerklePath) Reset() { *m = MerklePath{} }
func (m *MerklePath) String() string { return proto.CompactTextString(m) }
func (*MerklePath) ProtoMessage() {}
func (*MerklePath) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{8}
}
func (m *MerklePath) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MerklePath.Unmarshal(m, b)
}
func (m *MerklePath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MerklePath.Marshal(b, m, deterministic)
}
func (m *MerklePath) XXX_Merge(src proto.Message) {
xxx_messageInfo_MerklePath.Merge(m, src)
}
func (m *MerklePath) XXX_Size() int {
return xxx_messageInfo_MerklePath.Size(m)
}
func (m *MerklePath) XXX_DiscardUnknown() {
xxx_messageInfo_MerklePath.DiscardUnknown(m)
}
var xxx_messageInfo_MerklePath proto.InternalMessageInfo
func (m *MerklePath) GetNodes() []*Hash {
if m != nil {
return m.Nodes
}
return nil
}
type MerkleProof struct {
Copath *MerklePath `protobuf:"bytes,1,opt,name=copath,proto3" json:"copath,omitempty"`
ProofType MerkleProof_MerkleProofType `protobuf:"varint,2,opt,name=proof_type,json=proofType,proto3,enum=grpcint.MerkleProof_MerkleProofType" json:"proof_type,omitempty"`
//NOTE: This can be removed if we want to further reduce the proof size.
// Indicate the interval of the CT if needed.
StartPos *Position `protobuf:"bytes,3,opt,name=start_pos,json=startPos,proto3" json:"start_pos,omitempty"`
EndPos *Position `protobuf:"bytes,4,opt,name=end_pos,json=endPos,proto3" json:"end_pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MerkleProof) Reset() { *m = MerkleProof{} }
func (m *MerkleProof) String() string { return proto.CompactTextString(m) }
func (*MerkleProof) ProtoMessage() {}
func (*MerkleProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{9}
}
func (m *MerkleProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MerkleProof.Unmarshal(m, b)
}
func (m *MerkleProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MerkleProof.Marshal(b, m, deterministic)
}
func (m *MerkleProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_MerkleProof.Merge(m, src)
}
func (m *MerkleProof) XXX_Size() int {
return xxx_messageInfo_MerkleProof.Size(m)
}
func (m *MerkleProof) XXX_DiscardUnknown() {
xxx_messageInfo_MerkleProof.DiscardUnknown(m)
}
var xxx_messageInfo_MerkleProof proto.InternalMessageInfo
func (m *MerkleProof) GetCopath() *MerklePath {
if m != nil {
return m.Copath
}
return nil
}
func (m *MerkleProof) GetProofType() MerkleProof_MerkleProofType {
if m != nil {
return m.ProofType
}
return MerkleProof_Membership
}
func (m *MerkleProof) GetStartPos() *Position {
if m != nil {
return m.StartPos
}
return nil
}
func (m *MerkleProof) GetEndPos() *Position {
if m != nil {
return m.EndPos
}
return nil
}
type RegisterProof struct {
KtPath []*MerkleProof `protobuf:"bytes,1,rep,name=kt_path,json=ktPath,proto3" json:"kt_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterProof) Reset() { *m = RegisterProof{} }
func (m *RegisterProof) String() string { return proto.CompactTextString(m) }
func (*RegisterProof) ProtoMessage() {}
func (*RegisterProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{10}
}
func (m *RegisterProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterProof.Unmarshal(m, b)
}
func (m *RegisterProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterProof.Marshal(b, m, deterministic)
}
func (m *RegisterProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterProof.Merge(m, src)
}
func (m *RegisterProof) XXX_Size() int {
return xxx_messageInfo_RegisterProof.Size(m)
}
func (m *RegisterProof) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterProof.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterProof proto.InternalMessageInfo
func (m *RegisterProof) GetKtPath() []*MerkleProof {
if m != nil {
return m.KtPath
}
return nil
}
type LookUpProof struct {
KtPath []*MerkleProof `protobuf:"bytes,1,rep,name=kt_path,json=ktPath,proto3" json:"kt_path,omitempty"`
EkList []*IndexedEK `protobuf:"bytes,2,rep,name=ek_list,json=ekList,proto3" json:"ek_list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LookUpProof) Reset() { *m = LookUpProof{} }
func (m *LookUpProof) String() string { return proto.CompactTextString(m) }
func (*LookUpProof) ProtoMessage() {}
func (*LookUpProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{11}
}
func (m *LookUpProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LookUpProof.Unmarshal(m, b)
}
func (m *LookUpProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LookUpProof.Marshal(b, m, deterministic)
}
func (m *LookUpProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_LookUpProof.Merge(m, src)
}
func (m *LookUpProof) XXX_Size() int {
return xxx_messageInfo_LookUpProof.Size(m)
}
func (m *LookUpProof) XXX_DiscardUnknown() {
xxx_messageInfo_LookUpProof.DiscardUnknown(m)
}
var xxx_messageInfo_LookUpProof proto.InternalMessageInfo
func (m *LookUpProof) GetKtPath() []*MerkleProof {
if m != nil {
return m.KtPath
}
return nil
}
func (m *LookUpProof) GetEkList() []*IndexedEK {
if m != nil {
return m.EkList
}
return nil
}
type AppendProof struct {
// Used to verify each KT root is included in the CT tree.
CtPath *MerkleProof `protobuf:"bytes,1,opt,name=ct_path,json=ctPath,proto3" json:"ct_path,omitempty"`
KtPath []*MerkleProof `protobuf:"bytes,2,rep,name=kt_path,json=ktPath,proto3" json:"kt_path,omitempty"`
//NOTE: This can be removed if we want to reduce append proof size.
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AppendProof) Reset() { *m = AppendProof{} }
func (m *AppendProof) String() string { return proto.CompactTextString(m) }
func (*AppendProof) ProtoMessage() {}
func (*AppendProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{12}
}
func (m *AppendProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AppendProof.Unmarshal(m, b)
}
func (m *AppendProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AppendProof.Marshal(b, m, deterministic)
}
func (m *AppendProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_AppendProof.Merge(m, src)
}
func (m *AppendProof) XXX_Size() int {
return xxx_messageInfo_AppendProof.Size(m)
}
func (m *AppendProof) XXX_DiscardUnknown() {
xxx_messageInfo_AppendProof.DiscardUnknown(m)
}
var xxx_messageInfo_AppendProof proto.InternalMessageInfo
func (m *AppendProof) GetCtPath() *MerkleProof {
if m != nil {
return m.CtPath
}
return nil
}
func (m *AppendProof) GetKtPath() []*MerkleProof {
if m != nil {
return m.KtPath
}
return nil
}
func (m *AppendProof) GetHeight() uint64 {
if m != nil {
return m.Height
}
return 0
}
type RootHash struct {
RootHash *Hash `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
//NOTE: This can be removed if we want to further reduce the proof size.
StartPos *Position `protobuf:"bytes,3,opt,name=start_pos,json=startPos,proto3" json:"start_pos,omitempty"`
EndPos *Position `protobuf:"bytes,4,opt,name=end_pos,json=endPos,proto3" json:"end_pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RootHash) Reset() { *m = RootHash{} }
func (m *RootHash) String() string { return proto.CompactTextString(m) }
func (*RootHash) ProtoMessage() {}
func (*RootHash) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{13}
}
func (m *RootHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RootHash.Unmarshal(m, b)
}
func (m *RootHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RootHash.Marshal(b, m, deterministic)
}
func (m *RootHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_RootHash.Merge(m, src)
}
func (m *RootHash) XXX_Size() int {
return xxx_messageInfo_RootHash.Size(m)
}
func (m *RootHash) XXX_DiscardUnknown() {
xxx_messageInfo_RootHash.DiscardUnknown(m)
}
var xxx_messageInfo_RootHash proto.InternalMessageInfo
func (m *RootHash) GetRootHash() *Hash {
if m != nil {
return m.RootHash
}
return nil
}
func (m *RootHash) GetStartPos() *Position {
if m != nil {
return m.StartPos
}
return nil
}
func (m *RootHash) GetEndPos() *Position {
if m != nil {
return m.EndPos
}
return nil
}
type CheckPoint struct {
MarshaledDigest []byte `protobuf:"bytes,1,opt,name=marshaled_digest,json=marshaledDigest,proto3" json:"marshaled_digest,omitempty"`
NumLeaves uint64 `protobuf:"varint,2,opt,name=num_leaves,json=numLeaves,proto3" json:"num_leaves,omitempty"`
Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckPoint) Reset() { *m = CheckPoint{} }
func (m *CheckPoint) String() string { return proto.CompactTextString(m) }
func (*CheckPoint) ProtoMessage() {}
func (*CheckPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{14}
}
func (m *CheckPoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckPoint.Unmarshal(m, b)
}
func (m *CheckPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckPoint.Marshal(b, m, deterministic)
}
func (m *CheckPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckPoint.Merge(m, src)
}
func (m *CheckPoint) XXX_Size() int {
return xxx_messageInfo_CheckPoint.Size(m)
}
func (m *CheckPoint) XXX_DiscardUnknown() {
xxx_messageInfo_CheckPoint.DiscardUnknown(m)
}
var xxx_messageInfo_CheckPoint proto.InternalMessageInfo
func (m *CheckPoint) GetMarshaledDigest() []byte {
if m != nil {
return m.MarshaledDigest
}
return nil
}
func (m *CheckPoint) GetNumLeaves() uint64 {
if m != nil {
return m.NumLeaves
}
return 0
}
func (m *CheckPoint) GetEpoch() uint64 {
if m != nil {
return m.Epoch
}
return 0
}
type ExtensionProof struct {
CtPath *MerkleProof `protobuf:"bytes,1,opt,name=ct_path,json=ctPath,proto3" json:"ct_path,omitempty"`
RootList []*RootHash `protobuf:"bytes,2,rep,name=root_list,json=rootList,proto3" json:"root_list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExtensionProof) Reset() { *m = ExtensionProof{} }
func (m *ExtensionProof) String() string { return proto.CompactTextString(m) }
func (*ExtensionProof) ProtoMessage() {}
func (*ExtensionProof) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{15}
}
func (m *ExtensionProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExtensionProof.Unmarshal(m, b)
}
func (m *ExtensionProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExtensionProof.Marshal(b, m, deterministic)
}
func (m *ExtensionProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExtensionProof.Merge(m, src)
}
func (m *ExtensionProof) XXX_Size() int {
return xxx_messageInfo_ExtensionProof.Size(m)
}
func (m *ExtensionProof) XXX_DiscardUnknown() {
xxx_messageInfo_ExtensionProof.DiscardUnknown(m)
}
var xxx_messageInfo_ExtensionProof proto.InternalMessageInfo
func (m *ExtensionProof) GetCtPath() *MerkleProof {
if m != nil {
return m.CtPath
}
return nil
}
func (m *ExtensionProof) GetRootList() []*RootHash {
if m != nil {
return m.RootList
}
return nil
}
type GetMonitoringProofForTestRequest struct {
Usr *Username `protobuf:"bytes,1,opt,name=usr,proto3" json:"usr,omitempty"`
Pos *Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMonitoringProofForTestRequest) Reset() { *m = GetMonitoringProofForTestRequest{} }
func (m *GetMonitoringProofForTestRequest) String() string { return proto.CompactTextString(m) }
func (*GetMonitoringProofForTestRequest) ProtoMessage() {}
func (*GetMonitoringProofForTestRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{16}
}
func (m *GetMonitoringProofForTestRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMonitoringProofForTestRequest.Unmarshal(m, b)
}
func (m *GetMonitoringProofForTestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMonitoringProofForTestRequest.Marshal(b, m, deterministic)
}
func (m *GetMonitoringProofForTestRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMonitoringProofForTestRequest.Merge(m, src)
}
func (m *GetMonitoringProofForTestRequest) XXX_Size() int {
return xxx_messageInfo_GetMonitoringProofForTestRequest.Size(m)
}
func (m *GetMonitoringProofForTestRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetMonitoringProofForTestRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetMonitoringProofForTestRequest proto.InternalMessageInfo
func (m *GetMonitoringProofForTestRequest) GetUsr() *Username {
if m != nil {
return m.Usr
}
return nil
}
func (m *GetMonitoringProofForTestRequest) GetPos() *Position {
if m != nil {
return m.Pos
}
return nil
}
func (m *GetMonitoringProofForTestRequest) GetHeight() uint32 {
if m != nil {
return m.Height
}
return 0
}
func (m *GetMonitoringProofForTestRequest) GetSize() uint64 {
if m != nil {
return m.Size
}
return 0
}
type GetMonitoringProofForTestResponse struct {
Proof []byte `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMonitoringProofForTestResponse) Reset() { *m = GetMonitoringProofForTestResponse{} }
func (m *GetMonitoringProofForTestResponse) String() string { return proto.CompactTextString(m) }
func (*GetMonitoringProofForTestResponse) ProtoMessage() {}
func (*GetMonitoringProofForTestResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{17}
}
func (m *GetMonitoringProofForTestResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetMonitoringProofForTestResponse.Unmarshal(m, b)
}
func (m *GetMonitoringProofForTestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetMonitoringProofForTestResponse.Marshal(b, m, deterministic)
}
func (m *GetMonitoringProofForTestResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMonitoringProofForTestResponse.Merge(m, src)
}
func (m *GetMonitoringProofForTestResponse) XXX_Size() int {
return xxx_messageInfo_GetMonitoringProofForTestResponse.Size(m)
}
func (m *GetMonitoringProofForTestResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetMonitoringProofForTestResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetMonitoringProofForTestResponse proto.InternalMessageInfo
func (m *GetMonitoringProofForTestResponse) GetProof() []byte {
if m != nil {
return m.Proof
}
return nil
}
type RegisterRequest struct {
Usr *Username `protobuf:"bytes,1,opt,name=usr,proto3" json:"usr,omitempty"`
Key *MasterKey `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterRequest) Reset() { *m = RegisterRequest{} }
func (m *RegisterRequest) String() string { return proto.CompactTextString(m) }
func (*RegisterRequest) ProtoMessage() {}
func (*RegisterRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{18}
}
func (m *RegisterRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterRequest.Unmarshal(m, b)
}
func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterRequest.Marshal(b, m, deterministic)
}
func (m *RegisterRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterRequest.Merge(m, src)
}
func (m *RegisterRequest) XXX_Size() int {
return xxx_messageInfo_RegisterRequest.Size(m)
}
func (m *RegisterRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterRequest proto.InternalMessageInfo
func (m *RegisterRequest) GetUsr() *Username {
if m != nil {
return m.Usr
}
return nil
}
func (m *RegisterRequest) GetKey() *MasterKey {
if m != nil {
return m.Key
}
return nil
}
func (m *RegisterRequest) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type RegisterResponse struct {
VrfKey []byte `protobuf:"bytes,1,opt,name=vrf_key,json=vrfKey,proto3" json:"vrf_key,omitempty"`
Pos *Position `protobuf:"bytes,2,opt,name=pos,proto3" json:"pos,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RegisterResponse) Reset() { *m = RegisterResponse{} }
func (m *RegisterResponse) String() string { return proto.CompactTextString(m) }
func (*RegisterResponse) ProtoMessage() {}
func (*RegisterResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_3ef53c9e620778f1, []int{19}
}
func (m *RegisterResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RegisterResponse.Unmarshal(m, b)
}
func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterResponse.Marshal(b, m, deterministic)
}
func (m *RegisterResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterResponse.Merge(m, src)
}
func (m *RegisterResponse) XXX_Size() int {
return xxx_messageInfo_RegisterResponse.Size(m)
}
func (m *RegisterResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RegisterResponse proto.InternalMessageInfo
func (m *RegisterResponse) GetVrfKey() []byte {
if m != nil {
return m.VrfKey
}
return nil
}
func (m *RegisterResponse) GetPos() *Position {
if m != nil {
return m.Pos
}
return nil
}
type AppendRequest struct {
Usr *Username `protobuf:"bytes,1,opt,name=usr,proto3" json:"usr,omitempty"`
Ek *EncryptionKey `protobuf:"bytes,2,opt,name=ek,proto3" json:"ek,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AppendRequest) Reset() { *m = AppendRequest{} }
func (m *AppendRequest) String() string { return proto.CompactTextString(m) }