From acd7549e468b515bec75cacf9f96731587cfc9f5 Mon Sep 17 00:00:00 2001 From: vbasiuk Date: Fri, 12 Jan 2024 13:19:01 +0200 Subject: [PATCH] add comments --- resolvers/agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resolvers/agent.go b/resolvers/agent.go index a40a339..9c3f84f 100644 --- a/resolvers/agent.go +++ b/resolvers/agent.go @@ -14,9 +14,11 @@ import ( "github.com/pkg/errors" ) +// AgentResolver is a struct that allows to interact with the issuer's agent to get revocation status. type AgentResolver struct { } +// Resolve is a method to resolve a credential status from an agent. func (AgentResolver) Resolve(status verifiable.CredentialStatus, cfg verifiable.CredentialStatusConfig) (out verifiable.RevocationStatus, err error) { revocationBody := protocol.RevocationStatusRequestMessageBody{ RevocationNonce: status.RevocationNonce,