Versions in this module Expand all Collapse all v1 v1.2.0 Aug 30, 2023 Changes in this version + var ErrUserNotFound = errors.New("user not found") + type CAConfig struct + CAName string + GRPCOptions map[string]interface{} + ID string + Registrar EnrollCredentials + TLSCAClientCert []byte + TLSCAClientKey []byte + TLSCAServerCerts [][]byte + URL string + type CCType struct + Path string + type ClientConfig struct + CredentialStore CredentialStoreType + CryptoConfig CCType + Logging logApi.LoggingType + Organization string + TLSCert []byte + TLSKey []byte + type Context interface + type CredentialStoreType struct + CryptoStore struct{ ... } + Path string + type EnrollCredentials struct + EnrollID string + EnrollSecret string + type Identity interface + EnrollmentCertificate func() []byte + Identifier func() *IdentityIdentifier + Serialize func() ([]byte, error) + Verify func(msg []byte, sig []byte) error + type IdentityConfig interface + CAClientCert func(caID string) ([]byte, bool) + CAClientKey func(caID string) ([]byte, bool) + CAConfig func(caID string) (*CAConfig, bool) + CAKeyStorePath func() string + CAServerCerts func(caID string) ([][]byte, bool) + Client func() *ClientConfig + CredentialStorePath func() string + TLSCACertPool func() commtls.CertPool + type IdentityIdentifier struct + ID string + MSPID string + type IdentityManager interface + CreateSigningIdentity func(ops ...SigningIdentityOption) (SigningIdentity, error) + GetSigningIdentity func(name string) (SigningIdentity, error) + type IdentityManagerProvider interface + IdentityManager func(orgName string) (IdentityManager, bool) + type IdentityOption struct + Cert []byte + PrivateKey []byte + type PrivKeyKey struct + ID string + MSPID string + SKI []byte + type Providers interface + IdentityConfig func() IdentityConfig + UserStore func() UserStore + type SigningIdentity interface + PrivateKey func() core.Key + PublicVersion func() Identity + Sign func(msg []byte) ([]byte, error) + type SigningIdentityOption func(*IdentityOption) error + func WithCert(cert []byte) SigningIdentityOption + func WithPrivateKey(key []byte) SigningIdentityOption + type UserData struct + EnrollmentCertificate []byte + ID string + MSPID string + type UserStore interface + Load func(IdentityIdentifier) (*UserData, error) + Store func(*UserData) error