msp

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OwnerMSPID is the default MSP ID for the owner wallet
	OwnerMSPID = "OwnerMSPID"
	// IssuerMSPID is the default MSP ID for the issuer wallet
	IssuerMSPID = "IssuerMSPID"
	// AuditorMSPID is the default MSP ID for the auditor wallet
	AuditorMSPID = "AuditorMSPID"
	// CertifierMSPID is the default MSP ID for the certifier wallet
	CertifierMSPID = "CertifierMSPID"
)

Variables

RoleToMSPID maps the role to the MSP ID

Functions

This section is empty.

Types

type SigService

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

func NewSigService

func NewSigService(sigService *view.SigService) *SigService

func (*SigService) IsMe

func (s *SigService) IsMe(identity view2.Identity) bool

func (*SigService) RegisterSigner

func (s *SigService) RegisterSigner(identity view2.Identity, signer api2.Signer, verifier api2.Verifier) error

type WalletFactory

type WalletFactory struct {
	SP                     view.ServiceProvider
	NetworkID              string
	ConfigManager          config.Manager
	FSCIdentity            view2.Identity
	NetworkDefaultIdentity view2.Identity
	SignerService          common.SignerService
	BinderService          common.BinderService
	KVS                    common.KVS
	DeserializerManager    common.DeserializerManager
	// contains filtered or unexported fields
}

WalletFactory is the factory for creating wallets, idemix and x509

func NewWalletFactory

func NewWalletFactory(
	sp view.ServiceProvider,
	networkID string,
	configManager config.Manager,
	fscIdentity view2.Identity,
	networkDefaultIdentity view2.Identity,
	signerService common.SignerService,
	binderService common.BinderService,
	kvs common.KVS,
	deserializerManager common.DeserializerManager,
	ignoreRemote bool,
) *WalletFactory

NewWalletFactory creates a new WalletFactory

func (*WalletFactory) ConfigFor

func (f *WalletFactory) ConfigFor(role driver.IdentityRole) ([]*config.Identity, error)

ConfigFor returns the configured identities for the passed role

func (*WalletFactory) NewIdemixWallet

func (f *WalletFactory) NewIdemixWallet(role driver.IdentityRole, cacheSize int, curveID math.CurveID) (identity.Wallet, error)

NewIdemixWallet creates a new Idemix wallet

func (*WalletFactory) NewX509Wallet

func (f *WalletFactory) NewX509Wallet(role driver.IdentityRole) (identity.Wallet, error)

NewX509Wallet creates a new X509 wallet

func (*WalletFactory) NewX509WalletIgnoreRemote added in v0.3.0

func (f *WalletFactory) NewX509WalletIgnoreRemote(role driver.IdentityRole) (identity.Wallet, error)

NewX509WalletIgnoreRemote creates a new X509 wallet treating the remote wallets as local

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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