Documentation
¶
Index ¶
- Constants
- Variables
- func DuplicateServiceExists(serviceId string, services []*types.Service) bool
- func HasAtleastOneTrueSigner(s []types.ValidDid) types.ValidDid
- func IsValidDidFragment(didUrl string, method string, namespace string) bool
- func IsValidDidServiceType(sType string) bool
- func IsValidID(Id string, namespace string, docType string) error
- func ValidateDidDocument(didDoc *types.Did, genesisNamespace string) error
- func ValidateServices(services []*types.Service, method string, namespace string) error
- func VerifyCredentialHash(credHash string) bool
- func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error
- func VerifyCredentialStatusDates(issuanceDate time.Time, expirationDate time.Time) error
- func VerifyDidDeactivate(metadata *types.Metadata, id string) error
Constants ¶
View Source
const DidMethod string = "hid"
Variables ¶
View Source
var AcceptedCredStatuses = []string{
"Live",
"Suspended",
"Revoked",
"Expired",
}
Acceptable Credential Status. Ref: https://github.com/hypersign-protocol/hid-node/discussions/141#discussioncomment-2825349
View Source
var ServiceTypes = []string{
"LinkedDomains",
}
Functions ¶
func DuplicateServiceExists ¶
func HasAtleastOneTrueSigner ¶ added in v0.1.0
func IsValidDidFragment ¶
Check for valid DID fragment
func IsValidDidServiceType ¶
Check Valid DID service type
func ValidateDidDocument ¶ added in v0.1.0
Checks whether the DidDoc string is valid
func ValidateServices ¶
Cheks whether the Service is valid
func VerifyCredentialHash ¶ added in v0.0.7
func VerifyCredentialProofDates ¶ added in v0.1.3
func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error
func VerifyCredentialStatusDates ¶ added in v0.1.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.