fabric

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTokenChaincode                    = "github.com/hyperledger-labs/fabric-token-sdk/token/services/network/fabric/tcc/main"
	DefaultTokenChaincodeParamsReplaceSuffix = "/token/services/network/fabric/tcc/params.go"
)
View Source
const Extension = `` /* 3200-byte string literal not displayed */

Variables

This section is empty.

Functions

func SetOrgs

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

Types

type Entry

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

type NetworkHandler

type NetworkHandler struct {
	TokenPlatform                     tokenPlatform
	TokenChaincodePath                string
	TokenChaincodeParamsReplaceSuffix string
	Entries                           map[string]*Entry
	CryptoMaterialGenerators          map[string]generators.CryptoMaterialGenerator

	EventuallyTimeout time.Duration
	ColorIndex        int
}

func NewNetworkHandler

func NewNetworkHandler(tokenPlatform tokenPlatform, builder api2.Builder) *NetworkHandler

func (*NetworkHandler) Fabric

func (p *NetworkHandler) Fabric(tms *topology2.TMS) fabricPlatform

func (*NetworkHandler) GenIssuerCryptoMaterial

func (p *NetworkHandler) GenIssuerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string

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) 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) PrepareTCC

func (p *NetworkHandler) PrepareTCC(tms *topology3.TMS, orgs []string) (*topology.ChannelChaincode, uint16)

func (*NetworkHandler) SetCryptoMaterialGenerator

func (p *NetworkHandler) SetCryptoMaterialGenerator(driver string, generator generators.CryptoMaterialGenerator)

func (*NetworkHandler) TCCCtor

func (p *NetworkHandler) TCCCtor(tms *topology3.TMS) string

func (*NetworkHandler) TokenChaincodeServerAddr

func (p *NetworkHandler) TokenChaincodeServerAddr(port uint16) string

type TCC

type TCC struct {
	Chaincode *topology.ChannelChaincode
}

Jump to

Keyboard shortcuts

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