docvalidator

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: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
}

Validator is responsible for validating document operations and Sidetree rules.

func New

func New() *Validator

New creates a new document validator.

func (*Validator) IsValidOriginalDocument

func (v *Validator) 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 (*Validator) IsValidPayload

func (v *Validator) 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