utils

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func DuplicateServiceExists added in v0.0.2

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

func FindPublicKey

func FindPublicKey(signer types.Signer, id string) (ed25519.PublicKey, error)

func FindVerificationMethod

func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod

func IsValidDIDArray

func IsValidDIDArray(didArray []string) bool

Check whether the fields whose values are array of DIDs are valid DID

func IsValidDid

func IsValidDid(did string) error

Checks whether the given string is a valid DID

func IsValidDidDoc

func IsValidDidDoc(didDoc *types.Did) string

Checks whether the DidDoc string is valid

func IsValidDidDocID

func IsValidDidDocID(didDoc *types.Did) bool

Checks whether the ID in the DidDoc is a valid string

func IsValidDidFragment added in v0.0.2

func IsValidDidFragment(didUrl string) bool

Check for valid DID fragment

func IsValidDidMethod added in v0.0.3

func IsValidDidMethod(method string) bool

Check if the DID Method is valid

func IsValidDidServiceType added in v0.0.2

func IsValidDidServiceType(sType string) bool

Check Valid DID service type

func IsValidSchemaID

func IsValidSchemaID(schemaId string) error

func MergeUrlWithResource added in v0.0.3

func MergeUrlWithResource(url string, resource string) string

func SplitDidUrlIntoDid

func SplitDidUrlIntoDid(didUrl string) (string, string)

func ValidateServices added in v0.0.2

func ValidateServices(services []*types.Service) 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