Skip to main content

av_receipts/
lib.rs

1//! Receipts: RFC 8785 (JCS) canonicalization, session event-chain hashing, and
2//! Ed25519-signed, offline-verifiable Receipts (brief Module G).
3//!
4//! Signing discipline per the brief §2: a Receipt is finalized **once, at
5//! session close**, asynchronously — never per streaming chunk. Verification
6//! requires only the receipt JSON and the signer's public key (or a keyring
7//! holding it): no Bridge connectivity, no AgentVisor AI code beyond this crate.
8
9pub mod chain;
10pub mod jcs;
11pub mod keys;
12pub mod receipt;
13
14pub use chain::EventChain;
15pub use jcs::{canonicalize, JcsError};
16pub use keys::{Ed25519Signer, Keyring, Signer};
17pub use receipt::{
18    CostSummary, Receipt, ReceiptBody, ReceiptError, ReceiptSubject, ToolCallSummary, RECEIPT_VERSION,
19};