Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + func BuildIdentityConfigFromOptions(opts ...interface{}) (msp.IdentityConfig, error) + func ConfigFromBackend(coreBackend ...core.ConfigBackend) (msp.IdentityConfig, error) + func IsIdentityConfigFullyOverridden(c *IdentityConfigOptions) bool + func NewFileCertStore(cryptoConfigMSPPath string) (core.KVStore, error) + func NewFileKeyStore(cryptoConfigMSPPath string) (core.KVStore, error) + func UpdateMissingOptsWithDefaultConfig(c *IdentityConfigOptions, d msp.IdentityConfig) msp.IdentityConfig + type CAClientImpl struct + func NewCAClient(orgName string, ctx contextApi.Client, opts ...CAClientOption) (*CAClientImpl, error) + func (c *CAClientImpl) AddAffiliation(request *api.AffiliationRequest) (*api.AffiliationResponse, error) + func (c *CAClientImpl) CreateIdentity(request *api.IdentityRequest) (*api.IdentityResponse, error) + func (c *CAClientImpl) Enroll(request *api.EnrollmentRequest) error + func (c *CAClientImpl) GetAffiliation(affiliation, caname string) (*api.AffiliationResponse, error) + func (c *CAClientImpl) GetAllAffiliations(caname string) (*api.AffiliationResponse, error) + func (c *CAClientImpl) GetAllIdentities(caname string) ([]*api.IdentityResponse, error) + func (c *CAClientImpl) GetCAInfo() (*api.GetCAInfoResponse, error) + func (c *CAClientImpl) GetIdentity(id, caname string) (*api.IdentityResponse, error) + func (c *CAClientImpl) ModifyAffiliation(request *api.ModifyAffiliationRequest) (*api.AffiliationResponse, error) + func (c *CAClientImpl) ModifyIdentity(request *api.IdentityRequest) (*api.IdentityResponse, error) + func (c *CAClientImpl) Reenroll(request *api.ReenrollmentRequest) error + func (c *CAClientImpl) Register(request *api.RegistrationRequest) (string, error) + func (c *CAClientImpl) RemoveAffiliation(request *api.AffiliationRequest) (*api.AffiliationResponse, error) + func (c *CAClientImpl) RemoveIdentity(request *api.RemoveIdentityRequest) (*api.IdentityResponse, error) + func (c *CAClientImpl) Revoke(request *api.RevocationRequest) (*api.RevocationResponse, error) + type CAClientOption func(*caClientOption) error + func WithCAInstance(caID string) CAClientOption + type CAConfig struct + CAName string + GRPCOptions map[string]interface{} + ID string + Registrar msp.EnrollCredentials + TLSCACerts endpoint.MutualTLSConfig + URL string + type CertFileUserStore struct + func NewCertFileUserStore(path string) (*CertFileUserStore, error) + func NewCertFileUserStore1(store core.KVStore) (*CertFileUserStore, error) + func (s *CertFileUserStore) Delete(key msp.IdentityIdentifier) error + func (s *CertFileUserStore) Load(key msp.IdentityIdentifier) (*msp.UserData, error) + func (s *CertFileUserStore) Store(user *msp.UserData) error + type ClientConfig struct + CredentialStore msp.CredentialStoreType + CryptoConfig msp.CCType + Logging logApi.LoggingType + Organization string + TLSCerts ClientTLSConfig + type ClientTLSConfig struct + Client endpoint.TLSKeyPair + SystemCertPool bool + type IdentityConfig struct + func (c *IdentityConfig) CAClientCert(caID string) ([]byte, bool) + func (c *IdentityConfig) CAClientKey(caID string) ([]byte, bool) + func (c *IdentityConfig) CAConfig(caID string) (*msp.CAConfig, bool) + func (c *IdentityConfig) CAKeyStorePath() string + func (c *IdentityConfig) CAServerCerts(caID string) ([][]byte, bool) + func (c *IdentityConfig) Client() *msp.ClientConfig + func (c *IdentityConfig) CredentialStorePath() string + func (c *IdentityConfig) TLSCACertPool() commtls.CertPool + type IdentityConfigOptions struct + type IdentityManager struct + func NewIdentityManager(orgName string, userStore msp.UserStore, cryptoSuite core.CryptoSuite, ...) (*IdentityManager, error) + func (mgr *IdentityManager) CreateSigningIdentity(opts ...msp.SigningIdentityOption) (msp.SigningIdentity, error) + func (mgr *IdentityManager) GetSigningIdentity(id string) (msp.SigningIdentity, error) + func (mgr *IdentityManager) GetUser(username string) (*User, error) + func (mgr *IdentityManager) NewUser(userData *msp.UserData) (*User, error) + type MatchConfig struct + IgnoreEndpoint bool + MappedHost string + MappedName string + Pattern string + SSLTargetOverrideURLSubstitutionExp string + URLSubstitutionExp string + type MemoryKeyStore struct + func NewMemoryKeyStore(password []byte) *MemoryKeyStore + func (s *MemoryKeyStore) GetKey(ski []byte) (bccsp.Key, error) + func (s *MemoryKeyStore) ReadOnly() bool + func (s *MemoryKeyStore) StoreKey(key bccsp.Key) error + type MemoryUserStore struct + func NewMemoryUserStore() *MemoryUserStore + func (s *MemoryUserStore) Load(id msp.IdentityIdentifier) (*msp.UserData, error) + func (s *MemoryUserStore) Store(user *msp.UserData) error + type User struct + func (u *User) EnrollmentCertificate() []byte + func (u *User) Identifier() *msp.IdentityIdentifier + func (u *User) PrivateKey() core.Key + func (u *User) PublicVersion() msp.Identity + func (u *User) Serialize() ([]byte, error) + func (u *User) Sign(msg []byte) ([]byte, error) + func (u *User) Verify(msg []byte, sig []byte) error