Documentation
¶
Index ¶
- Constants
- func Endorsers(tms *topology.TMS) []string
- func IsFSCEndorsementEnabled(tms *topology.TMS) bool
- func IsFabricCA(tms *topology.TMS) bool
- func SetOrgs(tms *topology.TMS, orgs ...string) *topology.TMS
- func WithEndorserRole() node.Option
- func WithFSCEndorsers(tms *topology.TMS, endorsers ...string) *topology.TMS
- func WithFabricCA(tms *topology.TMS)
- type Backend
- type Entry
- type NetworkHandler
- func (p *NetworkHandler) Cleanup()
- func (p *NetworkHandler) GenIssuerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string
- func (p *NetworkHandler) GenOwnerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string, useCAIfAvailable bool) (res token.IdentityConfiguration)
- func (p *NetworkHandler) GenerateArtifacts(tms *topology2.TMS)
- func (p *NetworkHandler) GenerateCryptoMaterial(cmGenerator generators.CryptoMaterialGenerator, tms *topology2.TMS, ...)
- func (p *NetworkHandler) GenerateExtension(tms *topology2.TMS, node *sfcnode.Node, uniqueName string) string
- func (p *NetworkHandler) GetEntry(tms *topology2.TMS) *Entry
- func (p *NetworkHandler) PostRun(load bool, tms *topology2.TMS)
- func (p *NetworkHandler) SetCryptoMaterialGenerator(driver string, generator generators.CryptoMaterialGenerator)
- func (p *NetworkHandler) UpdatePublicParams(tms *topology2.TMS, ppRaw []byte)
Constants ¶
View Source
const (
Extension = `` /* 4270-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
func IsFSCEndorsementEnabled ¶ added in v0.4.0
IsFSCEndorsementEnabled returns true if the FSC-based endorsement for the given TMS is enabled, false otherwise
func IsFabricCA ¶ added in v0.3.0
IsFabricCA return true if this TMS requires to enable Fabric-CA
func WithEndorserRole ¶ added in v0.4.0
WithEndorserRole tells the backed that a node with this option plays the role of endorser
func WithFSCEndorsers ¶ added in v0.4.0
WithFSCEndorsers tells the backend to use FSC-based endorsement for the passed TMS using the given FSC endorsers identifiers
func WithFabricCA ¶ added in v0.3.0
WithFabricCA notifies the backend to activate fabric-ca for the issuance of identities
Types ¶
type NetworkHandler ¶
type NetworkHandler struct { common2.NetworkHandler Entries map[string]*Entry Backend Backend }
func NewNetworkHandler ¶
func NewNetworkHandler(tokenPlatform common2.TokenPlatform, builder api2.Builder, backend Backend) *NetworkHandler
func (*NetworkHandler) Cleanup ¶ added in v0.3.0
func (p *NetworkHandler) Cleanup()
func (*NetworkHandler) GenIssuerCryptoMaterial ¶
func (*NetworkHandler) GenOwnerCryptoMaterial ¶ added in v0.2.0
func (p *NetworkHandler) GenOwnerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string, useCAIfAvailable bool) (res token.IdentityConfiguration)
func (*NetworkHandler) GenerateArtifacts ¶
func (p *NetworkHandler) GenerateArtifacts(tms *topology2.TMS)
func (*NetworkHandler) GenerateCryptoMaterial ¶
func (p *NetworkHandler) GenerateCryptoMaterial(cmGenerator generators.CryptoMaterialGenerator, tms *topology2.TMS, node *sfcnode.Node)
func (*NetworkHandler) GenerateExtension ¶
func (*NetworkHandler) SetCryptoMaterialGenerator ¶
func (p *NetworkHandler) SetCryptoMaterialGenerator(driver string, generator generators.CryptoMaterialGenerator)
func (*NetworkHandler) UpdatePublicParams ¶ added in v0.4.0
func (p *NetworkHandler) UpdatePublicParams(tms *topology2.TMS, ppRaw []byte)
Click to show internal directories.
Click to hide internal directories.