validator

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(p *protocol.Protocol) error

Validate validates the parameters on the given protococol

Types

type FileIdxValidator

type FileIdxValidator struct {
	*docvalidator.Validator
}

FileIdxValidator validates the file index Sidetree document

func NewFileIdxValidator

func NewFileIdxValidator(store docvalidator.OperationStoreClient) *FileIdxValidator

NewFileIdxValidator returns a new file index document validator

func (*FileIdxValidator) IsValidOriginalDocument

func (v *FileIdxValidator) IsValidOriginalDocument(payload []byte) error

IsValidOriginalDocument verifies that the given payload is a valid Sidetree specific document that can be accepted by the Sidetree create operation.

func (*FileIdxValidator) IsValidPayload

func (v *FileIdxValidator) IsValidPayload(payload []byte) error

IsValidPayload verifies that the given payload is a valid Sidetree specific payload that can be accepted by the Sidetree update operations

Jump to

Keyboard shortcuts

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