Documentation ¶
Index ¶
- Constants
- Variables
- type SigService
- type WalletFactory
- func (f *WalletFactory) ConfigFor(role driver.IdentityRole) ([]*config.Identity, error)
- func (f *WalletFactory) NewIdemixWallet(role driver.IdentityRole, cacheSize int, curveID math.CurveID) (identity.Wallet, error)
- func (f *WalletFactory) NewX509Wallet(role driver.IdentityRole) (identity.Wallet, error)
- func (f *WalletFactory) NewX509WalletIgnoreRemote(role driver.IdentityRole) (identity.Wallet, error)
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 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
Click to show internal directories.
Click to hide internal directories.