Skip to content

Packs / e-signing-public

audit-trail

Hash-chained JSONL audit trail for signing (created, sent, viewed, signed, completed) with document hashes and a verifier.

Install

logicpacks pack use e-signing-public/audit-trail
get_pack e-signing-public/audit-trail

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-pypdfself-hosted-esigndocusign
  • Checks: 4 in outcome/checks.yaml
  • Code: audit.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Evidence of who did what and when, where any edited or deleted entry, or a swapped final PDF, is detected.

Steps

  1. python3 code/audit.py log trail.jsonl created sender@example.com --doc draft.pdf.
  2. Log sent / viewed / signed (with --doc after each change to the PDF) / completed.
  3. python3 code/audit.py verify trail.jsonl --doc final.pdf before sending the completed copy.
  4. Attach the trail (or a rendered certificate of completion) to the final PDF package.

Edge cases

  • Clock skew between machines: use UTC timestamps from one server.
  • The chain proves integrity, not identity; identity comes from the login/email step.

Don'ts

  • Don't store signer IDs, IPs or documents of real clients in this repo.
  • Don't call a typed/drawn stamp a 'digital signature'; it is an electronic signature mark.
  • Don't rewrite a trail to fix a typo; append a correction event.