Documentation ¶
Index ¶
- Variables
- func DuplicateServiceExists(serviceId string, services []*types.Service) bool
- func FindPublicKey(signer types.Signer, id string) (ed25519.PublicKey, error)
- func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
- func IsValidDIDArray(didArray []string) bool
- func IsValidDid(did string) error
- func IsValidDidDoc(didDoc *types.Did) string
- func IsValidDidDocID(didDoc *types.Did) bool
- func IsValidDidFragment(didUrl string) bool
- func IsValidDidMethod(method string) bool
- func IsValidDidServiceType(sType string) bool
- func IsValidSchemaID(schemaId string) error
- func MergeUrlWithResource(url string, resource string) string
- func SplitDidUrlIntoDid(didUrl string) (string, string)
- func ValidateServices(services []*types.Service) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceTypes = []string{
"LinkedDomains",
"DIDCommMessaging",
}
Functions ¶
func DuplicateServiceExists ¶ added in v0.0.2
func FindVerificationMethod ¶
func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
func IsValidDIDArray ¶
Check whether the fields whose values are array of DIDs are valid DID
func IsValidDidDoc ¶
Checks whether the DidDoc string is valid
func IsValidDidDocID ¶
Checks whether the ID in the DidDoc is a valid string
func IsValidDidFragment ¶ added in v0.0.2
Check for valid DID fragment
func IsValidDidMethod ¶ added in v0.0.3
Check if the DID Method is valid
func IsValidDidServiceType ¶ added in v0.0.2
Check Valid DID service type
func IsValidSchemaID ¶
func MergeUrlWithResource ¶ added in v0.0.3
func SplitDidUrlIntoDid ¶
func ValidateServices ¶ added in v0.0.2
Cheks whether the Service is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.