fabtoken

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCryptoTemplate = `` /* 617-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoMaterialGenerator

type CryptoMaterialGenerator struct {
	TokenPlatform     generators.TokenPlatform
	EventuallyTimeout time.Duration
	ColorIndex        int
	Builder           *components.Builder
}

func NewCryptoMaterialGenerator

func NewCryptoMaterialGenerator(tokenPlatform generators.TokenPlatform, builder api.Builder) *CryptoMaterialGenerator

func (*CryptoMaterialGenerator) Cryptogen

func (d *CryptoMaterialGenerator) Cryptogen(command common.Command) (*gexec.Session, error)

func (*CryptoMaterialGenerator) Generate added in v0.3.0

func (d *CryptoMaterialGenerator) Generate(tms *topology.TMS, n *node.Node, wallet string, names ...string) []generators.Identity

func (*CryptoMaterialGenerator) GenerateArtifacts

func (d *CryptoMaterialGenerator) GenerateArtifacts(output string)

func (*CryptoMaterialGenerator) GenerateAuditorIdentities

func (d *CryptoMaterialGenerator) GenerateAuditorIdentities(tms *topology.TMS, n *node.Node, auditors ...string) []generators.Identity

func (*CryptoMaterialGenerator) GenerateCertifierIdentities

func (d *CryptoMaterialGenerator) GenerateCertifierIdentities(tms *topology.TMS, n *node.Node, certifiers ...string) []generators.Identity

func (*CryptoMaterialGenerator) GenerateCryptoConfig

func (d *CryptoMaterialGenerator) GenerateCryptoConfig(output string, layout *Layout)

func (*CryptoMaterialGenerator) GenerateIssuerIdentities

func (d *CryptoMaterialGenerator) GenerateIssuerIdentities(tms *topology.TMS, n *node.Node, issuers ...string) []generators.Identity

func (*CryptoMaterialGenerator) GenerateOwnerIdentities

func (d *CryptoMaterialGenerator) GenerateOwnerIdentities(tms *topology.TMS, n *node.Node, owners ...string) []generators.Identity

func (*CryptoMaterialGenerator) NextColor

func (d *CryptoMaterialGenerator) NextColor() string

func (*CryptoMaterialGenerator) Setup

func (d *CryptoMaterialGenerator) Setup(tms *topology.TMS) (string, error)

func (*CryptoMaterialGenerator) StartSession

func (d *CryptoMaterialGenerator) StartSession(cmd *exec.Cmd, name string) (*gexec.Session, error)

type FSCPlatform

type FSCPlatform interface {
	PeerOrgs() []*node.Organization
}

type Layout

type Layout struct {
	Orgs  []ftopology.Organization
	Peers []Peer
}

func (*Layout) PeerOrgs

func (l *Layout) PeerOrgs() []ftopology.Organization

func (*Layout) PeersInOrg

func (l *Layout) PeersInOrg(orgName string) []Peer

type Peer

type Peer struct {
	Name         string
	Organization string
}

Jump to

Keyboard shortcuts

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