Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + const AttributeIndexEnrollmentId + const AttributeIndexOU + const AttributeIndexRevocationHandle + const AttributeIndexRole + const AttributeNameEnrollmentId + const AttributeNameOU + const AttributeNameRevocationHandle + const AttributeNameRole + const IdemixConfigDirMsp + const IdemixConfigDirUser + const IdemixConfigFileIssuerPublicKey + const IdemixConfigFileRevocationPublicKey + const IdemixConfigFileSigner + const MSPv1_0 + const MSPv1_1 + const MSPv1_3 + const MSPv1_4_3 + func GetIdemixMspConfig(dir string, ID string) (*msp.MSPConfig, error) + func GetRoleMaskFromIdemixRole(role Role) int + func ProviderTypeToString(id ProviderType) string + type IdemixSigningIdentity struct + Cred []byte + NymKey bccsp.Key + UserKey bccsp.Key + func (id *IdemixSigningIdentity) GetPublicVersion() Identity + func (id *IdemixSigningIdentity) Sign(msg []byte) ([]byte, error) + type Idemixidentity struct + NymPublicKey bccsp.Key + OU *m.OrganizationUnit + Role *m.MSPRole + func (id *Idemixidentity) Anonymous() bool + func (id *Idemixidentity) ExpiresAt() time.Time + func (id *Idemixidentity) GetIdentifier() *IdentityIdentifier + func (id *Idemixidentity) GetMSPIdentifier() string + func (id *Idemixidentity) GetOrganizationalUnits() []*OUIdentifier + func (id *Idemixidentity) SatisfiesPrincipal(principal *m.MSPPrincipal) error + func (id *Idemixidentity) Serialize() ([]byte, error) + func (id *Idemixidentity) Validate() error + func (id *Idemixidentity) Verify(msg []byte, sig []byte) error + type Idemixmsp struct + func (id *Idemixmsp) IsWellFormed(identity *m.SerializedIdentity) error + func (msp *Idemixmsp) DeserializeIdentity(serializedID []byte) (Identity, error) + func (msp *Idemixmsp) DeserializeIdentityInternal(serializedID []byte) (Identity, error) + func (msp *Idemixmsp) GetDefaultSigningIdentity() (SigningIdentity, error) + func (msp *Idemixmsp) GetIdentifier() (string, error) + func (msp *Idemixmsp) GetTLSIntermediateCerts() [][]byte + func (msp *Idemixmsp) GetTLSRootCerts() [][]byte + func (msp *Idemixmsp) GetType() ProviderType + func (msp *Idemixmsp) GetVersion() MSPVersion + func (msp *Idemixmsp) SatisfiesPrincipal(id Identity, principal *m.MSPPrincipal) error + func (msp *Idemixmsp) Setup(conf1 *m.MSPConfig) error + func (msp *Idemixmsp) Validate(id Identity) error + type Identity interface + Anonymous func() bool + ExpiresAt func() time.Time + GetIdentifier func() *IdentityIdentifier + GetMSPIdentifier func() string + GetOrganizationalUnits func() []*OUIdentifier + SatisfiesPrincipal func(principal *msp.MSPPrincipal) error + Serialize func() ([]byte, error) + Validate func() error + Verify func(msg []byte, sig []byte) error + type IdentityDeserializer interface + DeserializeIdentity func(serializedIdentity []byte) (Identity, error) + IsWellFormed func(identity *msp.SerializedIdentity) error + type IdentityIdentifier struct + Id string + Mspid string + type MSP interface + GetDefaultSigningIdentity func() (SigningIdentity, error) + GetIdentifier func() (string, error) + GetTLSIntermediateCerts func() [][]byte + GetTLSRootCerts func() [][]byte + GetType func() ProviderType + GetVersion func() MSPVersion + SatisfiesPrincipal func(id Identity, principal *msp.MSPPrincipal) error + Setup func(config *msp.MSPConfig) error + Validate func(id Identity) error + func NewIdemixMsp(version MSPVersion) (MSP, error) + type MSPManager interface + GetMSPs func() (map[string]MSP, error) + Setup func(msps []MSP) error + type MSPVersion int + type OUIdentifier struct + CertifiersIdentifier []byte + OrganizationalUnitIdentifier string + type ProviderType int + const FABRIC + const IDEMIX + const OTHER + type Role int32 + const ADMIN + const CLIENT + const MEMBER + const PEER + type SigningIdentity interface + GetPublicVersion func() Identity + Sign func(msg []byte) ([]byte, error)