Documentation
¶
Index ¶
- type Service
- func (s *Service) GenerateAndStoreVINVC(ctx context.Context, vehicleTokenID uint32, vin, countryCode string) error
- func (s *Service) GenerateKeyControlDocument() (json.RawMessage, error)
- func (s *Service) GenerateStatusVC(tokenID uint32) (json.RawMessage, error)
- func (s *Service) GetLatestVC(ctx context.Context, vehicleTokenID uint32) (*verifiable.Credential, error)
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) GenerateKeyControlDocument ¶ added in v0.0.3
func (s *Service) GenerateKeyControlDocument() (json.RawMessage, error)
GenerateKeyControlDocument generates a new control document for sharing public keys.
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.