msp

package
v0.0.0-...-21e40fe Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

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

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

func (*CombinedPrincipal) Descriptor() ([]byte, []int)

func (*CombinedPrincipal) GetPrincipals

func (m *CombinedPrincipal) GetPrincipals() []*MSPPrincipal

func (*CombinedPrincipal) ProtoMessage

func (*CombinedPrincipal) ProtoMessage()

func (*CombinedPrincipal) Reset

func (m *CombinedPrincipal) Reset()

func (*CombinedPrincipal) String

func (m *CombinedPrincipal) String() string

func (*CombinedPrincipal) XXX_DiscardUnknown

func (m *CombinedPrincipal) XXX_DiscardUnknown()

func (*CombinedPrincipal) XXX_Marshal

func (m *CombinedPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CombinedPrincipal) XXX_Merge

func (dst *CombinedPrincipal) XXX_Merge(src proto.Message)

func (*CombinedPrincipal) XXX_Size

func (m *CombinedPrincipal) XXX_Size() int

func (*CombinedPrincipal) XXX_Unmarshal

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

func (m *FabricCryptoConfig) XXX_DiscardUnknown()

func (*FabricCryptoConfig) XXX_Marshal

func (m *FabricCryptoConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FabricCryptoConfig) XXX_Merge

func (dst *FabricCryptoConfig) XXX_Merge(src proto.Message)

func (*FabricCryptoConfig) XXX_Size

func (m *FabricCryptoConfig) XXX_Size() int

func (*FabricCryptoConfig) XXX_Unmarshal

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

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

func (m *FabricMSPConfig) XXX_DiscardUnknown()

func (*FabricMSPConfig) XXX_Marshal

func (m *FabricMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FabricMSPConfig) XXX_Merge

func (dst *FabricMSPConfig) XXX_Merge(src proto.Message)

func (*FabricMSPConfig) XXX_Size

func (m *FabricMSPConfig) XXX_Size() int

func (*FabricMSPConfig) XXX_Unmarshal

func (m *FabricMSPConfig) XXX_Unmarshal(b []byte) error

type FabricNodeOUs

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

func (*FabricNodeOUs) Descriptor() ([]byte, []int)

func (*FabricNodeOUs) GetClientOuIdentifier

func (m *FabricNodeOUs) GetClientOuIdentifier() *FabricOUIdentifier

func (*FabricNodeOUs) GetEnable

func (m *FabricNodeOUs) GetEnable() bool

func (*FabricNodeOUs) GetPeerOuIdentifier

func (m *FabricNodeOUs) GetPeerOuIdentifier() *FabricOUIdentifier

func (*FabricNodeOUs) ProtoMessage

func (*FabricNodeOUs) ProtoMessage()

func (*FabricNodeOUs) Reset

func (m *FabricNodeOUs) Reset()

func (*FabricNodeOUs) String

func (m *FabricNodeOUs) String() string

func (*FabricNodeOUs) XXX_DiscardUnknown

func (m *FabricNodeOUs) XXX_DiscardUnknown()

func (*FabricNodeOUs) XXX_Marshal

func (m *FabricNodeOUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FabricNodeOUs) XXX_Merge

func (dst *FabricNodeOUs) XXX_Merge(src proto.Message)

func (*FabricNodeOUs) XXX_Size

func (m *FabricNodeOUs) XXX_Size() int

func (*FabricNodeOUs) XXX_Unmarshal

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

func (m *FabricOUIdentifier) XXX_DiscardUnknown()

func (*FabricOUIdentifier) XXX_Marshal

func (m *FabricOUIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FabricOUIdentifier) XXX_Merge

func (dst *FabricOUIdentifier) XXX_Merge(src proto.Message)

func (*FabricOUIdentifier) XXX_Size

func (m *FabricOUIdentifier) XXX_Size() int

func (*FabricOUIdentifier) XXX_Unmarshal

func (m *FabricOUIdentifier) XXX_Unmarshal(b []byte) error

type IdemixMSPConfig

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

func (*IdemixMSPConfig) Descriptor() ([]byte, []int)

func (*IdemixMSPConfig) GetEpoch

func (m *IdemixMSPConfig) GetEpoch() int64

func (*IdemixMSPConfig) GetIpk

func (m *IdemixMSPConfig) GetIpk() []byte

func (*IdemixMSPConfig) GetName

func (m *IdemixMSPConfig) GetName() string

func (*IdemixMSPConfig) GetRevocationPk

func (m *IdemixMSPConfig) GetRevocationPk() []byte

func (*IdemixMSPConfig) GetSigner

func (m *IdemixMSPConfig) GetSigner() *IdemixMSPSignerConfig

func (*IdemixMSPConfig) ProtoMessage

