didvalidator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 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 did operations and sidetree rules.

func New

func New() *Validator

New creates a new did validator.

func (*Validator) IsValidOriginalDocument

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

IsValidOriginalDocument verifies that the given payload is a valid Sidetree specific did 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