Exports the journal: JCS(event) per line, LF-terminated (D47, Р8). Byte-exact — full sig[] preserved (B-8), so replicas exchange identical artifacts regardless of signature-set differences.
sig[]
The journal events in order.
UTF-8 bytes of the NDJSON export (empty for an empty journal); the last line is always LF-terminated.
await fs.writeFile('pact.journal', exportJournal(events)); Copy
await fs.writeFile('pact.journal', exportJournal(events));
Exports the journal: JCS(event) per line, LF-terminated (D47, Р8). Byte-exact — full
sig[]preserved (B-8), so replicas exchange identical artifacts regardless of signature-set differences.