Documentation
¶
Index ¶
- Constants
- Variables
- func DocumentProofTypeCheck(inputProofType string, signers []types.Signer, vmId string) error
- func DuplicateServiceExists(serviceId string, services []*types.Service) bool
- func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
- func GetAcceptedCredentialClaimStatuses() []string
- 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
- func VerifyDidSignature(ctx *sdk.Context, didDocBytes []byte, signers []types.Signer, ...) error
- func VerifyDocumentSignature(ctx *sdk.Context, docBytes []byte, signers []types.Signer, ...) error
- func VerifyIdentitySignature(signer types.Signer, signatures []*types.SignInfo, signingInput []byte) (bool, error)
Constants ¶
View Source
const ClaimStatus_expired = "Expired"
View Source
const ClaimStatus_live = "Live"
Acceptable Credential Status. Ref: https://github.com/hypersign-protocol/hid-node/discussions/141#discussioncomment-2825349
View Source
const ClaimStatus_revoked = "Revoked"
View Source
const ClaimStatus_suspended = "Suspended"
View Source
const DidMethod string = "hid"
Variables ¶
View Source
var ServiceTypes = []string{
"LinkedDomains",
}
Functions ¶
func DocumentProofTypeCheck ¶
func DuplicateServiceExists ¶
func FindVerificationMethod ¶ added in v0.1.6
func FindVerificationMethod(vms []*types.VerificationMethod, id string) *types.VerificationMethod
func GetAcceptedCredentialClaimStatuses ¶ added in v0.1.6
func GetAcceptedCredentialClaimStatuses() []string
func IsValidDidFragment ¶
Check for valid DID fragment
func IsValidDidServiceType ¶
Check Valid DID service type
func ValidateDidDocument ¶
Checks whether the DidDoc string is valid
func ValidateServices ¶
Cheks whether the Service is valid
func VerifyCredentialHash ¶
func VerifyCredentialProofDates ¶
func VerifyCredentialProofDates(credProof *types.CredentialProof, credRegistration bool) error
func VerifyDidDeactivate ¶
Check the Deactivate status of DID
func VerifyDidSignature ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.