resolution

package
v0.0.0-...-ef7a112 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceResolver

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

ServiceResolver is a resolver that can resolve DIDs using a combination of local and universal resolvers.

func NewServiceResolver

func NewServiceResolver(handlerResolver resolution.Resolver, localResolutionMethods []string, universalResolverURL string) (*ServiceResolver, error)

NewServiceResolver creates a new ServiceResolver instance which can resolve DIDs using a combination of local and universal resolvers.

func (*ServiceResolver) Methods

func (sr *ServiceResolver) Methods() []didsdk.Method

func (*ServiceResolver) Resolve

func (sr *ServiceResolver) Resolve(ctx context.Context, did string, opts ...resolution.Option) (*resolution.Result, error)

Resolve resolves a DID using a combination of local and universal resolvers. The ordering is as follows: 1. Try to resolve with the handlers we have, wrapping the resulting DID in resolution result 2. Try to resolve with the local resolver 3. Try to resolve with the universal resolver TODO(gabe) avoid caching DIDs that should be externally resolved https://github.com/fapiper/onchain-access-control/issues/361

Jump to

Keyboard shortcuts

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