SDKs
Two official SDKs with identical semantics. Hash chains and Ed25519 signatures are byte-compatible across both — an event signed in Python verifies in TypeScript, and both verify in the dashboard.
Install
# TypeScript / JavaScript — Node 18+, ESM + CJS, zero runtime dependencies
npm install @proofledger/sdk
# Python — 3.9+, stdlib-only core
pip install proofledger
pip install 'proofledger[signing]' # optional: Ed25519 signed eventsOne API surface
| Capability | TypeScript | Python |
|---|---|---|
| Initialize | ProofLedger.enable({...}) | enable(...) |
| Register identity | registerAgent() | register_agent() |
| Attach identity | identifyAgent(id, key) | identify_agent(id, key) |
| Log a decision | logDecision({...}) | log_decision(...) |
| Log a tool/MCP call | logToolCall({...}) | log_tool_call(name, ...) |
| Log an API call | logApiCall({...}) | log_api_call(endpoint, ...) |
| Workflow steps | logWorkflowStep({...}) | log_workflow_step(id, ...) |
| Policy pre-check | evaluatePolicy({...}) | evaluate_policy(...) |
| Sign / verify events | signEvent / verifyEvent | sign_event / verify_event |
| Trust score | getTrustScore() | get_trust_score() |
| Flush before exit | flush() | flush() |
| LLM run tracing | track / withRun / wrapOpenAI | track / with_run / wrap_openai |