verifier

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

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

func SetDebugOutput(out io.Writer)

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.

Jump to

Keyboard shortcuts

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