operationapplier

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

Applier is an operation applier.

func New

New returns a new operation applier for the given protocol.

func (*Applier) Apply

Apply applies the given anchored operation.

type OperationParser

type OperationParser interface {
	ValidateSuffixData(suffixData *model.SuffixDataModel) error
	ValidateDelta(delta *model.DeltaModel) error
	ParseCreateOperation(request []byte, anchor bool) (*model.Operation, error)
	ParseUpdateOperation(request []byte, anchor bool) (*model.Operation, error)
	ParseRecoverOperation(request []byte, anchor bool) (*model.Operation, error)
	ParseDeactivateOperation(request []byte, anchor bool) (*model.Operation, error)
	ParseSignedDataForUpdate(compactJWS string) (*model.UpdateSignedDataModel, error)
	ParseSignedDataForDeactivate(compactJWS string) (*model.DeactivateSignedDataModel, error)
	ParseSignedDataForRecover(compactJWS string) (*model.RecoverSignedDataModel, error)
}

OperationParser defines the functions for parsing operations.

Jump to

Keyboard shortcuts

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