factory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory implements version 0.1 of the Sidetree protocol.

func New

func New(noTLS bool) *Factory

New returns a version 1.0 implementation of the Sidetree protocol.

func (*Factory) Create

func (v *Factory) Create(version string, casClient cas.Client, casResolver ctxcommon.CASResolver, opStore ctxcommon.OperationStore,
	_ storage.Provider, sidetreeCfg *config.Sidetree, metrics metricsProvider.Metrics,
) (protocol.Version, error)

Create creates a new protocol version.

Jump to

Keyboard shortcuts

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