@me2em/pact
    Preparing search index...

    Function exportJournal

    • 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.

      Parameters

      • events: Event[]

        The journal events in order.

      Returns Uint8Array

      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));