verification

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 DuplicateServiceExists(serviceId string, services []*types.Service) bool

func HasAtleastOneTrueSigner added in v0.1.0

func HasAtleastOneTrueSigner(s []types.ValidDid) types.ValidDid

func IsValidDidFragment

func IsValidDidFragment(didUrl string, method string, namespace string) bool

Check for valid DID fragment

func IsValidDidServiceType

func IsValidDidServiceType(sType string) bool

Check Valid DID service type

func IsValidID added in v0.0.7

func IsValidID(Id string, namespace string, docType string) error

Checks whether the ID in the DidDoc is a valid string

func ValidateDidDocument added in v0.1.0

func ValidateDidDocument(didDoc *types.Did, genesisNamespace string) error

Checks whether the DidDoc string is valid

func ValidateServices

func ValidateServices(services []*types.Service, method string, namespace string) error

Cheks whether the Service is valid

func VerifyCredentialHash added in v0.0.7

func VerifyCredentialHash(credHash string) bool

func VerifyCredentialProofDates added in v0.1.3

func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error

func VerifyCredentialStatusDates added in v0.1.3

func VerifyCredentialStatusDates(issuanceDate time.Time, expirationDate time.Time) error

func VerifyDidDeactivate added in v0.1.3

func VerifyDidDeactivate(metadata *types.Metadata, id string) error

Check the Deactivate status of DID

Types

This section is empty.

Jump to

Keyboard shortcuts

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