verification

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceTypes = []string{
	"LinkedDomains",
}

Functions

func DuplicateServiceExists

func DuplicateServiceExists(serviceId string, services []*types.Service) bool

func IsValidDidDoc

func IsValidDidDoc(didDoc *types.Did, genesisMethod string, genesisNamespace string) error

Checks whether the DidDoc string is valid

func IsValidDidDocID

func IsValidDidDocID(Id string, method string, namespace string) error

Checks whether the ID in the DidDoc is a valid string

func IsValidDidFragment

func IsValidDidFragment(didUrl string, method string, namespace string) bool

Check for valid DID fragment

func IsValidDidServiceType

func IsValidDidServiceType(sType string) bool

Check Valid DID service type

func IsValidSchemaID

func IsValidSchemaID(schemaId string, authorDid string) error

func ValidateServices

func ValidateServices(services []*types.Service, method string, namespace string) error

Cheks whether the Service is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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