Expand description
agent-toolprint — double-signed receipts for AI-agent tool invocations.
Rust port of @p-vbordei/agent-toolprint.
Byte-deterministic-compatible: passes the same C1/C2/C3/C4 conformance vectors
as the TypeScript reference.
Re-exports§
pub use canonical::canonical;pub use canonical::sha256_hash;pub use chain::chain;pub use did_key::did_key_from_ed25519_pubkey;pub use did_key::parse_did_key;pub use did_key::DidKeyResolver;pub use did_key::Resolver;pub use envelope::envelope_pae_bytes;pub use envelope::envelope_payload_bytes;pub use envelope::new_envelope;pub use envelope::pae_encode;pub use error::Error;pub use sign::countersign_tool;pub use sign::ed25519_sign;pub use sign::sign_agent;pub use types::validate_envelope;pub use types::validate_receipt;pub use types::PAYLOAD_TYPE;pub use types::PROTOCOL_VERSION;pub use verify::verify;pub use verify::Plaintext;pub use verify::VerifyOptions;pub use verify::VerifyResult;
Modules§
- canonical
- RFC 8785 JSON Canonicalization Scheme + SHA-256 helpers.
- chain
- Receipt chaining — parent.id must equal child.parent.
- did_key
- did:key resolver and Ed25519 multicodec helpers.
- envelope
- DSSE PAE + envelope helpers.
- error
- sign
- Agent and tool signing operations.
- types
- Receipt + Envelope validation against SPEC §2/§3.
- verify
- DSSE envelope verification — implements SPEC §4.