task

package
v0.23.7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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

type Task struct {
	ID             common.Hash    `json:"id"`
	ProjectID      *big.Int       `json:"projectID"`
	ProjectVersion string         `json:"projectVersion,omitempty"`
	DeviceID       common.Address `json:"deviceID"`
	Payload        []byte         `json:"payload"`
	Signature      []byte         `json:"signature,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