Skip to main content

agent_id_core/
lib.rs

1//! # agent-id-core
2//!
3//! Core identity primitives for the Agent Identity Protocol.
4//!
5//! This crate provides:
6//! - Ed25519 key generation and management
7//! - DID creation and parsing
8//! - DID Document structure and signing
9//! - JCS canonicalization and signing
10//! - Delegation tokens
11//! - Key lifecycle management (rotation, revocation)
12//! - Interaction receipts
13
14pub mod delegation;
15pub mod did;
16pub mod document;
17pub mod error;
18pub mod keys;
19pub mod lifecycle;
20pub mod receipt;
21pub mod signing;
22
23pub use did::Did;
24pub use document::DidDocument;
25pub use error::Error;
26pub use keys::{RootKey, SessionKey};
27pub use lifecycle::{KeyRotation, Revocation};
28pub use receipt::{InteractionContext, InteractionOutcome, InteractionReceipt, InteractionType};
29
30/// Result type for agent-id-core operations.
31pub type Result<T> = std::result::Result<T, Error>;