factories

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

NewCryptoSuiteProvider returns a implementation of factory default bccsp cryptosuite

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL