open-standards/jcp/jcp-rs/crates/jcp-cite/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 68cb3c1b13 jcp-cite: the cite example's illustrative retrieval is sealed as an estimate
The `cite` example records a retrieval of 4_200 µJ that no fetch spent
(no document is read) and decided and sealed it as Energy::measured, so
its jcp receipt claimed a hardware reading of work no meter saw.

The cost now comes from `retrieval_cost()`, the citation's figure graded
Estimator with no measured figure; the docs and the first output line say
the retrieval is illustrative. The figure, and so the receipt's cost_uj
and the citation commitment, are unchanged.

tests/cite_example.rs compiles the example in as a module: its cost must
be Estimator with no measured figure, and the receipt sealed over it must
carry energy_provenance "Estimator", decoded from the signed core.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-10 17:47:12 -04:00
..
cite_example.rs jcp-cite: the cite example's illustrative retrieval is sealed as an estimate 2026-10-10 17:47:12 -04:00