Documentation
¶
Index ¶
- Constants
- Variables
- func DocumentProofTypeCheck(inputProofType string, signers []types.Signer, vmId string) error
- 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
- 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 DidMethod string = "hid"
View Source
const EcdsaSecp256k1VerificationKey2019 = "EcdsaSecp256k1VerificationKey2019"
View Source
const Ed25519VerificationKey2020 = "Ed25519VerificationKey2020"
Supported Verification Method Types
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",
}
View Source
var VerificationKeySignatureMap = map[string]string{
"Ed25519VerificationKey2020": "Ed25519Signature2020",
"EcdsaSecp256k1VerificationKey2019": "EcdsaSecp256k1Signature2019",
}
Mapping between Verification Key and its corresponding Signature
Functions ¶
func DocumentProofTypeCheck ¶
func DuplicateServiceExists ¶
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.