utils

package
v0.5.0-dev6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeyJwk       = "PublicKeyJwk"
	PublicKeyMultibase = "PublicKeyMultibase"
)

Variables

View Source
var DidForbiddenSymbolsRegexp, _ = regexp.Compile(`^[^#?&/\\]+$`)
View Source
var ServiceType = []string{
	"LinkedDomains",
	"DIDCommMessaging",
}
View Source
var VerificationMethodType = map[string]string{
	"JsonWebKey2020":             PublicKeyJwk,
	"Ed25519VerificationKey2020": PublicKeyMultibase,
}

Functions

func GetVerificationMethodType added in v0.2.7

func GetVerificationMethodType(vmType string) string

func IsDidFragment added in v0.2.7

func IsDidFragment(prefix string, didUrl string) bool

func IsFullDidFragment added in v0.2.7

func IsFullDidFragment(prefix string, didUrl string) bool

func IsNotValidDIDArray added in v0.2.7

func IsNotValidDIDArray(prefix string, array []string) (bool, int)

func IsNotValidDIDArrayFragment added in v0.2.7

func IsNotValidDIDArrayFragment(prefix string, array []string) (bool, int)

func IsValidDid added in v0.2.7

func IsValidDid(prefix string, did string) bool

func IsValidDidServiceType added in v0.2.7

func IsValidDidServiceType(sType string) bool

func ResolveId added in v0.2.7

func ResolveId(did string, methodId string) string

func SplitDidUrlIntoDidAndFragment added in v0.2.7

func SplitDidUrlIntoDidAndFragment(didUrl string) (string, string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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