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

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: msp/msp_config.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  // MSPConfig collects all the configuration information for
    24  // an MSP. The Config field should be unmarshalled in a way
    25  // that depends on the Type
    26  type MSPConfig struct {
    27  	// Type holds the type of the MSP; the default one would
    28  	// be of type FABRIC implementing an X.509 based provider
    29  	Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
    30  	// Config is MSP dependent configuration info
    31  	Config               []byte   `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
    32  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    33  	XXX_unrecognized     []byte   `json:"-"`
    34  	XXX_sizecache        int32    `json:"-"`
    35  }
    36  
    37  func (m *MSPConfig) Reset()         { *m = MSPConfig{} }
    38  func (m *MSPConfig) String() string { return proto.CompactTextString(m) }
    39  func (*MSPConfig) ProtoMessage()    {}
    40  func (*MSPConfig) Descriptor() ([]byte, []int) {
    41  	return fileDescriptor_9c34771f529d9d1a, []int{0}
    42  }
    43  
    44  func (m *MSPConfig) XXX_Unmarshal(b []byte) error {
    45  	return xxx_messageInfo_MSPConfig.Unmarshal(m, b)
    46  }
    47  func (m *MSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    48  	return xxx_messageInfo_MSPConfig.Marshal(b, m, deterministic)
    49  }
    50  func (m *MSPConfig) XXX_Merge(src proto.Message) {
    51  	xxx_messageInfo_MSPConfig.Merge(m, src)
    52  }
    53  func (m *MSPConfig) XXX_Size() int {
    54  	return xxx_messageInfo_MSPConfig.Size(m)
    55  }
    56  func (m *MSPConfig) XXX_DiscardUnknown() {
    57  	xxx_messageInfo_MSPConfig.DiscardUnknown(m)
    58  }
    59  
    60  var xxx_messageInfo_MSPConfig proto.InternalMessageInfo
    61  
    62  func (m *MSPConfig) GetType() int32 {
    63  	if m != nil {
    64  		return m.Type
    65  	}
    66  	return 0
    67  }
    68  
    69  func (m *MSPConfig) GetConfig() []byte {
    70  	if m != nil {
    71  		return m.Config
    72  	}
    73  	return nil
    74  }
    75  
    76  // FabricMSPConfig collects all the configuration information for
    77  // a Fabric MSP.
    78  // Here we assume a default certificate validation policy, where
    79  // any certificate signed by any of the listed rootCA certs would
    80  // be considered as valid under this MSP.
    81  // This MSP may or may not come with a signing identity. If it does,
    82  // it can also issue signing identities. If it does not, it can only
    83  // be used to validate and verify certificates.
    84  type FabricMSPConfig struct {
    85  	// Name holds the identifier of the MSP; MSP identifier
    86  	// is chosen by the application that governs this MSP.
    87  	// For example, and assuming the default implementation of MSP,
    88  	// that is X.509-based and considers a single Issuer,
    89  	// this can refer to the Subject OU field or the Issuer OU field.
    90  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    91  	// List of root certificates trusted by this MSP
    92  	// they are used upon certificate validation (see
    93  	// comment for IntermediateCerts below)
    94  	RootCerts [][]byte `protobuf:"bytes,2,rep,name=root_certs,json=rootCerts,proto3" json:"root_certs,omitempty"`
    95  	// List of intermediate certificates trusted by this MSP;
    96  	// they are used upon certificate validation as follows:
    97  	// validation attempts to build a path from the certificate
    98  	// to be validated (which is at one end of the path) and
    99  	// one of the certs in the RootCerts field (which is at
   100  	// the other end of the path). If the path is longer than
   101  	// 2, certificates in the middle are searched within the
   102  	// IntermediateCerts pool
   103  	IntermediateCerts [][]byte `protobuf:"bytes,3,rep,name=intermediate_certs,json=intermediateCerts,proto3" json:"intermediate_certs,omitempty"`
   104  	// Identity denoting the administrator of this MSP
   105  	Admins [][]byte `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"`
   106  	// Identity revocation list
   107  	RevocationList [][]byte `protobuf:"bytes,5,rep,name=revocation_list,json=revocationList,proto3" json:"revocation_list,omitempty"`
   108  	// SigningIdentity holds information on the signing identity
   109  	// this peer is to use, and which is to be imported by the
   110  	// MSP defined before
   111  	SigningIdentity *SigningIdentityInfo `protobuf:"bytes,6,opt,name=signing_identity,json=signingIdentity,proto3" json:"signing_identity,omitempty"`
   112  	// OrganizationalUnitIdentifiers holds one or more
   113  	// fabric organizational unit identifiers that belong to
   114  	// this MSP configuration
   115  	OrganizationalUnitIdentifiers []*FabricOUIdentifier `protobuf:"bytes,7,rep,name=organizational_unit_identifiers,json=organizationalUnitIdentifiers,proto3" json:"organizational_unit_identifiers,omitempty"`
   116  	// FabricCryptoConfig contains the configuration parameters
   117  	// for the cryptographic algorithms used by this MSP
   118  	CryptoConfig *FabricCryptoConfig `protobuf:"bytes,8,opt,name=crypto_config,json=cryptoConfig,proto3" json:"crypto_config,omitempty"`
   119  	// List of TLS root certificates trusted by this MSP.
   120  	// They are returned by GetTLSRootCerts.
   121  	TlsRootCerts [][]byte `protobuf:"bytes,9,rep,name=tls_root_certs,json=tlsRootCerts,proto3" json:"tls_root_certs,omitempty"`
   122  	// List of TLS intermediate certificates trusted by this MSP;
   123  	// They are returned by GetTLSIntermediateCerts.
   124  	TlsIntermediateCerts [][]byte `protobuf:"bytes,10,rep,name=tls_intermediate_certs,json=tlsIntermediateCerts,proto3" json:"tls_intermediate_certs,omitempty"`
   125  	// fabric_node_ous contains the configuration to distinguish clients from peers from orderers
   126  	// based on the OUs.
   127  	FabricNodeOus        *FabricNodeOUs `protobuf:"bytes,11,opt,name=fabric_node_ous,json=fabricNodeOus,proto3" json:"fabric_node_ous,omitempty"`
   128  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   129  	XXX_unrecognized     []byte         `json:"-"`
   130  	XXX_sizecache        int32          `json:"-"`
   131  }
   132  
   133  func (m *FabricMSPConfig) Reset()         { *m = FabricMSPConfig{} }
   134  func (m *FabricMSPConfig) String() string { return proto.CompactTextString(m) }
   135  func (*FabricMSPConfig) ProtoMessage()    {}
   136  func (*FabricMSPConfig) Descriptor() ([]byte, []int) {
   137  	return fileDescriptor_9c34771f529d9d1a, []int{1}
   138  }
   139  
   140  func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error {
   141  	return xxx_messageInfo_FabricMSPConfig.Unmarshal(m, b)
   142  }
   143  func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   144  	return xxx_messageInfo_FabricMSPConfig.Marshal(b, m, deterministic)
   145  }
   146  func (m *FabricMSPConfig) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_FabricMSPConfig.Merge(m, src)
   148  }
   149  func (m *FabricMSPConfig) XXX_Size() int {
   150  	return xxx_messageInfo_FabricMSPConfig.Size(m)
   151  }
   152  func (m *FabricMSPConfig) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_FabricMSPConfig.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_FabricMSPConfig proto.InternalMessageInfo
   157  
   158  func (m *FabricMSPConfig) GetName() string {
   159  	if m != nil {
   160  		return m.Name
   161  	}
   162  	return ""
   163  }
   164  
   165  func (m *FabricMSPConfig) GetRootCerts() [][]byte {
   166  	if m != nil {
   167  		return m.RootCerts
   168  	}
   169  	return nil
   170  }
   171  
   172  func (m *FabricMSPConfig) GetIntermediateCerts() [][]byte {
   173  	if m != nil {
   174  		return m.IntermediateCerts
   175  	}
   176  	return nil
   177  }
   178  
   179  func (m *FabricMSPConfig) GetAdmins() [][]byte {
   180  	if m != nil {
   181  		return m.Admins
   182  	}
   183  	return nil
   184  }
   185  
   186  func (m *FabricMSPConfig) GetRevocationList() [][]byte {
   187  	if m != nil {
   188  		return m.RevocationList
   189  	}
   190  	return nil
   191  }
   192  
   193  func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo {
   194  	if m != nil {
   195  		return m.SigningIdentity
   196  	}
   197  	return nil
   198  }
   199  
   200  func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier {
   201  	if m != nil {
   202  		return m.OrganizationalUnitIdentifiers
   203  	}
   204  	return nil
   205  }
   206  
   207  func (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig {
   208  	if m != nil {
   209  		return m.CryptoConfig
   210  	}
   211  	return nil
   212  }
   213  
   214  func (m *FabricMSPConfig) GetTlsRootCerts() [][]byte {
   215  	if m != nil {
   216  		return m.TlsRootCerts
   217  	}
   218  	return nil
   219  }
   220  
   221  func (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte {
   222  	if m != nil {
   223  		return m.TlsIntermediateCerts
   224  	}
   225  	return nil
   226  }
   227  
   228  func (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs {
   229  	if m != nil {
   230  		return m.FabricNodeOus
   231  	}
   232  	return nil
   233  }
   234  
   235  // FabricCryptoConfig contains configuration parameters
   236  // for the cryptographic algorithms used by the MSP
   237  // this configuration refers to
   238  type FabricCryptoConfig struct {
   239  	// SignatureHashFamily is a string representing the hash family to be used
   240  	// during sign and verify operations.
   241  	// Allowed values are "SHA2" and "SHA3".
   242  	SignatureHashFamily string `protobuf:"bytes,1,opt,name=signature_hash_family,json=signatureHashFamily,proto3" json:"signature_hash_family,omitempty"`
   243  	// IdentityIdentifierHashFunction is a string representing the hash function
   244  	// to be used during the computation of the identity identifier of an MSP identity.
   245  	// Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384".
   246  	IdentityIdentifierHashFunction string   `protobuf:"bytes,2,opt,name=identity_identifier_hash_function,json=identityIdentifierHashFunction,proto3" json:"identity_identifier_hash_function,omitempty"`
   247  	XXX_NoUnkeyedLiteral           struct{} `json:"-"`
   248  	XXX_unrecognized               []byte   `json:"-"`
   249  	XXX_sizecache                  int32    `json:"-"`
   250  }
   251  
   252  func (m *FabricCryptoConfig) Reset()         { *m = FabricCryptoConfig{} }
   253  func (m *FabricCryptoConfig) String() string { return proto.CompactTextString(m) }
   254  func (*FabricCryptoConfig) ProtoMessage()    {}
   255  func (*FabricCryptoConfig) Descriptor() ([]byte, []int) {
   256  	return fileDescriptor_9c34771f529d9d1a, []int{2}
   257  }
   258  
   259  func (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error {
   260  	return xxx_messageInfo_FabricCryptoConfig.Unmarshal(m, b)
   261  }
   262  func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   263  	return xxx_messageInfo_FabricCryptoConfig.Marshal(b, m, deterministic)
   264  }
   265  func (m *FabricCryptoConfig) XXX_Merge(src proto.Message) {
   266  	xxx_messageInfo_FabricCryptoConfig.Merge(m, src)
   267  }
   268  func (m *FabricCryptoConfig) XXX_Size() int {
   269  	return xxx_messageInfo_FabricCryptoConfig.Size(m)
   270  }
   271  func (m *FabricCryptoConfig) XXX_DiscardUnknown() {
   272  	xxx_messageInfo_FabricCryptoConfig.DiscardUnknown(m)
   273  }
   274  
   275  var xxx_messageInfo_FabricCryptoConfig proto.InternalMessageInfo
   276  
   277  func (m *FabricCryptoConfig) GetSignatureHashFamily() string {
   278  	if m != nil {
   279  		return m.SignatureHashFamily
   280  	}
   281  	return ""
   282  }
   283  
   284  func (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string {
   285  	if m != nil {
   286  		return m.IdentityIdentifierHashFunction
   287  	}
   288  	return ""
   289  }
   290  
   291  // IdemixMSPConfig collects all the configuration information for
   292  // an Idemix MSP.
   293  type IdemixMSPConfig struct {
   294  	// Name holds the identifier of the MSP
   295  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   296  	// ipk represents the (serialized) issuer public key
   297  	Ipk []byte `protobuf:"bytes,2,opt,name=ipk,proto3" json:"ipk,omitempty"`
   298  	// signer may contain crypto material to configure a default signer
   299  	Signer *IdemixMSPSignerConfig `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
   300  	// revocation_pk is the public key used for revocation of credentials
   301  	RevocationPk []byte `protobuf:"bytes,4,opt,name=revocation_pk,json=revocationPk,proto3" json:"revocation_pk,omitempty"`
   302  	// epoch represents the current epoch (time interval) used for revocation
   303  	Epoch                int64    `protobuf:"varint,5,opt,name=epoch,proto3" json:"epoch,omitempty"`
   304  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   305  	XXX_unrecognized     []byte   `json:"-"`
   306  	XXX_sizecache        int32    `json:"-"`
   307  }
   308  
   309  func (m *IdemixMSPConfig) Reset()         { *m = IdemixMSPConfig{} }
   310  func (m *IdemixMSPConfig) String() string { return proto.CompactTextString(m) }
   311  func (*IdemixMSPConfig) ProtoMessage()    {}
   312  func (*IdemixMSPConfig) Descriptor() ([]byte, []int) {
   313  	return fileDescriptor_9c34771f529d9d1a, []int{3}
   314  }
   315  
   316  func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error {
   317  	return xxx_messageInfo_IdemixMSPConfig.Unmarshal(m, b)
   318  }
   319  func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   320  	return xxx_messageInfo_IdemixMSPConfig.Marshal(b, m, deterministic)
   321  }
   322  func (m *IdemixMSPConfig) XXX_Merge(src proto.Message) {
   323  	xxx_messageInfo_IdemixMSPConfig.Merge(m, src)
   324  }
   325  func (m *IdemixMSPConfig) XXX_Size() int {
   326  	return xxx_messageInfo_IdemixMSPConfig.Size(m)
   327  }
   328  func (m *IdemixMSPConfig) XXX_DiscardUnknown() {
   329  	xxx_messageInfo_IdemixMSPConfig.DiscardUnknown(m)
   330  }
   331  
   332  var xxx_messageInfo_IdemixMSPConfig proto.InternalMessageInfo
   333  
   334  func (m *IdemixMSPConfig) GetName() string {
   335  	if m != nil {
   336  		return m.Name
   337  	}
   338  	return ""
   339  }
   340  
   341  func (m *IdemixMSPConfig) GetIpk() []byte {
   342  	if m != nil {
   343  		return m.Ipk
   344  	}
   345  	return nil
   346  }
   347  
   348  func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig {
   349  	if m != nil {
   350  		return m.Signer
   351  	}
   352  	return nil
   353  }
   354  
   355  func (m *IdemixMSPConfig) GetRevocationPk() []byte {
   356  	if m != nil {
   357  		return m.RevocationPk
   358  	}
   359  	return nil
   360  }
   361  
   362  func (m *IdemixMSPConfig) GetEpoch() int64 {
   363  	if m != nil {
   364  		return m.Epoch
   365  	}
   366  	return 0
   367  }
   368  
   369  // IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
   370  type IdemixMSPSignerConfig struct {
   371  	// cred represents the serialized idemix credential of the default signer
   372  	Cred []byte `protobuf:"bytes,1,opt,name=cred,proto3" json:"cred,omitempty"`
   373  	// sk is the secret key of the default signer, corresponding to credential Cred
   374  	Sk []byte `protobuf:"bytes,2,opt,name=sk,proto3" json:"sk,omitempty"`
   375  	// organizational_unit_identifier defines the organizational unit the default signer is in
   376  	OrganizationalUnitIdentifier string `protobuf:"bytes,3,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier,proto3" json:"organizational_unit_identifier,omitempty"`
   377  	// role defines whether the default signer is admin, peer, member or client
   378  	Role int32 `protobuf:"varint,4,opt,name=role,proto3" json:"role,omitempty"`
   379  	// enrollment_id contains the enrollment id of this signer
   380  	EnrollmentId string `protobuf:"bytes,5,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"`
   381  	// credential_revocation_information contains a serialized CredentialRevocationInformation
   382  	CredentialRevocationInformation []byte   `protobuf:"bytes,6,opt,name=credential_revocation_information,json=credentialRevocationInformation,proto3" json:"credential_revocation_information,omitempty"`
   383  	XXX_NoUnkeyedLiteral            struct{} `json:"-"`
   384  	XXX_unrecognized                []byte   `json:"-"`
   385  	XXX_sizecache                   int32    `json:"-"`
   386  }
   387  
   388  func (m *IdemixMSPSignerConfig) Reset()         { *m = IdemixMSPSignerConfig{} }
   389  func (m *IdemixMSPSignerConfig) String() string { return proto.CompactTextString(m) }
   390  func (*IdemixMSPSignerConfig) ProtoMessage()    {}
   391  func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int) {
   392  	return fileDescriptor_9c34771f529d9d1a, []int{4}
   393  }
   394  
   395  func (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error {
   396  	return xxx_messageInfo_IdemixMSPSignerConfig.Unmarshal(m, b)
   397  }
   398  func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   399  	return xxx_messageInfo_IdemixMSPSignerConfig.Marshal(b, m, deterministic)
   400  }
   401  func (m *IdemixMSPSignerConfig) XXX_Merge(src proto.Message) {
   402  	xxx_messageInfo_IdemixMSPSignerConfig.Merge(m, src)
   403  }
   404  func (m *IdemixMSPSignerConfig) XXX_Size() int {
   405  	return xxx_messageInfo_IdemixMSPSignerConfig.Size(m)
   406  }
   407  func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown() {
   408  	xxx_messageInfo_IdemixMSPSignerConfig.DiscardUnknown(m)
   409  }
   410  
   411  var xxx_messageInfo_IdemixMSPSignerConfig proto.InternalMessageInfo
   412  
   413  func (m *IdemixMSPSignerConfig) GetCred() []byte {
   414  	if m != nil {
   415  		return m.Cred
   416  	}
   417  	return nil
   418  }
   419  
   420  func (m *IdemixMSPSignerConfig) GetSk() []byte {
   421  	if m != nil {
   422  		return m.Sk
   423  	}
   424  	return nil
   425  }
   426  
   427  func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string {
   428  	if m != nil {
   429  		return m.OrganizationalUnitIdentifier
   430  	}
   431  	return ""
   432  }
   433  
   434  func (m *IdemixMSPSignerConfig) GetRole() int32 {
   435  	if m != nil {
   436  		return m.Role
   437  	}
   438  	return 0
   439  }
   440  
   441  func (m *IdemixMSPSignerConfig) GetEnrollmentId() string {
   442  	if m != nil {
   443  		return m.EnrollmentId
   444  	}
   445  	return ""
   446  }
   447  
   448  func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte {
   449  	if m != nil {
   450  		return m.CredentialRevocationInformation
   451  	}
   452  	return nil
   453  }
   454  
   455  // SigningIdentityInfo represents the configuration information
   456  // related to the signing identity the peer is to use for generating
   457  // endorsements
   458  type SigningIdentityInfo struct {
   459  	// PublicSigner carries the public information of the signing
   460  	// identity. For an X.509 provider this would be represented by
   461  	// an X.509 certificate
   462  	PublicSigner []byte `protobuf:"bytes,1,opt,name=public_signer,json=publicSigner,proto3" json:"public_signer,omitempty"`
   463  	// PrivateSigner denotes a reference to the private key of the
   464  	// peer's signing identity
   465  	PrivateSigner        *KeyInfo `protobuf:"bytes,2,opt,name=private_signer,json=privateSigner,proto3" json:"private_signer,omitempty"`
   466  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   467  	XXX_unrecognized     []byte   `json:"-"`
   468  	XXX_sizecache        int32    `json:"-"`
   469  }
   470  
   471  func (m *SigningIdentityInfo) Reset()         { *m = SigningIdentityInfo{} }
   472  func (m *SigningIdentityInfo) String() string { return proto.CompactTextString(m) }
   473  func (*SigningIdentityInfo) ProtoMessage()    {}
   474  func (*SigningIdentityInfo) Descriptor() ([]byte, []int) {
   475  	return fileDescriptor_9c34771f529d9d1a, []int{5}
   476  }
   477  
   478  func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error {
   479  	return xxx_messageInfo_SigningIdentityInfo.Unmarshal(m, b)
   480  }
   481  func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   482  	return xxx_messageInfo_SigningIdentityInfo.Marshal(b, m, deterministic)
   483  }
   484  func (m *SigningIdentityInfo) XXX_Merge(src proto.Message) {
   485  	xxx_messageInfo_SigningIdentityInfo.Merge(m, src)
   486  }
   487  func (m *SigningIdentityInfo) XXX_Size() int {
   488  	return xxx_messageInfo_SigningIdentityInfo.Size(m)
   489  }
   490  func (m *SigningIdentityInfo) XXX_DiscardUnknown() {
   491  	xxx_messageInfo_SigningIdentityInfo.DiscardUnknown(m)
   492  }
   493  
   494  var xxx_messageInfo_SigningIdentityInfo proto.InternalMessageInfo
   495  
   496  func (m *SigningIdentityInfo) GetPublicSigner() []byte {
   497  	if m != nil {
   498  		return m.PublicSigner
   499  	}
   500  	return nil
   501  }
   502  
   503  func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo {
   504  	if m != nil {
   505  		return m.PrivateSigner
   506  	}
   507  	return nil
   508  }
   509  
   510  // KeyInfo represents a (secret) key that is either already stored
   511  // in the bccsp/keystore or key material to be imported to the
   512  // bccsp key-store. In later versions it may contain also a
   513  // keystore identifier
   514  type KeyInfo struct {
   515  	// Identifier of the key inside the default keystore; this for
   516  	// the case of Software BCCSP as well as the HSM BCCSP would be
   517  	// the SKI of the key
   518  	KeyIdentifier string `protobuf:"bytes,1,opt,name=key_identifier,json=keyIdentifier,proto3" json:"key_identifier,omitempty"`
   519  	// KeyMaterial (optional) for the key to be imported; this is
   520  	// properly encoded key bytes, prefixed by the type of the key
   521  	KeyMaterial          []byte   `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"`
   522  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   523  	XXX_unrecognized     []byte   `json:"-"`
   524  	XXX_sizecache        int32    `json:"-"`
   525  }
   526  
   527  func (m *KeyInfo) Reset()         { *m = KeyInfo{} }
   528  func (m *KeyInfo) String() string { return proto.CompactTextString(m) }
   529  func (*KeyInfo) ProtoMessage()    {}
   530  func (*KeyInfo) Descriptor() ([]byte, []int) {
   531  	return fileDescriptor_9c34771f529d9d1a, []int{6}
   532  }
   533  
   534  func (m *KeyInfo) XXX_Unmarshal(b []byte) error {
   535  	return xxx_messageInfo_KeyInfo.Unmarshal(m, b)
   536  }
   537  func (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   538  	return xxx_messageInfo_KeyInfo.Marshal(b, m, deterministic)
   539  }
   540  func (m *KeyInfo) XXX_Merge(src proto.Message) {
   541  	xxx_messageInfo_KeyInfo.Merge(m, src)
   542  }
   543  func (m *KeyInfo) XXX_Size() int {
   544  	return xxx_messageInfo_KeyInfo.Size(m)
   545  }
   546  func (m *KeyInfo) XXX_DiscardUnknown() {
   547  	xxx_messageInfo_KeyInfo.DiscardUnknown(m)
   548  }
   549  
   550  var xxx_messageInfo_KeyInfo proto.InternalMessageInfo
   551  
   552  func (m *KeyInfo) GetKeyIdentifier() string {
   553  	if m != nil {
   554  		return m.KeyIdentifier
   555  	}
   556  	return ""
   557  }
   558  
   559  func (m *KeyInfo) GetKeyMaterial() []byte {
   560  	if m != nil {
   561  		return m.KeyMaterial
   562  	}
   563  	return nil
   564  }
   565  
   566  // FabricOUIdentifier represents an organizational unit and
   567  // its related chain of trust identifier.
   568  type FabricOUIdentifier struct {
   569  	// Certificate represents the second certificate in a certification chain.
   570  	// (Notice that the first certificate in a certification chain is supposed
   571  	// to be the certificate of an identity).
   572  	// It must correspond to the certificate of root or intermediate CA
   573  	// recognized by the MSP this message belongs to.
   574  	// Starting from this certificate, a certification chain is computed
   575  	// and bound to the OrganizationUnitIdentifier specified
   576  	Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"`
   577  	// OrganizationUnitIdentifier defines the organizational unit under the
   578  	// MSP identified with MSPIdentifier
   579  	OrganizationalUnitIdentifier string   `protobuf:"bytes,2,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier,proto3" json:"organizational_unit_identifier,omitempty"`
   580  	XXX_NoUnkeyedLiteral         struct{} `json:"-"`
   581  	XXX_unrecognized             []byte   `json:"-"`
   582  	XXX_sizecache                int32    `json:"-"`
   583  }
   584  
   585  func (m *FabricOUIdentifier) Reset()         { *m = FabricOUIdentifier{} }
   586  func (m *FabricOUIdentifier) String() string { return proto.CompactTextString(m) }
   587  func (*FabricOUIdentifier) ProtoMessage()    {}
   588  func (*FabricOUIdentifier) Descriptor() ([]byte, []int) {
   589  	return fileDescriptor_9c34771f529d9d1a, []int{7}
   590  }
   591  
   592  func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error {
   593  	return xxx_messageInfo_FabricOUIdentifier.Unmarshal(m, b)
   594  }
   595  func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   596  	return xxx_messageInfo_FabricOUIdentifier.Marshal(b, m, deterministic)
   597  }
   598  func (m *FabricOUIdentifier) XXX_Merge(src proto.Message) {
   599  	xxx_messageInfo_FabricOUIdentifier.Merge(m, src)
   600  }
   601  func (m *FabricOUIdentifier) XXX_Size() int {
   602  	return xxx_messageInfo_FabricOUIdentifier.Size(m)
   603  }
   604  func (m *FabricOUIdentifier) XXX_DiscardUnknown() {
   605  	xxx_messageInfo_FabricOUIdentifier.DiscardUnknown(m)
   606  }
   607  
   608  var xxx_messageInfo_FabricOUIdentifier proto.InternalMessageInfo
   609  
   610  func (m *FabricOUIdentifier) GetCertificate() []byte {
   611  	if m != nil {
   612  		return m.Certificate
   613  	}
   614  	return nil
   615  }
   616  
   617  func (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string {
   618  	if m != nil {
   619  		return m.OrganizationalUnitIdentifier
   620  	}
   621  	return ""
   622  }
   623  
   624  // FabricNodeOUs contains configuration to tell apart clients from peers from orderers
   625  // based on OUs. If NodeOUs recognition is enabled then an msp identity
   626  // that does not contain any of the specified OU will be considered invalid.
   627  type FabricNodeOUs struct {
   628  	// If true then an msp identity that does not contain any of the specified OU will be considered invalid.
   629  	Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
   630  	// OU Identifier of the clients
   631  	ClientOuIdentifier *FabricOUIdentifier `protobuf:"bytes,2,opt,name=client_ou_identifier,json=clientOuIdentifier,proto3" json:"client_ou_identifier,omitempty"`
   632  	// OU Identifier of the peers
   633  	PeerOuIdentifier *FabricOUIdentifier `protobuf:"bytes,3,opt,name=peer_ou_identifier,json=peerOuIdentifier,proto3" json:"peer_ou_identifier,omitempty"`
   634  	// OU Identifier of the admins
   635  	AdminOuIdentifier *FabricOUIdentifier `protobuf:"bytes,4,opt,name=admin_ou_identifier,json=adminOuIdentifier,proto3" json:"admin_ou_identifier,omitempty"`
   636  	// OU Identifier of the orderers
   637  	OrdererOuIdentifier  *FabricOUIdentifier `protobuf:"bytes,5,opt,name=orderer_ou_identifier,json=ordererOuIdentifier,proto3" json:"orderer_ou_identifier,omitempty"`
   638  	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
   639  	XXX_unrecognized     []byte              `json:"-"`
   640  	XXX_sizecache        int32               `json:"-"`
   641  }
   642  
   643  func (m *FabricNodeOUs) Reset()         { *m = FabricNodeOUs{} }
   644  func (m *FabricNodeOUs) String() string { return proto.CompactTextString(m) }
   645  func (*FabricNodeOUs) ProtoMessage()    {}
   646  func (*FabricNodeOUs) Descriptor() ([]byte, []int) {
   647  	return fileDescriptor_9c34771f529d9d1a, []int{8}
   648  }
   649  
   650  func (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error {
   651  	return xxx_messageInfo_FabricNodeOUs.Unmarshal(m, b)
   652  }
   653  func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   654  	return xxx_messageInfo_FabricNodeOUs.Marshal(b, m, deterministic)
   655  }
   656  func (m *FabricNodeOUs) XXX_Merge(src proto.Message) {
   657  	xxx_messageInfo_FabricNodeOUs.Merge(m, src)
   658  }
   659  func (m *FabricNodeOUs) XXX_Size() int {
   660  	return xxx_messageInfo_FabricNodeOUs.Size(m)
   661  }
   662  func (m *FabricNodeOUs) XXX_DiscardUnknown() {
   663  	xxx_messageInfo_FabricNodeOUs.DiscardUnknown(m)
   664  }
   665  
   666  var xxx_messageInfo_FabricNodeOUs proto.InternalMessageInfo
   667  
   668  func (m *FabricNodeOUs) GetEnable() bool {
   669  	if m != nil {
   670  		return m.Enable
   671  	}
   672  	return false
   673  }
   674  
   675  func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier {
   676  	if m != nil {
   677  		return m.ClientOuIdentifier
   678  	}
   679  	return nil
   680  }
   681  
   682  func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier {
   683  	if m != nil {
   684  		return m.PeerOuIdentifier
   685  	}
   686  	return nil
   687  }
   688  
   689  func (m *FabricNodeOUs) GetAdminOuIdentifier() *FabricOUIdentifier {
   690  	if m != nil {
   691  		return m.AdminOuIdentifier
   692  	}
   693  	return nil
   694  }
   695  
   696  func (m *FabricNodeOUs) GetOrdererOuIdentifier() *FabricOUIdentifier {
   697  	if m != nil {
   698  		return m.OrdererOuIdentifier
   699  	}
   700  	return nil
   701  }
   702  
   703  func init() {
   704  	proto.RegisterType((*MSPConfig)(nil), "msp.MSPConfig")
   705  	proto.RegisterType((*FabricMSPConfig)(nil), "msp.FabricMSPConfig")
   706  	proto.RegisterType((*FabricCryptoConfig)(nil), "msp.FabricCryptoConfig")
   707  	proto.RegisterType((*IdemixMSPConfig)(nil), "msp.IdemixMSPConfig")
   708  	proto.RegisterType((*IdemixMSPSignerConfig)(nil), "msp.IdemixMSPSignerConfig")
   709  	proto.RegisterType((*SigningIdentityInfo)(nil), "msp.SigningIdentityInfo")
   710  	proto.RegisterType((*KeyInfo)(nil), "msp.KeyInfo")
   711  	proto.RegisterType((*FabricOUIdentifier)(nil), "msp.FabricOUIdentifier")
   712  	proto.RegisterType((*FabricNodeOUs)(nil), "msp.FabricNodeOUs")
   713  }
   714  
   715  func init() { proto.RegisterFile("msp/msp_config.proto", fileDescriptor_9c34771f529d9d1a) }
   716  
   717  var fileDescriptor_9c34771f529d9d1a = []byte{
   718  	// 883 bytes of a gzipped FileDescriptorProto
   719  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xdb, 0x6e, 0x23, 0x45,
   720  	0x13, 0x96, 0x8f, 0xbb, 0x2e, 0x8f, 0xed, 0x6c, 0xe7, 0xf0, 0x8f, 0x7e, 0xb1, 0xbb, 0x8e, 0x01,
   721  	0x61, 0x09, 0xc5, 0x91, 0xb2, 0x48, 0x48, 0x88, 0xab, 0x0d, 0x2c, 0x0c, 0x4b, 0x48, 0xd4, 0x51,
   722  	0x6e, 0xb8, 0x19, 0xb5, 0x67, 0xda, 0xe3, 0x96, 0x67, 0xba, 0x47, 0xdd, 0x3d, 0x2b, 0x8c, 0xb8,
   723  	0xe6, 0x05, 0x78, 0x07, 0xae, 0x79, 0x13, 0x5e, 0x09, 0xf5, 0x21, 0xf6, 0x38, 0x89, 0x0c, 0x77,
   724  	0x5d, 0x55, 0x5f, 0x7d, 0x53, 0xfd, 0x55, 0x55, 0x0f, 0x1c, 0x15, 0xaa, 0x3c, 0x2f, 0x54, 0x19,
   725  	0x27, 0x82, 0x2f, 0x58, 0x36, 0x2b, 0xa5, 0xd0, 0x02, 0xb5, 0x0a, 0x55, 0x4e, 0xbe, 0x84, 0xde,
   726  	0xd5, 0xed, 0xcd, 0xa5, 0xf5, 0x23, 0x04, 0x6d, 0xbd, 0x2e, 0x69, 0xd8, 0x18, 0x37, 0xa6, 0x1d,
   727  	0x6c, 0xcf, 0xe8, 0x04, 0xba, 0x2e, 0x2b, 0x6c, 0x8e, 0x1b, 0xd3, 0x00, 0x7b, 0x6b, 0xf2, 0x57,
   728  	0x1b, 0x46, 0xef, 0xc8, 0x5c, 0xb2, 0x64, 0x27, 0x9f, 0x93, 0xc2, 0xe5, 0xf7, 0xb0, 0x3d, 0xa3,
   729  	0x97, 0x00, 0x52, 0x08, 0x1d, 0x27, 0x54, 0x6a, 0x15, 0x36, 0xc7, 0xad, 0x69, 0x80, 0x7b, 0xc6,
   730  	0x73, 0x69, 0x1c, 0xe8, 0x0c, 0x10, 0xe3, 0x9a, 0xca, 0x82, 0xa6, 0x8c, 0x68, 0xea, 0x61, 0x2d,
   731  	0x0b, 0x7b, 0x51, 0x8f, 0x38, 0xf8, 0x09, 0x74, 0x49, 0x5a, 0x30, 0xae, 0xc2, 0xb6, 0x85, 0x78,
   732  	0x0b, 0x7d, 0x06, 0x23, 0x49, 0x3f, 0x88, 0x84, 0x68, 0x26, 0x78, 0x9c, 0x33, 0xa5, 0xc3, 0x8e,
   733  	0x05, 0x0c, 0xb7, 0xee, 0x1f, 0x99, 0xd2, 0xe8, 0x12, 0x0e, 0x14, 0xcb, 0x38, 0xe3, 0x59, 0xcc,
   734  	0x52, 0xca, 0x35, 0xd3, 0xeb, 0xb0, 0x3b, 0x6e, 0x4c, 0xfb, 0x17, 0xe1, 0xac, 0x50, 0xe5, 0xec,
   735  	0xd6, 0x05, 0x23, 0x1f, 0x8b, 0xf8, 0x42, 0xe0, 0x91, 0xda, 0x75, 0xa2, 0x18, 0x5e, 0x0b, 0x99,
   736  	0x11, 0xce, 0x7e, 0xb5, 0xc4, 0x24, 0x8f, 0x2b, 0xce, 0xb4, 0x27, 0x5c, 0x30, 0x2a, 0x55, 0xf8,
   737  	0x6c, 0xdc, 0x9a, 0xf6, 0x2f, 0xfe, 0x67, 0x39, 0x9d, 0x4c, 0xd7, 0x77, 0xd1, 0x26, 0x8e, 0x5f,
   738  	0xee, 0xe6, 0xdf, 0x71, 0xa6, 0xb7, 0x51, 0x85, 0xbe, 0x86, 0x41, 0x22, 0xd7, 0xa5, 0x16, 0xbe,
   739  	0x63, 0xe1, 0x73, 0x5b, 0x62, 0x9d, 0xee, 0xd2, 0xc6, 0x9d, 0xf0, 0x38, 0x48, 0x6a, 0x16, 0xfa,
   740  	0x04, 0x86, 0x3a, 0x57, 0x71, 0x4d, 0xf6, 0x9e, 0xd5, 0x22, 0xd0, 0xb9, 0xc2, 0x1b, 0xe5, 0xbf,
   741  	0x80, 0x13, 0x83, 0x7a, 0x42, 0x7d, 0xb0, 0xe8, 0x23, 0x9d, 0xab, 0xe8, 0x51, 0x03, 0xbe, 0x82,
   742  	0xd1, 0xc2, 0x7e, 0x3f, 0xe6, 0x22, 0xa5, 0xb1, 0xa8, 0x54, 0xd8, 0xb7, 0xb5, 0xa1, 0x5a, 0x6d,
   743  	0x3f, 0x89, 0x94, 0x5e, 0xdf, 0x29, 0x3c, 0x58, 0x6c, 0xcd, 0x4a, 0x4d, 0xfe, 0x68, 0x00, 0x7a,
   744  	0x5c, 0x3c, 0xba, 0x80, 0x63, 0x23, 0x30, 0xd1, 0x95, 0xa4, 0xf1, 0x92, 0xa8, 0x65, 0xbc, 0x20,
   745  	0x05, 0xcb, 0xd7, 0x7e, 0x8c, 0x0e, 0x37, 0xc1, 0xef, 0x89, 0x5a, 0xbe, 0xb3, 0x21, 0x14, 0xc1,
   746  	0xe9, 0x7d, 0xfb, 0x6a, 0xb2, 0xfb, 0xec, 0x8a, 0x27, 0x46, 0x56, 0x3b, 0xb0, 0x3d, 0xfc, 0xea,
   747  	0x1e, 0xb8, 0x15, 0xd8, 0x12, 0x79, 0xd4, 0xe4, 0xcf, 0x06, 0x8c, 0xa2, 0x94, 0x16, 0xec, 0x97,
   748  	0xfd, 0x83, 0x7c, 0x00, 0x2d, 0x56, 0xae, 0xfc, 0x16, 0x98, 0x23, 0xba, 0x80, 0xae, 0xa9, 0x8d,
   749  	0xca, 0xb0, 0x65, 0x25, 0xf8, 0xbf, 0x95, 0x60, 0xc3, 0x75, 0x6b, 0x63, 0xbe, 0x43, 0x1e, 0x89,
   750  	0x3e, 0x86, 0x41, 0x6d, 0x50, 0xcb, 0x55, 0xd8, 0xb6, 0x7c, 0xc1, 0xd6, 0x79, 0xb3, 0x42, 0x47,
   751  	0xd0, 0xa1, 0xa5, 0x48, 0x96, 0x61, 0x67, 0xdc, 0x98, 0xb6, 0xb0, 0x33, 0x26, 0xbf, 0x37, 0xe1,
   752  	0xf8, 0x49, 0x72, 0x53, 0x6e, 0x22, 0x69, 0x6a, 0xcb, 0x0d, 0xb0, 0x3d, 0xa3, 0x21, 0x34, 0xd5,
   753  	0x7d, 0xb5, 0x4d, 0xb5, 0x42, 0xdf, 0xc0, 0xab, 0xfd, 0x33, 0x6b, 0x2f, 0xd1, 0xc3, 0x1f, 0xed,
   754  	0x9b, 0x4c, 0xf3, 0x25, 0x29, 0x72, 0x6a, 0xab, 0xee, 0x60, 0x7b, 0x36, 0x57, 0xa2, 0x5c, 0x8a,
   755  	0x3c, 0x2f, 0x28, 0x37, 0x84, 0xb6, 0xea, 0x1e, 0x0e, 0xb6, 0xce, 0x28, 0x45, 0x3f, 0xc0, 0xa9,
   756  	0x29, 0xcb, 0x10, 0x91, 0x3c, 0xae, 0x49, 0xc0, 0xf8, 0x42, 0xc8, 0xc2, 0x9e, 0xed, 0x22, 0x06,
   757  	0xf8, 0xf5, 0x16, 0x88, 0x37, 0xb8, 0x68, 0x0b, 0x9b, 0x08, 0x38, 0x7c, 0x62, 0x4d, 0x4d, 0x1d,
   758  	0x65, 0x35, 0xcf, 0x59, 0x12, 0xfb, 0xae, 0x38, 0x39, 0x02, 0xe7, 0x74, 0x82, 0xa1, 0x37, 0x30,
   759  	0x2c, 0x25, 0xfb, 0x60, 0x86, 0xdd, 0xa3, 0x9a, 0xb6, 0x77, 0x81, 0xed, 0xdd, 0x7b, 0xea, 0x36,
   760  	0x7e, 0xe0, 0x31, 0x2e, 0x69, 0x72, 0x0b, 0xcf, 0x7c, 0x04, 0x7d, 0x0a, 0xc3, 0x15, 0xad, 0xcf,
   761  	0x9c, 0x9f, 0x91, 0xc1, 0x8a, 0xd6, 0x06, 0x0c, 0x9d, 0x42, 0x60, 0x60, 0x05, 0xd1, 0x54, 0x32,
   762  	0x92, 0xfb, 0x3e, 0xf4, 0x57, 0x74, 0x7d, 0xe5, 0x5d, 0x93, 0xdf, 0xee, 0x97, 0xa1, 0xfe, 0x30,
   763  	0xa0, 0x31, 0xf4, 0xcd, 0x12, 0xb2, 0x05, 0x4b, 0x88, 0xa6, 0xfe, 0x0a, 0x75, 0xd7, 0x7f, 0x68,
   764  	0x64, 0xf3, 0xdf, 0x1b, 0x39, 0xf9, 0xbb, 0x09, 0x83, 0x9d, 0x65, 0x35, 0x4f, 0x2b, 0xe5, 0x64,
   765  	0x9e, 0xbb, 0x8f, 0x3e, 0xc7, 0xde, 0x42, 0x11, 0x1c, 0x25, 0x39, 0x33, 0xad, 0x15, 0xd5, 0xc3,
   766  	0xaf, 0xec, 0x79, 0xe1, 0x90, 0x4b, 0xba, 0xae, 0x6a, 0x97, 0xfb, 0x16, 0x50, 0x49, 0xa9, 0x7c,
   767  	0x40, 0xd4, 0xda, 0x4f, 0x74, 0x60, 0x52, 0x76, 0x68, 0xbe, 0x83, 0x43, 0xfb, 0xec, 0x3f, 0xe0,
   768  	0x69, 0xef, 0xe7, 0x79, 0x61, 0x73, 0x76, 0x88, 0xde, 0xc3, 0xb1, 0x90, 0x29, 0x95, 0x8f, 0x4a,
   769  	0xea, 0xec, 0xa7, 0x3a, 0xf4, 0x59, 0x75, 0xb2, 0xb7, 0x73, 0x38, 0x15, 0x32, 0x9b, 0x2d, 0xd7,
   770  	0x25, 0x95, 0x39, 0x4d, 0x33, 0x2a, 0x67, 0xee, 0xf9, 0x73, 0xbf, 0x5b, 0x65, 0xc8, 0xde, 0x1e,
   771  	0x5c, 0xa9, 0xd2, 0x2d, 0xed, 0x0d, 0x49, 0x56, 0x24, 0xa3, 0x3f, 0x7f, 0x9e, 0x31, 0xbd, 0xac,
   772  	0xe6, 0xb3, 0x44, 0x14, 0xe7, 0xb5, 0xdc, 0x73, 0x97, 0x7b, 0xe6, 0x72, 0xcf, 0x32, 0x61, 0xfe,
   773  	0xdf, 0xf3, 0xae, 0x35, 0xdf, 0xfc, 0x13, 0x00, 0x00, 0xff, 0xff, 0x42, 0x15, 0x49, 0x47, 0xd1,
   774  	0x07, 0x00, 0x00,
   775  }