@pwngh/economy-lab
    Preparing search index...

    Type Alias AuditChainReport

    What verifyAuditChain reports; mirrors the ledger prover's report shape.

    type AuditChainReport = {
        count: number;
        firstBreak:
            | {
                line: number;
                reason: "malformed"
                | "broken-link"
                | "tampered-hash";
            }
            | null;
        intact: boolean;
    }
    Index
    count: number

    Records verified before the break (all of them when intact).

    firstBreak:
        | {
            line: number;
            reason: "malformed"
            | "broken-link"
            | "tampered-hash";
        }
        | null

    Type Declaration

    • { line: number; reason: "malformed" | "broken-link" | "tampered-hash" }
      • line: number

        1-indexed line number of the first record that fails.

      • reason: "malformed" | "broken-link" | "tampered-hash"
    • null
    intact: boolean