sonate-receipt
v1.0.0
Published
SONATE Trust Receipt Client — SSL/TLS for AI. Sign and verify interactions.
Maintainers
Readme
SONATE Trust Receipt — SSL/TLS for AI
SONATE is the verification protocol for AI systems. This package provides the official client library for generating, signing, and verifying cryptographic trust receipts.
Installation
npm install sonate-receiptQuick Start (Move 2 — The Developer Moment)
1. Generate & Sign a Receipt
import SONATE from 'sonate-receipt';
const client = new SONATE({
privateKey: process.env.SONATE_PRIVATE_KEY
});
// Wrap any AI interaction to create a verifiable receipt
const { response, receipt } = await client.wrap(
() => openai.chat.completions.create({ model: 'gpt-4', messages }),
{ sessionId: 'user-123', input: messages }
);
console.log('Interaction signed:', receipt.hash);2. Verify a Receipt
const isValid = await client.verifyReceipt(receipt, publicKey);
console.log('Trust verified:', isValid);Features
- Signed: Ed25519 cryptographic signatures (RFC 8032)
- Hash-Chained: Every interaction linked to the previous for tamper-proof history.
- Verifiable: Independent verification without platform lock-in.
- Provider-Agnostic: Works with OpenAI, Anthropic, Gemini, or any LLM.
SONATE Protocol Specs
This library implements the SONATE Protocol v1.0 spec.
© 2026 Stephen Aitken. Published under the MIT License.
