1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! The verifiable result — *trust the math, not the machine*.
//!
//! A [`FunctionRun`] is the deterministic attestation a host emits for one
//! execution: the workload it ran, the input it ran on, the output it produced,
//! and the resources it consumed — all content-addressed. Because the runtime is
//! deterministic (no ambient nondeterminism, bounded by fuel not wall-clock), two
//! honest hosts running the same workload on the same input produce **identical**
//! attestations. [`corroborate`] compares two and returns whether they agree, so
//! a host that returns a different answer than its peers is caught.
//!
//! S1 ships the attestation + the comparison. Fanning a query across N independent
//! hosts and gathering their attestations is the MATA seam (M6-S2+); the property
//! it relies on — that an honest run is reproducible — lives here.
use ;
/// The deterministic record of one function execution. The fields are exactly
/// what must match across honest hosts; nothing device-dependent (e.g. wall time)
/// is included.
/// The verdict of comparing two attestations of the *same* workload + input.
/// Compare two attestations. Honest runs of the same `(workload, input)` agree on
/// all fields; any divergence (a wrong output, a padded fuel count) disagrees.