vinvc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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