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 ¶
View Source
var RoleToMSPID = map[driver.IdentityRole]string{ driver.OwnerRole: OwnerMSPID, driver.IssuerRole: IssuerMSPID, driver.AuditorRole: AuditorMSPID, driver.CertifierRole: CertifierMSPID, }
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) RegisterSigner ¶
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 }
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, ) *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) (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
Click to show internal directories.
Click to hide internal directories.