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