Documentation ¶
Index ¶
- func ValidateNs(ns string) error
- type BackedTopology
- type Chaincode
- type Options
- func (o *Options) Auditor() bool
- func (o *Options) Certifier() bool
- func (o *Options) Endorser() bool
- func (o *Options) IsRemoteOwner(id string) bool
- func (o *Options) IsUseHSMForAuditor() bool
- func (o *Options) IsUseHSMForIssuer(label string) bool
- func (o *Options) Issuers() []string
- func (o *Options) Owners() []string
- func (o *Options) SetAuditor(v bool)
- func (o *Options) SetCertifier(v bool)
- func (o *Options) SetEndorser(v bool)
- func (o *Options) SetIssuers(ids []string)
- func (o *Options) SetOwners(ids []string)
- func (o *Options) SetRemoteOwner(id string)
- func (o *Options) UseHSMForAuditor()
- func (o *Options) UseHSMForIssuer(label string)
- type TMS
- func (t *TMS) AddAuditor(auditor *node.Node) *TMS
- func (t *TMS) AddCertifier(certifier *node.Node) *TMS
- func (t *TMS) AddIssuer(issuer *node.Node) *TMS
- func (t *TMS) AddNode(custodian *node.Node)
- func (t *TMS) ID() string
- func (t *TMS) SetNamespace(namespace string) *TMS
- func (t *TMS) SetTokenGenPublicParams(publicParamsGenArgs ...string)
- type TokenTopology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackedTopology ¶
type BackedTopology interface {
Name() string
}
type Options ¶
type Options struct {
Mapping map[string]interface{}
}
func (*Options) IsRemoteOwner ¶ added in v0.3.0
IsRemoteOwner returns true if the passed owner wallet identifier is marked as remote
func (*Options) IsUseHSMForAuditor ¶
func (*Options) IsUseHSMForIssuer ¶
func (*Options) SetAuditor ¶
func (*Options) SetCertifier ¶
func (*Options) SetEndorser ¶ added in v0.4.0
func (*Options) SetIssuers ¶
func (*Options) SetRemoteOwner ¶ added in v0.3.0
SetRemoteOwner marks the passed owner wallet identifier as remote
func (*Options) UseHSMForAuditor ¶
func (o *Options) UseHSMForAuditor()
func (*Options) UseHSMForIssuer ¶
type TMS ¶
type TMS struct { Network string Channel string Namespace string Driver string PublicParamsGenArgs []string Auditors []string Certifiers []string Issuers []string TokenTopology TokenTopology `yaml:"-"` FSCNodes []*node.Node `yaml:"-"` BackendTopology BackedTopology `yaml:"-"` BackendParams map[string]interface{} }
func (*TMS) SetNamespace ¶
SetNamespace sets the namespace of the TMS
func (*TMS) SetTokenGenPublicParams ¶
type TokenTopology ¶
type TokenTopology interface { // GetTMSs returns the list of TMSs in the topology GetTMSs() []*TMS }
TokenTopology models the topology of the token network
Click to show internal directories.
Click to hide internal directories.