Skip to main content

Module job

Module job 

Source
Expand description

The job envelope: a deterministic, content-addressed specification of work plus its result. “Deterministic” matters — a job is reproducible from its (kind, input, seed), so any node can re-derive or verify it, and a paid job’s outcome is auditable rather than taken on trust.

Structs§

JobSpec
A full job: a content-addressed id, its dispatch mode, and the work payload.

Enums§

JobInput
The actual work payload. Carries the real inputs (content-addressed into the job id), so an executor has everything it needs and a verifier can re-derive the answer.
JobKind
The kind of work a job carries. Each maps to a kernel-class with a CPU reference (§13) and a verification strategy ([super::verify]).
JobMode
How a job is dispatched across the socially-defined network.
JobResult
The result an executor returns.

Functions§

content_id
Deterministic content id (FNV-1a over the structural bytes of the input). Stable across nodes — the basis for content-addressed dispatch and dedup.