github.com/hyperledger/fabric-protos-go@v0.3.3/msp/identities.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: msp/identities.proto
     3  
     4  package msp
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	math "math"
    10  )
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  // This struct represents an Identity
    24  // (with its MSP identifier) to be used
    25  // to serialize it and deserialize it
    26  type SerializedIdentity struct {
    27  	// The identifier of the associated membership service provider
    28  	Mspid string `protobuf:"bytes,1,opt,name=mspid,proto3" json:"mspid,omitempty"`
    29  	// the Identity, serialized according to the rules of its MPS
    30  	IdBytes              []byte   `protobuf:"bytes,2,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    32  	XXX_unrecognized     []byte   `json:"-"`
    33  	XXX_sizecache        int32    `json:"-"`
    34  }
    35  
    36  func (m *SerializedIdentity) Reset()         { *m = SerializedIdentity{} }
    37  func (m *SerializedIdentity) String() string { return proto.CompactTextString(m) }
    38  func (*SerializedIdentity) ProtoMessage()    {}
    39  func (*SerializedIdentity) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_872f7fc14bf2c238, []int{0}
    41  }
    42  
    43  func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error {
    44  	return xxx_messageInfo_SerializedIdentity.Unmarshal(m, b)
    45  }
    46  func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    47  	return xxx_messageInfo_SerializedIdentity.Marshal(b, m, deterministic)
    48  }
    49  func (m *SerializedIdentity) XXX_Merge(src proto.Message) {
    50  	xxx_messageInfo_SerializedIdentity.Merge(m, src)
    51  }
    52  func (m *SerializedIdentity) XXX_Size() int {
    53  	return xxx_messageInfo_SerializedIdentity.Size(m)
    54  }
    55  func (m *SerializedIdentity) XXX_DiscardUnknown() {
    56  	xxx_messageInfo_SerializedIdentity.DiscardUnknown(m)
    57  }
    58  
    59  var xxx_messageInfo_SerializedIdentity proto.InternalMessageInfo
    60  
    61  func (m *SerializedIdentity) GetMspid() string {
    62  	if m != nil {
    63  		return m.Mspid
    64  	}
    65  	return ""
    66  }
    67  
    68  func (m *SerializedIdentity) GetIdBytes() []byte {
    69  	if m != nil {
    70  		return m.IdBytes
    71  	}
    72  	return nil
    73  }
    74  
    75  // This struct represents an Idemix Identity
    76  // to be used to serialize it and deserialize it.
    77  // The IdemixMSP will first serialize an idemix identity to bytes using
    78  // this proto, and then uses these bytes as id_bytes in SerializedIdentity
    79  type SerializedIdemixIdentity struct {
    80  	// nym_x is the X-component of the pseudonym elliptic curve point.
    81  	// It is a []byte representation of an amcl.BIG
    82  	// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.
    83  	NymX []byte `protobuf:"bytes,1,opt,name=nym_x,json=nymX,proto3" json:"nym_x,omitempty"`
    84  	// nym_y is the Y-component of the pseudonym elliptic curve point.
    85  	// It is a []byte representation of an amcl.BIG
    86  	// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.
    87  	NymY []byte `protobuf:"bytes,2,opt,name=nym_y,json=nymY,proto3" json:"nym_y,omitempty"`
    88  	// ou contains the organizational unit of the idemix identity
    89  	Ou []byte `protobuf:"bytes,3,opt,name=ou,proto3" json:"ou,omitempty"`
    90  	// role contains the role of this identity (e.g., ADMIN or MEMBER)
    91  	Role []byte `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
    92  	// proof contains the cryptographic evidence that this identity is valid
    93  	Proof                []byte   `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"`
    94  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    95  	XXX_unrecognized     []byte   `json:"-"`
    96  	XXX_sizecache        int32    `json:"-"`
    97  }
    98  
    99  func (m *SerializedIdemixIdentity) Reset()         { *m = SerializedIdemixIdentity{} }
   100  func (m *SerializedIdemixIdentity) String() string { return proto.CompactTextString(m) }
   101  func (*SerializedIdemixIdentity) ProtoMessage()    {}
   102  func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int) {
   103  	return fileDescriptor_872f7fc14bf2c238, []int{1}
   104  }
   105  
   106  func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error {
   107  	return xxx_messageInfo_SerializedIdemixIdentity.Unmarshal(m, b)
   108  }
   109  func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   110  	return xxx_messageInfo_SerializedIdemixIdentity.Marshal(b, m, deterministic)
   111  }
   112  func (m *SerializedIdemixIdentity) XXX_Merge(src proto.Message) {
   113  	xxx_messageInfo_SerializedIdemixIdentity.Merge(m, src)
   114  }
   115  func (m *SerializedIdemixIdentity) XXX_Size() int {
   116  	return xxx_messageInfo_SerializedIdemixIdentity.Size(m)
   117  }
   118  func (m *SerializedIdemixIdentity) XXX_DiscardUnknown() {
   119  	xxx_messageInfo_SerializedIdemixIdentity.DiscardUnknown(m)
   120  }
   121  
   122  var xxx_messageInfo_SerializedIdemixIdentity proto.InternalMessageInfo
   123  
   124  func (m *SerializedIdemixIdentity) GetNymX() []byte {
   125  	if m != nil {
   126  		return m.NymX
   127  	}
   128  	return nil
   129  }
   130  
   131  func (m *SerializedIdemixIdentity) GetNymY() []byte {
   132  	if m != nil {
   133  		return m.NymY
   134  	}
   135  	return nil
   136  }
   137  
   138  func (m *SerializedIdemixIdentity) GetOu() []byte {
   139  	if m != nil {
   140  		return m.Ou
   141  	}
   142  	return nil
   143  }
   144  
   145  func (m *SerializedIdemixIdentity) GetRole() []byte {
   146  	if m != nil {
   147  		return m.Role
   148  	}
   149  	return nil
   150  }
   151  
   152  func (m *SerializedIdemixIdentity) GetProof() []byte {
   153  	if m != nil {
   154  		return m.Proof
   155  	}
   156  	return nil
   157  }
   158  
   159  func init() {
   160  	proto.RegisterType((*SerializedIdentity)(nil), "msp.SerializedIdentity")
   161  	proto.RegisterType((*SerializedIdemixIdentity)(nil), "msp.SerializedIdemixIdentity")
   162  }
   163  
   164  func init() { proto.RegisterFile("msp/identities.proto", fileDescriptor_872f7fc14bf2c238) }
   165  
   166  var fileDescriptor_872f7fc14bf2c238 = []byte{
   167  	// 243 bytes of a gzipped FileDescriptorProto
   168  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x31, 0x4f, 0xfb, 0x30,
   169  	0x10, 0x47, 0x95, 0x34, 0xf9, 0xff, 0xc1, 0xaa, 0x18, 0x4c, 0x07, 0xb3, 0x95, 0x4e, 0x95, 0x50,
   170  	0x9d, 0x81, 0x6f, 0x50, 0x89, 0x81, 0x0d, 0x85, 0x05, 0x58, 0xaa, 0xa6, 0xbe, 0xa6, 0x27, 0xe5,
   171  	0x72, 0x96, 0xed, 0x48, 0x35, 0x03, 0x9f, 0x1d, 0x25, 0x06, 0x04, 0x9b, 0x7f, 0x4f, 0x4f, 0x4f,
   172  	0x3e, 0xb1, 0x20, 0x6f, 0x2b, 0x34, 0xd0, 0x07, 0x0c, 0x08, 0x5e, 0x5b, 0xc7, 0x81, 0xe5, 0x8c,
   173  	0xbc, 0x5d, 0x3d, 0x08, 0xf9, 0x0c, 0x0e, 0xf7, 0x1d, 0xbe, 0x83, 0x79, 0x4c, 0x4a, 0x94, 0x0b,
   174  	0x51, 0x92, 0xb7, 0x68, 0x54, 0xb6, 0xcc, 0xd6, 0x97, 0x75, 0x1a, 0xf2, 0x46, 0x5c, 0xa0, 0xd9,
   175  	0x35, 0x31, 0x80, 0x57, 0xf9, 0x32, 0x5b, 0xcf, 0xeb, 0xff, 0x68, 0xb6, 0xe3, 0x5c, 0x7d, 0x08,
   176  	0xf5, 0x27, 0x43, 0x78, 0xfe, 0x89, 0x5d, 0x8b, 0xb2, 0x8f, 0xb4, 0x3b, 0x4f, 0xb1, 0x79, 0x5d,
   177  	0xf4, 0x91, 0x5e, 0xbe, 0x61, 0xfc, 0x0a, 0x8d, 0xf0, 0x55, 0x5e, 0x89, 0x9c, 0x07, 0x35, 0x9b,
   178  	0x48, 0xce, 0x83, 0x94, 0xa2, 0x70, 0xdc, 0x81, 0x2a, 0x92, 0x33, 0xbe, 0xc7, 0xaf, 0x59, 0xc7,
   179  	0x7c, 0x54, 0xe5, 0x04, 0xd3, 0xd8, 0x3e, 0x89, 0x5b, 0x76, 0xad, 0x3e, 0x45, 0x0b, 0xae, 0x03,
   180  	0xd3, 0x82, 0xd3, 0xc7, 0x7d, 0xe3, 0xf0, 0x90, 0x6e, 0xf5, 0x9a, 0xbc, 0x7d, 0xbb, 0x6b, 0x31,
   181  	0x9c, 0x86, 0x46, 0x1f, 0x98, 0xaa, 0x5f, 0x66, 0x95, 0xcc, 0x4d, 0x32, 0x37, 0x2d, 0x57, 0xe4,
   182  	0x6d, 0xf3, 0x6f, 0x9a, 0xf7, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xf7, 0x41, 0xf7, 0x3c,
   183  	0x01, 0x00, 0x00,
   184  }