> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorpro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Signed records

> Signed records that can be verified offline to show what EDN returned to your application and which AI response your application saved.

When EDN builds a Session Initialization Package (SIP), it signs a record of exactly what it returned to your application. If that record cannot be saved, the build still succeeds and `receipt_id` is `null`. When your application then saves the AI response with that record's `receipt_id`, EDN signs a second record that links the response to the SIP. Anyone with EDN's public key can check that a record is genuine and unchanged, without contacting EDN.

## The two records

| Record | Created when | What it contains |
| - | - | - |
| `sip` | EDN builds a SIP | The query, the SIP text exactly as returned, the memories it included (ID, provenance and summary), the session, the project and the build time |
| `ai_response` | You send the build's `receipt_id` to [Save a conversation turn](https://docs.tensorpro.ai/api-reference/ingest-round.md) | A SHA-256 fingerprint of `assistant_message` exactly as sent, the `receipt_id` of the SIP record, the session, the project and the signing time. The response text is not stored in the record |

EDN signs each record with Ed25519 over its exact content.

## What the records show

* The `sip` record shows exactly what EDN returned to your application for an exchange, and when.
* The `ai_response` record shows which AI response your application saved for that SIP.
* Together, they link each saved AI response to the context EDN supplied.

## What the records do not show

EDN signs what it supplied and what your application reported. The records do not show which model produced the response, what else your application sent to the model, such as its own system prompt, or whether the SIP reached the model unchanged.

## How to use them

1. Call [Build a SIP](https://docs.tensorpro.ai/api-reference/build-sip.md) and keep the `receipt_id` it returns.
2. Send the SIP to your model and receive the AI response.
3. Call [Save a conversation turn](https://docs.tensorpro.ai/api-reference/ingest-round.md) with the exchange and the same `receipt_id`. EDN returns `response_receipt_id`.
4. Later, fetch both records with [Get a signed record](https://docs.tensorpro.ai/api-reference/get-signed-record.md) and EDN's public keys with [Get verification keys](https://docs.tensorpro.ai/api-reference/get-verification-keys.md), then verify each record.

To find records, for example every record from one conversation, use [List signed records](https://docs.tensorpro.ai/api-reference/list-signed-records.md).

## How to verify a record

1. Decode `payload_b64` to get the signed content.
2. Check that its SHA-256 matches `payload_sha256`.
3. In [Get verification keys](https://docs.tensorpro.ai/api-reference/get-verification-keys.md), find the key whose `key_id` matches the record's `key_id`.
4. Check `signature_b64` over the decoded content with that key.
5. For an `ai_response` record, compute the SHA-256 of the exact response text you hold and compare it with `response_sha256` in the signed content.

After the signature check, use only the signed content, not the other fields of the record.

## If signing fails

Signing never blocks a request. If EDN cannot save a record, Build a SIP returns `receipt_id: null` and Save a conversation turn returns `response_receipt_id: null`. The SIP is returned and the exchange is saved as usual.

## Retention and export

Signed records are kept for as long as your memory: they follow your memory retention settings and are deleted with your account. Deleting a memory, session or document does not change records that already include it, because each record keeps the content it signed. The full data export in the Console includes both record types.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.