Documentation ¶
Index ¶
- type Config
- type IdentityHubRequest
- type IdentityHubResponse
- type Message
- type MessageResult
- type Service
- func (s *Service) CreateStatusListEntry(ctx context.Context, profileID profileapi.ID, ...) (*credentialstatus.StatusListEntry, error)
- func (s *Service) GetStatusListVC(ctx context.Context, groupID profileapi.ID, listID string) (*credentialstatus.CSL, error)
- func (s *Service) Resolve(ctx context.Context, statusListVCURI string) (*credentialstatus.CSL, error)
- func (s *Service) StoreIssuedCredentialMetadata(ctx context.Context, profileID profileapi.ID, ...) error
- func (s *Service) UpdateVCStatus(ctx context.Context, params credentialstatus.UpdateVCStatusParams) error
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HTTPClient httpClient RequestTokens map[string]string VDR vdrapi.Registry CSLVCStore credentialstatus.CSLVCStore CSLIndexStore credentialstatus.CSLIndexStore CSLManager cslManager VCStatusStore vcStatusStore Crypto vcCrypto ProfileService profileService KMSRegistry kmsRegistry EventPublisher eventPublisher CredentialIssuanceHistoryStore credentialIssuanceHistoryStore EventTopic string DocumentLoader ld.DocumentLoader CMD *cobra.Command ExternalURL string }
type IdentityHubRequest ¶
type IdentityHubResponse ¶
type IdentityHubResponse struct { RequestID string `json:"requestId"` Status *Status `json:"status"` Replies []MessageResult `json:"replies"` }
func (IdentityHubResponse) GetVCBytes ¶
func (i IdentityHubResponse) GetVCBytes(objectID string) ([]byte, error)
type Message ¶
type Message struct { Descriptor map[string]interface{} `json:"descriptor"` Data string `json:"data,omitempty"` }
func (Message) GetObjectID ¶
type MessageResult ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateStatusListEntry ¶
func (s *Service) CreateStatusListEntry( ctx context.Context, profileID profileapi.ID, profileVersion profileapi.Version, credentialID string, ) (*credentialstatus.StatusListEntry, error)
CreateStatusListEntry creates credentialstatus.StatusListEntry for profileID.
func (*Service) GetStatusListVC ¶
func (s *Service) GetStatusListVC( ctx context.Context, groupID profileapi.ID, listID string) (*credentialstatus.CSL, error)
GetStatusListVC returns StatusListVC (credentialstatus.CSL) from underlying cslVCStore. Used for handling public HTTP requests.
func (*Service) Resolve ¶
func (s *Service) Resolve(ctx context.Context, statusListVCURI string) (*credentialstatus.CSL, error)
Resolve resolves statusListVCURI and returns StatusListVC (credentialstatus.CSL). Used for credential verification. statusListVCURI might be either HTTP URL or DID URL.
func (*Service) StoreIssuedCredentialMetadata ¶
func (s *Service) StoreIssuedCredentialMetadata( ctx context.Context, profileID profileapi.ID, profileVersion profileapi.Version, metadata *credentialstatus.CredentialMetadata, ) error
StoreIssuedCredentialMetadata stores credentialstatus.CredentialMetadata for each issued credential.
func (*Service) UpdateVCStatus ¶
func (s *Service) UpdateVCStatus(ctx context.Context, params credentialstatus.UpdateVCStatusParams) error
UpdateVCStatus fetches credential based on UpdateVCStatusParams.CredentialID and updates associated credentialstatus.CSL to UpdateVCStatusParams.DesiredStatus.