Execution Receipts
Every time the TEE executes a request against an upstream AI vendor, it produces an execution receipt: a signed record of what was sent where, and what came back. Hive verifies the receipt before a request is settled, so no Consumer is charged and no Provider is paid for an execution without one.
What a receipt records
| Field | Meaning |
|---|---|
| Target host and path | Where the request was sent, for example chatgpt.com and the Codex responses path. |
| Job digest | A digest of the job Hive gave the TEE, binding the receipt to that exact request. |
| Provider | Which Provider's Bee carried the connection. |
| Policy digest | The allowlist of upstream hosts and paths built into the TEE image. |
| Request bytes | How many bytes were sent upstream. |
| HTTP status and response header digest | The upstream's response status and a digest of its relevant headers. |
| Response bytes and response digest | How many bytes came back and a digest of them. |
| Completion state | complete, failed or truncated: whether the response stream was transferred in full. |
| Started at / finished at | Timestamps from the TEE's clock. |
| ProviderSeq | A per-Provider sequence number. |
| Signing key ID and attestation | The key that signed the receipt, and the SEV-SNP attestation report proving that key belongs to a genuine enclave running the expected image. |
The receipt doesn't contain the prompt or the response, only their sizes and digests.
How Hive verifies a receipt
Before a request succeeds and is settled, Hive checks that:
- The receipt's structure and signature are valid, and its timestamps are within the allowed window.
- Its attestation report is genuine and shows the expected TEE image, and the signing key is bound to that report.
- It matches the job Hive sent: job ID and digest, Provider, method, host, path, policy digest and request size.
- Its response size and digest match the bytes Hive actually received and passed to the Consumer.
- Its status code and response header digest match the response.
If any check fails, the attempt fails with invalid_evidence and is not charged.
Only executions that completed successfully with full usage are settled. A complete receipt means the transfer was complete; it is not by itself proof that the request succeeded or how many tokens it used.
Where to find receipts
As a Consumer
Open a call on the Call Records page. Each execution attempt shows its Receipt SHA-256, the digest of the archived signed receipt; quote it when you ask about a specific call.
Under Verify execution receipts, click Download for verifier next to an attempt to save its raw signed receipt. The console checks the file's SHA-256 against the recorded digest before saving it. To check the receipt yourself, see Verify a receipt yourself.
As a Provider
The Execution Receipts page lists the receipts of every execution your Bee carried, with target host, path, status, byte counts, timing, ProviderSeq, response digest and signing key ID. It doesn't show the Consumer, the model or the token usage.
Click View receipt, then the download button, to save the raw signed receipt as receipt-<id>.cbor. The console checks the file's SHA-256 against the recorded digest before saving it. You can check it again yourself:
shasum -a 256 receipt-<id>.cbor
The output must equal the Receipt SHA-256 shown in the console.
Verify a receipt yourself
You don't have to take Hive's word for it. The open-source TokHive verifier checks a receipt independently, in your own browser or on your own machine.
- Download the receipt. In Call Records, open the call and click Download for verifier next to the attempt. A call that was retried has one receipt per attempt; verify each one separately.
- Open the verifier. Click Open verifier in the console, or go to verifier.tokhive.ai. Choose Receipt file and select the file. The receipt is checked in your browser; nothing is uploaded.
- Enter the trusted application identity. Under Trusted application identity, enter the
snp-app:…identity of a TokHive TEE release you trust. Take it from the signed TEE release catalog, not from the receipt itself, which only states what it claims to be. The TEE release verification guide explains how to check the catalog's signature and pick the release that was active at the time of your call. - Read the result. The verifier reports each check:
| Check | What it proves |
|---|---|
| Receipt signature | The receipt was signed by the key it names and hasn't been altered. |
| AMD + AWS attestation | That key belongs to a genuine AMD SEV-SNP enclave, according to hardware evidence embedded in the receipt. |
| Trusted application | The enclave runs the TEE release you trust, so it only connects to the upstream hosts in that release's policy. |
| Request / response integrity | Optional: the request and response bytes you supply match the digests in the receipt. |
The overall result is Verified, Incomplete (something needed is missing, such as the trusted application identity) or Failed. Once verified, the receipt's target host, for example api.anthropic.com, tells you where your request went.
By request ID
Every response carries an X-Request-Id header. With it, you can fetch the receipts of your own request from the API:
curl https://api.tokhive.ai/v1/verification/requests/REQUEST_ID \
-H "Authorization: Bearer $HIVE_API_KEY"
The response lists each attempt with its receipt_sha256 and the raw receipt as base64-encoded canonical CBOR. It works even when your balance is zero, and only for requests made with your own keys. The verifier's Request ID mode and its command-line tool use this endpoint; see the verifier repository for running them locally.
Retention
Receipts are kept permanently and stored as the original signed bytes. They are never edited, because changing any signed field would make them fail verification.
Limitations
- Hive doesn't archive your original request and response alongside the receipt, so comparing content needs the bytes you kept yourself.
- Older receipts that carry only a hash of their hardware evidence can verify as Incomplete if that evidence is no longer available. Production receipts now embed the full evidence.
- A receipt proves where a request went and which bytes came back; it doesn't prove which model produced them. Proving model provenance to Consumers directly is the goal of Web Proof.
See also: Trust Model, Glossary.