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: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a JSON-LD SDK client.

func New

func New(opts ...Option) *Client

New creates new did configuration client.

func (*Client) VerifyDIDAndDomain

func (c *Client) VerifyDIDAndDomain(did, domain string) error

VerifyDIDAndDomain will verify that there is valid domain linkage credential in did configuration for specified did and domain.

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient represents an HTTP client.

type Option

type Option func(opts *Client)

Option configures the did configuration client.

func WithHTTPClient

func WithHTTPClient(httpClient HTTPClient) Option

WithHTTPClient option is for custom http client.

func WithJSONLDDocumentLoader

func WithJSONLDDocumentLoader(documentLoader jsonld.DocumentLoader) Option

WithJSONLDDocumentLoader defines a JSON-LD document loader.

func WithVDRegistry

func WithVDRegistry(didResolver didResolver) Option

WithVDRegistry defines a vdr service.

Jump to

Keyboard shortcuts

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