-
Notifications
You must be signed in to change notification settings - Fork 0
/
idemix.pb.go
870 lines (778 loc) · 30.4 KB
/
idemix.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: idemix/idemix.proto
package idemix // import "github.com/hyperledger/fabric/idemix"
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
// ECP is an elliptic curve point specified by its coordinates
// ECP corresponds to an element of the first group (G1)
type ECP struct {
X []byte `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"`
Y []byte `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ECP) Reset() { *m = ECP{} }
func (m *ECP) String() string { return proto.CompactTextString(m) }
func (*ECP) ProtoMessage() {}
func (*ECP) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{0}
}
func (m *ECP) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ECP.Unmarshal(m, b)
}
func (m *ECP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ECP.Marshal(b, m, deterministic)
}
func (dst *ECP) XXX_Merge(src proto.Message) {
xxx_messageInfo_ECP.Merge(dst, src)
}
func (m *ECP) XXX_Size() int {
return xxx_messageInfo_ECP.Size(m)
}
func (m *ECP) XXX_DiscardUnknown() {
xxx_messageInfo_ECP.DiscardUnknown(m)
}
var xxx_messageInfo_ECP proto.InternalMessageInfo
func (m *ECP) GetX() []byte {
if m != nil {
return m.X
}
return nil
}
func (m *ECP) GetY() []byte {
if m != nil {
return m.Y
}
return nil
}
// ECP2 is an elliptic curve point specified by its coordinates
// ECP2 corresponds to an element of the second group (G2)
type ECP2 struct {
Xa []byte `protobuf:"bytes,1,opt,name=xa,proto3" json:"xa,omitempty"`
Xb []byte `protobuf:"bytes,2,opt,name=xb,proto3" json:"xb,omitempty"`
Ya []byte `protobuf:"bytes,3,opt,name=ya,proto3" json:"ya,omitempty"`
Yb []byte `protobuf:"bytes,4,opt,name=yb,proto3" json:"yb,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ECP2) Reset() { *m = ECP2{} }
func (m *ECP2) String() string { return proto.CompactTextString(m) }
func (*ECP2) ProtoMessage() {}
func (*ECP2) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{1}
}
func (m *ECP2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ECP2.Unmarshal(m, b)
}
func (m *ECP2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ECP2.Marshal(b, m, deterministic)
}
func (dst *ECP2) XXX_Merge(src proto.Message) {
xxx_messageInfo_ECP2.Merge(dst, src)
}
func (m *ECP2) XXX_Size() int {
return xxx_messageInfo_ECP2.Size(m)
}
func (m *ECP2) XXX_DiscardUnknown() {
xxx_messageInfo_ECP2.DiscardUnknown(m)
}
var xxx_messageInfo_ECP2 proto.InternalMessageInfo
func (m *ECP2) GetXa() []byte {
if m != nil {
return m.Xa
}
return nil
}
func (m *ECP2) GetXb() []byte {
if m != nil {
return m.Xb
}
return nil
}
func (m *ECP2) GetYa() []byte {
if m != nil {
return m.Ya
}
return nil
}
func (m *ECP2) GetYb() []byte {
if m != nil {
return m.Yb
}
return nil
}
// IssuerPublicKey specifies an issuer public key that consists of
// attribute_names - a list of the attribute names of a credential issued by the issuer
// h_sk, h_rand, h_attrs, w, bar_g1, bar_g2 - group elements corresponding to the signing key, randomness, and attributes
// proof_c, proof_s compose a zero-knowledge proof of knowledge of the secret key
// hash is a hash of the public key appended to it
type IssuerPublicKey struct {
AttributeNames []string `protobuf:"bytes,1,rep,name=attribute_names,json=attributeNames" json:"attribute_names,omitempty"`
HSk *ECP `protobuf:"bytes,2,opt,name=h_sk,json=hSk" json:"h_sk,omitempty"`
HRand *ECP `protobuf:"bytes,3,opt,name=h_rand,json=hRand" json:"h_rand,omitempty"`
HAttrs []*ECP `protobuf:"bytes,4,rep,name=h_attrs,json=hAttrs" json:"h_attrs,omitempty"`
W *ECP2 `protobuf:"bytes,5,opt,name=w" json:"w,omitempty"`
BarG1 *ECP `protobuf:"bytes,6,opt,name=bar_g1,json=barG1" json:"bar_g1,omitempty"`
BarG2 *ECP `protobuf:"bytes,7,opt,name=bar_g2,json=barG2" json:"bar_g2,omitempty"`
ProofC []byte `protobuf:"bytes,8,opt,name=proof_c,json=proofC,proto3" json:"proof_c,omitempty"`
ProofS []byte `protobuf:"bytes,9,opt,name=proof_s,json=proofS,proto3" json:"proof_s,omitempty"`
Hash []byte `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssuerPublicKey) Reset() { *m = IssuerPublicKey{} }
func (m *IssuerPublicKey) String() string { return proto.CompactTextString(m) }
func (*IssuerPublicKey) ProtoMessage() {}
func (*IssuerPublicKey) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{2}
}
func (m *IssuerPublicKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuerPublicKey.Unmarshal(m, b)
}
func (m *IssuerPublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuerPublicKey.Marshal(b, m, deterministic)
}
func (dst *IssuerPublicKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuerPublicKey.Merge(dst, src)
}
func (m *IssuerPublicKey) XXX_Size() int {
return xxx_messageInfo_IssuerPublicKey.Size(m)
}
func (m *IssuerPublicKey) XXX_DiscardUnknown() {
xxx_messageInfo_IssuerPublicKey.DiscardUnknown(m)
}
var xxx_messageInfo_IssuerPublicKey proto.InternalMessageInfo
func (m *IssuerPublicKey) GetAttributeNames() []string {
if m != nil {
return m.AttributeNames
}
return nil
}
func (m *IssuerPublicKey) GetHSk() *ECP {
if m != nil {
return m.HSk
}
return nil
}
func (m *IssuerPublicKey) GetHRand() *ECP {
if m != nil {
return m.HRand
}
return nil
}
func (m *IssuerPublicKey) GetHAttrs() []*ECP {
if m != nil {
return m.HAttrs
}
return nil
}
func (m *IssuerPublicKey) GetW() *ECP2 {
if m != nil {
return m.W
}
return nil
}
func (m *IssuerPublicKey) GetBarG1() *ECP {
if m != nil {
return m.BarG1
}
return nil
}
func (m *IssuerPublicKey) GetBarG2() *ECP {
if m != nil {
return m.BarG2
}
return nil
}
func (m *IssuerPublicKey) GetProofC() []byte {
if m != nil {
return m.ProofC
}
return nil
}
func (m *IssuerPublicKey) GetProofS() []byte {
if m != nil {
return m.ProofS
}
return nil
}
func (m *IssuerPublicKey) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
// IssuerKey specifies an issuer key pair that consists of
// ISk - the issuer secret key and
// IssuerPublicKey - the issuer public key
type IssuerKey struct {
Isk []byte `protobuf:"bytes,1,opt,name=isk,proto3" json:"isk,omitempty"`
Ipk *IssuerPublicKey `protobuf:"bytes,2,opt,name=ipk" json:"ipk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IssuerKey) Reset() { *m = IssuerKey{} }
func (m *IssuerKey) String() string { return proto.CompactTextString(m) }
func (*IssuerKey) ProtoMessage() {}
func (*IssuerKey) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{3}
}
func (m *IssuerKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IssuerKey.Unmarshal(m, b)
}
func (m *IssuerKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IssuerKey.Marshal(b, m, deterministic)
}
func (dst *IssuerKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_IssuerKey.Merge(dst, src)
}
func (m *IssuerKey) XXX_Size() int {
return xxx_messageInfo_IssuerKey.Size(m)
}
func (m *IssuerKey) XXX_DiscardUnknown() {
xxx_messageInfo_IssuerKey.DiscardUnknown(m)
}
var xxx_messageInfo_IssuerKey proto.InternalMessageInfo
func (m *IssuerKey) GetIsk() []byte {
if m != nil {
return m.Isk
}
return nil
}
func (m *IssuerKey) GetIpk() *IssuerPublicKey {
if m != nil {
return m.Ipk
}
return nil
}
// Credential specifies a credential object that consists of
// a, b, e, s - signature value
// attrs - attribute values
type Credential struct {
A *ECP `protobuf:"bytes,1,opt,name=a" json:"a,omitempty"`
B *ECP `protobuf:"bytes,2,opt,name=b" json:"b,omitempty"`
E []byte `protobuf:"bytes,3,opt,name=e,proto3" json:"e,omitempty"`
S []byte `protobuf:"bytes,4,opt,name=s,proto3" json:"s,omitempty"`
Attrs [][]byte `protobuf:"bytes,5,rep,name=attrs,proto3" json:"attrs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Credential) Reset() { *m = Credential{} }
func (m *Credential) String() string { return proto.CompactTextString(m) }
func (*Credential) ProtoMessage() {}
func (*Credential) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{4}
}
func (m *Credential) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Credential.Unmarshal(m, b)
}
func (m *Credential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Credential.Marshal(b, m, deterministic)
}
func (dst *Credential) XXX_Merge(src proto.Message) {
xxx_messageInfo_Credential.Merge(dst, src)
}
func (m *Credential) XXX_Size() int {
return xxx_messageInfo_Credential.Size(m)
}
func (m *Credential) XXX_DiscardUnknown() {
xxx_messageInfo_Credential.DiscardUnknown(m)
}
var xxx_messageInfo_Credential proto.InternalMessageInfo
func (m *Credential) GetA() *ECP {
if m != nil {
return m.A
}
return nil
}
func (m *Credential) GetB() *ECP {
if m != nil {
return m.B
}
return nil
}
func (m *Credential) GetE() []byte {
if m != nil {
return m.E
}
return nil
}
func (m *Credential) GetS() []byte {
if m != nil {
return m.S
}
return nil
}
func (m *Credential) GetAttrs() [][]byte {
if m != nil {
return m.Attrs
}
return nil
}
// CredRequest specifies a credential request object that consists of
// nym - a pseudonym, which is a commitment to the user secret
// issuer_nonce - a random nonce provided by the issuer
// proof_c, proof_s - a zero-knowledge proof of knowledge of the
// user secret inside Nym
type CredRequest struct {
Nym *ECP `protobuf:"bytes,1,opt,name=nym" json:"nym,omitempty"`
IssuerNonce []byte `protobuf:"bytes,2,opt,name=issuer_nonce,json=issuerNonce,proto3" json:"issuer_nonce,omitempty"`
ProofC []byte `protobuf:"bytes,3,opt,name=proof_c,json=proofC,proto3" json:"proof_c,omitempty"`
ProofS []byte `protobuf:"bytes,4,opt,name=proof_s,json=proofS,proto3" json:"proof_s,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CredRequest) Reset() { *m = CredRequest{} }
func (m *CredRequest) String() string { return proto.CompactTextString(m) }
func (*CredRequest) ProtoMessage() {}
func (*CredRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{5}
}
func (m *CredRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CredRequest.Unmarshal(m, b)
}
func (m *CredRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CredRequest.Marshal(b, m, deterministic)
}
func (dst *CredRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CredRequest.Merge(dst, src)
}
func (m *CredRequest) XXX_Size() int {
return xxx_messageInfo_CredRequest.Size(m)
}
func (m *CredRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CredRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CredRequest proto.InternalMessageInfo
func (m *CredRequest) GetNym() *ECP {
if m != nil {
return m.Nym
}
return nil
}
func (m *CredRequest) GetIssuerNonce() []byte {
if m != nil {
return m.IssuerNonce
}
return nil
}
func (m *CredRequest) GetProofC() []byte {
if m != nil {
return m.ProofC
}
return nil
}
func (m *CredRequest) GetProofS() []byte {
if m != nil {
return m.ProofS
}
return nil
}
// Signature specifies a signature object that consists of
// a_prime, a_bar, b_prime, proof_* - randomized credential signature values
// and a zero-knowledge proof of knowledge of a credential
// and the corresponding user secret together with the attribute values
// nonce - a fresh nonce used for the signature
// nym - a fresh pseudonym (a commitment to to the user secret)
type Signature struct {
APrime *ECP `protobuf:"bytes,1,opt,name=a_prime,json=aPrime" json:"a_prime,omitempty"`
ABar *ECP `protobuf:"bytes,2,opt,name=a_bar,json=aBar" json:"a_bar,omitempty"`
BPrime *ECP `protobuf:"bytes,3,opt,name=b_prime,json=bPrime" json:"b_prime,omitempty"`
ProofC []byte `protobuf:"bytes,4,opt,name=proof_c,json=proofC,proto3" json:"proof_c,omitempty"`
ProofSSk []byte `protobuf:"bytes,5,opt,name=proof_s_sk,json=proofSSk,proto3" json:"proof_s_sk,omitempty"`
ProofSE []byte `protobuf:"bytes,6,opt,name=proof_s_e,json=proofSE,proto3" json:"proof_s_e,omitempty"`
ProofSR2 []byte `protobuf:"bytes,7,opt,name=proof_s_r2,json=proofSR2,proto3" json:"proof_s_r2,omitempty"`
ProofSR3 []byte `protobuf:"bytes,8,opt,name=proof_s_r3,json=proofSR3,proto3" json:"proof_s_r3,omitempty"`
ProofSSPrime []byte `protobuf:"bytes,9,opt,name=proof_s_s_prime,json=proofSSPrime,proto3" json:"proof_s_s_prime,omitempty"`
ProofSAttrs [][]byte `protobuf:"bytes,10,rep,name=proof_s_attrs,json=proofSAttrs,proto3" json:"proof_s_attrs,omitempty"`
Nonce []byte `protobuf:"bytes,11,opt,name=nonce,proto3" json:"nonce,omitempty"`
Nym *ECP `protobuf:"bytes,12,opt,name=nym" json:"nym,omitempty"`
ProofSRNym []byte `protobuf:"bytes,13,opt,name=proof_s_r_nym,json=proofSRNym,proto3" json:"proof_s_r_nym,omitempty"`
RevocationEpochPk *ECP2 `protobuf:"bytes,14,opt,name=revocation_epoch_pk,json=revocationEpochPk" json:"revocation_epoch_pk,omitempty"`
RevocationPkSig []byte `protobuf:"bytes,15,opt,name=revocation_pk_sig,json=revocationPkSig,proto3" json:"revocation_pk_sig,omitempty"`
Epoch int64 `protobuf:"varint,16,opt,name=epoch" json:"epoch,omitempty"`
NonRevocationProof *NonRevocationProof `protobuf:"bytes,17,opt,name=non_revocation_proof,json=nonRevocationProof" json:"non_revocation_proof,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Signature) Reset() { *m = Signature{} }
func (m *Signature) String() string { return proto.CompactTextString(m) }
func (*Signature) ProtoMessage() {}
func (*Signature) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{6}
}
func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b)
}
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
}
func (dst *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(dst, src)
}
func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m)
}
func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m)
}
var xxx_messageInfo_Signature proto.InternalMessageInfo
func (m *Signature) GetAPrime() *ECP {
if m != nil {
return m.APrime
}
return nil
}
func (m *Signature) GetABar() *ECP {
if m != nil {
return m.ABar
}
return nil
}
func (m *Signature) GetBPrime() *ECP {
if m != nil {
return m.BPrime
}
return nil
}
func (m *Signature) GetProofC() []byte {
if m != nil {
return m.ProofC
}
return nil
}
func (m *Signature) GetProofSSk() []byte {
if m != nil {
return m.ProofSSk
}
return nil
}
func (m *Signature) GetProofSE() []byte {
if m != nil {
return m.ProofSE
}
return nil
}
func (m *Signature) GetProofSR2() []byte {
if m != nil {
return m.ProofSR2
}
return nil
}
func (m *Signature) GetProofSR3() []byte {
if m != nil {
return m.ProofSR3
}
return nil
}
func (m *Signature) GetProofSSPrime() []byte {
if m != nil {
return m.ProofSSPrime
}
return nil
}
func (m *Signature) GetProofSAttrs() [][]byte {
if m != nil {
return m.ProofSAttrs
}
return nil
}
func (m *Signature) GetNonce() []byte {
if m != nil {
return m.Nonce
}
return nil
}
func (m *Signature) GetNym() *ECP {
if m != nil {
return m.Nym
}
return nil
}
func (m *Signature) GetProofSRNym() []byte {
if m != nil {
return m.ProofSRNym
}
return nil
}
func (m *Signature) GetRevocationEpochPk() *ECP2 {
if m != nil {
return m.RevocationEpochPk
}
return nil
}
func (m *Signature) GetRevocationPkSig() []byte {
if m != nil {
return m.RevocationPkSig
}
return nil
}
func (m *Signature) GetEpoch() int64 {
if m != nil {
return m.Epoch
}
return 0
}
func (m *Signature) GetNonRevocationProof() *NonRevocationProof {
if m != nil {
return m.NonRevocationProof
}
return nil
}
// NonRevocationProof contains proof that the credential is not revoked
type NonRevocationProof struct {
RevocationAlg int32 `protobuf:"varint,1,opt,name=revocation_alg,json=revocationAlg" json:"revocation_alg,omitempty"`
NonRevocationProof []byte `protobuf:"bytes,2,opt,name=non_revocation_proof,json=nonRevocationProof,proto3" json:"non_revocation_proof,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NonRevocationProof) Reset() { *m = NonRevocationProof{} }
func (m *NonRevocationProof) String() string { return proto.CompactTextString(m) }
func (*NonRevocationProof) ProtoMessage() {}
func (*NonRevocationProof) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{7}
}
func (m *NonRevocationProof) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NonRevocationProof.Unmarshal(m, b)
}
func (m *NonRevocationProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NonRevocationProof.Marshal(b, m, deterministic)
}
func (dst *NonRevocationProof) XXX_Merge(src proto.Message) {
xxx_messageInfo_NonRevocationProof.Merge(dst, src)
}
func (m *NonRevocationProof) XXX_Size() int {
return xxx_messageInfo_NonRevocationProof.Size(m)
}
func (m *NonRevocationProof) XXX_DiscardUnknown() {
xxx_messageInfo_NonRevocationProof.DiscardUnknown(m)
}
var xxx_messageInfo_NonRevocationProof proto.InternalMessageInfo
func (m *NonRevocationProof) GetRevocationAlg() int32 {
if m != nil {
return m.RevocationAlg
}
return 0
}
func (m *NonRevocationProof) GetNonRevocationProof() []byte {
if m != nil {
return m.NonRevocationProof
}
return nil
}
// NymSignature specifies a signature object that signs a message
// with respect to a pseudonym. It differs from the standard idemix.signature in the fact that
// the standard signature object also proves that the pseudonym is based on a secret certified by
// a CA (issuer), whereas NymSignature only proves that the the owner of the pseudonym
// signed the message
type NymSignature struct {
// proof_c is the Fiat-Shamir challenge of the ZKP
ProofC []byte `protobuf:"bytes,1,opt,name=proof_c,json=proofC,proto3" json:"proof_c,omitempty"`
// proof_s_sk is the s-value proving knowledge of the user secret key
ProofSSk []byte `protobuf:"bytes,2,opt,name=proof_s_sk,json=proofSSk,proto3" json:"proof_s_sk,omitempty"`
// proof_s_r_nym is the s-value proving knowledge of the pseudonym secret
ProofSRNym []byte `protobuf:"bytes,3,opt,name=proof_s_r_nym,json=proofSRNym,proto3" json:"proof_s_r_nym,omitempty"`
// nonce is a fresh nonce used for the signature
Nonce []byte `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NymSignature) Reset() { *m = NymSignature{} }
func (m *NymSignature) String() string { return proto.CompactTextString(m) }
func (*NymSignature) ProtoMessage() {}
func (*NymSignature) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{8}
}
func (m *NymSignature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NymSignature.Unmarshal(m, b)
}
func (m *NymSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NymSignature.Marshal(b, m, deterministic)
}
func (dst *NymSignature) XXX_Merge(src proto.Message) {
xxx_messageInfo_NymSignature.Merge(dst, src)
}
func (m *NymSignature) XXX_Size() int {
return xxx_messageInfo_NymSignature.Size(m)
}
func (m *NymSignature) XXX_DiscardUnknown() {
xxx_messageInfo_NymSignature.DiscardUnknown(m)
}
var xxx_messageInfo_NymSignature proto.InternalMessageInfo
func (m *NymSignature) GetProofC() []byte {
if m != nil {
return m.ProofC
}
return nil
}
func (m *NymSignature) GetProofSSk() []byte {
if m != nil {
return m.ProofSSk
}
return nil
}
func (m *NymSignature) GetProofSRNym() []byte {
if m != nil {
return m.ProofSRNym
}
return nil
}
func (m *NymSignature) GetNonce() []byte {
if m != nil {
return m.Nonce
}
return nil
}
type CredentialRevocationInformation struct {
// epoch contains the epoch (time window) in which this CRI is valid
Epoch int64 `protobuf:"varint,1,opt,name=epoch" json:"epoch,omitempty"`
// epoch_pk is the public key that is used by the revocation authority in this epoch
EpochPk *ECP2 `protobuf:"bytes,2,opt,name=epoch_pk,json=epochPk" json:"epoch_pk,omitempty"`
// epoch_pk_sig is a signature on the EpochPK valid under the revocation authority's long term key
EpochPkSig []byte `protobuf:"bytes,3,opt,name=epoch_pk_sig,json=epochPkSig,proto3" json:"epoch_pk_sig,omitempty"`
// revocation_alg denotes which revocation algorithm is used
RevocationAlg int32 `protobuf:"varint,4,opt,name=revocation_alg,json=revocationAlg" json:"revocation_alg,omitempty"`
// revocation_data contains data specific to the revocation algorithm used
RevocationData []byte `protobuf:"bytes,5,opt,name=revocation_data,json=revocationData,proto3" json:"revocation_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CredentialRevocationInformation) Reset() { *m = CredentialRevocationInformation{} }
func (m *CredentialRevocationInformation) String() string { return proto.CompactTextString(m) }
func (*CredentialRevocationInformation) ProtoMessage() {}
func (*CredentialRevocationInformation) Descriptor() ([]byte, []int) {
return fileDescriptor_idemix_ea623f6980eee47e, []int{9}
}
func (m *CredentialRevocationInformation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CredentialRevocationInformation.Unmarshal(m, b)
}
func (m *CredentialRevocationInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CredentialRevocationInformation.Marshal(b, m, deterministic)
}
func (dst *CredentialRevocationInformation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CredentialRevocationInformation.Merge(dst, src)
}
func (m *CredentialRevocationInformation) XXX_Size() int {
return xxx_messageInfo_CredentialRevocationInformation.Size(m)
}
func (m *CredentialRevocationInformation) XXX_DiscardUnknown() {
xxx_messageInfo_CredentialRevocationInformation.DiscardUnknown(m)
}
var xxx_messageInfo_CredentialRevocationInformation proto.InternalMessageInfo
func (m *CredentialRevocationInformation) GetEpoch() int64 {
if m != nil {
return m.Epoch
}
return 0
}
func (m *CredentialRevocationInformation) GetEpochPk() *ECP2 {
if m != nil {
return m.EpochPk
}
return nil
}
func (m *CredentialRevocationInformation) GetEpochPkSig() []byte {
if m != nil {
return m.EpochPkSig
}
return nil
}
func (m *CredentialRevocationInformation) GetRevocationAlg() int32 {
if m != nil {
return m.RevocationAlg
}
return 0
}
func (m *CredentialRevocationInformation) GetRevocationData() []byte {
if m != nil {
return m.RevocationData
}
return nil
}
func init() {
proto.RegisterType((*ECP)(nil), "ECP")
proto.RegisterType((*ECP2)(nil), "ECP2")
proto.RegisterType((*IssuerPublicKey)(nil), "IssuerPublicKey")
proto.RegisterType((*IssuerKey)(nil), "IssuerKey")
proto.RegisterType((*Credential)(nil), "Credential")
proto.RegisterType((*CredRequest)(nil), "CredRequest")
proto.RegisterType((*Signature)(nil), "Signature")
proto.RegisterType((*NonRevocationProof)(nil), "NonRevocationProof")
proto.RegisterType((*NymSignature)(nil), "NymSignature")
proto.RegisterType((*CredentialRevocationInformation)(nil), "CredentialRevocationInformation")
}
func init() { proto.RegisterFile("idemix/idemix.proto", fileDescriptor_idemix_ea623f6980eee47e) }
var fileDescriptor_idemix_ea623f6980eee47e = []byte{
// 816 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0xdd, 0x6e, 0xe2, 0x46,
0x14, 0xd6, 0x60, 0x9b, 0x84, 0x83, 0x13, 0xb2, 0x93, 0xa8, 0x3b, 0xfd, 0x53, 0x59, 0xab, 0xdb,
0x8d, 0x7a, 0x41, 0xba, 0x44, 0x7d, 0x80, 0x2c, 0xa5, 0xd5, 0xaa, 0x12, 0x42, 0xe6, 0xae, 0x37,
0xa3, 0x19, 0x18, 0xb0, 0x05, 0xb6, 0xe9, 0xd8, 0x74, 0x71, 0x2f, 0xfa, 0x34, 0x7d, 0x9b, 0x5e,
0xf4, 0x95, 0xaa, 0xf9, 0x01, 0x0f, 0x61, 0xb7, 0x57, 0xf1, 0x39, 0xdf, 0xf9, 0xe3, 0xfb, 0x3e,
0xc7, 0x70, 0x9b, 0x2e, 0x44, 0x96, 0xee, 0x1f, 0xcc, 0x9f, 0xc1, 0x56, 0x16, 0x55, 0x11, 0xbd,
0x02, 0x6f, 0x3c, 0x9a, 0xe2, 0x10, 0xd0, 0x9e, 0xa0, 0x3e, 0xba, 0x0f, 0x63, 0xb4, 0x57, 0x51,
0x4d, 0x5a, 0x26, 0xaa, 0xa3, 0x9f, 0xc1, 0x1f, 0x8f, 0xa6, 0x43, 0x7c, 0x0d, 0xad, 0x3d, 0xb3,
0x45, 0xad, 0x3d, 0xd3, 0x31, 0xb7, 0x65, 0xad, 0x3d, 0x57, 0x71, 0xcd, 0x88, 0x67, 0xe2, 0x5a,
0xe3, 0x35, 0x27, 0xbe, 0x8d, 0x79, 0xf4, 0x77, 0x0b, 0x7a, 0xef, 0xcb, 0x72, 0x27, 0xe4, 0x74,
0xc7, 0x37, 0xe9, 0xfc, 0x57, 0x51, 0xe3, 0x37, 0xd0, 0x63, 0x55, 0x25, 0x53, 0xbe, 0xab, 0x04,
0xcd, 0x59, 0x26, 0x4a, 0x82, 0xfa, 0xde, 0x7d, 0x27, 0xbe, 0x3e, 0xa6, 0x27, 0x2a, 0x8b, 0x5f,
0x82, 0x9f, 0xd0, 0x72, 0xad, 0xd7, 0x75, 0x87, 0xfe, 0x60, 0x3c, 0x9a, 0xc6, 0x5e, 0x32, 0x5b,
0xe3, 0x2f, 0xa1, 0x9d, 0x50, 0xc9, 0xf2, 0x85, 0xde, 0x7c, 0x80, 0x82, 0x24, 0x66, 0xf9, 0x02,
0x7f, 0x0d, 0x17, 0x09, 0x55, 0x93, 0x4a, 0xe2, 0xf7, 0xbd, 0x23, 0xda, 0x4e, 0x9e, 0x54, 0x0e,
0xdf, 0x02, 0xfa, 0x40, 0x02, 0xdd, 0x16, 0x28, 0x60, 0x18, 0xa3, 0x0f, 0x6a, 0x20, 0x67, 0x92,
0xae, 0xde, 0x92, 0xb6, 0x3b, 0x90, 0x33, 0xf9, 0xcb, 0xdb, 0x23, 0x38, 0x24, 0x17, 0xcf, 0xc1,
0x21, 0x7e, 0x09, 0x17, 0x5b, 0x59, 0x14, 0x4b, 0x3a, 0x27, 0x97, 0xfa, 0x57, 0xb7, 0x75, 0x38,
0x6a, 0x80, 0x92, 0x74, 0x1c, 0x60, 0x86, 0x31, 0xf8, 0x09, 0x2b, 0x13, 0x02, 0x3a, 0xab, 0x9f,
0xa3, 0x27, 0xe8, 0x18, 0x96, 0x14, 0x3f, 0x37, 0xe0, 0xa5, 0xe5, 0xda, 0x92, 0xae, 0x1e, 0x71,
0x04, 0x5e, 0xba, 0x3d, 0xf0, 0x70, 0x33, 0x78, 0x46, 0x68, 0xac, 0xc0, 0x68, 0x09, 0x30, 0x92,
0x62, 0x21, 0xf2, 0x2a, 0x65, 0x1b, 0x8c, 0x01, 0x19, 0xd9, 0x0e, 0xe7, 0x22, 0xa6, 0x72, 0xfc,
0x84, 0x4b, 0xc4, 0x95, 0xea, 0xc2, 0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