resolver

package
v0.0.0-...-a5ce5ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMethod = errors.New("unknown did method")
)

Functions

This section is empty.

Types

type DNSDIDResolver

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

func NewDNSDIDResolver

func NewDNSDIDResolver() (*DNSDIDResolver, error)

func (*DNSDIDResolver) Resolve

func (d *DNSDIDResolver) Resolve(ctx context.Context, name string) (string, error)

type Resolver

type Resolver struct{}

func (*Resolver) Resolve

func (r *Resolver) Resolve(did w3cdid.URL) (*w3cdid.Document, error)

Resolve resolves a public DID ID via any supported DID method

func (*Resolver) ResolveContext

func (r *Resolver) ResolveContext(ctx context.Context, did w3cdid.URL) (*w3cdid.Document, error)

Jump to

Keyboard shortcuts

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