factories

package
v0.2.22-metrics Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(newkey bccsp.Key) coreApi.Key

GetKey returns implementation of of cryptosuite.Key

func GetSuite

func GetSuite(bccsp bccsp.BCCSP) coreApi.CryptoSuite

GetSuite returns cryptosuite adaptor for given bccsp.BCCSP implementation

Types

type CustomCorePkg

type CustomCorePkg struct {
	defcore.ProviderFactory
	ProviderName string
}

CustomCorePkg is will provide custom sdk core pkg

func (*CustomCorePkg) CreateCryptoSuiteProvider

func (f *CustomCorePkg) CreateCryptoSuiteProvider(config core.CryptoSuiteConfig) (core.CryptoSuite, error)

CreateCryptoSuiteProvider returns a implementation of factory default bccsp cryptosuite

func (*CustomCorePkg) CreateInfraProvider

func (f *CustomCorePkg) CreateInfraProvider(config fab.EndpointConfig) (fab.InfraProvider, error)

CreateInfraProvider returns a new custom implementation of fabric primitives

type CustomInfraProvider

type CustomInfraProvider struct {
	*fabpvdr.InfraProvider
}

CustomInfraProvider is will provide custom fabric primitives

func (*CustomInfraProvider) CreateEventService

func (f *CustomInfraProvider) CreateEventService(ctx fab.ClientContext, channelID string, opts ...options.Opt) (fab.EventService, error)

CreateEventService will return nil because the txnsnap will use local event service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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