openttt-pot
v0.3.4Cryptographic audit trail for Claude Code workflows — tamper-proof timestamps, IETF TTTPS compliant.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pot_generate
Generate a cryptographic Proof of Time timestamp (draft-helmprotocol-tttps, https://datatracker.ietf.org/doc/draft-helmprotocol-tttps/). For Claude Code workflows: use eventId + prevEventId to build a causal chain. For DeFi: use txHash + chainId + poolAddress. For a spec-conformant draft-08 §3 record binding this attestation to a specific piece of content, also supply contentDigest. One of eventId, txHash, or contentDigest is required.
| Parameter | Type | Description |
|---|---|---|
chainId | number | EVM chain ID (DeFi, e.g. 8453 for Base) |
contentDigest | string | SHA-256 digest (lowercase hex, 64 characters) of the content this record attests to. Computed by the caller — the server never sees the content itself. When supplied, and the local time synthesis me… |
ctxId | string | draft-08 §3.3 context identifier (domain separator for the Commitment). Defaults to a fixed server value if omitted; MAY be public. |
eventId | string | Workflow step identifier (Claude Code). E.g. 'refactor_auth_step1' |
poolAddress | string | DEX pool contract address (DeFi) |
prevEventId | string | Previous step's eventId — links steps into a causal chain |
txHash | string | Transaction hash (DeFi, hex with 0x prefix) |
pot_verify
Verify a Proof of Time using its hash and integrity shards. Returns validity, mode (turbo/full), and timestamp.
| Parameter | Type | Description |
|---|---|---|
chainId * | number | EVM chain ID (e.g. 84532 for Base Sepolia) |
grgShards * | array | Array of hex-encoded cryptographic integrity shards |
poolAddress * | string | Uniswap V4 pool address (0x-prefixed) |
potHash * | string | PoT hash to verify (hex with 0x prefix) |
pot_verify_v08
Verify a draft-helmprotocol-tttps-08 §3 Proof-of-Time record (as produced by pot_generate's potRecordV08 field): recomputes the Commitment and checks the Ed25519 signature, and — if content is supplied — recomputes SHA-256(content) and checks it against the record's Payload Digest field.
| Parameter | Type | Description |
|---|---|---|
potRecordV08 * | string | Hex-encoded 184 or 216-octet record from pot_generate's potRecordV08 field |
content | string | The payload (utf8) to check against the record's Payload Digest field, if available |
ctxId | string | Context identifier the record was generated under. Must match what pot_generate used, or verification fails. |
issuerPubKey | string | Hex-encoded 32-byte raw Ed25519 issuer public key. Defaults to this server's own key. |
pot_query
Query Proof of Time records. Use eventId for exact O(1) lookup of a specific workflow step (collision probability 2^-256). Use startTime/endTime for time-range queries.
| Parameter | Type | Description |
|---|---|---|
endTime | number | End time (unix ms). Default: now |
eventId | string | Exact eventId lookup — call this at workflow start to restore action history after context compression |
limit | number | Max entries to return. Default: 100, max: 1000 |
startTime | number | Start time (unix ms). Default: 24h ago |
pot_graph
Traverse the causal chain of workflow steps. Given an eventId, returns the full backward chain (ancestors via prevEventId) and forward chain (steps that follow). Use after context compression to reconstruct the complete workflow timeline.
| Parameter | Type | Description |
|---|---|---|
eventId * | string | The workflow step to start traversal from |
depth | number | Max backward traversal depth. Default: 10, max: 100 |
pot_stats
Get PoT statistics: total swaps, turbo/full counts, and turbo ratio for a given period.
| Parameter | Type | Description |
|---|---|---|
period * | string | Time period for statistics |
pot_health
Check PoT system health: time source status, subgraph sync, server uptime, and current mode.
pot_checkpoint
Create a compressed rollup checkpoint of workflow history. Call this periodically to prevent token explosion when recovering from context compression. Returns checkpointId, compressed event history, chainIntact status, and nextCheckpointHint (recommended events before next checkpoint).
| Parameter | Type | Description |
|---|---|---|
endTime | number | Unix ms end time (optional, default: now) |
fromEventId | string | Start of range by eventId (optional, use with toEventId) |
maxTokens | number | Approximate max tokens for rollup (default: 2000) |
startTime | number | Unix ms start time (optional, default: 1h ago) |
toEventId | string | End of range by eventId (optional, use with fromEventId) |