Documentation ¶
Index ¶
- Constants
- Variables
- func NewPlatformFactory() *platformFactory
- func WithAuditorIdentity() fsc.Option
- func WithAuditorIdentityWithHSM() fsc.Option
- func WithCertifierIdentity() fsc.Option
- func WithDefaultIssuerIdentity() fsc.Option
- func WithDefaultIssuerIdentityWithHSM() fsc.Option
- func WithDefaultOwnerIdentity(driver string) fsc.Option
- func WithIssuerIdentity(label string) fsc.Option
- func WithIssuerIdentityWithHSM(label string) fsc.Option
- func WithOwnerIdentity(driver string, label string) fsc.Option
- type BackedTopology
- type NetworkHandler
- type PF
- type Platform
- func (p *Platform) AddNetworkHandler(label string, nh NetworkHandler)
- func (p *Platform) Cleanup()
- func (p *Platform) FSCNodeKVSDir(peer *sfcnode.Node) string
- func (p *Platform) GenIssuerCryptoMaterial(tmsNetwork string, fscNode string, walletID string) string
- func (p *Platform) GenOwnerCryptoMaterial(tmsNetwork string, fscNode string, walletID string) string
- func (p *Platform) GenerateArtifacts()
- func (p *Platform) GenerateConfigTree()
- func (p *Platform) GenerateExtension(node *sfcnode.Node)
- func (p *Platform) GetBuilder() api2.Builder
- func (p *Platform) GetContext() api2.Context
- func (p *Platform) GetPublicParamsGenerators(driver string) generators.PublicParamsGenerator
- func (p *Platform) GetTopology() *Topology
- func (p *Platform) Load()
- func (p *Platform) Members() []grouper.Member
- func (p *Platform) Name() string
- func (p *Platform) PostRun(load bool)
- func (p *Platform) PublicParameters(tms *topology2.TMS) []byte
- func (p *Platform) PublicParametersDir() string
- func (p *Platform) PublicParametersFile(tms *topology2.TMS) string
- func (p *Platform) SetPublicParamsGenerator(name string, gen generators.PublicParamsGenerator)
- func (p *Platform) StartSession(cmd *exec.Cmd, name string) (*gexec.Session, error)
- func (p *Platform) TokenDir() string
- func (p *Platform) TokenGen(command common.Command) (*gexec.Session, error)
- func (p *Platform) Type() string
- func (p *Platform) UpdatePublicParams(tms *topology2.TMS, publicParams []byte)
- type Topology
- func (t *Topology) AddTMS(fscNodes []*node.Node, backend BackedTopology, channel string, driver string) *topology.TMS
- func (t *Topology) DefaultChannel() string
- func (t *Topology) GetTMSs() []*topology.TMS
- func (t *Topology) Name() string
- func (t *Topology) SetSDK(fscTopology *fsc.Topology, sdk api.SDK)
- func (t *Topology) Type() string
Constants ¶
View Source
const (
DefaultTokenGenPath = "github.com/hyperledger-labs/fabric-token-sdk/cmd/tokengen"
)
View Source
const Extension = `
token:
enabled: true
ttxdb:
persistence:
type: badger
opts:
path: {{ NodeKVSPath }}
`
View Source
const (
TopologyName = "token"
)
Variables ¶
View Source
var (
Drivers = []string{"dlog", "fabtoken"}
)
Functions ¶
func NewPlatformFactory ¶
func NewPlatformFactory() *platformFactory
func WithAuditorIdentity ¶
func WithCertifierIdentity ¶
func WithIssuerIdentity ¶
Types ¶
type BackedTopology ¶
type BackedTopology interface {
Name() string
}
type NetworkHandler ¶
type NetworkHandler interface { GenerateArtifacts(tms *topology2.TMS) GenerateExtension(tms *topology2.TMS, node *sfcnode.Node) string PostRun(load bool, tms *topology2.TMS) GenIssuerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string GenOwnerCryptoMaterial(tms *topology2.TMS, nodeID string, walletID string) string UpdateChaincodePublicParams(tms *topology2.TMS, ppRaw []byte) }
type PF ¶ added in v0.2.0
type Platform ¶
type Platform struct { Context api2.Context Topology *Topology Builder api2.Builder EventuallyTimeout time.Duration PublicParamsGenerators map[string]generators.PublicParamsGenerator NetworkHandlers map[string]NetworkHandler TokenGenPath string ColorIndex int }
func NewPlatform ¶
func (*Platform) AddNetworkHandler ¶
func (p *Platform) AddNetworkHandler(label string, nh NetworkHandler)
func (*Platform) GenIssuerCryptoMaterial ¶
func (*Platform) GenOwnerCryptoMaterial ¶ added in v0.2.0
func (*Platform) GenerateArtifacts ¶
func (p *Platform) GenerateArtifacts()
func (*Platform) GenerateConfigTree ¶
func (p *Platform) GenerateConfigTree()
func (*Platform) GenerateExtension ¶
func (*Platform) GetBuilder ¶
func (*Platform) GetContext ¶
func (*Platform) GetPublicParamsGenerators ¶
func (p *Platform) GetPublicParamsGenerators(driver string) generators.PublicParamsGenerator
func (*Platform) GetTopology ¶ added in v0.2.0
func (*Platform) PublicParametersDir ¶
func (*Platform) PublicParametersFile ¶
func (*Platform) SetPublicParamsGenerator ¶
func (p *Platform) SetPublicParamsGenerator(name string, gen generators.PublicParamsGenerator)
func (*Platform) StartSession ¶
Click to show internal directories.
Click to hide internal directories.