Help us shape the future of Go! Take the 2026 Go Developer Survey

didconfig

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

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 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