func (*IdemixMSPConfig) ProtoMessage()

func (*IdemixMSPConfig) Reset

func (m *IdemixMSPConfig) Reset()

func (*IdemixMSPConfig) String

func (m *IdemixMSPConfig) String() string

func (*IdemixMSPConfig) XXX_DiscardUnknown

func (m *IdemixMSPConfig) XXX_DiscardUnknown()

func (*IdemixMSPConfig) XXX_Marshal

func (m *IdemixMSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdemixMSPConfig) XXX_Merge

func (dst *IdemixMSPConfig) XXX_Merge(src proto.Message)

func (*IdemixMSPConfig) XXX_Size

func (m *IdemixMSPConfig) XXX_Size() int

func (*IdemixMSPConfig) XXX_Unmarshal

func (m *IdemixMSPConfig) XXX_Unmarshal(b []byte) error

type IdemixMSPSignerConfig

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

func (*IdemixMSPSignerConfig) Descriptor() ([]byte, []int)

func (*IdemixMSPSignerConfig) GetCred

func (m *IdemixMSPSignerConfig) GetCred() []byte

func (*IdemixMSPSignerConfig) GetCredentialRevocationInformation

func (m *IdemixMSPSignerConfig) GetCredentialRevocationInformation() []byte

func (*IdemixMSPSignerConfig) GetEnrollmentId

func (m *IdemixMSPSignerConfig) GetEnrollmentId() string

func (*IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier

func (m *IdemixMSPSignerConfig) GetOrganizationalUnitIdentifier() string

func (*IdemixMSPSignerConfig) GetRole

func (m *IdemixMSPSignerConfig) GetRole() int32

func (*IdemixMSPSignerConfig) GetSk

func (m *IdemixMSPSignerConfig) GetSk() []byte

func (*IdemixMSPSignerConfig) ProtoMessage

func (*IdemixMSPSignerConfig) ProtoMessage()

func (*IdemixMSPSignerConfig) Reset

func (m *IdemixMSPSignerConfig) Reset()

func (*IdemixMSPSignerConfig) String

func (m *IdemixMSPSignerConfig) String() string

func (*IdemixMSPSignerConfig) XXX_DiscardUnknown

func (m *IdemixMSPSignerConfig) XXX_DiscardUnknown()

func (*IdemixMSPSignerConfig) XXX_Marshal

func (m *IdemixMSPSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IdemixMSPSignerConfig) XXX_Merge

func (dst *IdemixMSPSignerConfig) XXX_Merge(src proto.Message)

func (*IdemixMSPSignerConfig) XXX_Size

func (m *IdemixMSPSignerConfig) XXX_Size() int

func (*IdemixMSPSignerConfig) XXX_Unmarshal

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) 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

func (*KeyInfo) XXX_DiscardUnknown

func (m *KeyInfo) XXX_DiscardUnknown()

func (*KeyInfo) XXX_Marshal

func (m *KeyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyInfo) XXX_Merge

func (dst *KeyInfo) XXX_Merge(src proto.Message)

func (*KeyInfo) XXX_Size

func (m *KeyInfo) XXX_Size() int

func (*KeyInfo) XXX_Unmarshal

func (m *KeyInfo) XXX_Unmarshal(b []byte) error

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) 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

func (*MSPConfig) XXX_DiscardUnknown

func (m *MSPConfig) XXX_DiscardUnknown()

func (*MSPConfig) XXX_Marshal

func (m *MSPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MSPConfig) XXX_Merge

func (dst *MSPConfig) XXX_Merge(src proto.Message)

func (*MSPConfig) XXX_Size

func (m *MSPConfig) XXX_Size() int

func (*MSPConfig) XXX_Unmarshal

func (m *MSPConfig) XXX_Unmarshal(b []byte) error

type MSPIdentityAnonymity

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

func (*MSPIdentityAnonymity) Descriptor() ([]byte, []int)

func (*MSPIdentityAnonymity) GetAnonymityType

func (*MSPIdentityAnonymity) ProtoMessage

func (*MSPIdentityAnonymity) ProtoMessage()

func (*MSPIdentityAnonymity) Reset

func (m *MSPIdentityAnonymity) Reset()

func (*MSPIdentityAnonymity) String

func (m *MSPIdentityAnonymity) String() string

func (*MSPIdentityAnonymity) XXX_DiscardUnknown

func (m *MSPIdentityAnonymity) XXX_DiscardUnknown()

func (*MSPIdentityAnonymity) XXX_Marshal

func (m *MSPIdentityAnonymity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MSPIdentityAnonymity) XXX_Merge

func (dst *MSPIdentityAnonymity) XXX_Merge(src proto.Message)

func (*MSPIdentityAnonymity) XXX_Size

