Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ContextV0 is did configuration context version 0. ContextV0 = "https://identity.foundation/.well-known/contexts/did-configuration-v0.0.jsonld" // ContextV1 is did configuration context version 1. ContextV1 = "https://identity.foundation/.well-known/did-configuration/v1" )
Variables ¶
This section is empty.
Functions ¶
func SetDebugOutput ¶
SetDebugOutput is used to set output of debug logs.
func VerifyDIDAndDomain ¶
func VerifyDIDAndDomain(didConfig []byte, did, domain string, opts ...DIDConfigurationOpt) error
VerifyDIDAndDomain will verify that there is valid domain linkage credential in did configuration for specified did and domain.
Types ¶
type DIDConfigurationOpt ¶
type DIDConfigurationOpt func(opts *didConfigOpts)
DIDConfigurationOpt is the DID Configuration decoding option.
func WithJSONLDDocumentLoader ¶
func WithJSONLDDocumentLoader(documentLoader jsonld.DocumentLoader) DIDConfigurationOpt
WithJSONLDDocumentLoader defines a JSON-LD document loader.
func WithVDRegistry ¶
func WithVDRegistry(didResolver didResolver) DIDConfigurationOpt
WithVDRegistry defines a vdr service.
Click to show internal directories.
Click to hide internal directories.