agent-identity 0.1.0

Agent identity, key management, and trust verification
Documentation
  • Coverage
  • 19.44%
    7 out of 36 items documented0 out of 21 items with examples
  • Size
  • Source code size: 9.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 498.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • SuperInstance

agent-identity-rs

Rust port of agent-identity — agent identity management and trust verification.

Features

  • Agent identity: public key, roles, expiry, metadata
  • Trust store: register, verify, revoke agents
  • Auth tokens: challenge-response authentication
  • Key fingerprints: hex fingerprint from public key bytes

Usage

use agent_identity::{AgentIdentity, TrustStore, VerificationResult};

// Create an identity
let agent = AgentIdentity::new("agent-1", vec![0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89])
    .with_role("admin")
    .with_role("read");

println!("Fingerprint: {}", agent.fingerprint());
assert!(agent.has_role("admin"));

// Trust store
let mut store = TrustStore::new();
store.register(agent);
assert_eq!(store.verify("agent-1", 0), VerificationResult::Trusted);

// Revoke
store.revoke("agent-1");
assert_eq!(store.verify("agent-1", 0), VerificationResult::Revoked);

License

MIT