Idemcore
v0.1.5Chat with open models and get a signed receipt for every answer; verify receipts offline.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
idemcore_chat Chat with a signed receipt
Send a chat request to an open model running on Idemcore (OpenAI-compatible API). Returns the answer plus a signed receipt that proves which model, inputs and settings produced it, and checks the receipt signature locally.
| Parameter | Type | Description |
|---|---|---|
max_tokens | integer | |
messages | array | Full chat history in OpenAI format. |
model | string | Model id; defaults to IDEMCORE_MODEL or the server default. |
privacy | string | hash_only (default on the API) keeps only salted hashes. |
prompt | string | User message. Use this or `messages`. |
seed | integer | Sampling seed recorded in the receipt. |
system | string | Optional system message, prepended when using `prompt`. |
temperature | number | |
token_log | string | per_token keeps a per-token log so L2 can be checked later. |
verify | boolean | Check the receipt signature locally (offline). |
idemcore_verify_receipt Verify a receipt offline
Verify an Idemcore receipt without calling the API: L1 checks format and the Ed25519 signature against trusted Idemcore keys; L2 recomputes the token-log chain digests from a log; optional disclosure checks that a prompt, token ids or displayed text match the receipt's hashes.
| Parameter | Type | Description |
|---|---|---|
receipt * | Receipt JSON (object, JSON string, base64url JSON, or an embed envelope {receipt, ...}). | |
extra_keys | Extra public JWK / JWKS to trust for this call (e.g. a self-hosted signer). | |
log_path | string | Path to a per-token log file for L2. |
log_text | string | Per-token log text for L2. |
messages | array | Disclosed prompt messages to check against prompt_hash. |
output_ids | array | Disclosed output token ids to check against output_token_hash. |
output_text | string | Displayed answer text to check against output_text_hash (if the receipt carries it). |
salt_b64u | string | Salt (base64url) for hash_only receipts; not needed for privacy=full. |
idemcore_get_receipt Fetch a stored receipt
Fetch a receipt (and optionally its per-token log) from the tenant's Idemcore receipt store, then verify it locally.
| Parameter | Type | Description |
|---|---|---|
receipt_id * | string | |
include_log | boolean | |
verify | boolean |
idemcore_export_audit Export an audit bundle
Export the tenant's receipts and audit events for a time range, save them to a local file, and check the event hash chain and signed daily Merkle roots offline.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start (RFC 3339 or YYYY-MM-DD, UTC). |
to * | string | End (RFC 3339 or YYYY-MM-DD, UTC). |
include_logs | boolean | |
save | boolean | Write the bundle under IDEMCORE_EXPORT_DIR. |
idemcore_verify_audit Verify an audit bundle offline
Check an exported audit bundle (JSON file with `events`, `roots` and optional `receipts`) offline: event hash chain, signed Merkle roots and every receipt signature.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to the exported bundle JSON. |
idemcore_trusted_keys List trusted signing keys
Show which Idemcore public keys this server trusts for receipt signatures and where each came from.