resolvers

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSenderDID

func GetSenderDID(ctx context.Context) *w3c.DID

GetSenderDID extract the sender's DID from the context. Returns nil if nothing is found.

func WithSenderDID

func WithSenderDID(ctx context.Context, userDID *w3c.DID) context.Context

WithSenderDID puts the user DID in the context

Types

type AgentResolver

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

AgentResolver is a struct that allows to interact with the issuer's agent to get revocation status.

func NewAgentResolver

func NewAgentResolver(config AgentResolverConfig) *AgentResolver

NewAgentResolver returns new agent resolver

func (AgentResolver) Resolve

Resolve is a method to resolve a credential status from an agent.

type AgentResolverConfig

type AgentResolverConfig struct {
	PackageManager   *iden3comm.PackageManager
	CustomHTTPClient *http.Client
}

AgentResolverConfig options for credential status verification

Jump to

Keyboard shortcuts

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