openclaw-core
Core infrastructure for the community Rust implementation of OpenClaw
Part of openclaw-rs, a community Rust implementation of OpenClaw. This crate provides core types, configuration, events, and security primitives.
Features
- Types: Core identifiers (AgentId, SessionKey, ChannelId, PeerId)
- Config: JSON5 configuration loading and validation
- Events: Append-only event store with CRDT projections (sled-backed)
- Secrets: AES-256-GCM encrypted credential storage
- Auth: Authentication profile management
- Validation: Input validation and sanitization
Usage
use ;
// Load configuration
let config = load?;
// Create event store
let store = open?;
// Append event
let event = new;
store.append?;
// Get projection
let projection = store.get_projection?;
// Secure API key handling
let key = new;
println!; // Prints "[REDACTED]"
License
MIT License - see LICENSE for details.