agentic_receipts/lib.rs
1//! Signed, tamper-evident execution receipts for AI agents, tool calls,
2//! GPU workloads, and distributed jobs.
3//!
4//! `agentic-receipts` provides:
5//!
6//! - SHA-256 input, output, and receipt hashing;
7//! - Ed25519 receipt signing;
8//! - receipt signature verification;
9//! - JSON-serializable execution receipt structures;
10//! - optional receipt chaining.
11//!
12//! # Security status
13//!
14//! This crate is experimental and has not undergone an independent security
15//! audit. Review its implementation and threat model before using it for
16//! high-stakes production, financial, or compliance-sensitive workloads.
17
18pub mod error;
19pub mod hashing;
20pub mod receipt;
21pub mod signing;
22pub mod verify;
23
24pub use error::ReceiptError;
25pub use hashing::{receipt_hash, sha256_hex};
26pub use receipt::{ActionType, AgenticReceipt};
27pub use signing::{generate_keypair, sign_receipt};
28pub use verify::verify_receipt;