You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These extend the protocol to new languages and frameworks.
177
+
178
+
| Library | Purpose | Install | Source |
179
+
|---|---|---|---|
180
+
|**[capsule-go](https://github.com/quantumpipes/capsule-go)**| Verify Capsules in Go |`go get github.com/quantumpipes/capsule-go`|[quantumpipes/capsule-go](https://github.com/quantumpipes/capsule-go)|
181
+
|**[capsule-litellm](https://github.com/quantumpipes/capsule-litellm)**| Automatic audit trail for LiteLLM |`pip install capsule-litellm`|[quantumpipes/capsule-litellm](https://github.com/quantumpipes/capsule-litellm)|
// Verify an entire chain (structural + cryptographic)
228
+
errs:= capsule.VerifyChainFull(sealedCapsules)
229
+
```
230
+
231
+
The Go library is verification-only by design. Seal in any language, verify in Go — infrastructure tooling, CI gates, and audit pipelines can validate Capsules without a full SDK.
capsule inspect --db capsules.db --seq 47 # Full 6-section display
209
-
capsule keys info # Epoch history
210
-
capsule keys rotate # Rotate to new key (no downtime)
211
-
capsule hash document.pdf # SHA3-256 of any file
236
+
pip install capsule-litellm
212
237
```
213
238
214
-
Exit codes: `0` = pass, `1` = fail, `2` = error. Designed for CI/CD gates: `capsule verify --quiet && deploy`.
239
+
```python
240
+
import litellm
241
+
from capsule_litellm import CapsuleLogger
215
242
216
-
See the [Python reference documentation](./reference/python/) for the full guide.
243
+
litellm.callbacks = [CapsuleLogger()]
244
+
245
+
# Every LLM call now produces a sealed Capsule automatically
246
+
response = litellm.completion(
247
+
model="gpt-4o",
248
+
messages=[{"role": "user", "content": "Deploy service v2.4"}],
249
+
)
250
+
```
251
+
252
+
Two lines of code. Every `litellm.completion()` and `litellm.acompletion()` call produces a sealed, hash-chained Capsule with the model identity, SHA3-256 prompt hash, token metrics, and latency — without touching your application code.
capsule inspect --db capsules.db --seq 47 # Full 6-section display
289
+
capsule keys info # Epoch history
290
+
capsule keys rotate # Rotate to new key (no downtime)
291
+
capsule hash document.pdf # SHA3-256 of any file
292
+
```
293
+
294
+
Exit codes: `0` = pass, `1` = fail, `2` = error. Designed for CI/CD gates: `capsule verify --quiet && deploy`.
295
+
296
+
See the [Python reference documentation](./reference/python/) for the full guide.
245
297
246
298
---
247
299
@@ -294,7 +346,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md). Protocol changes go through the [CPS c
294
346
295
347
**∀ action: ∃ capsule**
296
348
297
-
An open protocol · Reference implementations in [Python](./reference/python/)and[TypeScript](./reference/typescript/) · [Conformance suite](./conformance/) for any language
349
+
An open protocol · [Python](./reference/python/)·[TypeScript](./reference/typescript/) · [Go](https://github.com/quantumpipes/capsule-go) · [LiteLLM](https://github.com/quantumpipes/capsule-litellm) · [Conformance suite](./conformance/) for any language
Copy file name to clipboardExpand all lines: docs/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,3 +30,12 @@ Each reference implementation has its own documentation:
30
30
|---|---|
31
31
|[Python](../reference/python/docs/)| API reference, getting started, high-level API |
32
32
|[TypeScript](../reference/typescript/)| README with API reference, quick start, conformance status |
33
+
34
+
## Ecosystem Libraries
35
+
36
+
These extend the protocol to additional languages and frameworks. Each lives in its own repository.
37
+
38
+
| Library | What It Does | Repository |
39
+
|---|---|---|
40
+
|**capsule-go**| Verify Capsules in Go. Canonical JSON serialization, SHA3-256 hashing, Ed25519 signature verification, and structural/cryptographic chain verification. Passes all 16 golden vectors. Verification-only by design — seal in any language, verify in Go. |[quantumpipes/capsule-go](https://github.com/quantumpipes/capsule-go)|
41
+
|**capsule-litellm**| Automatic Capsule creation for every LLM call through LiteLLM. Two lines to add. Captures model identity, SHA3-256 prompt hash (not the prompt itself), token counts, latency, and errors. Sync and async. |[quantumpipes/capsule-litellm](https://github.com/quantumpipes/capsule-litellm)|
Copy file name to clipboardExpand all lines: docs/architecture.md
+55Lines changed: 55 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -460,13 +460,68 @@ capsule hash document.pdf # SHA3-256 of any file
460
460
461
461
---
462
462
463
+
## Ecosystem
464
+
465
+
The Capsule Protocol is implemented across languages and frameworks. The specification and conformance suite live in this repository. Ecosystem libraries extend the protocol to new runtimes.
[`quantumpipes/capsule-go`](https://github.com/quantumpipes/capsule-go) is a Go library for verifying Capsules. It implements canonical JSON serialization (CPS Section 2), SHA3-256 hashing (Section 3.1), Ed25519 signature verification (Section 3.2), and chain verification at all three levels (Section 7.5). It passes all 16 golden conformance vectors.
489
+
490
+
The library is verification-only by design. Infrastructure tooling, CI/CD gates, Kubernetes admission controllers, and audit pipelines can validate Capsules sealed by any language without pulling in a full creation SDK. Dependencies are `crypto/ed25519` (stdlib) and `golang.org/x/crypto/sha3`.
### capsule-litellm — Automatic Audit Trail for LLM Calls
501
+
502
+
[`quantumpipes/capsule-litellm`](https://github.com/quantumpipes/capsule-litellm) is a LiteLLM callback that creates a sealed, hash-chained Capsule for every LLM call. Two lines to integrate. No application code changes.
503
+
504
+
Each Capsule records the model, a SHA3-256 hash of the prompt (the prompt itself is never stored), token counts, latency, and success or failure status. Supports both `litellm.completion()` and `litellm.acompletion()`. Errors in capsule creation are swallowed by default so they never interrupt the LLM call path.
505
+
506
+
```python
507
+
import litellm
508
+
from capsule_litellm import CapsuleLogger
509
+
510
+
litellm.callbacks = [CapsuleLogger()]
511
+
# Every LLM call now produces a sealed Capsule
512
+
```
513
+
514
+
---
515
+
463
516
## Related Documentation
464
517
465
518
-[Why Capsules](./why-capsules.md) — The case for cryptographic AI memory
466
519
-[Security Evaluation](./security.md) — Cryptographic guarantees for CISOs
0 commit comments