Expand description
Run journals in cobolwork’s evidence format (cobolwork docs/spec/evidence.md §4-6), so one
verifier reads both tools: each record is canonical JSON hashed as
SHA-256(“cobolwork-evidence/v1\n” || record without “hash”), chained by prev and seq, and
each closed run adds its tip to ledger.jsonl. Nothing written holds source text or a secret.
Structs§
Enums§
Constants§
Functions§
- canonical
- Keys sorted by UTF-16 code unit, as JavaScript sorts them, at every depth; no whitespace.
- fields
- Builds the fields of one record:
fields([("dd", "IN".into()), ...]). - iso
- iso_now
- Now, as JavaScript’s Date.prototype.toISOString writes it.
- prepare
- The evidence directory with runs/ and seals/, refusing a link at any of the three, and a directory inside a tree the run reads.
- record_
hash