resolver

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package resolver introduces a simple interface for interoperability with other DID methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, providers []*Provider) ([]byte, error)

Get the DID document (or the provider's response) for the provided identifier instance.

Types

type Provider

type Provider struct {
	// Method value expected on the identifier instance.
	Method string

	// Network location to retrieve a DID document from. The value can
	// be a template with support for the following variables: DID, Method
	// and Subject. For example:
	// https://did.baidu.com/v1/did/resolve/{{.DID}}
	Endpoint string

	// Protocol used to communicate with the endpoint. Currently, HTTP(S)
	// is supported by submitting GET requests.
	Protocol string
	// contains filtered or unexported fields
}

Provider represents an external system able to return a DID Document on demand.

Jump to

Keyboard shortcuts

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