Cryptographically sign and verify AI interactions — SSL for AI
Project description
@sonate/trust-receipts-python
Python SDK for SONATE Trust Receipts - identical behavior to JavaScript SDK.
Install
pip install sonate-trust-receipts
Quick Start
import asyncio
from sonate.trust_receipts import TrustReceipts, WrapOptions
import anthropic
async def main():
receipts = TrustReceipts(private_key="your-private-key-hex")
client = anthropic.Anthropic()
messages = [{"role": "user", "content": "Explain quantum computing."}]
response, receipt = await receipts.wrap(
lambda: client.messages.create(
model="claude-3-sonnet-20240229",
max_tokens=1024,
messages=messages
),
WrapOptions(session_id="user-123", input=messages)
)
print(f"Receipt Hash: {receipt.receipt_hash}")
asyncio.run(main())
Features
- Ed25519 Signing
- SHA-256 Hashing
- RFC 8785 Canonicalization
- Hash Chaining
- Privacy Mode (hash-only receipts)
- Zero-Backend Verification
- Cross-Language Compatibility with JavaScript SDK
See README.md in JavaScript package for full documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonate_trust_receipts-1.0.0.tar.gz.
File metadata
- Download URL: sonate_trust_receipts-1.0.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6b817e2e6ca927d195501242194d7735b5a3e7eea1a131b90ff713edb3ba43d
|
|
| MD5 |
fdbbfb76aa7d9664efe7185b30b44e72
|
|
| BLAKE2b-256 |
b811b60f1f75c7d4c7026a92ab01f24cfe044ed6b4054cf6724a95fe89f1928a
|
Provenance
The following attestation bundles were made for sonate_trust_receipts-1.0.0.tar.gz:
Publisher:
python-sdk.yml on s8ken/yseeku-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonate_trust_receipts-1.0.0.tar.gz -
Subject digest:
b6b817e2e6ca927d195501242194d7735b5a3e7eea1a131b90ff713edb3ba43d - Sigstore transparency entry: 1004579235
- Sigstore integration time:
-
Permalink:
s8ken/yseeku-platform@26f027d871ef57a7ed894fd3f9722f9ea56e3295 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/s8ken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdk.yml@26f027d871ef57a7ed894fd3f9722f9ea56e3295 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file sonate_trust_receipts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sonate_trust_receipts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8b4811d96f657b754f22bbc870ef7a957192a0d72e7945ff5d074bddf6948f8
|
|
| MD5 |
7977c049755b269da1364fd7e71d446a
|
|
| BLAKE2b-256 |
6f6614b3aa2211116c9fe2bc3badae5bde45370c4071777d78b5c66f34e021ed
|
Provenance
The following attestation bundles were made for sonate_trust_receipts-1.0.0-py3-none-any.whl:
Publisher:
python-sdk.yml on s8ken/yseeku-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sonate_trust_receipts-1.0.0-py3-none-any.whl -
Subject digest:
f8b4811d96f657b754f22bbc870ef7a957192a0d72e7945ff5d074bddf6948f8 - Sigstore transparency entry: 1004579238
- Sigstore integration time:
-
Permalink:
s8ken/yseeku-platform@26f027d871ef57a7ed894fd3f9722f9ea56e3295 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/s8ken
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdk.yml@26f027d871ef57a7ed894fd3f9722f9ea56e3295 -
Trigger Event:
workflow_dispatch
-
Statement type: