FlowGuard API - v1.2.0-rc.2
    Preparing search index...

    Function getLastChainHash

    • Get the last chain hash from a trail. Used by the audit writer to determine prevHash for the next event.

      Parameters

      • events: Record<string, unknown>[]

        The audit trail events in chronological order.

      Returns string

      The chainHash of the last chained event, or GENESIS_HASH if none.