Documentation
¶
Index ¶
- Constants
- type Config
- type CreateRefreshStateRequest
- type Event
- type EventPublisher
- type GetRefreshStateResponse
- type GetRefreshedCredentialResponse
- type Interact
- type InteractService
- type IssueCredService
- type Service
- func (s *Service) CreateRefreshState(ctx context.Context, req *CreateRefreshStateRequest) (string, error)
- func (s *Service) GetRefreshedCredential(ctx context.Context, presentation *verifiable.Presentation, ...) (*GetRefreshedCredentialResponse, error)
- func (s *Service) RequestRefreshStatus(ctx context.Context, credentialID string, issuer profile.Issuer) (*GetRefreshStateResponse, error)
- type ServiceType
- type VerifiablePresentationRequest
Constants ¶
View Source
const (
ServiceComponent = "RefreshService"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
VcsAPIURL string
TxStore transactionStore1
ClaimsStore claimDataStore
DataProtector dataProtector
PresentationVerifier presentationVerifier
CredentialIssuer credentialIssuer
IssueCredentialService IssueCredService
EventPublisher EventPublisher
EventTopic string
}
type Event ¶
type Event struct {
WebHook string `json:"webHook,omitempty"`
ProfileID string `json:"profileID,omitempty"`
ProfileVersion string `json:"profileVersion,omitempty"`
OrgID string `json:"orgID,omitempty"`
Error string `json:"error,omitempty"`
ErrorCode string `json:"errorCode,omitempty"`
ErrorComponent string `json:"errorComponent,omitempty"`
}
type EventPublisher ¶
type GetRefreshStateResponse ¶
type GetRefreshStateResponse struct {
VerifiablePresentationRequest VerifiablePresentationRequest `json:"verifiablePresentationRequest"`
Challenge string `json:"challenge"`
Domain string `json:"domain"`
RefreshServiceType ServiceType `json:"refreshServiceType"`
}
type GetRefreshedCredentialResponse ¶
type GetRefreshedCredentialResponse struct {
Credential *verifiable.Credential
IssuerURL string
}
type Interact ¶
type Interact struct {
Interact []InteractService `json:"interact"`
}
type InteractService ¶
type IssueCredService ¶
type IssueCredService interface {
IssueCredential(
ctx context.Context,
credential *verifiable.Credential,
profile *profileapi.Issuer,
opts ...issuecredential.Opts,
) (*verifiable.Credential, error)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewRefreshService ¶
func (*Service) CreateRefreshState ¶
func (*Service) GetRefreshedCredential ¶
func (s *Service) GetRefreshedCredential( ctx context.Context, presentation *verifiable.Presentation, issuer profile.Issuer, ) (*GetRefreshedCredentialResponse, error)
func (*Service) RequestRefreshStatus ¶
type ServiceType ¶
type VerifiablePresentationRequest ¶
type VerifiablePresentationRequest struct {
Query presexch.PresentationDefinition `json:"query"`
}
Click to show internal directories.
Click to hide internal directories.