{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package msp\n\n## Variables\n\n```go\nvar MSPIdentityAnonymity_MSPIdentityAnonymityType_name = map[int32]string{\n\t0: \"NOMINAL\",\n\t1: \"ANONYMOUS\",\n}\n```\n\n```go\nvar MSPIdentityAnonymity_MSPIdentityAnonymityType_value = map[string]int32{\n\t\"NOMINAL\":   0,\n\t\"ANONYMOUS\": 1,\n}\n```\n\n```go\nvar MSPPrincipal_Classification_name = map[int32]string{\n\t0: \"ROLE\",\n\t1: \"ORGANIZATION_UNIT\",\n\t2: \"IDENTITY\",\n\t3: \"ANONYMITY\",\n\t4: \"COMBINED\",\n}\n```\n\n```go\nvar MSPPrincipal_Classification_value = map[string]int32{\n\t\"ROLE\":              0,\n\t\"ORGANIZATION_UNIT\": 1,\n\t\"IDENTITY\":          2,\n\t\"ANONYMITY\":         3,\n\t\"COMBINED\":          4,\n}\n```\n\n```go\nvar MSPRole_MSPRoleType_name = map[int32]string{\n\t0: \"MEMBER\",\n\t1: \"ADMIN\",\n\t2: \"CLIENT\",\n\t3: \"PEER\",\n\t4: \"ORDERER\",\n}\n```\n\n```go\nvar MSPRole_MSPRoleType_value = map[string]int32{\n\t\"MEMBER\":  0,\n\t\"ADMIN\":   1,\n\t\"CLIENT\":  2,\n\t\"PEER\":    3,\n\t\"ORDERER\": 4,\n}\n```\n\n## Types\n\n```go\ntype CombinedPrincipal struct {\n\t// Principals refer to combined principals\n\tPrincipals           []*MSPPrincipal `protobuf:\"bytes,1,rep,name=principals,proto3\" json:\"principals,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}        `json:\"-\"`\n\tXXX_unrecognized     []byte          `json:\"-\"`\n\tXXX_sizecache        int32           `json:\"-\"`\n}\n```\nCombinedPrincipal governs the organization of the Principal field of a policy principal when principal\\_classification has indicated that a combined form of principals is required\n\n```go\nfunc (*CombinedPrincipal) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal\n```\n\n```go\nfunc (*CombinedPrincipal) ProtoMessage()\n```\n\n```go\nfunc (m *CombinedPrincipal) Reset()\n```\n\n```go\nfunc (m *CombinedPrincipal) String() string\n```\n\n```go\nfunc (m *CombinedPrincipal) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *CombinedPrincipal) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *CombinedPrincipal) XXX_Size() int\n```\n\n```go\nfunc (m *CombinedPrincipal) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype FabricCryptoConfig struct {\n\t// SignatureHashFamily is a string representing the hash family to be used\n\t// during sign and verify operations.\n\t// Allowed values are \"SHA2\" and \"SHA3\".\n\tSignatureHashFamily string `protobuf:\"bytes,1,opt,name=signature_hash_family,json=signatureHashFamily,proto3\" json:\"signature_hash_family,omitempty\"`\n\t// IdentityIdentifierHashFunction is a string representing the hash function\n\t// to be used during the computation of the identity identifier of an MSP identity.\n\t// Allowed values are \"SHA256\", \"SHA384\" and \"SHA3_256\", \"SHA3_384\".\n\tIdentityIdentifierHashFunction string   `protobuf:\"bytes,2,opt,name=identity_identifier_hash_function,json=identityIdentifierHashFunction,proto3\" json:\"identity_identifier_hash_function,omitempty\"`\n\tXXX_NoUnkeyedLiteral           struct{} `json:\"-\"`\n\tXXX_unrecognized               []byte   `json:\"-\"`\n\tXXX_sizecache                  int32    `json:\"-\"`\n}\n```\nFabricCryptoConfig contains configuration parameters for the cryptographic algorithms used by the MSP this configuration refers to\n\n```go\nfunc (*FabricCryptoConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string\n```\n\n```go\nfunc (m *FabricCryptoConfig) GetSignatureHashFamily() string\n```\n\n```go\nfunc (*FabricCryptoConfig) ProtoMessage()\n```\n\n```go\nfunc (m *FabricCryptoConfig) Reset()\n```\n\n```go\nfunc (m *FabricCryptoConfig) String() string\n```\n\n```go\nfunc (m *FabricCryptoConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *FabricCryptoConfig) XXX_Size() int\n```\n\n```go\nfunc (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype FabricMSPConfig struct {\n\t// Name holds the identifier of the MSP; MSP identifier\n\t// is chosen by the application that governs this MSP.\n\t// For example, and assuming the default implementation of MSP,\n\t// that is X.509-based and considers a single Issuer,\n\t// this can refer to the Subject OU field or the Issuer OU field.\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// List of root certificates trusted by this MSP\n\t// they are used upon certificate validation (see\n\t// comment for IntermediateCerts below)\n\tRootCerts [][]byte `protobuf:\"bytes,2,rep,name=root_certs,json=rootCerts,proto3\" json:\"root_certs,omitempty\"`\n\t// List of intermediate certificates trusted by this MSP;\n\t// they are used upon certificate validation as follows:\n\t// validation attempts to build a path from the certificate\n\t// to be validated (which is at one end of the path) and\n\t// one of the certs in the RootCerts field (which is at\n\t// the other end of the path). If the path is longer than\n\t// 2, certificates in the middle are searched within the\n\t// IntermediateCerts pool\n\tIntermediateCerts [][]byte `protobuf:\"bytes,3,rep,name=intermediate_certs,json=intermediateCerts,proto3\" json:\"intermediate_certs,omitempty\"`\n\t// Identity denoting the administrator of this MSP\n\tAdmins [][]byte `protobuf:\"bytes,4,rep,name=admins,proto3\" json:\"admins,omitempty\"`\n\t// Identity revocation list\n\tRevocationList [][]byte `protobuf:\"bytes,5,rep,name=revocation_list,json=revocationList,proto3\" json:\"revocation_list,omitempty\"`\n\t// SigningIdentity holds information on the signing identity\n\t// this peer is to use, and which is to be imported by the\n\t// MSP defined before\n\tSigningIdentity *SigningIdentityInfo `protobuf:\"bytes,6,opt,name=signing_identity,json=signingIdentity,proto3\" json:\"signing_identity,omitempty\"`\n\t// OrganizationalUnitIdentifiers holds one or more\n\t// fabric organizational unit identifiers that belong to\n\t// this MSP configuration\n\tOrganizationalUnitIdentifiers []*FabricOUIdentifier `protobuf:\"bytes,7,rep,name=organizational_unit_identifiers,json=organizationalUnitIdentifiers,proto3\" json:\"organizational_unit_identifiers,omitempty\"`\n\t// FabricCryptoConfig contains the configuration parameters\n\t// for the cryptographic algorithms used by this MSP\n\tCryptoConfig *FabricCryptoConfig `protobuf:\"bytes,8,opt,name=crypto_config,json=cryptoConfig,proto3\" json:\"crypto_config,omitempty\"`\n\t// List of TLS root certificates trusted by this MSP.\n\t// They are returned by GetTLSRootCerts.\n\tTlsRootCerts [][]byte `protobuf:\"bytes,9,rep,name=tls_root_certs,json=tlsRootCerts,proto3\" json:\"tls_root_certs,omitempty\"`\n\t// List of TLS intermediate certificates trusted by this MSP;\n\t// They are returned by GetTLSIntermediateCerts.\n\tTlsIntermediateCerts [][]byte `protobuf:\"bytes,10,rep,name=tls_intermediate_certs,json=tlsIntermediateCerts,proto3\" json:\"tls_intermediate_certs,omitempty\"`\n\t// fabric_node_ous contains the configuration to distinguish clients from peers from orderers\n\t// based on the OUs.\n\tFabricNodeOus        *FabricNodeOUs `protobuf:\"bytes,11,opt,name=fabric_node_ous,json=fabricNodeOus,proto3\" json:\"fabric_node_ous,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}       `json:\"-\"`\n\tXXX_unrecognized     []byte         `json:\"-\"`\n\tXXX_sizecache        int32          `json:\"-\"`\n}\n```\nFabricMSPConfig collects all the configuration information for a Fabric MSP. Here we assume a default certificate validation policy, where any certificate signed by any of the listed rootCA certs would be considered as valid under this MSP. This MSP may or may not come with a signing identity. If it does, it can also issue signing identities. If it does not, it can only be used to validate and verify certificates.\n\n```go\nfunc (*FabricMSPConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *FabricMSPConfig) GetAdmins() [][]byte\n```\n\n```go\nfunc (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig\n```\n\n```go\nfunc (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs\n```\n\n```go\nfunc (m *FabricMSPConfig) GetIntermediateCerts() [][]byte\n```\n\n```go\nfunc (m *FabricMSPConfig) GetName() string\n```\n\n```go\nfunc (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier\n```\n\n```go\nfunc (m *FabricMSPConfig) GetRevocationList() [][]byte\n```\n\n```go\nfunc (m *FabricMSPConfig) GetRootCerts() [][]byte\n```\n\n```go\nfunc (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo\n```\n\n```go\nfunc (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte\n```\n\n```go\nfunc (m *FabricMSPConfig) GetTlsRootCerts() [][]byte\n```\n\n```go\nfunc (*FabricMSPConfig) ProtoMessage()\n```\n\n```go\nfunc (m *FabricMSPConfig) Reset()\n```\n\n```go\nfunc (m *FabricMSPConfig) String() string\n```\n\n```go\nfunc (m *FabricMSPConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *FabricMSPConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *FabricMSPConfig) XXX_Size() int\n```\n\n```go\nfunc (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype FabricNodeOUs struct {\n\t// If true then an msp identity that does not contain any of the specified OU will be considered invalid.\n\tEnable bool `protobuf:\"varint,1,opt,name=enable,proto3\" json:\"enable,omitempty\"`\n\t// OU Identifier of the clients\n\tClientOuIdentifier *FabricOUIdentifier `protobuf:\"bytes,2,opt,name=client_ou_identifier,json=clientOuIdentifier,proto3\" json:\"client_ou_identifier,omitempty\"`\n\t// OU Identifier of the peers\n\tPeerOuIdentifier *FabricOUIdentifier `protobuf:\"bytes,3,opt,name=peer_ou_identifier,json=peerOuIdentifier,proto3\" json:\"peer_ou_identifier,omitempty\"`\n\t// OU Identifier of the admins\n\tAdminOuIdentifier *FabricOUIdentifier `protobuf:\"bytes,4,opt,name=admin_ou_identifier,json=adminOuIdentifier,proto3\" json:\"admin_ou_identifier,omitempty\"`\n\t// OU Identifier of the orderers\n\tOrdererOuIdentifier  *FabricOUIdentifier `protobuf:\"bytes,5,opt,name=orderer_ou_identifier,json=ordererOuIdentifier,proto3\" json:\"orderer_ou_identifier,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}            `json:\"-\"`\n\tXXX_unrecognized     []byte              `json:\"-\"`\n\tXXX_sizecache        int32               `json:\"-\"`\n}\n```\nFabricNodeOUs contains configuration to tell apart clients from peers from orderers based on OUs. If NodeOUs recognition is enabled then an msp identity that does not contain any of the specified OU will be considered invalid.\n\n```go\nfunc (*FabricNodeOUs) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *FabricNodeOUs) GetAdminOuIdentifier() *FabricOUIdentifier\n```\n\n```go\nfunc (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier\n```\n\n```go\nfunc (m *FabricNodeOUs) GetEnable() bool\n```\n\n```go\nfunc (m *FabricNodeOUs) GetOrdererOuIdentifier() *FabricOUIdentifier\n```\n\n```go\nfunc (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier\n```\n\n```go\nfunc (*FabricNodeOUs) ProtoMessage()\n```\n\n```go\nfunc (m *FabricNodeOUs) Reset()\n```\n\n```go\nfunc (m *FabricNodeOUs) String() string\n```\n\n```go\nfunc (m *FabricNodeOUs) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *FabricNodeOUs) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *FabricNodeOUs) XXX_Size() int\n```\n\n```go\nfunc (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype FabricOUIdentifier struct {\n\t// Certificate represents the second certificate in a certification chain.\n\t// (Notice that the first certificate in a certification chain is supposed\n\t// to be the certificate of an identity).\n\t// It must correspond to the certificate of root or intermediate CA\n\t// recognized by the MSP this message belongs to.\n\t// Starting from this certificate, a certification chain is computed\n\t// and bound to the OrganizationUnitIdentifier specified\n\tCertificate []byte `protobuf:\"bytes,1,opt,name=certificate,proto3\" json:\"certificate,omitempty\"`\n\t// OrganizationUnitIdentifier defines the organizational unit under the\n\t// MSP identified with MSPIdentifier\n\tOrganizationalUnitIdentifier string   `protobuf:\"bytes,2,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier,proto3\" json:\"organizational_unit_identifier,omitempty\"`\n\tXXX_NoUnkeyedLiteral         struct{} `json:\"-\"`\n\tXXX_unrecognized             []byte   `json:\"-\"`\n\tXXX_sizecache                int32    `json:\"-\"`\n}\n```\nFabricOUIdentifier represents an organizational unit and its related chain of trust identifier.\n\n```go\nfunc (*FabricOUIdentifier) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *FabricOUIdentifier) GetCertificate() []byte\n```\n\n```go\nfunc (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string\n```\n\n```go\nfunc (*FabricOUIdentifier) ProtoMessage()\n```\n\n```go\nfunc (m *FabricOUIdentifier) Reset()\n```\n\n```go\nfunc (m *FabricOUIdentifier) String() string\n```\n\n```go\nfunc (m *FabricOUIdentifier) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *FabricOUIdentifier) XXX_Size() int\n```\n\n```go\nfunc (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype IdemixMSPConfig struct {\n\t// Name holds the identifier of the MSP\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// ipk represents the (serialized) issuer public key\n\tIpk []byte `protobuf:\"bytes,2,opt,name=ipk,proto3\" json:\"ipk,omitempty\"`\n\t// signer may contain crypto material to configure a default signer\n\tSigner *IdemixMSPSignerConfig `protobuf:\"bytes,3,opt,name=signer,proto3\" json:\"signer,omitempty\"`\n\t// revocation_pk is the public key used for revocation of credentials\n\tRevocationPk []byte `protobuf:\"bytes,4,opt,name=revocation_pk,json=revocationPk,proto3\" json:\"revocation_pk,omitempty\"`\n\t// epoch represents the current epoch (time interval) used for revocation\n\tEpoch                int64    `protobuf:\"varint,5,opt,name=epoch,proto3\" json:\"epoch,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nIdemixMSPConfig collects all the configuration information for an Idemix MSP.\n\n```go\nfunc (*IdemixMSPConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *IdemixMSPConfig) GetEpoch() int64\n```\n\n```go\nfunc (m *IdemixMSPConfig) GetIpk() []byte\n```\n\n```go\nfunc (m *IdemixMSPConfig) GetName() string\n```\n\n```go\nfunc (m *IdemixMSPConfig) GetRevocationPk() []byte\n```\n\n```go\nfunc (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig\n```\n\n```go\nfunc (*IdemixMSPConfig) ProtoMessage()\n```\n\n```go\nfunc (m *IdemixMSPConfig) Reset()\n```\n\n```go\nfunc (m *IdemixMSPConfig) String() string\n```\n\n```go\nfunc (m *IdemixMSPConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *IdemixMSPConfig) XXX_Size() int\n```\n\n```go\nfunc (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype IdemixMSPSignerConfig struct {\n\t// cred represents the serialized idemix credential of the default signer\n\tCred []byte `protobuf:\"bytes,1,opt,name=cred,proto3\" json:\"cred,omitempty\"`\n\t// sk is the secret key of the default signer, corresponding to credential Cred\n\tSk []byte `protobuf:\"bytes,2,opt,name=sk,proto3\" json:\"sk,omitempty\"`\n\t// organizational_unit_identifier defines the organizational unit the default signer is in\n\tOrganizationalUnitIdentifier string `protobuf:\"bytes,3,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier,proto3\" json:\"organizational_unit_identifier,omitempty\"`\n\t// role defines whether the default signer is admin, peer, member or client\n\tRole int32 `protobuf:\"varint,4,opt,name=role,proto3\" json:\"role,omitempty\"`\n\t// enrollment_id contains the enrollment id of this signer\n\tEnrollmentId string `protobuf:\"bytes,5,opt,name=enrollment_id,json=enrollmentId,proto3\" json:\"enrollment_id,omitempty\"`\n\t// credential_revocation_information contains a serialized CredentialRevocationInformation\n\tCredentialRevocationInformation []byte   `protobuf:\"bytes,6,opt,name=credential_revocation_information,json=credentialRevocationInformation,proto3\" json:\"credential_revocation_information,omitempty\"`\n\tXXX_NoUnkeyedLiteral            struct{} `json:\"-\"`\n\tXXX_unrecognized                []byte   `json:\"-\"`\n\tXXX_sizecache                   int32    `json:\"-\"`\n}\n```\nIdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity\n\n```go\nfunc (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetCred() []byte\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetEnrollmentId() string\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetRole() int32\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) GetSk() []byte\n```\n\n```go\nfunc (*IdemixMSPSignerConfig) ProtoMessage()\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) Reset()\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) String() string\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) XXX_Size() int\n```\n\n```go\nfunc (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype KeyInfo struct {\n\t// Identifier of the key inside the default keystore; this for\n\t// the case of Software BCCSP as well as the HSM BCCSP would be\n\t// the SKI of the key\n\tKeyIdentifier string `protobuf:\"bytes,1,opt,name=key_identifier,json=keyIdentifier,proto3\" json:\"key_identifier,omitempty\"`\n\t// KeyMaterial (optional) for the key to be imported; this is\n\t// properly encoded key bytes, prefixed by the type of the key\n\tKeyMaterial          []byte   `protobuf:\"bytes,2,opt,name=key_material,json=keyMaterial,proto3\" json:\"key_material,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nKeyInfo represents a (secret) key that is either already stored in the bccsp/keystore or key material to be imported to the bccsp key-store. In later versions it may contain also a keystore identifier\n\n```go\nfunc (*KeyInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *KeyInfo) GetKeyIdentifier() string\n```\n\n```go\nfunc (m *KeyInfo) GetKeyMaterial() []byte\n```\n\n```go\nfunc (*KeyInfo) ProtoMessage()\n```\n\n```go\nfunc (m *KeyInfo) Reset()\n```\n\n```go\nfunc (m *KeyInfo) String() string\n```\n\n```go\nfunc (m *KeyInfo) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *KeyInfo) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *KeyInfo) XXX_Size() int\n```\n\n```go\nfunc (m *KeyInfo) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MSPConfig struct {\n\t// Type holds the type of the MSP; the default one would\n\t// be of type FABRIC implementing an X.509 based provider\n\tType int32 `protobuf:\"varint,1,opt,name=type,proto3\" json:\"type,omitempty\"`\n\t// Config is MSP dependent configuration info\n\tConfig               []byte   `protobuf:\"bytes,2,opt,name=config,proto3\" json:\"config,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nMSPConfig collects all the configuration information for an MSP. The Config field should be unmarshalled in a way that depends on the Type\n\n```go\nfunc (*MSPConfig) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MSPConfig) GetConfig() []byte\n```\n\n```go\nfunc (m *MSPConfig) GetType() int32\n```\n\n```go\nfunc (*MSPConfig) ProtoMessage()\n```\n\n```go\nfunc (m *MSPConfig) Reset()\n```\n\n```go\nfunc (m *MSPConfig) String() string\n```\n\n```go\nfunc (mc *MSPConfig) VariablyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\nfunc (mc *MSPConfig) VariablyOpaqueFields() []string\n```\n\n```go\nfunc (m *MSPConfig) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *MSPConfig) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MSPConfig) XXX_Size() int\n```\n\n```go\nfunc (m *MSPConfig) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MSPIdentityAnonymity struct {\n\tAnonymityType        MSPIdentityAnonymity_MSPIdentityAnonymityType `protobuf:\"varint,1,opt,name=anonymity_type,json=anonymityType,proto3,enum=common.MSPIdentityAnonymity_MSPIdentityAnonymityType\" json:\"anonymity_type,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}                                      `json:\"-\"`\n\tXXX_unrecognized     []byte                                        `json:\"-\"`\n\tXXX_sizecache        int32                                         `json:\"-\"`\n}\n```\nMSPIdentityAnonymity can be used to enforce an identity to be anonymous or nominal.\n\n```go\nfunc (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) GetAnonymityType() MSPIdentityAnonymity_MSPIdentityAnonymityType\n```\n\n```go\nfunc (*MSPIdentityAnonymity) ProtoMessage()\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) Reset()\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) String() string\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) XXX_Size() int\n```\n\n```go\nfunc (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MSPIdentityAnonymity_MSPIdentityAnonymityType int32\n```\n\n```go\nconst (\n\tMSPIdentityAnonymity_NOMINAL   MSPIdentityAnonymity_MSPIdentityAnonymityType = 0\n\tMSPIdentityAnonymity_ANONYMOUS MSPIdentityAnonymity_MSPIdentityAnonymityType = 1\n)\n```\n\n```go\nfunc (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x MSPIdentityAnonymity_MSPIdentityAnonymityType) String() string\n```\n\n```go\ntype MSPPrincipal struct {\n\t// Classification describes the way that one should process\n\t// Principal. An Classification value of \"ByOrganizationUnit\" reflects\n\t// that \"Principal\" contains the name of an organization this MSP\n\t// handles. A Classification value \"ByIdentity\" means that\n\t// \"Principal\" contains a specific identity. Default value\n\t// denotes that Principal contains one of the groups by\n\t// default supported by all MSPs (\"admin\" or \"member\").\n\tPrincipalClassification MSPPrincipal_Classification `protobuf:\"varint,1,opt,name=principal_classification,json=principalClassification,proto3,enum=common.MSPPrincipal_Classification\" json:\"principal_classification,omitempty\"`\n\t// Principal completes the policy principal definition. For the default\n\t// principal types, Principal can be either \"Admin\" or \"Member\".\n\t// For the ByOrganizationUnit/ByIdentity values of Classification,\n\t// PolicyPrincipal acquires its value from an organization unit or\n\t// identity, respectively.\n\t// For the Combined Classification type, the Principal is a marshalled\n\t// CombinedPrincipal.\n\tPrincipal            []byte   `protobuf:\"bytes,2,opt,name=principal,proto3\" json:\"principal,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nMSPPrincipal aims to represent an MSP-centric set of identities. In particular, this structure allows for definition of\n\n  - a group of identities that are member of the same MSP\n  - a group of identities that are member of the same organization unit in the same MSP\n  - a group of identities that are administering a specific MSP\n  - a specific identity\n\nExpressing these groups is done given two fields of the fields below\n\n  - Classification, that defines the type of classification of identities in an MSP this principal would be defined on; Classification can take three values: (i)  ByMSPRole: that represents a classification of identities within MSP based on one of the two pre-defined MSP rules, \"member\" and \"admin\" (ii) ByOrganizationUnit: that represents a classification of identities within MSP based on the organization unit an identity belongs to (iii)ByIdentity that denotes that MSPPrincipal is mapped to a single identity/certificate; this would mean that the Principal bytes message\n\n```go\nfunc (*MSPPrincipal) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MSPPrincipal) GetPrincipal() []byte\n```\n\n```go\nfunc (m *MSPPrincipal) GetPrincipalClassification() MSPPrincipal_Classification\n```\n\n```go\nfunc (*MSPPrincipal) ProtoMessage()\n```\n\n```go\nfunc (m *MSPPrincipal) Reset()\n```\n\n```go\nfunc (m *MSPPrincipal) String() string\n```\n\n```go\nfunc (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, error)\n```\n\n```go\nfunc (mp *MSPPrincipal) VariablyOpaqueFields() []string\n```\n\n```go\nfunc (m *MSPPrincipal) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *MSPPrincipal) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MSPPrincipal) XXX_Size() int\n```\n\n```go\nfunc (m *MSPPrincipal) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MSPPrincipal_Classification int32\n```\n\n```go\nconst (\n\tMSPPrincipal_ROLE MSPPrincipal_Classification = 0\n\t// one of a member of MSP network, and the one of an\n\t// administrator of an MSP network\n\tMSPPrincipal_ORGANIZATION_UNIT MSPPrincipal_Classification = 1\n\t// groupping of entities, per MSP affiliation\n\t// E.g., this can well be represented by an MSP's\n\t// Organization unit\n\tMSPPrincipal_IDENTITY MSPPrincipal_Classification = 2\n\t// identity\n\tMSPPrincipal_ANONYMITY MSPPrincipal_Classification = 3\n\t// an identity to be anonymous or nominal.\n\tMSPPrincipal_COMBINED MSPPrincipal_Classification = 4\n)\n```\n\n```go\nfunc (MSPPrincipal_Classification) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x MSPPrincipal_Classification) String() string\n```\n\n```go\ntype MSPRole struct {\n\t// MSPIdentifier represents the identifier of the MSP this principal\n\t// refers to\n\tMspIdentifier string `protobuf:\"bytes,1,opt,name=msp_identifier,json=mspIdentifier,proto3\" json:\"msp_identifier,omitempty\"`\n\t// MSPRoleType defines which of the available, pre-defined MSP-roles\n\t// an identiy should posess inside the MSP with identifier MSPidentifier\n\tRole                 MSPRole_MSPRoleType `protobuf:\"varint,2,opt,name=role,proto3,enum=common.MSPRole_MSPRoleType\" json:\"role,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}            `json:\"-\"`\n\tXXX_unrecognized     []byte              `json:\"-\"`\n\tXXX_sizecache        int32               `json:\"-\"`\n}\n```\nMSPRole governs the organization of the Principal field of an MSPPrincipal when it aims to define one of the two dedicated roles within an MSP: Admin and Members.\n\n```go\nfunc (*MSPRole) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MSPRole) GetMspIdentifier() string\n```\n\n```go\nfunc (m *MSPRole) GetRole() MSPRole_MSPRoleType\n```\n\n```go\nfunc (*MSPRole) ProtoMessage()\n```\n\n```go\nfunc (m *MSPRole) Reset()\n```\n\n```go\nfunc (m *MSPRole) String() string\n```\n\n```go\nfunc (m *MSPRole) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MSPRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *MSPRole) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MSPRole) XXX_Size() int\n```\n\n```go\nfunc (m *MSPRole) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MSPRole_MSPRoleType int32\n```\n\n```go\nconst (\n\tMSPRole_MEMBER  MSPRole_MSPRoleType = 0\n\tMSPRole_ADMIN   MSPRole_MSPRoleType = 1\n\tMSPRole_CLIENT  MSPRole_MSPRoleType = 2\n\tMSPRole_PEER    MSPRole_MSPRoleType = 3\n\tMSPRole_ORDERER MSPRole_MSPRoleType = 4\n)\n```\n\n```go\nfunc (MSPRole_MSPRoleType) EnumDescriptor() ([]byte, []int)\n```\n\n```go\nfunc (x MSPRole_MSPRoleType) String() string\n```\n\n```go\ntype OrganizationUnit struct {\n\t// MSPIdentifier represents the identifier of the MSP this organization unit\n\t// refers to\n\tMspIdentifier string `protobuf:\"bytes,1,opt,name=msp_identifier,json=mspIdentifier,proto3\" json:\"msp_identifier,omitempty\"`\n\t// OrganizationUnitIdentifier defines the organizational unit under the\n\t// MSP identified with MSPIdentifier\n\tOrganizationalUnitIdentifier string `protobuf:\"bytes,2,opt,name=organizational_unit_identifier,json=organizationalUnitIdentifier,proto3\" json:\"organizational_unit_identifier,omitempty\"`\n\t// CertifiersIdentifier is the hash of certificates chain of trust\n\t// related to this organizational unit\n\tCertifiersIdentifier []byte   `protobuf:\"bytes,3,opt,name=certifiers_identifier,json=certifiersIdentifier,proto3\" json:\"certifiers_identifier,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nOrganizationUnit governs the organization of the Principal field of a policy principal when a specific organization unity members are to be defined within a policy principal.\n\n```go\nfunc (*OrganizationUnit) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *OrganizationUnit) GetCertifiersIdentifier() []byte\n```\n\n```go\nfunc (m *OrganizationUnit) GetMspIdentifier() string\n```\n\n```go\nfunc (m *OrganizationUnit) GetOrganizationalUnitIdentifier() string\n```\n\n```go\nfunc (*OrganizationUnit) ProtoMessage()\n```\n\n```go\nfunc (m *OrganizationUnit) Reset()\n```\n\n```go\nfunc (m *OrganizationUnit) String() string\n```\n\n```go\nfunc (m *OrganizationUnit) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *OrganizationUnit) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *OrganizationUnit) XXX_Size() int\n```\n\n```go\nfunc (m *OrganizationUnit) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SerializedIdemixIdentity struct {\n\t// nym_x is the X-component of the pseudonym elliptic curve point.\n\t// It is a []byte representation of an amcl.BIG\n\t// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.\n\tNymX []byte `protobuf:\"bytes,1,opt,name=nym_x,json=nymX,proto3\" json:\"nym_x,omitempty\"`\n\t// nym_y is the Y-component of the pseudonym elliptic curve point.\n\t// It is a []byte representation of an amcl.BIG\n\t// The pseudonym can be seen as a public key of the identity, it is used to verify signatures.\n\tNymY []byte `protobuf:\"bytes,2,opt,name=nym_y,json=nymY,proto3\" json:\"nym_y,omitempty\"`\n\t// ou contains the organizational unit of the idemix identity\n\tOu []byte `protobuf:\"bytes,3,opt,name=ou,proto3\" json:\"ou,omitempty\"`\n\t// role contains the role of this identity (e.g., ADMIN or MEMBER)\n\tRole []byte `protobuf:\"bytes,4,opt,name=role,proto3\" json:\"role,omitempty\"`\n\t// proof contains the cryptographic evidence that this identity is valid\n\tProof                []byte   `protobuf:\"bytes,5,opt,name=proof,proto3\" json:\"proof,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nThis struct represents an Idemix Identity to be used to serialize it and deserialize it. The IdemixMSP will first serialize an idemix identity to bytes using this proto, and then uses these bytes as id\\_bytes in SerializedIdentity\n\n```go\nfunc (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) GetNymX() []byte\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) GetNymY() []byte\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) GetOu() []byte\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) GetProof() []byte\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) GetRole() []byte\n```\n\n```go\nfunc (*SerializedIdemixIdentity) ProtoMessage()\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) Reset()\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) String() string\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) XXX_Size() int\n```\n\n```go\nfunc (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SerializedIdentity struct {\n\t// The identifier of the associated membership service provider\n\tMspid string `protobuf:\"bytes,1,opt,name=mspid,proto3\" json:\"mspid,omitempty\"`\n\t// the Identity, serialized according to the rules of its MPS\n\tIdBytes              []byte   `protobuf:\"bytes,2,opt,name=id_bytes,json=idBytes,proto3\" json:\"id_bytes,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nThis struct represents an Identity (with its MSP identifier) to be used to serialize it and deserialize it\n\n```go\nfunc (*SerializedIdentity) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SerializedIdentity) GetIdBytes() []byte\n```\n\n```go\nfunc (m *SerializedIdentity) GetMspid() string\n```\n\n```go\nfunc (*SerializedIdentity) ProtoMessage()\n```\n\n```go\nfunc (m *SerializedIdentity) Reset()\n```\n\n```go\nfunc (m *SerializedIdentity) String() string\n```\n\n```go\nfunc (m *SerializedIdentity) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SerializedIdentity) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SerializedIdentity) XXX_Size() int\n```\n\n```go\nfunc (m *SerializedIdentity) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype SigningIdentityInfo struct {\n\t// PublicSigner carries the public information of the signing\n\t// identity. For an X.509 provider this would be represented by\n\t// an X.509 certificate\n\tPublicSigner []byte `protobuf:\"bytes,1,opt,name=public_signer,json=publicSigner,proto3\" json:\"public_signer,omitempty\"`\n\t// PrivateSigner denotes a reference to the private key of the\n\t// peer's signing identity\n\tPrivateSigner        *KeyInfo `protobuf:\"bytes,2,opt,name=private_signer,json=privateSigner,proto3\" json:\"private_signer,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_unrecognized     []byte   `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nSigningIdentityInfo represents the configuration information related to the signing identity the peer is to use for generating endorsements\n\n```go\nfunc (*SigningIdentityInfo) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo\n```\n\n```go\nfunc (m *SigningIdentityInfo) GetPublicSigner() []byte\n```\n\n```go\nfunc (*SigningIdentityInfo) ProtoMessage()\n```\n\n```go\nfunc (m *SigningIdentityInfo) Reset()\n```\n\n```go\nfunc (m *SigningIdentityInfo) String() string\n```\n\n```go\nfunc (m *SigningIdentityInfo) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *SigningIdentityInfo) XXX_Size() int\n```\n\n```go\nfunc (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/protos/msp","name":"msp","synopsis":"","isRedistributable":true}
