Documentation ¶
Index ¶
- func NewSecureIdentity(pathToKeyAndCert, mspID, pathToLib, PIN, label string) (secureSigningID msp.SigningIdentity, err error)
- type ProviderFactory
- func (p ProviderFactory) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)
- func (p ProviderFactory) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)
- func (p ProviderFactory) CreateSigningManager(cryptoProvider core.CryptoSuite) (core.SigningManager, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSecureIdentity ¶
func NewSecureIdentity(pathToKeyAndCert, mspID, pathToLib, PIN, label string) ( secureSigningID msp.SigningIdentity, err error)
NewSecureIdentity creates an identity instance to do signing operation with PKCS11 interface pathToLib: the path to PKCS11 library file, e.g. /usr/local/lib/softhsm/libsofthsm2.so PIN: the user PIN
Types ¶
type ProviderFactory ¶
type ProviderFactory struct{}
func NewProviderFactory ¶
func NewProviderFactory() *ProviderFactory
func (ProviderFactory) CreateCryptoSuiteProvider ¶
func (p ProviderFactory) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)
func (ProviderFactory) CreateInfraProvider ¶
func (p ProviderFactory) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)
func (ProviderFactory) CreateSigningManager ¶
func (p ProviderFactory) CreateSigningManager(cryptoProvider core.CryptoSuite) (core.SigningManager, error)
Click to show internal directories.
Click to hide internal directories.