task

package
v0.12.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State added in v0.10.3

type State uint8
const (
	StateInvalid State = iota
	StatePacked
	StateDispatched

	StateProved

	StateOutputted
	StateFailed
)

func (State) String added in v0.10.3

func (s State) String() string

type StateLog added in v0.10.3

type StateLog struct {
	TaskID    uint64
	ProjectID uint64
	State     State
	Comment   string
	Result    []byte
	Signature string
	ProverID  uint64
	CreatedAt time.Time
}

func (*StateLog) SignerAddress added in v0.10.3

func (l *StateLog) SignerAddress(task *Task) (common.Address, error)

type Task added in v0.8.0

type Task struct {
	ID             uint64   `json:"id"`
	ProjectID      uint64   `json:"projectID"`
	ProjectVersion string   `json:"projectVersion"`
	Data           [][]byte `json:"data"`
	ClientID       string   `json:"clientID"`
	Signature      string   `json:"signature"`
}

func (*Task) VerifySignature added in v0.10.3

func (t *Task) VerifySignature(pubkey []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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