pom

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityAPI

type IdentityAPI interface {
	GetVehicleInfo(ctx context.Context, vehicleDID cloudevent.ERC721DID) (*models.VehicleInfo, error)
}

IdentityAPI defines the interface for identity operations.

type Issuer

type Issuer interface {
	CreatePOMVC(vinSubject types.POMSubject) ([]byte, error)
}

Issuer defines the interface for creating control documents.

type LatLng

type LatLng struct {
	Latitude  *float64 `json:"latitude"`
	Longitude *float64 `json:"longitude"`
}

type Service

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

func NewService

func NewService(identityAPI IdentityAPI, vcRepo VCRepo, issuer Issuer, vehicleContractAddress string, chainID int64) (*Service, error)

func (*Service) CreatePOMVC

func (s *Service) CreatePOMVC(ctx context.Context, tokenID uint32) error

CreatePOMVC generates a Proof of Movement VC.

type VCRepo

type VCRepo interface {
	StorePOMVC(ctx context.Context, vehicleDID, producerDID string, vinvc json.RawMessage) error
}

VCRepo defines the interface for manging VC storage.

Jump to

Keyboard shortcuts

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