msp

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package msp is a generated protocol buffer package.

It is generated from these files:

msp/identities.proto
msp/msp_config.proto
msp/msp_principal.proto

It has these top-level messages:

SerializedIdentity
SerializedIdemixIdentity
MSPConfig
FabricMSPConfig
FabricCryptoConfig
IdemixMSPConfig
IdemixMSPSignerConfig
SigningIdentityInfo
KeyInfo
FabricOUIdentifier
FabricNodeOUs
MSPPrincipal
OrganizationUnit
MSPRole
MSPIdentityAnonymity
CombinedPrincipal

Index

Constants

This section is empty.

Variables

View Source
var MSPIdentityAnonymity_MSPIdentityAnonymityType_name = map[int32]string{
	0: "NOMINAL",
	1: "ANONYMOUS",
}
View Source
var MSPIdentityAnonymity_MSPIdentityAnonymityType_value = map[string]int32{
	"NOMINAL":   0,
	"ANONYMOUS": 1,
}
View Source
var MSPPrincipal_Classification_name = map[int32]string{
	0: "ROLE",
	1: "ORGANIZATION_UNIT",
	2: "IDENTITY",
	3: "ANONYMITY",
	4: "COMBINED",
}
View Source
var MSPPrincipal_Classification_value = map[string]int32{
	"ROLE":              0,
	"ORGANIZATION_UNIT": 1,
	"IDENTITY":          2,
	"ANONYMITY":         3,
	"COMBINED":          4,
}
View Source
var MSPRole_MSPRoleType_name = map[int32]string{
	0: "MEMBER",
	1: "ADMIN",
	2: "CLIENT",
	3: "PEER",
}
View Source
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"`
}

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

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 */
}

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

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"`
}

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

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"`
}

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

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 */
}

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

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"`
}

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

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 */
	// is_admin defines whether the default signer is admin or not
	IsAdmin bool `protobuf:"varint,4,opt,name=is_admin,json=isAdmin" json:"is_admin,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 */
}

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) GetIsAdmin added in v1.1.0

func (m *IdemixMSPSignerConfig) GetIsAdmin() bool

func (*IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier added in v1.1.0

func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string

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

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"`
}

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) Descriptor() ([]byte, []int)

func (*KeyInfo) GetKeyIdentifier

func (m *KeyInfo) GetKeyIdentifier() string

func (*KeyInfo) GetKeyMaterial

func (m *KeyInfo) GetKeyMaterial() []byte

func (*KeyInfo) ProtoMessage

func (*KeyInfo) ProtoMessage()

func (*KeyInfo) Reset

func (m *KeyInfo) Reset()

func (*KeyInfo) String

func (m *KeyInfo) String() string

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"`
}

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) Descriptor() ([]byte, []int)

func (*MSPConfig) GetConfig

func (m *MSPConfig) GetConfig() []byte

func (*MSPConfig) GetType

func (m *MSPConfig) GetType() int32

func (*MSPConfig) ProtoMessage

func (*MSPConfig) ProtoMessage()

func (*MSPConfig) Reset

func (m *MSPConfig) Reset()

func (*MSPConfig) String

func (m *MSPConfig) String() string

func (*MSPConfig) VariablyOpaqueFieldProto

func (mc *MSPConfig) VariablyOpaqueFieldProto(name string) (proto.Message, error)

func (*MSPConfig) VariablyOpaqueFields

func (mc *MSPConfig) VariablyOpaqueFields() []string

type MSPIdentityAnonymity added in v1.2.0

type MSPIdentityAnonymity struct {
	AnonymityType MSPIdentityAnonymity_MSPIdentityAnonymityType `` /* 152-byte string literal not displayed */
}

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 (*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

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

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"`
}

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

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

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"`
}

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) Descriptor() ([]byte, []int)

func (*MSPRole) GetMspIdentifier

func (m *MSPRole) GetMspIdentifier() string

func (*MSPRole) GetRole

func (m *MSPRole) GetRole() MSPRole_MSPRoleType

func (*MSPRole) ProtoMessage

func (*MSPRole) ProtoMessage()

func (*MSPRole) Reset

func (m *MSPRole) Reset()

func (*MSPRole) String

func (m *MSPRole) String() string

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"`
}

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

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"`
}

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

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"`
}

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

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"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL