Skip to main content
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

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 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 with the exchange and the same receipt_id. EDN returns response_receipt_id.
  4. Later, fetch both records with Get a signed record and EDN’s public keys with Get verification keys, then verify each record.
To find records, for example every record from one conversation, use List signed records.

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, 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.