types

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 Task added in v0.4.1

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.9.0

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

type TaskState added in v0.4.1

type TaskState uint8
const (
	TaskStateInvalid TaskState = iota
	TaskStatePacked
	TaskStateDispatched

	TaskStateProved

	TaskStateOutputted
	TaskStateFailed
)

func (TaskState) String added in v0.4.1

func (s TaskState) String() string

type TaskStateLog added in v0.4.1

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

func (*TaskStateLog) SignerAddress added in v0.10.1

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

Jump to

Keyboard shortcuts

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