Event Types
Each operation progresses through a sequence of namespaced events:Choosing a Trail Store
- In-Memory (default)
- JSONL (durable)
Events are stored in memory. Suitable for development and testing. Data is lost on process exit.
- Python
- TypeScript
Event Signing
Provide a signing key to enable HMAC-SHA256 signing. Trailproof signs each event and stores the signature in theTrailEvent:
- Python
- TypeScript
Verifying the Audit Trail
Trailproof links each event to its predecessor using SHA-256 hashes. Callverify_audit_trail() / verifyAuditTrail() to validate the entire hash chain and detect any tampering:
- Python
- TypeScript
Querying the Audit Trail
Use thequery_audit_trail() / queryAuditTrail() method to search events:
- Python
- TypeScript
operation_id in the metadata:
- Python
- TypeScript
TrailEvent Structure
Each event in the audit trail is a TrailproofTrailEvent:
- Python
- TypeScript