msp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdemixMSP       = "idemix"
	IdemixMSPFolder = "idemix-folder"
	BccspMSP        = "bccsp"
	BccspMSPFolder  = "bccsp-folder"
)

Variables

This section is empty.

Functions

func NewLocalMSPManager

func NewLocalMSPManager(
	sp view2.ServiceProvider,
	config Config,
	signerService SignerService,
	binderService BinderService,
	defaultViewIdentity view.Identity,
	cacheSize int,
) *service

Types

type BinderService

type BinderService interface {
	Bind(longTerm view.Identity, ephemeral view.Identity) error
}

type Config

type Config interface {
	Name() string
	DefaultMSP() string
	MSPs() ([]config.MSP, error)
	TranslatePath(path string) string
}

type ConfigProvider

type ConfigProvider interface {
	driver.ConfigService
}

type Configuration

type Configuration struct {
	ID      string `yaml:"id"`
	MSPType string `yaml:"mspType"`
	MSPID   string `yaml:"mspID"`
	Path    string `yaml:"path"`
}

type DeserializerManager

type DeserializerManager interface {
	AddDeserializer(deserializer sig.Deserializer)
}

type IdentityCache

type IdentityCache struct {
	// contains filtered or unexported fields
}

func NewIdentityCache

func NewIdentityCache(backed IdentityCacheBackendFunc, size int) *IdentityCache

func (*IdentityCache) Identity

func (c *IdentityCache) Identity(opts *driver2.IdentityOptions) (view.Identity, []byte, error)

type IdentityCacheBackendFunc

type IdentityCacheBackendFunc func(opts *driver2.IdentityOptions) (view.Identity, []byte, error)

type MSP

type MSP struct {
	Name         string `yaml:"name,omitempty"`
	Type         string `yaml:"type,omitempty"`
	EnrollmentID string
	GetIdentity  fdriver.GetIdentityFunc
}

type SignerService

type SignerService interface {
	RegisterSigner(identity view.Identity, signer fdriver.Signer, verifier fdriver.Verifier) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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