verification

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 GetAcceptedCredentialClaimStatuses added in v0.1.6

func GetAcceptedCredentialClaimStatuses() []string

func IsValidID

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

Checks whether the ID in the DidDoc is a valid string

func VerifyCredentialHash

func VerifyCredentialHash(credHash string) bool

func VerifyCredentialProofDates

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

func VerifyCredentialStatusDates

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

func VerifyDocumentProofSignature added in v0.1.7

func VerifyDocumentProofSignature(ssiMsg types.SsiMsg, vm *types.VerificationMethod, signInfo *types.SignInfo) error

VerifyDocumentProofSignature verfies the proof of the SSI Document such as Credential Schema and Credential Status

func VerifySignatureOfAnyController added in v0.1.7

func VerifySignatureOfAnyController(
	didDocMsg types.SsiMsg, VmMap map[string][]*types.ExtendedVerificationMethod,
) error

VerifySignatureOfEveryController verifies any required0 verification8

func VerifySignatureOfEveryController added in v0.1.7

func VerifySignatureOfEveryController(
	didDocMsg types.SsiMsg, VmMap map[string][]*types.ExtendedVerificationMethod,
) error

VerifySignatureOfEveryController verifies every required verification method of every controller

Types

This section is empty.

Jump to

Keyboard shortcuts

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