cslservice

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CSLStore       credentialstatus.CSLVCStore
	ProfileService profileService
	KMSRegistry    kmsRegistry
	Crypto         vcCrypto
	DocumentLoader ld.DocumentLoader
}

type Service

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

func New

func New(cfg *Config) *Service

func (*Service) GetCSLVCWrapper

func (s *Service) GetCSLVCWrapper(ctx context.Context, cslURL string) (*credentialstatus.CSLVCWrapper, error)

func (*Service) SignCSL

func (s *Service) SignCSL(profileID, profileVersion string, csl *verifiable.Credential) ([]byte, error)

func (*Service) UpsertCSLVCWrapper

func (s *Service) UpsertCSLVCWrapper(ctx context.Context, cslURL string, wrapper *credentialstatus.CSLVCWrapper) error

Jump to

Keyboard shortcuts

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