Documentation ¶
Index ¶
- Variables
- type CombinedPrincipal
- func (*CombinedPrincipal) Descriptor() ([]byte, []int)
- func (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal
- func (*CombinedPrincipal) ProtoMessage()
- func (m *CombinedPrincipal) Reset()
- func (m *CombinedPrincipal) String() string
- func (m *CombinedPrincipal) XXX_DiscardUnknown()
- func (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CombinedPrincipal) XXX_Merge(src proto.Message)
- func (m *CombinedPrincipal) XXX_Size() int
- func (m *CombinedPrincipal) XXX_Unmarshal(b []byte) error
- type FabricCryptoConfig
- func (*FabricCryptoConfig) Descriptor() ([]byte, []int)
- func (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string
- func (m *FabricCryptoConfig) GetSignatureHashFamily() string
- func (*FabricCryptoConfig) ProtoMessage()
- func (m *FabricCryptoConfig) Reset()
- func (m *FabricCryptoConfig) String() string
- func (m *FabricCryptoConfig) XXX_DiscardUnknown()
- func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)
- func (m *FabricCryptoConfig) XXX_Size() int
- func (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error
- type FabricMSPConfig
- func (*FabricMSPConfig) Descriptor() ([]byte, []int)
- func (m *FabricMSPConfig) GetAdmins() [][]byte
- func (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig
- func (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs
- func (m *FabricMSPConfig) GetIntermediateCerts() [][]byte
- func (m *FabricMSPConfig) GetName() string
- func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier
- func (m *FabricMSPConfig) GetRevocationList() [][]byte
- func (m *FabricMSPConfig) GetRootCerts() [][]byte
- func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo
- func (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte
- func (m *FabricMSPConfig) GetTlsRootCerts() [][]byte
- func (*FabricMSPConfig) ProtoMessage()
- func (m *FabricMSPConfig) Reset()
- func (m *FabricMSPConfig) String() string
- func (m *FabricMSPConfig) XXX_DiscardUnknown()
- func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricMSPConfig) XXX_Merge(src proto.Message)
- func (m *FabricMSPConfig) XXX_Size() int
- func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error
- type FabricNodeOUs
- func (*FabricNodeOUs) Descriptor() ([]byte, []int)
- func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier
- func (m *FabricNodeOUs) GetEnable() bool
- func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier
- func (*FabricNodeOUs) ProtoMessage()
- func (m *FabricNodeOUs) Reset()
- func (m *FabricNodeOUs) String() string
- func (m *FabricNodeOUs) XXX_DiscardUnknown()
- func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricNodeOUs) XXX_Merge(src proto.Message)
- func (m *FabricNodeOUs) XXX_Size() int
- func (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error
- type FabricOUIdentifier
- func (*FabricOUIdentifier) Descriptor() ([]byte, []int)
- func (m *FabricOUIdentifier) GetCertificate() []byte
- func (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string
- func (*FabricOUIdentifier) ProtoMessage()
- func (m *FabricOUIdentifier) Reset()
- func (m *FabricOUIdentifier) String() string
- func (m *FabricOUIdentifier) XXX_DiscardUnknown()
- func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)
- func (m *FabricOUIdentifier) XXX_Size() int
- func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error
- type IdemixMSPConfig
- func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
- func (m *IdemixMSPConfig) GetEpoch() int64
- func (m *IdemixMSPConfig) GetIpk() []byte
- func (m *IdemixMSPConfig) GetName() string
- func (m *IdemixMSPConfig) GetRevocationPk() []byte
- func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig
- func (*IdemixMSPConfig) ProtoMessage()
- func (m *IdemixMSPConfig) Reset()
- func (m *IdemixMSPConfig) String() string
- func (m *IdemixMSPConfig) XXX_DiscardUnknown()
- func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)
- func (m *IdemixMSPConfig) XXX_Size() int
- func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error
- type IdemixMSPSignerConfig
- func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)
- func (m *IdemixMSPSignerConfig) GetCred() []byte
- func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte
- func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
- func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
- func (m *IdemixMSPSignerConfig) GetRole() int32
- func (m *IdemixMSPSignerConfig) GetSk() []byte
- func (*IdemixMSPSignerConfig) ProtoMessage()
- func (m *IdemixMSPSignerConfig) Reset()
- func (m *IdemixMSPSignerConfig) String() string
- func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()
- func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)
- func (m *IdemixMSPSignerConfig) XXX_Size() int
- func (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error
- type KeyInfo
- func (*KeyInfo) Descriptor() ([]byte, []int)
- func (m *KeyInfo) GetKeyIdentifier() string
- func (m *KeyInfo) GetKeyMaterial() []byte
- func (*KeyInfo) ProtoMessage()
- func (m *KeyInfo) Reset()
- func (m *KeyInfo) String() string
- func (m *KeyInfo) XXX_DiscardUnknown()
- func (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *KeyInfo) XXX_Merge(src proto.Message)
- func (m *KeyInfo) XXX_Size() int
- func (m *KeyInfo) XXX_Unmarshal(b []byte) error
- type MSPConfig
- func (*MSPConfig) Descriptor() ([]byte, []int)
- func (m *MSPConfig) GetConfig() []byte
- func (m *MSPConfig) GetType() int32
- func (*MSPConfig) ProtoMessage()
- func (m *MSPConfig) Reset()
- func (m *MSPConfig) String() string
- func (mc *MSPConfig) VariablyOpaqueFieldProto(name string) (proto.Message, error)
- func (mc *MSPConfig) VariablyOpaqueFields() []string
- func (m *MSPConfig) XXX_DiscardUnknown()
- func (m *MSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPConfig) XXX_Merge(src proto.Message)
- func (m *MSPConfig) XXX_Size() int
- func (m *MSPConfig) XXX_Unmarshal(b []byte) error
- type MSPIdentityAnonymity
- func (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)
- func (m *MSPIdentityAnonymity) GetAnonymityType() MSPIdentityAnonymity_MSPIdentityAnonymityType
- func (*MSPIdentityAnonymity) ProtoMessage()
- func (m *MSPIdentityAnonymity) Reset()
- func (m *MSPIdentityAnonymity) String() string
- func (m *MSPIdentityAnonymity) XXX_DiscardUnknown()
- func (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)
- func (m *MSPIdentityAnonymity) XXX_Size() int
- func (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error
- type MSPIdentityAnonymity_MSPIdentityAnonymityType
- type MSPPrincipal
- func (*MSPPrincipal) Descriptor() ([]byte, []int)
- func (m *MSPPrincipal) GetPrincipal() []byte
- func (m *MSPPrincipal) GetPrincipalClassification() MSPPrincipal_Classification
- func (*MSPPrincipal) ProtoMessage()
- func (m *MSPPrincipal) Reset()
- func (m *MSPPrincipal) String() string
- func (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, error)
- func (mp *MSPPrincipal) VariablyOpaqueFields() []string
- func (m *MSPPrincipal) XXX_DiscardUnknown()
- func (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPPrincipal) XXX_Merge(src proto.Message)
- func (m *MSPPrincipal) XXX_Size() int
- func (m *MSPPrincipal) XXX_Unmarshal(b []byte) error
- type MSPPrincipal_Classification
- type MSPRole
- func (*MSPRole) Descriptor() ([]byte, []int)
- func (m *MSPRole) GetMspIdentifier() string
- func (m *MSPRole) GetRole() MSPRole_MSPRoleType
- func (*MSPRole) ProtoMessage()
- func (m *MSPRole) Reset()
- func (m *MSPRole) String() string
- func (m *MSPRole) XXX_DiscardUnknown()
- func (m *MSPRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MSPRole) XXX_Merge(src proto.Message)
- func (m *MSPRole) XXX_Size() int
- func (m *MSPRole) XXX_Unmarshal(b []byte) error
- type MSPRole_MSPRoleType
- type OrganizationUnit
- func (*OrganizationUnit) Descriptor() ([]byte, []int)
- func (m *OrganizationUnit) GetCertifiersIdentifier() []byte
- func (m *OrganizationUnit) GetMspIdentifier() string
- func (m *OrganizationUnit) GetOrganizationalUnitIdentifier() string
- func (*OrganizationUnit) ProtoMessage()
- func (m *OrganizationUnit) Reset()
- func (m *OrganizationUnit) String() string
- func (m *OrganizationUnit) XXX_DiscardUnknown()
- func (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OrganizationUnit) XXX_Merge(src proto.Message)
- func (m *OrganizationUnit) XXX_Size() int
- func (m *OrganizationUnit) XXX_Unmarshal(b []byte) error
- type SerializedIdemixIdentity
- func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)
- func (m *SerializedIdemixIdentity) GetNymX() []byte
- func (m *SerializedIdemixIdentity) GetNymY() []byte
- func (m *SerializedIdemixIdentity) GetOu() []byte
- func (m *SerializedIdemixIdentity) GetProof() []byte
- func (m *SerializedIdemixIdentity) GetRole() []byte
- func (*SerializedIdemixIdentity) ProtoMessage()
- func (m *SerializedIdemixIdentity) Reset()
- func (m *SerializedIdemixIdentity) String() string
- func (m *SerializedIdemixIdentity) XXX_DiscardUnknown()
- func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdemixIdentity) XXX_Size() int
- func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error
- type SerializedIdentity
- func (*SerializedIdentity) Descriptor() ([]byte, []int)
- func (m *SerializedIdentity) GetIdBytes() []byte
- func (m *SerializedIdentity) GetMspid() string
- func (*SerializedIdentity) ProtoMessage()
- func (m *SerializedIdentity) Reset()
- func (m *SerializedIdentity) String() string
- func (m *SerializedIdentity) XXX_DiscardUnknown()
- func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SerializedIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdentity) XXX_Size() int
- func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
- type SigningIdentityInfo
- func (*SigningIdentityInfo) Descriptor() ([]byte, []int)
- func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo
- func (m *SigningIdentityInfo) GetPublicSigner() []byte
- func (*SigningIdentityInfo) ProtoMessage()
- func (m *SigningIdentityInfo) Reset()
- func (m *SigningIdentityInfo) String() string
- func (m *SigningIdentityInfo) XXX_DiscardUnknown()
- func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)
- func (m *SigningIdentityInfo) XXX_Size() int
- func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var MSPIdentityAnonymity_MSPIdentityAnonymityType_name = map[int32]string{
0: "NOMINAL",
1: "ANONYMOUS",
}
var MSPIdentityAnonymity_MSPIdentityAnonymityType_value = map[string]int32{
"NOMINAL": 0,
"ANONYMOUS": 1,
}
var MSPPrincipal_Classification_name = map[int32]string{
0: "ROLE",
1: "ORGANIZATION_UNIT",
2: "IDENTITY",
3: "ANONYMITY",
4: "COMBINED",
}
var MSPPrincipal_Classification_value = map[string]int32{
"ROLE": 0,
"ORGANIZATION_UNIT": 1,
"IDENTITY": 2,
"ANONYMITY": 3,
"COMBINED": 4,
}
var MSPRole_MSPRoleType_name = map[int32]string{
0: "MEMBER",
1: "ADMIN",
2: "CLIENT",
3: "PEER",
}
var MSPRole_MSPRoleType_value = map[string]int32{
"MEMBER": 0,
"ADMIN": 1,
"CLIENT": 2,
"PEER": 3,
}
Functions ¶
This section is empty.
Types ¶
type CombinedPrincipal ¶ added in v1.2.0
type CombinedPrincipal struct { // Principals refer to combined principals Principals []*MSPPrincipal `protobuf:"bytes,1,rep,name=principals" json:"principals,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CombinedPrincipal governs the organization of the Principal field of a policy principal when principal_classification has indicated that a combined form of principals is required
func (*CombinedPrincipal) Descriptor ¶ added in v1.2.0
func (*CombinedPrincipal) Descriptor() ([]byte, []int)
func (*CombinedPrincipal) GetPrincipals ¶ added in v1.2.0
func (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal
func (*CombinedPrincipal) ProtoMessage ¶ added in v1.2.0
func (*CombinedPrincipal) ProtoMessage()
func (*CombinedPrincipal) Reset ¶ added in v1.2.0
func (m *CombinedPrincipal) Reset()
func (*CombinedPrincipal) String ¶ added in v1.2.0
func (m *CombinedPrincipal) String() string
func (*CombinedPrincipal) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *CombinedPrincipal) XXX_DiscardUnknown()
func (*CombinedPrincipal) XXX_Marshal ¶ added in v1.4.0
func (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CombinedPrincipal) XXX_Merge ¶ added in v1.4.0
func (dst *CombinedPrincipal) XXX_Merge(src proto.Message)
func (*CombinedPrincipal) XXX_Size ¶ added in v1.4.0
func (m *CombinedPrincipal) XXX_Size() int
func (*CombinedPrincipal) XXX_Unmarshal ¶ added in v1.4.0
func (m *CombinedPrincipal) XXX_Unmarshal(b []byte) error
type FabricCryptoConfig ¶
type FabricCryptoConfig struct { // SignatureHashFamily is a string representing the hash family to be used // during sign and verify operations. // Allowed values are "SHA2" and "SHA3". SignatureHashFamily string `protobuf:"bytes,1,opt,name=signature_hash_family,json=signatureHashFamily" json:"signature_hash_family,omitempty"` // IdentityIdentifierHashFunction is a string representing the hash function // to be used during the computation of the identity identifier of an MSP identity. // Allowed values are "SHA256", "SHA384" and "SHA3_256", "SHA3_384". IdentityIdentifierHashFunction string `` /* 148-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricCryptoConfig contains configuration parameters for the cryptographic algorithms used by the MSP this configuration refers to
func (*FabricCryptoConfig) Descriptor ¶
func (*FabricCryptoConfig) Descriptor() ([]byte, []int)
func (*FabricCryptoConfig) GetIdentityIdentifierHashFunction ¶
func (m *FabricCryptoConfig) GetIdentityIdentifierHashFunction() string
func (*FabricCryptoConfig) GetSignatureHashFamily ¶
func (m *FabricCryptoConfig) GetSignatureHashFamily() string
func (*FabricCryptoConfig) ProtoMessage ¶
func (*FabricCryptoConfig) ProtoMessage()
func (*FabricCryptoConfig) Reset ¶
func (m *FabricCryptoConfig) Reset()
func (*FabricCryptoConfig) String ¶
func (m *FabricCryptoConfig) String() string
func (*FabricCryptoConfig) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *FabricCryptoConfig) XXX_DiscardUnknown()
func (*FabricCryptoConfig) XXX_Marshal ¶ added in v1.4.0
func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricCryptoConfig) XXX_Merge ¶ added in v1.4.0
func (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)
func (*FabricCryptoConfig) XXX_Size ¶ added in v1.4.0
func (m *FabricCryptoConfig) XXX_Size() int
func (*FabricCryptoConfig) XXX_Unmarshal ¶ added in v1.4.0
func (m *FabricCryptoConfig) XXX_Unmarshal(b []byte) error
type FabricMSPConfig ¶
type FabricMSPConfig struct { // Name holds the identifier of the MSP; MSP identifier // is chosen by the application that governs this MSP. // For example, and assuming the default implementation of MSP, // that is X.509-based and considers a single Issuer, // this can refer to the Subject OU field or the Issuer OU field. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // List of root certificates trusted by this MSP // they are used upon certificate validation (see // comment for IntermediateCerts below) RootCerts [][]byte `protobuf:"bytes,2,rep,name=root_certs,json=rootCerts,proto3" json:"root_certs,omitempty"` // List of intermediate certificates trusted by this MSP; // they are used upon certificate validation as follows: // validation attempts to build a path from the certificate // to be validated (which is at one end of the path) and // one of the certs in the RootCerts field (which is at // the other end of the path). If the path is longer than // 2, certificates in the middle are searched within the // IntermediateCerts pool IntermediateCerts [][]byte `protobuf:"bytes,3,rep,name=intermediate_certs,json=intermediateCerts,proto3" json:"intermediate_certs,omitempty"` // Identity denoting the administrator of this MSP Admins [][]byte `protobuf:"bytes,4,rep,name=admins,proto3" json:"admins,omitempty"` // Identity revocation list RevocationList [][]byte `protobuf:"bytes,5,rep,name=revocation_list,json=revocationList,proto3" json:"revocation_list,omitempty"` // SigningIdentity holds information on the signing identity // this peer is to use, and which is to be imported by the // MSP defined before SigningIdentity *SigningIdentityInfo `protobuf:"bytes,6,opt,name=signing_identity,json=signingIdentity" json:"signing_identity,omitempty"` // OrganizationalUnitIdentifiers holds one or more // fabric organizational unit identifiers that belong to // this MSP configuration OrganizationalUnitIdentifiers []*FabricOUIdentifier `` /* 143-byte string literal not displayed */ // FabricCryptoConfig contains the configuration parameters // for the cryptographic algorithms used by this MSP CryptoConfig *FabricCryptoConfig `protobuf:"bytes,8,opt,name=crypto_config,json=cryptoConfig" json:"crypto_config,omitempty"` // List of TLS root certificates trusted by this MSP. // They are returned by GetTLSRootCerts. TlsRootCerts [][]byte `protobuf:"bytes,9,rep,name=tls_root_certs,json=tlsRootCerts,proto3" json:"tls_root_certs,omitempty"` // List of TLS intermediate certificates trusted by this MSP; // They are returned by GetTLSIntermediateCerts. TlsIntermediateCerts [][]byte `protobuf:"bytes,10,rep,name=tls_intermediate_certs,json=tlsIntermediateCerts,proto3" json:"tls_intermediate_certs,omitempty"` // fabric_node_ous contains the configuration to distinguish clients from peers from orderers // based on the OUs. FabricNodeOus *FabricNodeOUs `protobuf:"bytes,11,opt,name=fabric_node_ous,json=fabricNodeOus" json:"fabric_node_ous,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricMSPConfig 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.
func (*FabricMSPConfig) Descriptor ¶
func (*FabricMSPConfig) Descriptor() ([]byte, []int)
func (*FabricMSPConfig) GetAdmins ¶
func (m *FabricMSPConfig) GetAdmins() [][]byte
func (*FabricMSPConfig) GetCryptoConfig ¶
func (m *FabricMSPConfig) GetCryptoConfig() *FabricCryptoConfig
func (*FabricMSPConfig) GetFabricNodeOus ¶ added in v1.2.0
func (m *FabricMSPConfig) GetFabricNodeOus() *FabricNodeOUs
func (*FabricMSPConfig) GetIntermediateCerts ¶
func (m *FabricMSPConfig) GetIntermediateCerts() [][]byte
func (*FabricMSPConfig) GetName ¶
func (m *FabricMSPConfig) GetName() string
func (*FabricMSPConfig) GetOrganizationalUnitIdentifiers ¶
func (m *FabricMSPConfig) GetOrganizationalUnitIdentifiers() []*FabricOUIdentifier
func (*FabricMSPConfig) GetRevocationList ¶
func (m *FabricMSPConfig) GetRevocationList() [][]byte
func (*FabricMSPConfig) GetRootCerts ¶
func (m *FabricMSPConfig) GetRootCerts() [][]byte
func (*FabricMSPConfig) GetSigningIdentity ¶
func (m *FabricMSPConfig) GetSigningIdentity() *SigningIdentityInfo
func (*FabricMSPConfig) GetTlsIntermediateCerts ¶
func (m *FabricMSPConfig) GetTlsIntermediateCerts() [][]byte
func (*FabricMSPConfig) GetTlsRootCerts ¶
func (m *FabricMSPConfig) GetTlsRootCerts() [][]byte
func (*FabricMSPConfig) ProtoMessage ¶
func (*FabricMSPConfig) ProtoMessage()
func (*FabricMSPConfig) Reset ¶
func (m *FabricMSPConfig) Reset()
func (*FabricMSPConfig) String ¶
func (m *FabricMSPConfig) String() string
func (*FabricMSPConfig) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *FabricMSPConfig) XXX_DiscardUnknown()
func (*FabricMSPConfig) XXX_Marshal ¶ added in v1.4.0
func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricMSPConfig) XXX_Merge ¶ added in v1.4.0
func (dst *FabricMSPConfig) XXX_Merge(src proto.Message)
func (*FabricMSPConfig) XXX_Size ¶ added in v1.4.0
func (m *FabricMSPConfig) XXX_Size() int
func (*FabricMSPConfig) XXX_Unmarshal ¶ added in v1.4.0
func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error
type FabricNodeOUs ¶ added in v1.1.0
type FabricNodeOUs struct { // If true then an msp identity that does not contain any of the specified OU will be considered invalid. Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"` // OU Identifier of the clients ClientOuIdentifier *FabricOUIdentifier `protobuf:"bytes,2,opt,name=client_ou_identifier,json=clientOuIdentifier" json:"client_ou_identifier,omitempty"` // OU Identifier of the peers PeerOuIdentifier *FabricOUIdentifier `protobuf:"bytes,3,opt,name=peer_ou_identifier,json=peerOuIdentifier" json:"peer_ou_identifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricNodeOUs 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.
func (*FabricNodeOUs) Descriptor ¶ added in v1.1.0
func (*FabricNodeOUs) Descriptor() ([]byte, []int)
func (*FabricNodeOUs) GetClientOuIdentifier ¶ added in v1.2.0
func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier
func (*FabricNodeOUs) GetEnable ¶ added in v1.1.0
func (m *FabricNodeOUs) GetEnable() bool
func (*FabricNodeOUs) GetPeerOuIdentifier ¶ added in v1.2.0
func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier
func (*FabricNodeOUs) ProtoMessage ¶ added in v1.1.0
func (*FabricNodeOUs) ProtoMessage()
func (*FabricNodeOUs) Reset ¶ added in v1.1.0
func (m *FabricNodeOUs) Reset()
func (*FabricNodeOUs) String ¶ added in v1.1.0
func (m *FabricNodeOUs) String() string
func (*FabricNodeOUs) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *FabricNodeOUs) XXX_DiscardUnknown()
func (*FabricNodeOUs) XXX_Marshal ¶ added in v1.4.0
func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricNodeOUs) XXX_Merge ¶ added in v1.4.0
func (dst *FabricNodeOUs) XXX_Merge(src proto.Message)
func (*FabricNodeOUs) XXX_Size ¶ added in v1.4.0
func (m *FabricNodeOUs) XXX_Size() int
func (*FabricNodeOUs) XXX_Unmarshal ¶ added in v1.4.0
func (m *FabricNodeOUs) XXX_Unmarshal(b []byte) error
type FabricOUIdentifier ¶
type FabricOUIdentifier struct { // Certificate represents the second certificate in a certification chain. // (Notice that the first certificate in a certification chain is supposed // to be the certificate of an identity). // It must correspond to the certificate of root or intermediate CA // recognized by the MSP this message belongs to. // Starting from this certificate, a certification chain is computed // and bound to the OrganizationUnitIdentifier specified Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // OrganizationUnitIdentifier defines the organizational unit under the // MSP identified with MSPIdentifier OrganizationalUnitIdentifier string `` /* 140-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FabricOUIdentifier represents an organizational unit and its related chain of trust identifier.
func (*FabricOUIdentifier) Descriptor ¶
func (*FabricOUIdentifier) Descriptor() ([]byte, []int)
func (*FabricOUIdentifier) GetCertificate ¶
func (m *FabricOUIdentifier) GetCertificate() []byte
func (*FabricOUIdentifier) GetOrganizationalUnitIdentifier ¶
func (m *FabricOUIdentifier) GetOrganizationalUnitIdentifier() string
func (*FabricOUIdentifier) ProtoMessage ¶
func (*FabricOUIdentifier) ProtoMessage()
func (*FabricOUIdentifier) Reset ¶
func (m *FabricOUIdentifier) Reset()
func (*FabricOUIdentifier) String ¶
func (m *FabricOUIdentifier) String() string
func (*FabricOUIdentifier) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *FabricOUIdentifier) XXX_DiscardUnknown()
func (*FabricOUIdentifier) XXX_Marshal ¶ added in v1.4.0
func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FabricOUIdentifier) XXX_Merge ¶ added in v1.4.0
func (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)
func (*FabricOUIdentifier) XXX_Size ¶ added in v1.4.0
func (m *FabricOUIdentifier) XXX_Size() int
func (*FabricOUIdentifier) XXX_Unmarshal ¶ added in v1.4.0
func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error
type IdemixMSPConfig ¶ added in v1.1.0
type IdemixMSPConfig struct { // Name holds the identifier of the MSP Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // ipk represents the (serialized) issuer public key Ipk []byte `protobuf:"bytes,2,opt,name=ipk,proto3" json:"ipk,omitempty"` // signer may contain crypto material to configure a default signer Signer *IdemixMSPSignerConfig `protobuf:"bytes,3,opt,name=signer" json:"signer,omitempty"` // revocation_pk is the public key used for revocation of credentials RevocationPk []byte `protobuf:"bytes,4,opt,name=revocation_pk,json=revocationPk,proto3" json:"revocation_pk,omitempty"` // epoch represents the current epoch (time interval) used for revocation Epoch int64 `protobuf:"varint,5,opt,name=epoch" json:"epoch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IdemixMSPConfig collects all the configuration information for an Idemix MSP.
func (*IdemixMSPConfig) Descriptor ¶ added in v1.1.0
func (*IdemixMSPConfig) Descriptor() ([]byte, []int)
func (*IdemixMSPConfig) GetEpoch ¶ added in v1.2.0
func (m *IdemixMSPConfig) GetEpoch() int64
func (*IdemixMSPConfig) GetIpk ¶ added in v1.2.0
func (m *IdemixMSPConfig) GetIpk() []byte
func (*IdemixMSPConfig) GetName ¶ added in v1.1.0
func (m *IdemixMSPConfig) GetName() string
func (*IdemixMSPConfig) GetRevocationPk ¶ added in v1.2.0
func (m *IdemixMSPConfig) GetRevocationPk() []byte
func (*IdemixMSPConfig) GetSigner ¶ added in v1.1.0
func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig
func (*IdemixMSPConfig) ProtoMessage ¶ added in v1.1.0
func (*IdemixMSPConfig) ProtoMessage()
func (*IdemixMSPConfig) Reset ¶ added in v1.1.0
func (m *IdemixMSPConfig) Reset()
func (*IdemixMSPConfig) String ¶ added in v1.1.0
func (m *IdemixMSPConfig) String() string
func (*IdemixMSPConfig) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *IdemixMSPConfig) XXX_DiscardUnknown()
func (*IdemixMSPConfig) XXX_Marshal ¶ added in v1.4.0
func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdemixMSPConfig) XXX_Merge ¶ added in v1.4.0
func (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)
func (*IdemixMSPConfig) XXX_Size ¶ added in v1.4.0
func (m *IdemixMSPConfig) XXX_Size() int
func (*IdemixMSPConfig) XXX_Unmarshal ¶ added in v1.4.0
func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error
type IdemixMSPSignerConfig ¶ added in v1.1.0
type IdemixMSPSignerConfig struct { // cred represents the serialized idemix credential of the default signer Cred []byte `protobuf:"bytes,1,opt,name=cred,proto3" json:"cred,omitempty"` // sk is the secret key of the default signer, corresponding to credential Cred Sk []byte `protobuf:"bytes,2,opt,name=sk,proto3" json:"sk,omitempty"` // organizational_unit_identifier defines the organizational unit the default signer is in OrganizationalUnitIdentifier string `` /* 140-byte string literal not displayed */ // role defines whether the default signer is admin, peer, member or client Role int32 `protobuf:"varint,4,opt,name=role" json:"role,omitempty"` // enrollment_id contains the enrollment id of this signer EnrollmentId string `protobuf:"bytes,5,opt,name=enrollment_id,json=enrollmentId" json:"enrollment_id,omitempty"` // credential_revocation_information contains a serialized CredentialRevocationInformation CredentialRevocationInformation []byte `` /* 156-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IdemixMSPSIgnerConfig contains the crypto material to set up an idemix signing identity
func (*IdemixMSPSignerConfig) Descriptor ¶ added in v1.1.0
func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)
func (*IdemixMSPSignerConfig) GetCred ¶ added in v1.1.0
func (m *IdemixMSPSignerConfig) GetCred() []byte
func (*IdemixMSPSignerConfig) GetCredentialRevocationInformation ¶ added in v1.2.0
func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte
func (*IdemixMSPSignerConfig) GetEnrollmentId ¶ added in v1.2.0
func (m *IdemixMSPSignerConfig) GetEnrollmentId() string
func (*IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier ¶ added in v1.1.0
func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string
func (*IdemixMSPSignerConfig) GetRole ¶ added in v1.4.0
func (m *IdemixMSPSignerConfig) GetRole() int32
func (*IdemixMSPSignerConfig) GetSk ¶ added in v1.1.0
func (m *IdemixMSPSignerConfig) GetSk() []byte
func (*IdemixMSPSignerConfig) ProtoMessage ¶ added in v1.1.0
func (*IdemixMSPSignerConfig) ProtoMessage()
func (*IdemixMSPSignerConfig) Reset ¶ added in v1.1.0
func (m *IdemixMSPSignerConfig) Reset()
func (*IdemixMSPSignerConfig) String ¶ added in v1.1.0
func (m *IdemixMSPSignerConfig) String() string
func (*IdemixMSPSignerConfig) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()
func (*IdemixMSPSignerConfig) XXX_Marshal ¶ added in v1.4.0
func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IdemixMSPSignerConfig) XXX_Merge ¶ added in v1.4.0
func (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)
func (*IdemixMSPSignerConfig) XXX_Size ¶ added in v1.4.0
func (m *IdemixMSPSignerConfig) XXX_Size() int
func (*IdemixMSPSignerConfig) XXX_Unmarshal ¶ added in v1.4.0
func (m *IdemixMSPSignerConfig) XXX_Unmarshal(b []byte) error
type KeyInfo ¶
type KeyInfo struct { // Identifier of the key inside the default keystore; this for // the case of Software BCCSP as well as the HSM BCCSP would be // the SKI of the key KeyIdentifier string `protobuf:"bytes,1,opt,name=key_identifier,json=keyIdentifier" json:"key_identifier,omitempty"` // KeyMaterial (optional) for the key to be imported; this is // properly encoded key bytes, prefixed by the type of the key KeyMaterial []byte `protobuf:"bytes,2,opt,name=key_material,json=keyMaterial,proto3" json:"key_material,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
KeyInfo 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
func (*KeyInfo) Descriptor ¶
func (*KeyInfo) GetKeyIdentifier ¶
func (*KeyInfo) GetKeyMaterial ¶
func (*KeyInfo) ProtoMessage ¶
func (*KeyInfo) ProtoMessage()
func (*KeyInfo) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *KeyInfo) XXX_DiscardUnknown()
func (*KeyInfo) XXX_Marshal ¶ added in v1.4.0
func (*KeyInfo) XXX_Unmarshal ¶ added in v1.4.0
type MSPConfig ¶
type MSPConfig struct { // Type holds the type of the MSP; the default one would // be of type FABRIC implementing an X.509 based provider Type int32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` // Config is MSP dependent configuration info Config []byte `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MSPConfig collects all the configuration information for an MSP. The Config field should be unmarshalled in a way that depends on the Type
func (*MSPConfig) Descriptor ¶
func (*MSPConfig) ProtoMessage ¶
func (*MSPConfig) ProtoMessage()
func (*MSPConfig) VariablyOpaqueFieldProto ¶
func (*MSPConfig) VariablyOpaqueFields ¶
func (*MSPConfig) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MSPConfig) XXX_DiscardUnknown()
func (*MSPConfig) XXX_Marshal ¶ added in v1.4.0
func (*MSPConfig) XXX_Unmarshal ¶ added in v1.4.0
type MSPIdentityAnonymity ¶ added in v1.2.0
type MSPIdentityAnonymity struct { AnonymityType MSPIdentityAnonymity_MSPIdentityAnonymityType `` /* 152-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MSPIdentityAnonymity can be used to enforce an identity to be anonymous or nominal.
func (*MSPIdentityAnonymity) Descriptor ¶ added in v1.2.0
func (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)
func (*MSPIdentityAnonymity) GetAnonymityType ¶ added in v1.2.0
func (m *MSPIdentityAnonymity) GetAnonymityType() MSPIdentityAnonymity_MSPIdentityAnonymityType
func (*MSPIdentityAnonymity) ProtoMessage ¶ added in v1.2.0
func (*MSPIdentityAnonymity) ProtoMessage()
func (*MSPIdentityAnonymity) Reset ¶ added in v1.2.0
func (m *MSPIdentityAnonymity) Reset()
func (*MSPIdentityAnonymity) String ¶ added in v1.2.0
func (m *MSPIdentityAnonymity) String() string
func (*MSPIdentityAnonymity) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MSPIdentityAnonymity) XXX_DiscardUnknown()
func (*MSPIdentityAnonymity) XXX_Marshal ¶ added in v1.4.0
func (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MSPIdentityAnonymity) XXX_Merge ¶ added in v1.4.0
func (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)
func (*MSPIdentityAnonymity) XXX_Size ¶ added in v1.4.0
func (m *MSPIdentityAnonymity) XXX_Size() int
func (*MSPIdentityAnonymity) XXX_Unmarshal ¶ added in v1.4.0
func (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error
type MSPIdentityAnonymity_MSPIdentityAnonymityType ¶ added in v1.2.0
type MSPIdentityAnonymity_MSPIdentityAnonymityType int32
const ( MSPIdentityAnonymity_NOMINAL MSPIdentityAnonymity_MSPIdentityAnonymityType = 0 MSPIdentityAnonymity_ANONYMOUS MSPIdentityAnonymity_MSPIdentityAnonymityType = 1 )
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor ¶ added in v1.2.0
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor() ([]byte, []int)
func (MSPIdentityAnonymity_MSPIdentityAnonymityType) String ¶ added in v1.2.0
func (x MSPIdentityAnonymity_MSPIdentityAnonymityType) String() string
type MSPPrincipal ¶
type MSPPrincipal struct { // Classification describes the way that one should process // Principal. An Classification value of "ByOrganizationUnit" reflects // that "Principal" contains the name of an organization this MSP // handles. A Classification value "ByIdentity" means that // "Principal" contains a specific identity. Default value // denotes that Principal contains one of the groups by // default supported by all MSPs ("admin" or "member"). PrincipalClassification MSPPrincipal_Classification `` /* 164-byte string literal not displayed */ // Principal completes the policy principal definition. For the default // principal types, Principal can be either "Admin" or "Member". // For the ByOrganizationUnit/ByIdentity values of Classification, // PolicyPrincipal acquires its value from an organization unit or // identity, respectively. // For the Combined Classification type, the Principal is a marshalled // CombinedPrincipal. Principal []byte `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MSPPrincipal aims to represent an MSP-centric set of identities. In particular, this structure allows for definition of
- a group of identities that are member of the same MSP
- a group of identities that are member of the same organization unit in the same MSP
- a group of identities that are administering a specific MSP
- a specific identity
Expressing these groups is done given two fields of the fields below
- 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
func (*MSPPrincipal) Descriptor ¶
func (*MSPPrincipal) Descriptor() ([]byte, []int)
func (*MSPPrincipal) GetPrincipal ¶
func (m *MSPPrincipal) GetPrincipal() []byte
func (*MSPPrincipal) GetPrincipalClassification ¶
func (m *MSPPrincipal) GetPrincipalClassification() MSPPrincipal_Classification
func (*MSPPrincipal) ProtoMessage ¶
func (*MSPPrincipal) ProtoMessage()
func (*MSPPrincipal) Reset ¶
func (m *MSPPrincipal) Reset()
func (*MSPPrincipal) String ¶
func (m *MSPPrincipal) String() string
func (*MSPPrincipal) VariablyOpaqueFieldProto ¶
func (mp *MSPPrincipal) VariablyOpaqueFieldProto(name string) (proto.Message, error)
func (*MSPPrincipal) VariablyOpaqueFields ¶
func (mp *MSPPrincipal) VariablyOpaqueFields() []string
func (*MSPPrincipal) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MSPPrincipal) XXX_DiscardUnknown()
func (*MSPPrincipal) XXX_Marshal ¶ added in v1.4.0
func (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MSPPrincipal) XXX_Merge ¶ added in v1.4.0
func (dst *MSPPrincipal) XXX_Merge(src proto.Message)
func (*MSPPrincipal) XXX_Size ¶ added in v1.4.0
func (m *MSPPrincipal) XXX_Size() int
func (*MSPPrincipal) XXX_Unmarshal ¶ added in v1.4.0
func (m *MSPPrincipal) XXX_Unmarshal(b []byte) error
type MSPPrincipal_Classification ¶
type MSPPrincipal_Classification int32
const ( MSPPrincipal_ROLE MSPPrincipal_Classification = 0 // one of a member of MSP network, and the one of an // administrator of an MSP network MSPPrincipal_ORGANIZATION_UNIT MSPPrincipal_Classification = 1 // groupping of entities, per MSP affiliation // E.g., this can well be represented by an MSP's // Organization unit MSPPrincipal_IDENTITY MSPPrincipal_Classification = 2 // identity MSPPrincipal_ANONYMITY MSPPrincipal_Classification = 3 // an identity to be anonymous or nominal. MSPPrincipal_COMBINED MSPPrincipal_Classification = 4 )
func (MSPPrincipal_Classification) EnumDescriptor ¶
func (MSPPrincipal_Classification) EnumDescriptor() ([]byte, []int)
func (MSPPrincipal_Classification) String ¶
func (x MSPPrincipal_Classification) String() string
type MSPRole ¶
type MSPRole struct { // MSPIdentifier represents the identifier of the MSP this principal // refers to MspIdentifier string `protobuf:"bytes,1,opt,name=msp_identifier,json=mspIdentifier" json:"msp_identifier,omitempty"` // MSPRoleType defines which of the available, pre-defined MSP-roles // an identiy should posess inside the MSP with identifier MSPidentifier Role MSPRole_MSPRoleType `protobuf:"varint,2,opt,name=role,enum=common.MSPRole_MSPRoleType" json:"role,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MSPRole 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.
func (*MSPRole) Descriptor ¶
func (*MSPRole) GetMspIdentifier ¶
func (*MSPRole) GetRole ¶
func (m *MSPRole) GetRole() MSPRole_MSPRoleType
func (*MSPRole) ProtoMessage ¶
func (*MSPRole) ProtoMessage()
func (*MSPRole) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MSPRole) XXX_DiscardUnknown()
func (*MSPRole) XXX_Marshal ¶ added in v1.4.0
func (*MSPRole) XXX_Unmarshal ¶ added in v1.4.0
type MSPRole_MSPRoleType ¶
type MSPRole_MSPRoleType int32
const ( MSPRole_MEMBER MSPRole_MSPRoleType = 0 MSPRole_ADMIN MSPRole_MSPRoleType = 1 MSPRole_CLIENT MSPRole_MSPRoleType = 2 MSPRole_PEER MSPRole_MSPRoleType = 3 )
func (MSPRole_MSPRoleType) EnumDescriptor ¶
func (MSPRole_MSPRoleType) EnumDescriptor() ([]byte, []int)
func (MSPRole_MSPRoleType) String ¶
func (x MSPRole_MSPRoleType) String() string
type OrganizationUnit ¶
type OrganizationUnit struct { // MSPIdentifier represents the identifier of the MSP this organization unit // refers to MspIdentifier string `protobuf:"bytes,1,opt,name=msp_identifier,json=mspIdentifier" json:"msp_identifier,omitempty"` // OrganizationUnitIdentifier defines the organizational unit under the // MSP identified with MSPIdentifier OrganizationalUnitIdentifier string `` /* 140-byte string literal not displayed */ // CertifiersIdentifier is the hash of certificates chain of trust // related to this organizational unit CertifiersIdentifier []byte `protobuf:"bytes,3,opt,name=certifiers_identifier,json=certifiersIdentifier,proto3" json:"certifiers_identifier,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
OrganizationUnit 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.
func (*OrganizationUnit) Descriptor ¶
func (*OrganizationUnit) Descriptor() ([]byte, []int)
func (*OrganizationUnit) GetCertifiersIdentifier ¶
func (m *OrganizationUnit) GetCertifiersIdentifier() []byte
func (*OrganizationUnit) GetMspIdentifier ¶
func (m *OrganizationUnit) GetMspIdentifier() string
func (*OrganizationUnit) GetOrganizationalUnitIdentifier ¶
func (m *OrganizationUnit) GetOrganizationalUnitIdentifier() string
func (*OrganizationUnit) ProtoMessage ¶
func (*OrganizationUnit) ProtoMessage()
func (*OrganizationUnit) Reset ¶
func (m *OrganizationUnit) Reset()
func (*OrganizationUnit) String ¶
func (m *OrganizationUnit) String() string
func (*OrganizationUnit) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *OrganizationUnit) XXX_DiscardUnknown()
func (*OrganizationUnit) XXX_Marshal ¶ added in v1.4.0
func (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrganizationUnit) XXX_Merge ¶ added in v1.4.0
func (dst *OrganizationUnit) XXX_Merge(src proto.Message)
func (*OrganizationUnit) XXX_Size ¶ added in v1.4.0
func (m *OrganizationUnit) XXX_Size() int
func (*OrganizationUnit) XXX_Unmarshal ¶ added in v1.4.0
func (m *OrganizationUnit) XXX_Unmarshal(b []byte) error
type SerializedIdemixIdentity ¶ added in v1.1.0
type SerializedIdemixIdentity struct { // nym_x is the X-component of the pseudonym elliptic curve point. // It is a []byte representation of an amcl.BIG // The pseudonym can be seen as a public key of the identity, it is used to verify signatures. NymX []byte `protobuf:"bytes,1,opt,name=nym_x,json=nymX,proto3" json:"nym_x,omitempty"` // nym_y is the Y-component of the pseudonym elliptic curve point. // It is a []byte representation of an amcl.BIG // The pseudonym can be seen as a public key of the identity, it is used to verify signatures. NymY []byte `protobuf:"bytes,2,opt,name=nym_y,json=nymY,proto3" json:"nym_y,omitempty"` // ou contains the organizational unit of the idemix identity Ou []byte `protobuf:"bytes,3,opt,name=ou,proto3" json:"ou,omitempty"` // role contains the role of this identity (e.g., ADMIN or MEMBER) Role []byte `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` // proof contains the cryptographic evidence that this identity is valid Proof []byte `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This 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
func (*SerializedIdemixIdentity) Descriptor ¶ added in v1.1.0
func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)
func (*SerializedIdemixIdentity) GetNymX ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) GetNymX() []byte
func (*SerializedIdemixIdentity) GetNymY ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) GetNymY() []byte
func (*SerializedIdemixIdentity) GetOu ¶ added in v1.2.0
func (m *SerializedIdemixIdentity) GetOu() []byte
func (*SerializedIdemixIdentity) GetProof ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) GetProof() []byte
func (*SerializedIdemixIdentity) GetRole ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) GetRole() []byte
func (*SerializedIdemixIdentity) ProtoMessage ¶ added in v1.1.0
func (*SerializedIdemixIdentity) ProtoMessage()
func (*SerializedIdemixIdentity) Reset ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) Reset()
func (*SerializedIdemixIdentity) String ¶ added in v1.1.0
func (m *SerializedIdemixIdentity) String() string
func (*SerializedIdemixIdentity) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *SerializedIdemixIdentity) XXX_DiscardUnknown()
func (*SerializedIdemixIdentity) XXX_Marshal ¶ added in v1.4.0
func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializedIdemixIdentity) XXX_Merge ¶ added in v1.4.0
func (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)
func (*SerializedIdemixIdentity) XXX_Size ¶ added in v1.4.0
func (m *SerializedIdemixIdentity) XXX_Size() int
func (*SerializedIdemixIdentity) XXX_Unmarshal ¶ added in v1.4.0
func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error
type SerializedIdentity ¶
type SerializedIdentity struct { // The identifier of the associated membership service provider Mspid string `protobuf:"bytes,1,opt,name=mspid" json:"mspid,omitempty"` // the Identity, serialized according to the rules of its MPS IdBytes []byte `protobuf:"bytes,2,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
This struct represents an Identity (with its MSP identifier) to be used to serialize it and deserialize it
func (*SerializedIdentity) Descriptor ¶
func (*SerializedIdentity) Descriptor() ([]byte, []int)
func (*SerializedIdentity) GetIdBytes ¶
func (m *SerializedIdentity) GetIdBytes() []byte
func (*SerializedIdentity) GetMspid ¶
func (m *SerializedIdentity) GetMspid() string
func (*SerializedIdentity) ProtoMessage ¶
func (*SerializedIdentity) ProtoMessage()
func (*SerializedIdentity) Reset ¶
func (m *SerializedIdentity) Reset()
func (*SerializedIdentity) String ¶
func (m *SerializedIdentity) String() string
func (*SerializedIdentity) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *SerializedIdentity) XXX_DiscardUnknown()
func (*SerializedIdentity) XXX_Marshal ¶ added in v1.4.0
func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializedIdentity) XXX_Merge ¶ added in v1.4.0
func (dst *SerializedIdentity) XXX_Merge(src proto.Message)
func (*SerializedIdentity) XXX_Size ¶ added in v1.4.0
func (m *SerializedIdentity) XXX_Size() int
func (*SerializedIdentity) XXX_Unmarshal ¶ added in v1.4.0
func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
type SigningIdentityInfo ¶
type SigningIdentityInfo struct { // PublicSigner carries the public information of the signing // identity. For an X.509 provider this would be represented by // an X.509 certificate PublicSigner []byte `protobuf:"bytes,1,opt,name=public_signer,json=publicSigner,proto3" json:"public_signer,omitempty"` // PrivateSigner denotes a reference to the private key of the // peer's signing identity PrivateSigner *KeyInfo `protobuf:"bytes,2,opt,name=private_signer,json=privateSigner" json:"private_signer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SigningIdentityInfo represents the configuration information related to the signing identity the peer is to use for generating endorsements
func (*SigningIdentityInfo) Descriptor ¶
func (*SigningIdentityInfo) Descriptor() ([]byte, []int)
func (*SigningIdentityInfo) GetPrivateSigner ¶
func (m *SigningIdentityInfo) GetPrivateSigner() *KeyInfo
func (*SigningIdentityInfo) GetPublicSigner ¶
func (m *SigningIdentityInfo) GetPublicSigner() []byte
func (*SigningIdentityInfo) ProtoMessage ¶
func (*SigningIdentityInfo) ProtoMessage()
func (*SigningIdentityInfo) Reset ¶
func (m *SigningIdentityInfo) Reset()
func (*SigningIdentityInfo) String ¶
func (m *SigningIdentityInfo) String() string
func (*SigningIdentityInfo) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *SigningIdentityInfo) XXX_DiscardUnknown()
func (*SigningIdentityInfo) XXX_Marshal ¶ added in v1.4.0
func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SigningIdentityInfo) XXX_Merge ¶ added in v1.4.0
func (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)
func (*SigningIdentityInfo) XXX_Size ¶ added in v1.4.0
func (m *SigningIdentityInfo) XXX_Size() int
func (*SigningIdentityInfo) XXX_Unmarshal ¶ added in v1.4.0
func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error