processor

package
v0.10.2-rc2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

func NewProcessor

func NewProcessor(vmHandler VMHandler, project Project, proverPrivateKey *ecdsa.PrivateKey, seqPubkey []byte, proverID uint64) *Processor

func (*Processor) HandleP2PData

func (r *Processor) HandleP2PData(d *p2p.Data, topic *pubsub.Topic)

func (*Processor) HandleProjectProvers

func (r *Processor) HandleProjectProvers(projectID uint64, proverIDs []uint64)

type Project

type Project func(projectID uint64) (*project.Project, error)

type VMHandler

type VMHandler interface {
	Handle(task *task.Task, vmtype vm.Type, code string, expParam string) ([]byte, error)
}

Jump to

Keyboard shortcuts

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