factory

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 22 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{}

Factory implements version 0.1 of the Sidetree protocol.

func New

func New() *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, provider 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