fabric

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FabconnectConfigKey is a sub-key in the config to contain all the ethconnect specific config,
	FabconnectConfigKey = "fabconnect"

	// FabconnectConfigDefaultChannel is the default Fabric channel to use if no "ledger" is specified in requests
	FabconnectConfigDefaultChannel = "channel"
	// FabconnectConfigChaincode is the Fabric Firefly chaincode deployed to the Firefly channels
	FabconnectConfigChaincode = "chaincode"
	// FabconnectConfigSigner is the signer identity used to subscribe to FireFly chaincode events
	FabconnectConfigSigner = "signer"
	// FabconnectConfigTopic is the websocket listen topic that the node should register on, which is important if there are multiple
	// nodes using a single fabconnect
	FabconnectConfigTopic = "topic"
	// FabconnectConfigBatchSize is the batch size to configure on event streams, when auto-defining them
	FabconnectConfigBatchSize = "batchSize"
	// FabconnectConfigBatchTimeout is the batch timeout to configure on event streams, when auto-defining them
	FabconnectConfigBatchTimeout = "batchTimeout"
	// FabconnectConfigSkipEventstreamInit disables auto-configuration of event streams
	FabconnectConfigSkipEventstreamInit = "skipEventstreamInit"
	// FabconnectPrefixShort is used in the query string in requests to ethconnect
	FabconnectPrefixShort = "prefixShort"
	// FabconnectPrefixLong is used in HTTP headers in requests to ethconnect
	FabconnectPrefixLong = "prefixLong"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fabric

type Fabric struct {
	// contains filtered or unexported fields
}

func (*Fabric) Capabilities

func (f *Fabric) Capabilities() *blockchain.Capabilities

func (*Fabric) Init

func (f *Fabric) Init(ctx context.Context, prefix config.Prefix, callbacks blockchain.Callbacks) (err error)

func (*Fabric) InitPrefix

func (f *Fabric) InitPrefix(prefix config.Prefix)

func (*Fabric) Name

func (f *Fabric) Name() string

func (*Fabric) ResolveSigningKey

func (f *Fabric) ResolveSigningKey(ctx context.Context, signingKeyInput string) (string, error)

func (*Fabric) Start

func (f *Fabric) Start() error

func (*Fabric) SubmitBatchPin

func (f *Fabric) SubmitBatchPin(ctx context.Context, operationID *fftypes.UUID, ledgerID *fftypes.UUID, signingKey string, batch *blockchain.BatchPin) error

Jump to

Keyboard shortcuts

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