func (m *MSPIdentityAnonymity) XXX_Size() int

func (*MSPIdentityAnonymity) XXX_Unmarshal

func (m *MSPIdentityAnonymity) XXX_Unmarshal(b []byte) error

type MSPIdentityAnonymity_MSPIdentityAnonymityType

type MSPIdentityAnonymity_MSPIdentityAnonymityType int32
const (
	MSPIdentityAnonymity_NOMINAL   MSPIdentityAnonymity_MSPIdentityAnonymityType = 0
	MSPIdentityAnonymity_ANONYMOUS MSPIdentityAnonymity_MSPIdentityAnonymityType = 1
)

func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor

func (MSPIdentityAnonymity_MSPIdentityAnonymityType) EnumDescriptor() ([]byte, []int)

func (MSPIdentityAnonymity_MSPIdentityAnonymityType) 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

func (m *MSPPrincipal) XXX_DiscardUnknown()

func (*MSPPrincipal) XXX_Marshal

func (m *MSPPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MSPPrincipal) XXX_Merge

func (dst *MSPPrincipal) XXX_Merge(src proto.Message)

func (*MSPPrincipal) XXX_Size

func (m *MSPPrincipal) XXX_Size() int

func (*MSPPrincipal) XXX_Unmarshal

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

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) 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

func (*MSPRole) XXX_DiscardUnknown

func (m *MSPRole) XXX_DiscardUnknown()

func (*MSPRole) XXX_Marshal

func (m *MSPRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MSPRole) XXX_Merge

func (dst *MSPRole) XXX_Merge(src proto.Message)

func (*MSPRole) XXX_Size

func (m *MSPRole) XXX_Size() int

func (*MSPRole) XXX_Unmarshal

func (m *MSPRole) XXX_Unmarshal(b []byte) error

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

func (m *OrganizationUnit) XXX_DiscardUnknown()

func (*OrganizationUnit) XXX_Marshal

func (m *OrganizationUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrganizationUnit) XXX_Merge

func (dst *OrganizationUnit) XXX_Merge(src proto.Message)

func (*OrganizationUnit) XXX_Size

func (m *OrganizationUnit) XXX_Size() int

func (*OrganizationUnit) XXX_Unmarshal

func (m *OrganizationUnit) XXX_Unmarshal(b []byte) error

type SerializedIdemixIdentity

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

func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int)

func (*SerializedIdemixIdentity) GetNymX

func (m *SerializedIdemixIdentity) GetNymX() []byte

func (*SerializedIdemixIdentity) GetNymY

func (m *SerializedIdemixIdentity) GetNymY() []byte

func (*SerializedIdemixIdentity) GetOu

func (m *SerializedIdemixIdentity) GetOu() []byte

func (*SerializedIdemixIdentity) GetProof

func (m *SerializedIdemixIdentity) GetProof() []byte

func (*SerializedIdemixIdentity) GetRole

func (m *SerializedIdemixIdentity) GetRole() []byte

func (*SerializedIdemixIdentity) ProtoMessage

func (*SerializedIdemixIdentity) ProtoMessage()

func (*SerializedIdemixIdentity) Reset

func (m *SerializedIdemixIdentity) Reset()

func (*SerializedIdemixIdentity) String

func (m *SerializedIdemixIdentity) String() string

func (*SerializedIdemixIdentity) XXX_DiscardUnknown

func (m *SerializedIdemixIdentity) XXX_DiscardUnknown()

func (*SerializedIdemixIdentity) XXX_Marshal

func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializedIdemixIdentity) XXX_Merge

func (dst *SerializedIdemixIdentity) XXX_Merge(src proto.Message)

func (*SerializedIdemixIdentity) XXX_Size

func (m *SerializedIdemixIdentity) XXX_Size() int

func (*SerializedIdemixIdentity) XXX_Unmarshal

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

func (m *SerializedIdentity) XXX_DiscardUnknown()

func (*SerializedIdentity) XXX_Marshal

func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SerializedIdentity) XXX_Merge

func (dst *SerializedIdentity) XXX_Merge(src proto.Message)

func (*SerializedIdentity) XXX_Size

func (m *SerializedIdentity) XXX_Size() int

func (*SerializedIdentity) XXX_Unmarshal

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

func (m *SigningIdentityInfo) XXX_DiscardUnknown()

func (*SigningIdentityInfo) XXX_Marshal

func (m *SigningIdentityInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigningIdentityInfo) XXX_Merge

func (dst *SigningIdentityInfo) XXX_Merge(src proto.Message)

func (*SigningIdentityInfo) XXX_Size

func (m *SigningIdentityInfo) XXX_Size() int

func (*SigningIdentityInfo) XXX_Unmarshal

func (m *SigningIdentityInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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