Receipts
What a receipt holds, how it is signed, and three ways to check one.
Every reply, picture, sealed call, stamp and verdict gets a receipt: a small JSON record signed with ed25519 by the gateway's key. The key is a Solana address, published at GET /v1/receipts/pubkey.
What is in one
| Field | Meaning |
|---|---|
id, kind, at | The receipt id, what it records (chat, image, commit, stamp…), and when it was signed. |
model, host | The model asked for and the host that ran it. |
tier, zero_retention_host | The privacy setting, and for Confidential whether the host promises to keep nothing. |
usage, cost_usd, latency_ms | Tokens in and out, the cost, the time taken. |
request_sha256 | sha256 of the request as sent: canon({model, messages}), the messages without the system prompt. |
reply_sha256 | sha256 of the reply text. |
system_sha256 | sha256 of the system prompt, when there was one (for example a character's persona). |
guard, scrubbed | How many secret-shaped values were seen, whether an injection pattern was seen, and how many values were scrubbed. |
signer | The address that signed it. |
There is no field for words. The fingerprints only match when you hold the exact text, so a receipt can be public without giving anything away.
How it is signed
canon is JSON with keys sorted and no spaces. The receipt string is base64url(canon(payload)); the signature is base64url(ed25519(canon(payload))).
Three ways to check
In a browser
Paste it on /verify, or open /r/<id>. The page checks the signature with WebCrypto and, if you paste the messages and the reply, recomputes both fingerprints. The chat does this for every reply as it arrives.
Through the API
curl -X POST https://veilnetwork.app/v1/receipts/verify \
-H "content-type: application/json" \
-d '{"receipt":"<receipt>","signature":"<signature>"}'
# -> { "valid": true, "payload": { ... } }
Offline
Node 20 or newer, no packages: decode the receipt, rebuild canon(payload), and check the signature against the address. Every receipt page prints a ready-to-paste one-liner with the values filled in.
Anchors
Every ten minutes the new receipts are rolled into a Merkle root, listed at GET /v1/anchors. Writing each root on chain as a memo is built and not switched on yet; until then a receipt page says "awaiting the on-chain memo".