fabric

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Extension = `` /* 4270-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Endorsers added in v0.4.0

func Endorsers(tms *topology.TMS) []string

func IsFSCEndorsementEnabled added in v0.4.0

func IsFSCEndorsementEnabled(tms *topology.TMS) bool

IsFSCEndorsementEnabled returns true if the FSC-based endorsement for the given TMS is enabled, false otherwise

func IsFabricCA added in v0.3.0

func IsFabricCA(tms *topology.TMS) bool

IsFabricCA return true if this TMS requires to enable Fabric-CA

func SetOrgs

func SetOrgs(tms *topology.TMS, orgs ...string) *topology.TMS

func WithEndorserRole added in v0.4.0

func WithEndorserRole() node.Option

WithEndorserRole tells the backed that a node with this option plays the role of endorser

func WithFSCEndorsers added in v0.4.0

func WithFSCEndorsers(tms *topology.TMS, endorsers ...string) *topology.TMS

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

func WithFabricCA(tms *topology.TMS)

WithFabricCA notifies the backend to activate fabric-ca for the issuance of identities

Types

type Backend added in v0.4.0

type Backend interface {
	PrepareNamespace(tms *topology2.TMS)
	UpdatePublicParams(tms *topology2.TMS, raw []byte)
}

type Entry

type Entry struct {
	TMS     *topology2.TMS
	CA      common2.CA
	Wallets map[string]*generators.Wallets
}

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 (p *NetworkHandler) GenIssuerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string

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 (p *NetworkHandler) GenerateExtension(tms *topology2.TMS, node *sfcnode.Node, uniqueName string) string

func (*NetworkHandler) GetEntry

func (p *NetworkHandler) GetEntry(tms *topology2.TMS) *Entry

func (*NetworkHandler) PostRun

func (p *NetworkHandler) PostRun(load bool, tms *topology2.TMS)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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