Expand description
Receipts: RFC 8785 (JCS) canonicalization, session event-chain hashing, and Ed25519-signed, offline-verifiable Receipts (brief Module G).
Signing discipline per the brief §2: a Receipt is finalized once, at session close, asynchronously — never per streaming chunk. Verification requires only the receipt JSON and the signer’s public key (or a keyring holding it): no Bridge connectivity, no AgentVisor AI code beyond this crate.
Re-exports§
pub use chain::EventChain;pub use jcs::canonicalize;pub use jcs::JcsError;pub use keys::Ed25519Signer;pub use keys::Keyring;pub use keys::Signer;pub use receipt::CostSummary;pub use receipt::Receipt;pub use receipt::ReceiptBody;pub use receipt::ReceiptError;pub use receipt::ReceiptSubject;pub use receipt::ToolCallSummary;pub use receipt::RECEIPT_VERSION;
Modules§
- chain
- Session event-chain hashing.
- jcs
- RFC 8785 — JSON Canonicalization Scheme (JCS).
- keys
- Signing keys: the
Signertrait (in-process Ed25519 now, KMS post-MVP) and an offlineKeyringfor verification with key rotation via key ids. - receipt
- The Receipt: an offline-verifiable, Ed25519-signed record of a session.