Documentation ¶
Index ¶
- Constants
- Variables
- func GetVerificationMethodType(vmType string) string
- func IsDidFragment(prefix string, didUrl string) bool
- func IsFullDidFragment(prefix string, didUrl string) bool
- func IsNotValidDIDArray(prefix string, array []string) (bool, int)
- func IsNotValidDIDArrayFragment(prefix string, array []string) (bool, int)
- func IsValidDid(prefix string, did string) bool
- func IsValidDidServiceType(sType string) bool
- func ResolveId(did string, methodId string) string
- func SplitDidUrlIntoDidAndFragment(didUrl string) (string, string)
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 IsDidFragment ¶ added in v0.2.7
func IsFullDidFragment ¶ added in v0.2.7
func IsNotValidDIDArray ¶ added in v0.2.7
func IsNotValidDIDArrayFragment ¶ added in v0.2.7
func IsValidDid ¶ added in v0.2.7
func IsValidDidServiceType ¶ added in v0.2.7
func SplitDidUrlIntoDidAndFragment ¶ added in v0.2.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.