The library

Seven adversaries plus a baseline, each with a one-sided assertion.

One-sided assertions

Every assertion says what an attacker must not be able to earn. None of them says what a mechanism must pay. That is deliberate: the library constrains exploitation without dictating a design.

scenariothe adversarywhat it proves
honest_baselinehonest minersguards against a vacuous pass
lazy_minersubmits whitespaceempty work earns nothing
weight_copyingcopies a peer byte-for-byteduplicates are not new work
collusion_ringfour hotkeys, one answerpaid per unit of work, not per key
sybil_farmeight hotkeys, one operatorkeys are not a multiplier
stale_replayresubmits last round's answerfreshness is enforced
noise_floodrandom bytes at 5 msspeed does not beat quality

Why the baseline comes first

Every attack assertion is satisfiable by a mechanism that pays nobody. honest_baseline exists to catch exactly that: if it fails, every other PASS in the report is meaningless and the tool says so.

Previous

CI integration

Next

Weight copying