driver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 DeserializerManager

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

type Identity

type Identity interface {
	Serialize() ([]byte, error)

	Verify(msg []byte, sig []byte) error
}

Identity refers to the creator of a tx;

type IdentityLoader

type IdentityLoader interface {
	Load(manager Manager, config config.MSP) error
}

type MSP

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

type Manager

type Manager interface {
	AddDeserializer(deserializer sig.Deserializer)
	AddMSP(name string, mspType string, enrollmentID string, idGetter fdriver.GetIdentityFunc)
	Config() Config
	DefaultMSP() string
	SignerService() SignerService
	ServiceProvider() view2.ServiceProvider
	CacheSize() int
	SetDefaultIdentity(id string, defaultIdentity view.Identity, defaultSigningIdentity SigningIdentity)
}

type SignerService

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

type SigningIdentity

type SigningIdentity interface {
	Identity //extends Identity

	Sign(msg []byte) ([]byte, error)
}

SigningIdentity defines the functions necessary to sign an array of bytes; it is needed to sign the commands transmitted to the prover peer service.

Jump to

Keyboard shortcuts

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