tms

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubmitter

func NewSubmitter(signingIdentityProvider SigningIdentityProvider, envelopeBroadcaster EnvelopeBroadcaster) *submitter

func NewSubmitterCustomTxID

func NewSubmitterCustomTxID(signingIdentityProvider SigningIdentityProvider, envelopeBroadcaster EnvelopeBroadcaster, txIDCalculator func(nonce, creator []byte) string) *submitter

func NewSubmitterFromFNS

func NewSubmitterFromFNS(fnsp *fabric.NetworkServiceProvider) *submitter

func NewTMSDeployerService

func NewTMSDeployerService(
	ppFetcher *pp.PublicParametersService,
	configService *config.Service,
	nsSubmitter Submitter,
) *deployerService

Types

type DeployerService

type DeployerService interface {
	DeployTMSs() error
	DeployTMS(tmsID token.TMSID) error
	DeployTMSWithPP(tmsID token.TMSID, ppRaw []byte) error
}

func GetTMSDeployerService

func GetTMSDeployerService(sp services.Provider) (DeployerService, error)

type EnvelopeBroadcaster

type EnvelopeBroadcaster interface {
	Broadcast(network, channel string, txID driver.TxID, env *cb.Envelope) error
}

type Signer

type Signer interface {
	Sign(msg []byte) ([]byte, error)
	Serialize() ([]byte, error)
}

type SigningIdentityProvider

type SigningIdentityProvider interface {
	DefaultSigningIdentity(network, channel string) (Signer, error)
	DefaultIdentity(network, channel string) (view.Identity, error)
}

type Submitter

type Submitter interface {
	Submit(network, channel string, tx *protoblocktx.Tx) error
}

Jump to

Keyboard shortcuts

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