vm

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(vmEndpoints map[uint64]string) (*Handler, error)

func (*Handler) Handle

func (r *Handler) Handle(tasks []*task.Task, projectConfig *project.Config) ([]byte, error)

type ProofOfMovementBatchCircuit added in v0.26.0

type ProofOfMovementBatchCircuit struct {
	LastPayloadHash [10][32]uints.U8
	LastTimestamp   [10]frontend.Variable
	LastLatitude    [10]frontend.Variable
	LastLongitude   [10]frontend.Variable
	LastSigBytes    [10][64]uints.U8

	CurPayloadHash [10][32]uints.U8
	CurTimestamp   [10]frontend.Variable
	CurLatitude    [10]frontend.Variable
	CurLongitude   [10]frontend.Variable
	CurSigBytes    [10][64]uints.U8

	PubBytes [10][65]uints.U8

	EthAddress [10]frontend.Variable `gnark:",public"`
	IsMoved    frontend.Variable     `gnark:",public"`
}

func (*ProofOfMovementBatchCircuit) Define added in v0.26.0

func (circuit *ProofOfMovementBatchCircuit) Define(api frontend.API) error

type ProofofLivenessCircuit added in v0.24.0

type ProofofLivenessCircuit struct {
	PayloadHash []uints.U8
	Timestamp   frontend.Variable `gnark:",public"`
	PubBytes    []uints.U8        `gnark:",public"`
	SigBytes    []uints.U8
}

func (*ProofofLivenessCircuit) Define added in v0.24.0

func (circuit *ProofofLivenessCircuit) Define(api frontend.API) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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