task

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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

type Task struct {
	ID             common.Hash `json:"id"`
	Nonce          uint64      `json:"nonce"`
	ProjectID      *big.Int    `json:"projectID"`
	ProjectVersion string      `json:"projectVersion,omitempty"`
	DevicePubKey   []byte      `json:"devicePublicKey"`
	Payload        []byte      `json:"payload"`
	Signature      []byte      `json:"signature,omitempty"`
	PrevTask       *Task       `json:"previousTask,omitempty"`
}

func (*Task) Hash added in v0.19.0

func (t *Task) Hash() (common.Hash, error)

func (*Task) Sign added in v0.15.2

func (t *Task) Sign(prv *ecdsa.PrivateKey) ([]byte, error)

func (*Task) VerifySignature

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