Documentation ¶
Index ¶
- func GetKey(newkey bccsp.Key) apicryptosuite.Key
- func GetSuite(bccsp bccsp.BCCSP) apicryptosuite.CryptoSuite
- func NewCredentialManager(orgName, mspConfigPath string, config apiconfig.Config, ...) (apifabclient.CredentialManager, error)
- type CredentialManagerProviderFactory
- type DefaultCryptoSuiteProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKey ¶
func GetKey(newkey bccsp.Key) apicryptosuite.Key
GetKey returns implementation of of cryptosuite.Key
func GetSuite ¶
func GetSuite(bccsp bccsp.BCCSP) apicryptosuite.CryptoSuite
GetSuite returns cryptosuite adaptor for given bccsp.BCCSP implementation
func NewCredentialManager ¶
func NewCredentialManager(orgName, mspConfigPath string, config apiconfig.Config, cryptoProvider apicryptosuite.CryptoSuite) (apifabclient.CredentialManager, error)
NewCredentialManager Constructor for a credential manager. @param {string} orgName - organisation id @returns {CredentialManager} new credential manager
Types ¶
type CredentialManagerProviderFactory ¶
type CredentialManagerProviderFactory struct { defprovider.OrgClientFactory CryptoPath string }
CredentialManagerProviderFactory is will provide custom context factory for SDK
func (*CredentialManagerProviderFactory) NewCredentialManager ¶
func (f *CredentialManagerProviderFactory) NewCredentialManager(orgName string, config apiconfig.Config, cryptoProvider apicryptosuite.CryptoSuite) (fab.CredentialManager, error)
NewCredentialManager returns a new default implementation of the credential manager
type DefaultCryptoSuiteProviderFactory ¶
type DefaultCryptoSuiteProviderFactory struct {
defprovider.DefaultProviderFactory
}
DefaultCryptoSuiteProviderFactory is will provide custom factory default bccsp cryptosuite
func (*DefaultCryptoSuiteProviderFactory) NewCryptoSuiteProvider ¶
func (f *DefaultCryptoSuiteProviderFactory) NewCryptoSuiteProvider(config apiconfig.Config) (apicryptosuite.CryptoSuite, error)
NewCryptoSuiteProvider returns a implementation of factory default bccsp cryptosuite
Click to show internal directories.
Click to hide internal directories.