Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service manages and retrieves fingerprint messages.
func New ¶
func New(chConn clickhouse.Conn, objGetter service.ObjectGetter, issuer *verifiable.Issuer, bucketName, vinvcDataType string, revokedList []uint32) *Service
New creates a new instance of Service.
func (*Service) GenerateAndStoreVINVC ¶
func (s *Service) GenerateAndStoreVINVC(ctx context.Context, vehicleTokenID uint32, vin, countryCode string) error
GenerateAndStoreVINVC generates a new VIN VC and stores it in S3.
func (*Service) GenerateStatusVC ¶
func (s *Service) GenerateStatusVC(tokenID uint32) (json.RawMessage, error)
GenerateStatusVC generates a new status VC.
func (*Service) GetLatestVC ¶
func (s *Service) GetLatestVC(ctx context.Context, vehicleTokenID uint32) (*verifiable.Credential, error)
GetLatestVC fetches the latest fingerprint message from S3.
Click to show internal directories.
Click to hide internal directories.